pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
[gnulib.git] / ChangeLog
1 2011-09-07  Bruno Haible  <bruno@clisp.org>
2
3         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6
7 2011-09-07  Bruno Haible  <bruno@clisp.org>
8
9         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11         * lib/freopen.c: Likewise.
12         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13         * lib/lstat.c: Likewise.
14         * lib/stat.c: Likewise.
15         * lib/open.c: Use different syntax for include of <fcntl.h>.
16         * lib/openat.c: Include fcntl.h again, explicitly.
17
18 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
19
20         parse-datetime: document the newly accepted format
21         * doc/parse-datetime.texi (Combined date and time of day items):
22         New section.
23
24 2011-09-06  Bruno Haible  <bruno@clisp.org>
25
26         acl: Fix a test failure on newer Solaris 10 with ZFS.
27         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
28         ENOSYS as no ACL.
29         Reported by Jim Meyering.
30
31 2011-09-06  Bruno Haible  <bruno@clisp.org>
32
33         acl: Update for AIX >= 5.3 with NFS.
34         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
35         ENOSYS as no ACL.
36
37         acl: Fix a test failure on AIX >= 5.3 with NFS.
38         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
39         as no ACL.
40
41 2011-09-06  Bruno Haible  <bruno@clisp.org>
42
43         acl: Fix a test failure on IRIX 6.5 with NFS.
44         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
46         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
47         * lib/copy-acl.c (qcopy_acl): Likewise.
48
49 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50
51         openat: port to AIX 7.1 with large files
52         AIX 7.1 does a "#define openat open64at" if large files are in use,
53         so we can't simply #undef openat.  Use the orig_openat trick (similar
54         to orig_open in lib/open.c) to work around the problem.  Problem
55         reported by Kevin Brott for GNU tar, in the thread containing
56         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
57         * lib/openat.c (__need_system_fcntl_h): Define first.
58         Include <fcntl.h> and <sys/types.h> before undefining.
59         (orig_openat) [HAVE_OPENAT]: New inline function.
60         (openat) [HAVE_OPENAT]: Do not undef.
61         (rpl_openat): Use orig_openat, not openat.
62
63 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64             Bruno Haible  <bruno@clisp.org>
65
66         acl: Avoid errors on NonStop Kernel.
67         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
68         ENOTSUP errors.
69
70 2011-09-05  Bruno Haible  <bruno@clisp.org>
71
72         acl: Clean up Solaris code.
73         * lib/acl-internal.h: Remove no-op #if.
74         * lib/file-has-acl.c: Likewise.
75         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
76         * lib/copy-acl.c (qcopy_acl): Likewise.
77
78 2011-09-05  Bruno Haible  <bruno@clisp.org>
79
80         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
81         binaries built on the original Solaris 10.
82         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
83         trivial.
84
85 2011-09-05  Bruno Haible  <bruno@clisp.org>
86
87         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
88         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
89         10.
90         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
91         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
92         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
93         instead of acl_get, facl_get, acl_set, facl_set.
94
95 2011-09-05  Bruno Haible  <bruno@clisp.org>
96
97         copy-file: Try unit tests on more file systems.
98         * tests/test-copy-file-1.sh: New file.
99         * tests/test-copy-file-2.sh: New file.
100         * modules/copy-file-tests (Files): Add them.
101         (Makefile.am): Add them to TESTS.
102
103         acl: Try unit tests on more file systems.
104         * tests/test-file-has-acl-1.sh: New file.
105         * tests/test-file-has-acl-2.sh: New file.
106         * tests/test-set-mode-acl-1.sh: New file.
107         * tests/test-set-mode-acl-2.sh: New file.
108         * tests/test-copy-acl-1.sh: New file.
109         * tests/test-copy-acl-2.sh: New file.
110         * modules/acl-tests (Files): Add them.
111         (Makefile.am): Add them to TESTS.
112
113 2011-09-04  Bruno Haible  <bruno@clisp.org>
114
115         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
116         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
117         10.
118         (OLD_ALLOW, OLD_DENY): New macros.
119         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
120         ACE_ACCESS_ALLOWED_ACE_TYPE.
121         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
122         ACE_ACCESS_DENIED_ACE_TYPE.
123         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
124         (NEW_ACE_EXECUTE): Fix value.
125         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
126         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
127         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
128         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
129         NEW_ACE_SYNCHRONIZE): New macros.
130         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
131         instead of acl_fromtext, acl_set, facl_set.
132         Fixes a coreutils/tests/cp/perm failure.
133
134 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
135
136         openat: test for fstatat (..., 0) bug
137         Further testing with tar suggests that fstatat (..., 0)
138         does not work in general, on AIX 7.1; see
139         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
140         So, give up entirely on AIX 7.1's fstatat, and fall back on our
141         replacement fstatat (which is what older AIX releases were using
142         anyway).
143         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
144         use is now changed to orig_fstatat.  This was probably the right
145         thing to do anyway.
146         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
147         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
148         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
149         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
150         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
151         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
152         if the bug is found.
153
154         openat: test for fstatat (AT_FDCWD, ..., 0) bug
155         This tests for another fstatat bug on AIX 7.1:
156         fstatat (AT_FDCWD, ..., 0) does not work.  See
157         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
158         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
159         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
160         (rpl_fstatat): Adjust so that it works around either (or both)
161         bugs if present.
162         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
163
164 2011-09-03  Karl Berry  <karl@gnu.org>
165
166         * doc/regex.texi (Character Class Operators): Avoid literal ":"
167         in index entries.
168
169 2011-09-02  Bruno Haible  <bruno@clisp.org>
170
171         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
172         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
173         values of AR, ARFLAGS, RANLIB.
174         Reported by John W. Eaton <jwe@gnu.org> for Octave.
175
176 2011-09-02  Bruno Haible  <bruno@clisp.org>
177
178         Find 'ar' program that fits with --host argument.
179         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
180
181 2011-09-02  Bruno Haible  <bruno@clisp.org>
182
183         tests: init.sh: Support any non-GNU diff.
184         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
185         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
186         Solaris 8.
187
188 2011-09-02  Bruno Haible  <bruno@clisp.org>
189
190         tests: init.sh: work also with any non-GNU diff that supports -u
191         * tests/init.sh: Relax check for diff -u support.
192         Rather than checking for GNU diff via --version, simply check
193         for support for -u itself.  Useful at least on OpenBSD 4.9,
194         AIX 7.1, IRIX 6.5, and Solaris 10.
195
196 2011-09-01  Bruno Haible  <bruno@clisp.org>
197
198         strtoimax, strtoumax: Document problem on HP-UX 11.
199         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
200         * doc/posix-functions/strtoumax.texi: Likewise.
201
202 2011-09-01  Bruno Haible  <bruno@clisp.org>
203
204         strtoumax: Avoid link error on OSF/1 with DTK cc.
205         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
206         defined as a function.
207         * modules/strtoumax (Depends-on, configure.ac): Test only whether
208         strtoumax is defined, not whether it is declared.
209
210 2011-09-01  Bruno Haible  <bruno@clisp.org>
211
212         strtoimax: Avoid link error on OSF/1 with DTK cc.
213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
214         defined as a function.
215         * modules/strtoimax (Depends-on, configure.ac): Test only whether
216         strtoimax is defined, not whether it is declared.
217
218 2011-09-01  Bruno Haible  <bruno@clisp.org>
219
220         imaxdiv: Avoid link error on OSF/1 with DTK cc.
221         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
222         as a function.
223         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
224         whether it is declared.
225
226 2011-09-01  Bruno Haible  <bruno@clisp.org>
227
228         imaxabs: Avoid link error on OSF/1 with DTK cc.
229         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
230         as a function.
231         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
232         whether it is declared.
233
234 2011-09-01  Bruno Haible  <bruno@clisp.org>
235
236         Tests for module 'strtoumax'.
237         * modules/strtoumax-tests: New file.
238         * tests/test-strtoumax.c: New file.
239
240         Tests for module 'strtoimax'.
241         * modules/strtoimax-tests: New file.
242         * tests/test-strtoimax.c: New file.
243
244         Tests for module 'imaxdiv'.
245         * modules/imaxdiv-tests: New file.
246         * tests/test-imaxdiv.c: New file.
247
248         Tests for module 'imaxabs'.
249         * modules/imaxabs-tests: New file.
250         * tests/test-imaxabs.c: New file.
251
252 2011-09-01  Bruno Haible  <bruno@clisp.org>
253
254         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
255         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
256         pthread_create.
257
258 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
259
260         openat: work around AIX 7.1 fstatat issue
261         This should fix the problem that was not properly fixed
262         in the previous change, dated 2011-08-30.
263         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
264         __need_system_stat_h defined.
265         (orig_fstatat) [HAVE_FSTATAT]: New function.
266         (rpl_fstatat): Go back to the old way of doing things,
267         except call orig_fstatat instead of fstatat.
268         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
269         Remove unnecessary check whether fstatat fills in st_size etc.
270
271 2011-09-01  Bruno Haible  <bruno@clisp.org>
272
273         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
274         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
275         just include the system's header.
276
277 2011-08-31  Jim Meyering  <meyering@redhat.com>
278
279         tests: avoid spurious assertion failure in test-float.c on ppc64
280         * tests/test-float.c (test_long_double): Comment out an assertion,
281         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
282         with gcc-4.4.4.
283
284         maint: indent with spaces, not TABs
285         I need to get in the habit of running gnulib's "make check".
286         Both of these would have been caught.
287         * m4/largefile.m4: Indent with spaces, not TABs.
288         * lib/parse-datetime.y (iso_8601_time): Likewise.
289         Spotted by Pádraig Brady.
290
291         test-parse-datetime.c: accommodate a relatively strict gcc warning
292         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
293         to avoid a warning from gcc's -Werror=missing-declarations.
294         Insert a few spaces-before-funcall-parenthesis.
295
296 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
297
298         parse-datetime: accept ISO 8601 date and time rep with "T" separator
299         The parser now accepts ISO 8601 date-time strings with "T" as the
300         separator.  It has long parsed dates like "2004-02-29 16:21:42"
301         with a space between the date and time strings.  Now it also parses
302         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
303         variants like "2004-02-29T16:21:42.333-07:00"
304         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
305         of day representation using the 'T' separator character.
306         * doc/parse-datetime.texi (General date syntax): replace use of
307         deprecated --iso-8601 option with --rfc-3339 in example of date
308         command output formats that can be parsed.
309         * tests/test-parse-datetime.c (tm_diff): New function, taken from
310         lib/parse-datetime.y.
311         (gmt_offset): New function.
312         (main): Add additional test cases to validate ISO8601 extended
313         date and time of day parsing.
314
315 2011-08-31  Bruno Haible  <bruno@clisp.org>
316
317         freopen: Documentation.
318         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
319         name.
320         Reported by Claudio Bley <claudio.bley@gmail.com>.
321
322 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
323
324         freopen: Don't crash if the filename argument is NULL.
325         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
326         NULL.
327
328 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
329
330         openat: work around AIX 7.1 fstatat bug
331         Problem reported by Kevin Brott for GNU tar, in the thread containing
332         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
333         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
334         FSTATAT_ST_SIZE_ETC_BROKEN.
335         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
336         rpl_fstatat.
337         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
338         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
339         AC_CHECK_FUNCS_ONCE for fstatat.
340         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
341         fchmodat, mkdirat, openat and unlinkat.
342
343 2011-08-30  Bruno Haible  <bruno@clisp.org>
344
345         Avoid endless recursions if config.h includes some header files.
346         * lib/fopen.c (__need_FILE): Define already before including config.h.
347         * lib/freopen.c (__need_FILE): Likewise.
348         * lib/open.c (__need_system_fcntl_h): Likewise.
349         * lib/stat.c (__need_system_sys_stat_h): Likewise.
350         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
351         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
352
353 2011-08-25  Karl Berry  <karl@gnu.org>
354
355         * config/srclist.txt (ylwrap): new try.
356         * build-aux/ylwrap: new file.
357
358 2011-08-23  Bruno Haible  <bruno@clisp.org>
359
360         tmpdir: Use a good default directory on native Windows.
361         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
362         (P_tmpdir): Default to _P_tmpdir on native Windows.
363         (path_search): On native Windows, try the value returned by GetTempPath
364         before trying P_tmpdir.
365         * modules/tmpdir (Depends-on): Add pathmax.
366         Suggested by John Darrington <john@darrington.wattle.id.au>.
367
368 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
369
370         doc: fix typo in README-release
371         * top/README-release: Capitalize first word of a sentence.
372
373 2011-08-19  Jim Meyering  <meyering@redhat.com>
374
375         fts: do not exhaust memory when processing million-entry directories
376         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
377         directory would require about 256*N bytes of memory.  Thus, it was
378         easy to construct a directory too large to be processed by any of
379         those tools.  With this change, fts' maximum memory utilization is
380         now limited to around 30MB.
381         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
382         (fts_read): When we've processed the final entry (i.e., when
383         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
384         using the parent entry to read any remaining entries.  Dispatch
385         depending on what fts_build returns:
386         - NULL+stop, aka failure: stop
387         - NULL otherwise: move up in the dir hierarchy
388         - non-NULL: handle this new entry
389         (fts_build): Declare and use new local, continue_readdir.
390         Prepare to be called from fts_read, when the entries
391         from a partially-read directory have just been exhausted.
392         In that case, we'll skip the opendir and instead use the parent's
393         fts_dirp and derive dir_fd from that.
394         Finally, in the readdir loop, if we read max_entries entries,
395         exit the loop ensuring *not* to call closedir.  This is required
396         so that fts_dirp can be reused on a subsequent call.
397         Prompted by Ben England's report of memory exhaustion in find
398         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
399
400         maint: fts: move decl of `dp' down into while loop; split a long line
401         * lib/fts.c (fts_build): No semantic change.
402
403         fts: add/use new struct member, fts_dirp
404         We are about to use this to manage any directory with
405         too many entries to read all of them into memory at once.
406         To do that, we'll need to save the DIR* pointer in each
407         affected FTSENT struct.
408         * lib/fts_.h: Include <dirent.h>.
409         (struct FTSENT) [fts_dirp]: New member.
410         * lib/fts.c (closedir_and_clear): Define.
411         Use it in place of closedir so that we are sure to
412         clear the new fts_dirp member when done with it.
413         (fts_alloc): Initialize the new member.
414         (fts_lfree): Free, if needed.
415
416         maint: fts: give __opendir2 a new parameter and rename
417         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
418         than surreptitiously using sole caller's "dir_fd".
419         (fts_opendir): Rename from __opendir2.
420
421         maint: fts.c: remove __opendir2's now-unused parameter, oflag
422         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
423
424         maint: fts.c: correct off-by-one indentation
425         * lib/fts.c (fts_build): Correct indentation, change style
426         of a couple of block comments, and bracing style.
427
428         maint: fts.c: move __opendir2 #define "up" out of function body
429         * lib/fts.c (__opendir2): Move "up".  No semantic change.
430
431         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
432         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
433         out for a long time and besides was useful only on BSD systems.
434
435 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
436
437         regex: port to Stratus OpenVOS
438         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
439         define to empty, rather than attempting nonportable optimizations.
440         Problem reported by Paul Green in:
441         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
442         and fix suggested by Eric Blake in:
443         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
444
445 2011-08-17  Eric Blake  <eblake@redhat.com>
446
447         getcwd: fix test failures on mingw
448         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
449         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
450         test if long directory cannot be created, and allow mingw errno.
451
452         getcwd-lgpl: fix m4 to match relaxed test for BSD
453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
454         (gl_FUNC_GETCWD_SIGNATURE): New macro.
455         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
456         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
457         signature problem.
458
459         getcwd: fix compilation on mingw64
460         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
461         getcwd.
462         Reported by Marc-André Lureau.
463
464         pipe2: silence compiler warning
465         * lib/pipe2.c (pipe2): Hide label if it is not used.
466
467 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
468
469         relocatable-prog: fix link error
470         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
471         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
472         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
473         into modules/relocatable-lib without noticing that
474         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
475         also needs to build relocatable.c.
476
477 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
478
479         getaddrinfo: fix sh typo in gai_strerrorA decl checking
480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
481         shell code: it contained a 'break' that was not in a loop.
482         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
483         via a shell-language loop; this may have been true in old Autoconf
484         versions, but it's not true in Autoconf 2.68.  I found this bug
485         when testing coreutils git on Solaris 8, whose shell complains
486         about the syntax error.
487
488 2011-08-12  Simon Josefsson  <simon@josefsson.org>
489
490         * lib/base64.c: Fix comment to reference RFC 4648.
491         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
492         <gvtulder@gmail.com>.
493
494 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
495
496         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
497
498         po/Makefile.in.in: fix make -q problem
499         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
500         rule, since there's no file named 'check-macro-version' and its
501         use as a file breaks make -q.
502         (all): Don't depend on check-macro-version.
503         (CHECK_MACRO_VERSION): New macro.
504         (stamp-po): Use it.
505
506         configmake: fix make -q problem
507         * modules/configmake (configmake.h): Update configmake.h's time stamp
508         even if the file does not change.  Otherwise, 'make -q' fails.
509         Problem reported by Simon Josefsson in
510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
511
512 2011-08-11  Jim Meyering  <meyering@redhat.com>
513
514         git-version-gen: correct the advice in a comment
515         * build-aux/git-version-gen: Correct comment.
516         Don't recommend to list .tarball-version in .gitignore.
517
518 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
519
520         base64: fix off-by-one buffer size bug
521         Problem and (trivial) fix reported by Gijs van Tulder in
522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
523         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
524         * tests/test-base64.c (main): Catch the bug.
525
526 2011-08-10  Eric Blake  <eblake@redhat.com>
527
528         closein: correct comments
529         * lib/closein.c (close_stdin): Improve comments.
530
531 2011-08-09  Bruno Haible  <bruno@clisp.org>
532
533         More tests for 'fseeko'.
534         * tests/test-fseeko3.c: New file, from Eric Blake.
535         * tests/test-fseeko3.sh: New file.
536         * modules/fseeko-tests (Files): Add them.
537         (TESTS): Add test-fseeko3.sh.
538         (check_PROGRAMS): Add test-fseeko3.
539
540 2011-08-09  Eric Blake  <eblake@redhat.com>
541
542         fseeko: remove unneeded hack
543         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
544
545         fseeko: fix bug on glibc
546         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
547         Reported by John W. Eaton.
548
549 2011-08-08  Bruno Haible  <bruno@clisp.org>
550
551         unictype/base: Fix interoperability with preinstalled libunistring.
552         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
553         Reported by Simon Josefsson.
554
555 2011-08-08  Bruno Haible  <bruno@clisp.org>
556
557         iswblank: Detect declaration correctly.
558         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
559         AC_CHECK_DECLS invocation.
560
561 2011-08-08  Bruno Haible  <bruno@clisp.org>
562
563         tcgetsid: Detect declaration correctly.
564         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
565         AC_CHECK_DECLS invocation.
566         Reported by Simon Josefsson.
567
568 2011-08-08  Eric Blake  <eblake@redhat.com>
569
570         largefile: fix typo that regressed large file support
571         * modules/largefile (configure.ac-early): Fix section name.
572
573 2011-08-06  Karl Berry  <karl@gnu.org>
574
575         * MODULES.html.sh (func_all_files): _Noreturn is no longer
576         a separate module.
577
578 2011-08-05  Simon Josefsson  <simon@josefsson.org>
579
580         openat: Fix warnings and commens when building unlinkat.c on Hurd.
581         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
582         get prototype for free.
583
584 2011-08-04  Bruno Haible  <bruno@clisp.org>
585
586         Tests for module 'pathmax'.
587         * modules/pathmax-tests: New file.
588         * tests/test-pathmax.c: New file.
589
590         canonicalize-lgpl: Support larger filenames on the Hurd.
591         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
592         Reported by Paul Eggert.
593
594         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
595         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
596         * lib/chdir-long.h: Include pathmax.h.
597         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
598         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
599         (PATH_MAX): Remove code that is done by pathmax.h.
600         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
601         * lib/tmpfile.c: Add a comment.
602         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
603         * modules/chdir-long (Depends-on): Add pathmax.
604         * modules/getcwd (Depends-on): Add pathmax.
605         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
606         is not defined.
607         * doc/posix-headers/limits.texi: Mention the pathmax module.
608         * NEWS: Mention the change.
609
610 2011-08-02  Bruno Haible  <bruno@clisp.org>
611
612         pthread_sigmask: Actually use results of gl_THREADLIB.
613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
614         gl_THREADLIB, not gl_[]THREADLIB.
615         Reported by Eric Blake.
616
617 2011-08-02  Jim Meyering  <meyering@redhat.com>
618
619         maint.mk: relax the default _gl_TS_function_match regexp
620         * top/maint.mk (_gl_TS_function_match): Don't require at least one
621         space between function name and "(" in an "extern" declaration.
622         That would fail to match a decl with no space there: extern void foo();
623
624 2011-07-31  Iain Nicol  <iain@thenicols.net>
625
626         git-version-gen: document that EXTRA_DIST must include .version
627         * build-aux/git-version-gen: In the how-to-use comment, document
628         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
629         will fail when run from an unpacked distribution tarball.
630
631 2011-08-01  Bruno Haible  <bruno@clisp.org>
632
633         wctype-h: Fix last change.
634         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
635         REPLACE_TOWLOWER to 0.
636         Reported by Sam Steingold <sds@gnu.org>.
637
638 2011-07-31  Bruno Haible  <bruno@clisp.org>
639
640         frexpl: Update autoconf test.
641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
642         according to changes of 2011-06-20.
643
644 2011-07-31  Bruno Haible  <bruno@clisp.org>
645
646         sys_utsname: Add support for Minix.
647         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
648         <sys/utsname.h>.
649         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
650         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
651
652 2011-07-31  Bruno Haible  <bruno@clisp.org>
653
654         strings: Add support for Minix.
655         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
656         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
657         * doc/posix-headers/strings.texi: Document the Minix problem.
658
659 2011-07-31  Bruno Haible  <bruno@clisp.org>
660
661         wctype-h: Add support for Minix.
662         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
663         REPLACE_TOWLOWER.
664         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
665         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
666         REPLACE_ISWCNTRL.
667
668 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
669
670         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
671         This is a performance improvement for 64-bit hosts: it causes the
672         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
673
674 2011-07-31  Bruno Haible  <bruno@clisp.org>
675
676         stdioext: Add support for Minix.
677         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
678         * lib/fpurge.c (fpurge): Likewise.
679         * lib/freadahead.c (freadahead): Likewise.
680         * lib/freadable.c (freadable): Likewise.
681         * lib/freading.c (freading): Likewise.
682         * lib/freadptr.c (freadptr): Likewise.
683         * lib/freadseek.c (freadptrinc): Likewise.
684         * lib/fseeko.c (rpl_fseeko): Likewise.
685         * lib/fseterr.c (fseterr): Likewise.
686         * lib/fwritable.c (fwritable): Likewise.
687         * lib/fwriting.c (fwriting): Likewise.
688         * lib/fflush.c (clear_ungetc_buffer): Update comment.
689         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
690
691 2011-07-31  Bruno Haible  <bruno@clisp.org>
692
693         errno: Port to Minix.
694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
695         ECONNABORTED are defined.
696         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
697         GNULIB_defined_ECONNABORTED): New macros.
698         * lib/strerror-override.h (strerror_override): Test also
699         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
700         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
701         ECONNABORTED.
702         * doc/posix-headers/errno.texi: Mention the Minix problem.
703
704 2011-07-31  Bruno Haible  <bruno@clisp.org>
705
706         Work around declaration collisions on Minix.
707         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
708         defined, set REPLACE_MBSINIT.
709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
710         defined, set REPLACE_MBRTOWC.
711         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
712         set REPLACE_MBRLEN.
713         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
714         defined, set REPLACE_MBSRTOWCS.
715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
716         defined, set REPLACE_WCRTOMB.
717         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
718         defined, set REPLACE_WCSRTOMBS.
719
720 2011-07-31  Bruno Haible  <bruno@clisp.org>
721
722         Add support for Minix with ACK compiler.
723         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
724         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
725         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
726
727 2011-07-31  Bruno Haible  <bruno@clisp.org>
728
729         Documentation about Minix.
730         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
731         * doc/glibc-headers/*.texi: Likewise.
732         * doc/posix-functions/*.texi: Likewise.
733         * doc/glibc-functions/*.texi: Likewise.
734
735 2011-07-31  Bruno Haible  <bruno@clisp.org>
736
737         snippet/warn-on-use: Fix indentation.
738         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
739
740 2011-07-25  Jim Meyering  <meyering@redhat.com>
741
742         tests: test-update-copyright.sh: remove unnecessary "rm" commands
743         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
744         commands.
745
746 2011-07-27  Jim Meyering  <meyering@redhat.com>
747
748         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
749         * top/maint.mk (gl_extract_significant_defines_): Now that
750         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
751         gnulib/lib/signal.in.h, and now that we recommend to
752         define-if-undefined those two symbols in application code,
753         we must filter them out of the "significant" list.
754         This avoids a "make syntax-check" failure in coreutils.
755
756 2011-07-26  Eric Blake  <eblake@redhat.com>
757
758         warnings: add comments about previous patch
759         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
760         * m4/include_next.m4: Likewise.
761         * m4/warn-on-use.m4: Likewise.
762         * m4/warnings.m4: Likewise, and simplify use.
763         Suggested by Stefano Lattarini.
764
765         include-next, warnings: support older autoconf
766         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
767         AS_VAR_PUSHDEF in a way that works with older autoconf.
768         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
769         Reported by Daniel P. Berrange.
770
771 2011-07-25  Bruno Haible  <bruno@clisp.org>
772
773         fseek, ftell: Fix doc.
774         * doc/posix-functions/fseek.texi: Reword statement about
775         AC_SYS_LARGEFILE.
776         * doc/posix-functions/ftell.texi: Likewise.
777
778 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
779             Bruno Haible  <bruno@clisp.org>
780
781         Add dependencies to the 'largefile' module.
782         * modules/fopen (Depends-on): Add 'largefile'.
783         * modules/freopen (Depends-on): Likewise.
784         * modules/fseeko (Depends-on): Likewise.
785         * modules/ftello (Depends-on): Likewise.
786         * modules/glob (Depends-on): Likewise.
787         * modules/lseek (Depends-on): Likewise.
788         * modules/lstat (Depends-on): Likewise.
789         * modules/mkostemp (Depends-on): Likewise.
790         * modules/mkostemps (Depends-on): Likewise.
791         * modules/mkstemp (Depends-on): Likewise.
792         * modules/mkstemps (Depends-on): Likewise.
793         * modules/open (Depends-on): Likewise.
794         * modules/openat (Depends-on): Likewise.
795         * modules/pread (Depends-on): Likewise.
796         * modules/pwrite (Depends-on): Likewise.
797         * modules/scandir (Depends-on): Likewise.
798         * modules/stat (Depends-on): Likewise.
799         * modules/tmpfile (Depends-on): Likewise.
800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
801         since the containing module now depends on the largefile module.
802         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
803         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
804         off_t is fixed by gnulib.
805         * doc/posix-functions/freopen.texi: Likewise.
806         * doc/posix-functions/fseeko.texi: Likewise.
807         * doc/posix-functions/fstatat.texi: Likewise.
808         * doc/posix-functions/ftello.texi: Likewise.
809         * doc/posix-functions/glob.texi: Likewise.
810         * doc/posix-functions/lseek.texi: Likewise.
811         * doc/posix-functions/lstat.texi: Likewise.
812         * doc/posix-functions/mkstemp.texi: Likewise.
813         * doc/posix-functions/open.texi: Likewise.
814         * doc/posix-functions/openat.texi: Likewise.
815         * doc/posix-functions/pread.texi: Likewise.
816         * doc/posix-functions/pwrite.texi: Likewise.
817         * doc/posix-functions/scandir.texi: Likewise.
818         * doc/posix-functions/stat.texi: Likewise.
819         * doc/posix-functions/tmpfile.texi: Likewise.
820         * doc/glibc-functions/mkostemp.texi: Likewise.
821         * doc/glibc-functions/mkostemps.texi: Likewise.
822         * doc/glibc-functions/mkstemps.texi: Likewise.
823
824 2011-07-25  Bruno Haible  <bruno@clisp.org>
825
826         fcntl: Move AC_LIBOBJ invocation to module description.
827         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
828         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
829
830         fcntl: Remove call-in from fchdir.m4.
831         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
833
834         dup3: Remove potential call-in from fchdir.m4.
835         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
837
838         dup2: Move AC_LIBOBJ invocation to module description.
839         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
840         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
841         Don't invoke AC_LIBOBJ.
842         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
843
844         dup2: Remove call-in from fchdir.m4.
845         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
847
848         fclose: Move AC_LIBOBJ invocation to module description.
849         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
850         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
851         to 1.
852         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
853
854         fclose: Remove call-in from close.m4.
855         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
856         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
857
858         close: Move AC_LIBOBJ invocation to module description.
859         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
860         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
861         1.
862         * modules/close (configure.ac): Invoke AC_LIBOBJ.
863
864         close: Remove call-in from fchdir.m4.
865         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
867
868         open: Move AC_LIBOBJ invocation to module description.
869         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
870         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
871         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
872
873         open: Remove call-in from fchdir.m4.
874         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
876
877         fchdir: Start to remove gl_REPLACE_* idiom.
878         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
879         (gl_FUNC_FCHDIR): Invoke it.
880
881 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
882
883         * lib/ftell.c (ftell): Comment out cast.
884
885         close: use gl_REPLACE_FCLOSE only if defined
886         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
887         is defined.  The close module doesn't depend on the fclose module
888         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
890         I reproduced the problem with "./gnulib-tool --test close sys_socket".
891
892 2011-07-24  Jim Meyering  <meyering@redhat.com>
893
894         test-select.h: avoid warning when using gcc's -Wmissing-declarations
895         * tests/test-select.h (test_function): Declare as "static".
896
897 2011-07-24  Bruno Haible  <bruno@clisp.org>
898
899         doc: Mention the effects of AC_SYS_LARGEFILE.
900         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
901         on this function.
902         * doc/posix-functions/aio_error.texi: Likewise.
903         * doc/posix-functions/aio_fsync.texi: Likewise.
904         * doc/posix-functions/aio_read.texi: Likewise.
905         * doc/posix-functions/aio_return.texi: Likewise.
906         * doc/posix-functions/aio_suspend.texi: Likewise.
907         * doc/posix-functions/aio_write.texi: Likewise.
908         * doc/posix-functions/fgetpos.texi: Likewise.
909         * doc/posix-functions/fopen.texi: Likewise.
910         * doc/posix-functions/freopen.texi: Likewise.
911         * doc/posix-functions/fsetpos.texi: Likewise.
912         * doc/posix-functions/fstatvfs.texi: Likewise.
913         * doc/posix-functions/ftruncate.texi: Likewise.
914         * doc/posix-functions/ftw.texi: Likewise.
915         * doc/posix-functions/getrlimit.texi: Likewise.
916         * doc/posix-functions/glob.texi: Likewise.
917         * doc/posix-functions/lio_listio.texi: Likewise.
918         * doc/posix-functions/lockf.texi: Likewise.
919         * doc/posix-functions/mkstemp.texi: Likewise.
920         * doc/posix-functions/mmap.texi: Likewise.
921         * doc/posix-functions/nftw.texi: Likewise.
922         * doc/posix-functions/openat.texi: Likewise.
923         * doc/posix-functions/opendir.texi: Likewise.
924         * doc/posix-functions/posix_fadvise.texi: Likewise.
925         * doc/posix-functions/posix_fallocate.texi: Likewise.
926         * doc/posix-functions/pread.texi: Likewise.
927         * doc/posix-functions/pwrite.texi: Likewise.
928         * doc/posix-functions/readdir.texi: Likewise.
929         * doc/posix-functions/readdir_r.texi: Likewise.
930         * doc/posix-functions/rewinddir.texi: Likewise.
931         * doc/posix-functions/scandir.texi: Likewise.
932         * doc/posix-functions/seekdir.texi: Likewise.
933         * doc/posix-functions/setrlimit.texi: Likewise.
934         * doc/posix-functions/statvfs.texi: Likewise.
935         * doc/posix-functions/telldir.texi: Likewise.
936         * doc/posix-functions/tmpfile.texi: Likewise.
937         * doc/posix-functions/truncate.texi: Likewise.
938         * doc/glibc-functions/fallocate.texi: Likewise.
939         * doc/glibc-functions/fstatfs.texi: Likewise.
940         * doc/glibc-functions/fts_children.texi: Likewise.
941         * doc/glibc-functions/fts_read.texi: Likewise.
942         * doc/glibc-functions/getdirentries.texi: Likewise.
943         * doc/glibc-functions/mkostemp.texi: Likewise.
944         * doc/glibc-functions/mkostemps.texi: Likewise.
945         * doc/glibc-functions/mkstemps.texi: Likewise.
946         * doc/glibc-functions/preadv.texi: Likewise.
947         * doc/glibc-functions/pwritev.texi: Likewise.
948         * doc/glibc-functions/sendfile.texi: Likewise.
949         * doc/glibc-functions/statfs.texi: Likewise.
950
951 2011-07-24  Bruno Haible  <bruno@clisp.org>
952
953         doc: Fix typo.
954         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
955
956 2011-07-24  Bruno Haible  <bruno@clisp.org>
957
958         doc: Mention fsusage.
959         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
960
961 2011-07-24  Bruno Haible  <bruno@clisp.org>
962
963         doc: Mention new glibc headers and functions.
964         * doc/glibc-headers/gshadow.texi: New file.
965         * doc/glibc-functions/endsgent.texi: New file.
966         * doc/glibc-functions/fgetsgent.texi: New file.
967         * doc/glibc-functions/fgetsgent_r.texi: New file.
968         * doc/glibc-functions/getsgent.texi: New file.
969         * doc/glibc-functions/getsgent_r.texi: New file.
970         * doc/glibc-functions/getsgnam.texi: New file.
971         * doc/glibc-functions/getsgnam_r.texi: New file.
972         * doc/glibc-functions/putsgent.texi: New file.
973         * doc/glibc-functions/setsgent.texi: New file.
974         * doc/glibc-functions/sgetsgent.texi: New file.
975         * doc/glibc-functions/sgetsgent_r.texi: New file.
976         * doc/glibc-functions/malloc_info.texi: New file.
977         * doc/glibc-functions/preadv.texi: New file.
978         * doc/glibc-functions/pwritev.texi: New file.
979         * doc/glibc-functions/register_printf_modifier.texi: New file.
980         * doc/glibc-functions/register_printf_specifier.texi: New file.
981         * doc/glibc-functions/register_printf_type.texi: New file.
982         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
983         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
984         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
985         * doc/glibc-functions/pthread_getname_np.texi: New file.
986         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
987         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
988         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
989         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
990         * doc/glibc-functions/pthread_setname_np.texi: New file.
991         * doc/glibc-functions/pthread_sigqueue.texi: New file.
992         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
993         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
994         * doc/glibc-functions/qsort_r.texi: New file.
995         * doc/glibc-functions/quick_exit.texi: New file.
996         * doc/glibc-functions/syncfs.texi: New file.
997         * doc/gnulib.texi: Include them.
998         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
999         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1000         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1001         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1002         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1003         * doc/glibc-functions/execvpe.texi: Likewise.
1004
1005 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         ftell: don't include <unistd.h>
1008         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1009         guaranteed to define off_t, and the ftell module depends on the
1010         stdio module.
1011
1012         ftell: do not assume wraparound signed arithmetic
1013         * lib/ftell.c: Include <limits.h>.
1014         (ftell): Don't assume wraparound signed arithmetic.
1015
1016 2011-07-24  Bruno Haible  <bruno@clisp.org>
1017
1018         close: No longer depend on module 'fclose'.
1019         * modules/close (Depends-on): Remove fclose.
1020         * NEWS: Mention the change.
1021         Suggested by Sam Steingold <sds@gnu.org>.
1022
1023 2011-07-24  Bruno Haible  <bruno@clisp.org>
1024
1025         fsusage: Enable large volume support on AIX >= 5.2.
1026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1027         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1028         instead of STAT_STATVFS.
1029         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1030
1031         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1033         f_blocks field only on MacOS X.
1034
1035         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1037         * modules/fsusage (Depends-on): Add largefile.
1038
1039 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         * README: Modernize discussion of signed integers.
1042         Assuming overflow wraparound is no longer safe.
1043         Mention ones' complement and signed magnitude.
1044
1045 2011-07-22  Bruno Haible  <bruno@clisp.org>
1046
1047         select tests, pselect tests: Refactor.
1048         * tests/test-select.h: New file, extracted from tests/test-select.c.
1049         (select_fn): New type.
1050         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1051         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1052         test_pipe): Add my_select argument.
1053         (test_function): Renamed from main. Add my_select argument.
1054         * tests/test-select.c: Move most code to tests/test-select.h. Include
1055         test-select.h.
1056         * modules/select-tests (Files): Add tests/test-select.h.
1057         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1058         (my_select, main): New functions.
1059         * modules/pselect-tests (Files): Add tests/test-select.h,
1060         tests/macros.h, tests/signature.h.
1061         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1062         (configure.ac): Check for <sys/wait.h>.
1063
1064 2011-07-22  Bruno Haible  <bruno@clisp.org>
1065
1066         sys_select tests: Check the signature of FD_*.
1067         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1068         signature tests from here...
1069         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1070         here.
1071         * modules/sys_select-tests (Files): Add tests/signature.h.
1072
1073 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1074
1075         largefile: new module, replacing large-inode
1076         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1077         * MODULES.html.sh: Add largefile, remove large-inode.
1078         * modules/largefile, m4/largefile.m4: New files.
1079         * modules/large-inode, m4/large-inode.m4: Remove.
1080
1081         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1083         implementations that use only 32 bits to count blocks.
1084         On typical hosts with 1024-byte blocks, this fails with file
1085         systems as small as 4 TiB.  Problem reported by Herb Wartens
1086         <http://debbugs.gnu.org/9140> and this should also fix a similar
1087         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1088
1089         large-inode: New module
1090         * MODULES.html.sh: Add it.
1091         * modules/large-inode, m4/large-inode.m4: New files.
1092
1093         extensions: Enable extensions on MacOS X 10.5 and later.
1094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1095
1096 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1097
1098         file-has-acl: use acl_extended_file_nofollow if available
1099         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1100         (acl_extended_file): New macro.
1101         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1102         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1103
1104 2011-07-21  Bruno Haible  <bruno@clisp.org>
1105
1106         Declare system functions in a way that works with C++.
1107         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1108         declare fdopendir as extern "C".
1109         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1110         declare frexpl as extern "C".
1111         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1112         declare gai_strerror as extern "C".
1113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1114         programs, declare gai_strerror as extern "C".
1115         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1116         declare getlogin_r as extern "C".
1117         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1118         as extern "C".
1119         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1120         declare ldexpl as extern "C".
1121         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1122         as extern "C".
1123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1124         program, declare getmntinfo as extern "C".
1125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1126         stpncpy as extern "C".
1127         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1128         program, declare __xpg_strerror_r as extern "C".
1129         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1130         strndup as extern "C".
1131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1132         declare memset and bzero as extern "C".
1133         Reported by Sam Steingold <sds@gnu.org>.
1134
1135 2011-07-12  Jim Meyering  <meyering@redhat.com>
1136
1137         maint.mk: prohibit inclusion of "verify.h" without use
1138         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1139
1140 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1141
1142         timer-time: A new module to check for timer_settime()
1143         * m4/timer_time.m4: Check for the posix function.
1144         * modules/timer-time: Add the new module.
1145         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1146         Mention it.
1147
1148 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1149             Bruno Haible  <bruno@clisp.org>
1150
1151         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1153         not defined, assume POSIX threads and look for pthread_sigmask in
1154         $LIBS, without changing $CPPFLAGS.
1155
1156 2011-07-19  Bruno Haible  <bruno@clisp.org>
1157
1158         strstr: Update cross-compilation guess.
1159         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1160         CPUs, guess no, in view of glibc
1161         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1162         Suggested by Eric Blake. Reported by Reuben Thomas.
1163
1164 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1165
1166         getopt-gnu: suppress core dumps from detection code
1167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1168         to suppress core dumps that may well occur on glibc systems.
1169         * modules/getopt-gnu: Depend on nocrash.
1170
1171 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         pthread_sigmask: ensure usleep is declared
1174         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1175         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1176
1177 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1178
1179         doc: Document NonStop portability issues.
1180         * doc/posix-functions/sigaction.texi (sigaction):
1181         * doc/posix-headers/signal.texi (signal.h):
1182         Document NonStop.  See Joachim Schmitz in
1183         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1184
1185 2011-07-15  Bruno Haible  <bruno@clisp.org>
1186
1187         ffsl, ffsll: Avoid unportable behaviour.
1188         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1189
1190 2011-07-15  Bruno Haible  <bruno@clisp.org>
1191
1192         ffs: More tests.
1193         * tests/test-ffs.c (NBITS): New macro.
1194         (main): Add more tests.
1195         * tests/test-ffsl.c (NBITS): New macro.
1196         (main): Add more tests.
1197         * tests/test-ffsll.c (NBITS): New macro.
1198         (main): Add more tests.
1199
1200 2011-07-15  Eric Blake  <eblake@redhat.com>
1201
1202         ffsl, ffsll: new modules
1203         * modules/ffsl: New file.
1204         * modules/ffsll: Likewise.
1205         * m4/ffsl.m4: Likewise.
1206         * m4/ffsll.m4: Likewise.
1207         * lib/ffsl.c: Likewise.
1208         * lib/ffsl.h: Likewise.
1209         * lib/ffsll.c: Likewise.
1210         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1211         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1212         * modules/string (Makefile.am): Substitute witnesses.
1213         * lib/strings.in.h (ffsl, ffsll): Declare.
1214         * modules/ffsl-tests: New test file.
1215         * modules/ffsll-tests: Likewise.
1216         * tests/test-ffsl.c: Likewise.
1217         * tests/test-ffsll.c: Likewise.
1218         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1219         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1220         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1221
1222         ffs: fix m4 prerequisite
1223         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1224
1225         ffs: avoid undefined behavior
1226         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1227         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1228         Reported by Bruno Haible.
1229
1230 2011-07-12  Bruno Haible  <bruno@clisp.org>
1231
1232         pthread_sigmask: Rely on module 'threadlib'.
1233         * modules/pthread_sigmask (Depends-on): Add threadlib.
1234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1235         is defined.
1236
1237 2011-07-12  Bruno Haible  <bruno@clisp.org>
1238
1239         regex: Depend on module 'strcase'.
1240         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1241
1242 2011-07-12  Jim Meyering  <meyering@redhat.com>
1243
1244         warn-on-use: fix typo in file name
1245         * modules/snippet/warn-on-use (Files): Correct file name:
1246         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1247
1248 2011-07-12  Bruno Haible  <bruno@clisp.org>
1249
1250         strings: Document module.
1251         * doc/posix-headers/strings.texi: Mention module 'strings'.
1252
1253 2011-07-12  Bruno Haible  <bruno@clisp.org>
1254
1255         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1256         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1257         (Files, Makefile.am): Update.
1258         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1259         * modules/stdlib (Depends-on): Update.
1260
1261 2011-07-12  Bruno Haible  <bruno@clisp.org>
1262
1263         * NEWS: Mention the changes.
1264
1265         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1266         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1267         (Files, Makefile.am): Update.
1268         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1269         * modules/arpa_inet (Depends-on): Update.
1270         * modules/ctype (Depends-on): Update.
1271         * modules/dirent (Depends-on): Update.
1272         * modules/fcntl-h (Depends-on): Update.
1273         * modules/glob (Depends-on): Update.
1274         * modules/iconv-h (Depends-on): Update.
1275         * modules/inttypes-incomplete (Depends-on): Update.
1276         * modules/langinfo (Depends-on): Update.
1277         * modules/locale (Depends-on): Update.
1278         * modules/math (Depends-on): Update.
1279         * modules/netdb (Depends-on): Update.
1280         * modules/poll-h (Depends-on): Update.
1281         * modules/pty (Depends-on): Update.
1282         * modules/search (Depends-on): Update.
1283         * modules/signal (Depends-on): Update.
1284         * modules/spawn (Depends-on): Update.
1285         * modules/stdio (Depends-on): Update.
1286         * modules/stdlib (Depends-on): Update.
1287         * modules/string (Depends-on): Update.
1288         * modules/strings (Depends-on): Update.
1289         * modules/sys_file (Depends-on): Update.
1290         * modules/sys_ioctl (Depends-on): Update.
1291         * modules/sys_select (Depends-on): Update.
1292         * modules/sys_socket (Depends-on): Update.
1293         * modules/sys_stat (Depends-on): Update.
1294         * modules/sys_time (Depends-on): Update.
1295         * modules/sys_times (Depends-on): Update.
1296         * modules/sys_utsname (Depends-on): Update.
1297         * modules/sys_wait (Depends-on): Update.
1298         * modules/termios (Depends-on): Update.
1299         * modules/time (Depends-on): Update.
1300         * modules/unistd (Depends-on): Update.
1301         * modules/wchar (Depends-on): Update.
1302         * modules/wctype-h (Depends-on): Update.
1303         * MODULES.html.sh (Support for building libraries and executables):
1304         Update.
1305
1306         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1307         * modules/snippet/unused-parameter: Renamed from
1308         modules/unused-parameter.
1309         (Files, Makefile.am): Update.
1310         * build-aux/snippet/unused-parameter.h: Renamed from
1311         build-aux/unused-parameter.h.
1312         * modules/selinux-h (Depends-on): Update.
1313         * modules/unistr/base (Depends-on): Update.
1314         * MODULES.html.sh (Core language properties): Update.
1315
1316         Rename module 'link-warning' to 'snippet/link-warning'.
1317         * modules/snippet/link-warning: Renamed from modules/link-warning.
1318         (Files, Makefile.am): Update.
1319         * build-aux/snippet/link-warning.h: Renamed from
1320         build-aux/link-warning.h.
1321         * MODULES.html.sh (Support for building libraries and executables):
1322         Update.
1323
1324         Rename module 'c++defs' to 'snippet/c++defs'.
1325         * modules/snippet/c++defs: Renamed from modules/c++defs.
1326         (Files, Makefile.am): Update.
1327         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1328         * modules/arpa_inet (Depends-on): Update.
1329         * modules/ctype (Depends-on): Update.
1330         * modules/dirent (Depends-on): Update.
1331         * modules/fcntl-h (Depends-on): Update.
1332         * modules/glob (Depends-on): Update.
1333         * modules/iconv-h (Depends-on): Update.
1334         * modules/langinfo (Depends-on): Update.
1335         * modules/locale (Depends-on): Update.
1336         * modules/math (Depends-on): Update.
1337         * modules/netdb (Depends-on): Update.
1338         * modules/poll-h (Depends-on): Update.
1339         * modules/pty (Depends-on): Update.
1340         * modules/search (Depends-on): Update.
1341         * modules/signal (Depends-on): Update.
1342         * modules/spawn (Depends-on): Update.
1343         * modules/stdio (Depends-on): Update.
1344         * modules/stdlib (Depends-on): Update.
1345         * modules/string (Depends-on): Update.
1346         * modules/strings (Depends-on): Update.
1347         * modules/sys_ioctl (Depends-on): Update.
1348         * modules/sys_select (Depends-on): Update.
1349         * modules/sys_socket (Depends-on): Update.
1350         * modules/sys_stat (Depends-on): Update.
1351         * modules/sys_time (Depends-on): Update.
1352         * modules/sys_wait (Depends-on): Update.
1353         * modules/termios (Depends-on): Update.
1354         * modules/time (Depends-on): Update.
1355         * modules/unistd (Depends-on): Update.
1356         * modules/wchar (Depends-on): Update.
1357         * modules/wctype-h (Depends-on): Update.
1358
1359         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1360         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1361         (Files, Makefile.am): Update.
1362         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1363         * modules/argv-iter (Depends-on): Update.
1364         * modules/arpa_inet (Depends-on): Update.
1365         * modules/dirent (Depends-on): Update.
1366         * modules/fcntl-h (Depends-on): Update.
1367         * modules/fnmatch (Depends-on): Update.
1368         * modules/getopt-posix (Depends-on): Update.
1369         * modules/glob (Depends-on): Update.
1370         * modules/iconv-h (Depends-on): Update.
1371         * modules/inttypes-incomplete (Depends-on): Update.
1372         * modules/locale (Depends-on): Update.
1373         * modules/math (Depends-on): Update.
1374         * modules/netdb (Depends-on): Update.
1375         * modules/search (Depends-on): Update.
1376         * modules/signal (Depends-on): Update.
1377         * modules/spawn (Depends-on): Update.
1378         * modules/stdio (Depends-on): Update.
1379         * modules/stdlib (Depends-on): Update.
1380         * modules/string (Depends-on): Update.
1381         * modules/strings (Depends-on): Update.
1382         * modules/sys_socket (Depends-on): Update.
1383         * modules/sys_stat (Depends-on): Update.
1384         * modules/sys_time (Depends-on): Update.
1385         * modules/sys_times (Depends-on): Update.
1386         * modules/sys_utsname (Depends-on): Update.
1387         * modules/time (Depends-on): Update.
1388         * modules/unistd (Depends-on): Update.
1389         * modules/wchar (Depends-on): Update.
1390         * MODULES.html.sh (Support for building libraries and executables):
1391         Update.
1392
1393 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1394
1395         Improvements on _Noreturn and related modules.
1396
1397         modules/_Exit-tests: test _Noreturn too
1398         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1399         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1400         (main): Use them.
1401
1402         stdnoreturn, stdnoreturn-tests: remove modules
1403         They're not needed here and a bit premature for use elsewhere.  See
1404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1405         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1406         * tests/test-stdnoreturn.c: Remove files.
1407         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1408         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1409         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1410         and using noreturn.
1411         * modules/openat, modules/sigpipe-die, modules/xalloc:
1412         * modules/xmemdup0, modules/xstrtol:
1413         Remove dependency on stdnoreturn.
1414
1415         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1416         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1417         Reparenthesize to avoid GCC warning.
1418         Support Microsoft's syntax.
1419         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1420
1421         _Noreturn-tests: remove module
1422         * modules/_Noreturn-tests: Remove.
1423         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1424         * tests/test-_Noreturn.c: Remove.
1425         * tests/test-stdnoreturn.c: Merge from the old
1426         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1427
1428 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1429
1430         _Noreturn, stdnoreturn, and related modules.
1431
1432         * top/maint.mk: Adjust to new noreturn support.
1433         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1434         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1435
1436         xalloc: use stdnoreturn.h
1437         * lib/xalloc.h: Include <stdnoreturn.h>.
1438         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1439         * modules/xalloc (Depends-on): Add stdnoreturn.
1440
1441         xstrtol: use stdnoreturn.h
1442         * lib/xstrtol.h: Include <stdnoreturn.h>.
1443         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1444         * modules/xstrtol (Depends-on): Add stdnoreturn.
1445
1446         xmemdup0: use stdnoreturn.h
1447         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1448         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1449         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1450
1451         sigpipe-die: use stdnoreturn.h
1452         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1453         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1454         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1455
1456         openat: use stdnoreturn.h
1457         * lib/openat.h: Include <stdnoreturn.h>.
1458         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1459         * modules/openat (Depends-on): Add stdnoreturn.
1460
1461         * lib/openat-die.c (openat_save_fail): Modernize comment.
1462
1463         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1464
1465         * lib/glthread/thread.h: Modernize comment.
1466
1467         obstack: use _Noreturn
1468         * lib/obstack.c (__attribute__): Remove macro.
1469         (print_and_abort): Use _Noreturn.
1470
1471         c-stack: use _Noreturn
1472         * lib/c-stack.c (die, overflow_handler, segv_handler):
1473         Use _Noreturn rather than __attribute__((noreturn)).
1474
1475         argmatch-tests, exclude_tests: use _Noreturn
1476         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1477         Remove.
1478         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1479
1480         stdlib: use _Noreturn
1481         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1482         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1483         * modules/stdlib (Depends-on): Add _Noreturn.
1484         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1485
1486         stdnoreturn-tests: new module
1487         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1488
1489         stdnoreturn: new module
1490         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1491         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1492
1493         _Noreturn-tests: new module
1494         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1495
1496         _Noreturn: new module
1497         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1498         New section, mentioning it.
1499         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1500
1501         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1502
1503 2011-07-11  Eric Blake  <eblake@redhat.com>
1504
1505         ffs: new module
1506         * modules/ffs: New file.
1507         * m4/ffs.m4: Likewise.
1508         * lib/ffs.c: Likewise.
1509         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1510         * modules/strings (Makefile.am): Substitute witness.
1511         (Depends-on): Add c++defs.
1512         * lib/strings.in.h (ffs): Declare.
1513         * modules/ffs-tests: New test file.
1514         * tests/test-ffs.c: Test new module.
1515         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1516         * doc/posix-functions/ffs.texi (ffs): Likewise.
1517
1518         regex: avoid compiler warning
1519         * lib/regex.c (includes): Include <strings.h>, for use of
1520         strcasecmp in regcomp.c.
1521         Reported by Joachim Schmitz.
1522
1523 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1524
1525         stdint: respect system's intmax_t if INTMAX_MAX
1526         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1527         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1528         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1529         long but int64_t is long long, and where we will clash with the
1530         system intmax_t if we override it.  See
1531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1532         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1533         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1534         similarly for UINTMAX_C.
1535
1536 2011-07-08  Bruno Haible  <bruno@clisp.org>
1537
1538         pthread_sigmask tests: Avoid a compiler warning.
1539         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1540         non-zero.
1541
1542         sigprocmask tests: A better way to avoid a compiler warning.
1543         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1544         (main): Complain if system() returns non-zero.
1545         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1546
1547 2011-07-08  Bruno Haible  <bruno@clisp.org>
1548
1549         pthread_sigmask: Work around IRIX bug.
1550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1551         bug.
1552         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1553         there may be unblocked pending signals.
1554         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1555
1556 2011-07-08  Bruno Haible  <bruno@clisp.org>
1557
1558         pthread_sigmask: Work around Cygwin bug.
1559         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1560         bug.
1561         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1562         the system's pthread_sigmask function.
1563         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1564
1565 2011-07-08  Bruno Haible  <bruno@clisp.org>
1566
1567         pthread_sigmask: Work around bug in single-threaded implementation.
1568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1569         FreeBSD, HP-UX, Solaris bug.
1570         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1571         * lib/pthread_sigmask.c: Include <stddef.h>.
1572         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1573         the system's pthread_sigmask function.
1574         * modules/pthread_sigmask (configure.ac): Invoke
1575         gl_PREREQ_PTHREAD_SIGMASK.
1576         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1577         HP-UX, Solaris.
1578
1579 2011-07-08  Eric Blake  <eblake@redhat.com>
1580
1581         test-sigprocmask: avoid compiler warning
1582         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1583         * tests/test-sigprocmask.c (main): Use it to silence warning.
1584         Reported by Jim Meyering.
1585
1586         test-snprintf: avoid compiler warning
1587         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1588         * tests/test-vsnprintf.c (main): Likewise.
1589         Reported by Jim Meyering.
1590
1591 2011-07-08  Bruno Haible  <bruno@clisp.org>
1592
1593         Tests for module 'pthread_sigmask'.
1594         * modules/pthread_sigmask-tests: New file.
1595         * tests/test-pthread_sigmask1.c: New file, based on
1596         tests/test-sigprocmask.c.
1597         * tests/test-pthread_sigmask2.c: New file.
1598
1599 2011-07-08  Jim Meyering  <meyering@redhat.com>
1600
1601         test-getopt.h: avoid warning about an unused variable
1602         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1603
1604 2011-07-07  Jim Meyering  <meyering@redhat.com>
1605
1606         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1607         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1608         now that it no longer contains leading TABs.
1609         Remove unused "url=FIXME" statement.
1610
1611 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1614         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1615         When gl_THREADLIB is not in use, assume that the POSIX sematics
1616         are desired.  This is better for Emacs, which uses POSIX semantics
1617         on GNUish and/or POSIXish platforms, and does not use threads at
1618         all otherwise.
1619
1620         pthread_sigmask: fix typo when testing for libraries
1621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1622         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1623
1624 2011-07-08  Eric Blake  <eblake@redhat.com>
1625
1626         fts: introduce FTS_NOATIME
1627         * lib/fts_.h (FTS_NOATIME): New bit flag.
1628         (FTS_OPTIONMASK): Adjust.
1629         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1630         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1631
1632 2011-07-08  Bruno Haible  <bruno@clisp.org>
1633
1634         Tests for module 'thread'.
1635         * modules/thread-tests: New file.
1636         * tests/test-thread_self.c: New file.
1637         * tests/test-thread_create.cc: New file.
1638
1639 2011-07-08  Bruno Haible  <bruno@clisp.org>
1640
1641         thread: Avoid gcc warnings when using gl_thread_self().
1642         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1643         'void *'.
1644         (gl_thread_self_pointer): Update.
1645
1646 2011-07-07  Bruno Haible  <bruno@clisp.org>
1647
1648         signal-c++-tests: Check declaration of pthread_sigmask.
1649         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1650         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1651         $(LIB_PTHREAD_SIGMASK).
1652
1653 2011-07-07  Bruno Haible  <bruno@clisp.org>
1654
1655         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1656         * lib/signal.in.h (pthread_sigmask): Override if
1657         REPLACE_PTHREAD_SIGMASK is 1.
1658         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1659         REPLACE_PTHREAD_SIGMASK.
1660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1661         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1662         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1663         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1664         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1665
1666 2011-07-07  Bruno Haible  <bruno@clisp.org>
1667
1668         pthread_sigmask: Ensure declaration in <signal.h>.
1669         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1670         include <pthread.h>.
1671         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1672         problem.
1673
1674 2011-07-07  Bruno Haible  <bruno@clisp.org>
1675
1676         pthread_sigmask: Document the module.
1677         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1678
1679 2011-07-07  Bruno Haible  <bruno@clisp.org>
1680
1681         pthread_sigmask: Follow gnulib conventions.
1682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1683         gl_PTHREAD_SIGMASK.
1684         * modules/pthread_sigmask (configure.ac): Update.
1685
1686 2011-07-07  Bruno Haible  <bruno@clisp.org>
1687
1688         pthread_sigmask: Make declaration C++ safe.
1689         * lib/signal.in.h: In two special conditions, just do an #include_next.
1690         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1691         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1693         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1694         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1695         not REPLACE_PTHREAD_MASK.
1696         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1697         not REPLACE_PTHREAD_MASK.
1698         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1699
1700 2011-07-07  Bruno Haible  <bruno@clisp.org>
1701
1702         pthread_sigmask: Fix return value.
1703         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1704         * lib/pthread_sigmask.c: New file.
1705         * modules/pthread_sigmask (Files): Add it.
1706         (configure.ac): Invoke AC_LIBOBJ.
1707
1708 2011-07-07  Eric Blake  <eblake@redhat.com>
1709
1710         getopt: more portable argv creation
1711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1712         const, use char arrays rather than strings.
1713         Suggested by Paul Eggert.
1714
1715 2011-07-07  Bruno Haible  <bruno@clisp.org>
1716
1717         Tests for module 'sigprocmask'.
1718         * modules/sigprocmask-tests: New file.
1719         * tests/test-sigprocmask.c: New file.
1720
1721 2011-07-07  Bruno Haible  <bruno@clisp.org>
1722
1723         float tests: Tweak.
1724         * tests/test-float.c (main): Tweak skip message.
1725
1726 2011-07-07  Eric Blake  <eblake@redhat.com>
1727
1728         getopt: avoid compiler warning during configure
1729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1730         assigning string literals to non-const pointer.
1731
1732         getopt-gnu: avoid crash in glibc getopt
1733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1734         * tests/test-getopt.h (test_getopt): Enhance test.
1735         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1736         * doc/posix-functions/getopt.texi (getopt): Document it.
1737         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1738         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1739         Likewise.
1740
1741 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1742
1743         getopt: handle W; without long options in getopt [BZ #12922]
1744         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1745         but no long options are defined, just return 'W'.
1746
1747 2011-07-07  Bruno Haible  <bruno@clisp.org>
1748
1749         Avoid literal tabs.
1750         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1751         variable containing a tab instead of a literal tab.
1752         Reported by Jim Meyering.
1753
1754 2011-07-07  Bruno Haible  <bruno@clisp.org>
1755
1756         Comments.
1757         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1758
1759 2011-07-06  Bruno Haible  <bruno@clisp.org>
1760
1761         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1762         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1763         <winsock2.h>.
1764         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1765         lib/sys_socket.in.h.
1766         (close, gethostname): Hide declarations from <winsock2.h>.
1767         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1768         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1769         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1770         (select): Don't override if gnulib's <sys/select.h> was already
1771         included.
1772         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1773         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1774         setsockopt, shutdown, select): Tweak indentation.
1775
1776 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1777
1778         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1779         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1780         in an application that does not use the sys_select module.
1781
1782 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1783
1784         poll: do not return 0 on timeout=-1
1785         * lib/poll.c: Loop with yield if no events occured
1786
1787 2011-07-06  Eric Blake  <eblake@redhat.com>
1788
1789         pthread_sigmask: always replace when not using pthread
1790         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1791         replacement when using some threading other than pthread.  Fix
1792         logic bug.
1793
1794 2011-07-06  Bruno Haible  <bruno@clisp.org>
1795
1796         Comments.
1797         * m4/printf.m4: Update comments about mingw.
1798
1799 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         sys_select: define sigset_t more portably
1802         * lib/sys_select.in.h: Always include <sys/types.h>, since
1803         we now need sigset_t and mingw defines it there.
1804         Include <signal.h> before split inclusion guard, to avoid
1805         mishaps on Solaris, whose <signal.h> eventually includes us.
1806         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1807         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1808         which come from ...
1809         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1810         gl_CHECK_TYPE_SIGSET_T.
1811         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1812         does the real work.
1813         * modules/sys_select (Depends-on): Add 'signal'.
1814
1815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1816         Suggested by Bruno Haible.
1817
1818         pselect: Use pthread_sigmask, not sigprocmask.
1819         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1820         multithreaded apps better than sigprocmask does.
1821         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1822         sigprocmask directly.
1823
1824 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1825
1826         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1827         Don't #undef,  since we don't need any underlying pselect.
1828         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1829         (Depends-on): Add select.
1830         (Link): Add $(LIBSOCKET).
1831         These changes suggested by Bruno Haible.
1832
1833         pselect: document better
1834         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1835         * doc/posix-functions/pselect.texi (pselect): Document new module.
1836
1837         pthread_sigmask: new module
1838         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1839         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1840         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1841         This is done only as a macro; I don't know how well that'll
1842         work for C++.  Move <sys/types.h> include before the include_next,
1843         to avoid mishap on Solaris.
1844         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1845         * modules/signal (Makefile.am): Substitute the check's results.
1846         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1847
1848         test-pselect: new module
1849         * modules/pselect-tests, tests/test-pselect.c: New files.
1850         * tests/test-select.c, tests/test-sys_select-c++.cc:
1851         If TEST_PSELECT is defined, test pselect instead of testing select.
1852
1853         * tests/test-sys_select.c (sigset_t): Test for it, too.
1854         Suggested by Bruno Haible.
1855
1856 2011-07-05  Eric Blake  <eblake@redhat.com>
1857
1858         snprintf: guarantee %1$d, for libintl
1859         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1860         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1861         * doc/posix-functions/snprintf.texi (snprintf): Update.
1862         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1863         * tests/test-snprintf.c (main): Enhance test.
1864         * tests/test-vsnprintf.c (main): Likewise.
1865
1866 2011-07-05  Jim Meyering  <meyering@redhat.com>
1867
1868         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1869         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1870         per Bruno's request, to accommodate this idiom (no space after "#")
1871         even when the function is inside an #if block:
1872         char *
1873         gets (char *s)
1874         #undef gets
1875         {
1876           ...
1877         }
1878
1879 2011-07-04  Jim Meyering  <meyering@redhat.com>
1880
1881         maint: indent with spaces, not TABs, and add a rule to check this
1882         * tests/test-userspec.c: Indent with spaces, not TABs.
1883         * tests/test-argp.c: Likewise.
1884         * tests/test-c-stack2.sh: Likewise.
1885         * tests/test-parse-duration.sh: Likewise
1886         * m4/strtod.m4: Likewise.
1887         * m4/alloca.m4: Likewise.
1888         * m4/pselect.m4: Likewise.
1889         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1890
1891 2011-07-03  Jim Meyering  <meyering@redhat.com>
1892
1893         maint.mk: correct omissions in prohibit_argmatch_without_use check
1894         This rule would mistakenly report that argmatch.h is included without
1895         use even when both the argmatch and invalid_arg macro were used.
1896         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1897         of argmatch and invalid_arg.
1898
1899 2011-07-03  Bruno Haible  <bruno@clisp.org>
1900
1901         Comments about EINTR.
1902         * lib/safe-read.h: Explain the purpose of this module.
1903         * lib/safe-write.h: Likewise.
1904         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1905         module.
1906         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1907         module.
1908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1909
1910 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1911
1912         xnanosleep: Rewrite to use new dtotimespec module.
1913         It has the conversion code that used to be in xnanosleep.
1914         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1915         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1916         (TIME_T_MAX): Remove.
1917         (xnanosleep): Rewrite in terms of dtotimespec.
1918         * modules/xnanosleep (Depends-on): Add dtotimespec.
1919         Remove intprops, stdbool.
1920
1921         timespec-add, timespec-sub: new modules
1922         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1923         * lib/timespec-add.c, lib/timespec-sub.c:
1924         * modules/timespec-add, modules/timespec-sub: New files.
1925
1926         dtotimespec: new module
1927         * lib/timespec.h (dtotimespec): New decl.
1928         * lib/dtotimespec.c, modules/dtotimespec: New files.
1929
1930         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1931
1932         pselect: new module
1933         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1934         (pselect): New decls.
1935         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1936         since the standard pselect decl uses 'restrict'.
1937         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1938         HAVE_PSELECT, REPLACE_PSELECT.
1939         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1940         HAVE_PSELECT, REPLACE_PSELECT.
1941         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1942
1943         sys_select: don't depend on sys_socket
1944         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1946         This fix works on GNU and GNU-like platforms, but has not been tested
1947         on native Windows.
1948         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1950         gl_HEADER_SYS_SOCKET.
1951         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1952         gl_PREREQ_SYS_H_WINSOCK2.
1953
1954 2011-06-29  Eric Blake  <eblake@redhat.com>
1955
1956         pipe2: fix C89 compile problem
1957         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1958         Reported by Bruno Haible.
1959
1960         pipe, pipe2: don't corrupt fd on error
1961         * lib/pipe.c (pipe): Leave fd unchanged on error.
1962         * lib/pipe2.c (pipe2): Likewise.
1963         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1964         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1965
1966 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1967
1968         mmap-anon: do not use regular expressions inadvertently
1969         * m4/mmap-anon.m4: Remove trailing period from strings sought
1970         in the output.
1971
1972 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         nanosleep: fix integer overflow problem
1975         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1976         arithmetic wraps around on overflow.
1977
1978         nanosleep: simplify carrying
1979         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1980         first call to the underyling nanosleep, not for the last one.
1981         This doesn't fix any bugs, but it simplifies the computation of
1982         the remaining delay.  Found while auditing integer overflow issues.
1983
1984         dup2: remove test for existence of fcntl
1985         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1986         "#if HAVE_FCNTL", in the configure-time test program.
1987         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1988         and therefore speeds up "configure" a bit.  Found while
1989         adding the dup2 module to Emacs.
1990
1991 2011-06-24  Eric Blake  <eblake@redhat.com>
1992
1993         maint.mk: enhance useless header checks
1994         * top/maint.mk (_sc_header_without_use): Check both include
1995         styles.
1996         (sc_prohibit_assert_without_use)
1997         (sc_prohibit_close_stream_without_use)
1998         (sc_prohibit_getopt_without_use)
1999         (sc_prohibit_quotearg_without_use)
2000         (sc_prohibit_quote_without_use)
2001         (sc_prohibit_long_options_without_use)
2002         (sc_prohibit_inttostr_without_use)
2003         (sc_prohibit_ignore_value_without_use)
2004         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2005         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2006         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2007         (sc_prohibit_hash_pjw_without_use)
2008         (sc_prohibit_safe_read_without_use)
2009         (sc_prohibit_argmatch_without_use)
2010         (sc_prohibit_canonicalize_without_use)
2011         (sc_prohibit_root_dev_ino_without_use)
2012         (sc_prohibit_openat_without_use)
2013         (sc_prohibit_c_ctype_without_use)
2014         (sc_prohibit_signal_without_use)
2015         (sc_prohibit_stdio--_without_use)
2016         (sc_prohibit_stdio-safer_without_use)
2017         (sc_prohibit_strings_without_use)
2018         (sc_prohibit_intprops_without_use)
2019         (sc_prohibit_stddef_without_use)
2020         (sc_prohibit_xfreopen_without_use): Update clients.
2021
2022 2011-06-24  Jim Meyering  <meyering@redhat.com>
2023
2024         syntax-check: keep one maint.mk rule in sync with its header
2025         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2026         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2027         I prefer to avoid temporary files here, so use <(...), but that
2028         is not supported by /bin/sh, so...
2029         (SHELL): Define to /bin/bash.
2030
2031 2011-06-24  Eric Blake  <eblake@redhat.com>
2032
2033         maint.mk: update sc_prohibit_intprops_without_use
2034         * top/maint.mk (_intprops_names): Match recent changes.
2035
2036 2011-06-24  Bruno Haible  <bruno@clisp.org>
2037
2038         strerror-override: No-op tweak.
2039         * lib/strerror-override.h (strerror_override): Reorder conditions,
2040         for consistency with lib/strerror-override.c.
2041
2042 2011-06-23  Eric Blake  <eblake@redhat.com>
2043
2044         maint.mk: test further PATH_MAX issues
2045         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2046         (sc_prohibit_path_max_allocation): ...and also test alloca.
2047         Suggested by Jim Meyering.
2048
2049 2011-06-22  Eric Blake  <eblake@redhat.com>
2050
2051         maint.mk: add syntax-check to avoid char[PATH_MAX]
2052         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2053
2054         stat: be robust to PATH_MAX definition
2055         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2056         * modules/stat (Depends-on): Add verify.
2057
2058         link: work around IRIX bug
2059         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2060         * lib/link.c (rpl_link): Work around it.
2061         * tests/test-link.h (test_link): Enhance test.
2062         * doc/posix-functions/link.texi (link): Document the bug.
2063
2064         getopt: silence clang warning
2065         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2066         dereference.
2067         Reported by Gustavo Martin Domato.
2068
2069 2011-06-22  Jim Meyering  <meyering@redhat.com>
2070
2071         bootstrap: do not insert a blank line into each .gitignore file
2072         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2073
2074 2011-06-21  Eric Blake  <eblake@redhat.com>
2075
2076         perror: test for output mismatch
2077         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2078         perror on IRIX.
2079
2080         strerror_r: fix OpenBSD behavior on out-of-range
2081         * lib/strerror_r.c (strerror_r): Always use maximal string.
2082         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2083
2084         strerror_r: fix OpenBSD behavior on 0
2085         * lib/strerror-override.c (strerror_override): Also override 0
2086         when needed.
2087         * lib/strerror-override.h (strerror_override): Likewise.
2088         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2089         earlier.
2090         * lib/strerror_r.c (strerror_r): Likewise.
2091         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2092         behavior...
2093         (gl_FUNC_STRERROR_0): ...into new macro.
2094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2095         is overridden.
2096         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2097         * modules/strerror-override (Files): Add strerror.m4.
2098         (configure.ac): Also provide override for 0 when needed.
2099         * doc/posix-functions/strerror.texi (strerror): Document this.
2100         * doc/posix-functions/perror.texi (perror): Likewise.
2101
2102         perror: adjust array size
2103         * modules/perror (Depends-on): Add strerror-override.
2104         * lib/perror.c (perror): Use it to avoid magic number.
2105
2106         strerror-override: reduce size
2107         * lib/strerror-override.c (strerror_override): Use fewer lines.
2108
2109 2011-06-20  Bruno Haible  <bruno@clisp.org>
2110
2111         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2112         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2113
2114 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2115
2116         alloca: port to compilers that can optimize like GCC 4.6.0
2117         * lib/alloca.c (find_stack_direction): New signature, taken from
2118         Autoconf git.  This works with GCC 4.6.0.  This code should never
2119         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2120         be used with other compilers that optimize as well as GCC 4.6.0 does.
2121         (alloca): Adjust to new signature.
2122         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2123         New macro, which patches Autoconf in a similar way.
2124
2125         c-stack: stop worrying about stack direction
2126         * lib/c-stack.c (find_stack_direction): Remove.
2127         (segv_handler): Don't worry about stack direction growth, as it's
2128         too much of a pain to configure this correctly, given how compilers
2129         are optimizing-away our stack-growth detection code.  Instead, assume
2130         that any access to just before or just after the stack is OK.
2131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2132         Don't require AC_FUNC_ALLOCA; no longer needed.
2133
2134 2011-06-20  Eric Blake  <eblake@redhat.com>
2135
2136         test-stat: don't allocate PATH_MAX bytes
2137         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2138         PATH_MAX-sized buffer.
2139         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2140         * modules/stat-tests (Depends-on): Likewise.
2141         * tests/test-fstatat.c (includes): Drop pathmax.h.
2142         * tests/test-stat.c (includes): Likewise.
2143         Reported by Bruno Haible.
2144
2145 2011-06-20  Bruno Haible  <bruno@clisp.org>
2146
2147         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2148         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2149         * lib/float.c: New file.
2150         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2151         REPLACE_FLOAT_LDBL.
2152         * modules/float (Files): Add lib/float.c.
2153         (configure.ac): Invoke AC_LIBOBJ.
2154         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2155
2156 2011-06-20  Bruno Haible  <bruno@clisp.org>
2157
2158         Tests for module 'float'.
2159         * modules/float-tests: New file.
2160         * tests/test-float.c: New file.
2161
2162 2011-06-19  Bruno Haible  <bruno@clisp.org>
2163
2164         isinf: Coding style.
2165         * lib/isinf.c: Use GNU coding style.
2166
2167 2011-06-19  Bruno Haible  <bruno@clisp.org>
2168
2169         linkat test: Avoid test failure on AIX 7.1.
2170         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2171         * tests/test-link.h (test_link): Likewise.
2172
2173 2011-06-19  Bruno Haible  <bruno@clisp.org>
2174
2175         pread test: Avoid test failure on OpenBSD 4.9.
2176         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2177
2178 2011-06-19  Bruno Haible  <bruno@clisp.org>
2179
2180         sprintf-posix: Fix test failure on AIX 7.1.
2181         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2182         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2183         on AIX.
2184         * doc/posix-functions/fprintf.texi: Likewise.
2185         * doc/posix-functions/printf.texi: Likewise.
2186         * doc/posix-functions/snprintf.texi: Likewise.
2187         * doc/posix-functions/sprintf.texi: Likewise.
2188         * doc/posix-functions/vdprintf.texi: Likewise.
2189         * doc/posix-functions/vfprintf.texi: Likewise.
2190         * doc/posix-functions/vprintf.texi: Likewise.
2191         * doc/posix-functions/vsnprintf.texi: Likewise.
2192         * doc/posix-functions/vsprintf.texi: Likewise.
2193
2194 2011-06-19  Bruno Haible  <bruno@clisp.org>
2195
2196         roundl-ieee: Fix test failure on AIX 7.1.
2197         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2198         * doc/posix-functions/roundl.texi: Mention problem with negative
2199         arguments.
2200
2201 2011-06-19  Bruno Haible  <bruno@clisp.org>
2202
2203         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2204         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2205         * doc/posix-functions/round.texi: Mention problem with negative
2206         arguments.
2207         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2208
2209 2011-06-19  Bruno Haible  <bruno@clisp.org>
2210
2211         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2213         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2214         * doc/posix-functions/roundf.texi: Mention problem with negative
2215         arguments.
2216         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2217
2218 2011-06-19  Bruno Haible  <bruno@clisp.org>
2219
2220         ceilf-ieee: Work around bug on MacOS X 10.5.
2221         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2222
2223         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2224         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2225         IEEE compliant, avoid compiler optimizations.
2226         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2227         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2228         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2229         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2231         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2234         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2235         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2236
2237 2011-06-19  Bruno Haible  <bruno@clisp.org>
2238
2239         ceilf-ieee: Work around bug on AIX 7.1.
2240         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2241         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2242
2243 2011-06-19  Bruno Haible  <bruno@clisp.org>
2244
2245         ceil-ieee: Work around bug on AIX 7.1.
2246         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2247         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2248
2249 2011-06-18  Bruno Haible  <bruno@clisp.org>
2250
2251         fsync test: Avoid test failure on MacOS X and AIX.
2252         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2253         EINVAL.
2254
2255 2011-06-18  Bruno Haible  <bruno@clisp.org>
2256
2257         openat, fdopendir tests: Fix link errors.
2258         * modules/openat-tests (Depends-on): Add progname.
2259         * modules/fdopendir-tests (Depends-on): Likewise.
2260         * tests/test-fchownat.c: Include progname.h.
2261         (main): Call set_program_name.
2262         * tests/test-fstatat.c: Include progname.h.
2263         (main): Call set_program_name.
2264         * tests/test-mkdirat.c: Include progname.h.
2265         (main): Call set_program_name.
2266         * tests/test-openat.c: Include progname.h.
2267         (main): Call set_program_name.
2268         * tests/test-unlinkat.c: Include progname.h.
2269         (main): Call set_program_name.
2270         * tests/test-fdopendir.c: Include progname.h.
2271         (main): Call set_program_name.
2272
2273 2011-06-18  Bruno Haible  <bruno@clisp.org>
2274
2275         Doc update.
2276         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2277         HP-UX.
2278         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2279
2280 2011-06-18  Bruno Haible  <bruno@clisp.org>
2281
2282         getcwd tests: Avoid compilation error on HP-UX 11.31.
2283         * modules/getcwd-tests (Depends-on): Add pathmax.
2284         * tests/test-getcwd.c: Include pathmax.h.
2285
2286 2011-06-18  Bruno Haible  <bruno@clisp.org>
2287
2288         isfinite, isinf: Fix link error on AIX 6 and 7.
2289         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2290         needed, also test the macro with a 'float' argument.
2291         * m4/isinf.m4 (gl_ISINF): Likewise.
2292
2293 2011-06-18  Bruno Haible  <bruno@clisp.org>
2294
2295         getloadavg: Don't clobber LIBS. Regression from previous commit.
2296         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2297         AC_CHECK_LIB from here...
2298         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2299         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2300         gl_func_getloadavg_done.
2301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2302
2303 2011-06-18  Bruno Haible  <bruno@clisp.org>
2304
2305         clean-temp: Improve documentation.
2306         * lib/clean-temp.h: Explain better how to use this module.
2307         Reported by John Darrington <john@darrington.wattle.id.au>.
2308
2309 2011-06-17  Bruno Haible  <bruno@clisp.org>
2310
2311         pread, pwrite: Avoid cc warning on AIX.
2312         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2313         (pwrite): Likewise.
2314
2315 2011-06-17  Bruno Haible  <bruno@clisp.org>
2316
2317         spawn-pipe tests: Fix link error.
2318         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2320
2321 2011-06-17  Bruno Haible  <bruno@clisp.org>
2322
2323         Tests: Remove unnecessary dependency.
2324         * modules/canonicalize-tests (Depends-on): Remove progname.
2325         * modules/chown-tests (Depends-on): Likewise.
2326         * modules/dirname-tests (Depends-on): Likewise.
2327         * modules/fdopendir-tests (Depends-on): Likewise.
2328         * modules/fdutimensat-tests (Depends-on): Likewise.
2329         * modules/hash-tests (Depends-on): Likewise.
2330         * modules/lchown-tests (Depends-on): Likewise.
2331         * modules/linkat-tests (Depends-on): Likewise.
2332         * modules/renameat-tests (Depends-on): Likewise.
2333         * modules/spawn-pipe-tests (Depends-on): Likewise.
2334         * modules/utimensat-tests (Depends-on): Likewise.
2335
2336 2011-06-17  Bruno Haible  <bruno@clisp.org>
2337
2338         spawn-pipe tests: Fix link error.
2339         * tests/test-spawn-pipe-child.c: Undefine fflush.
2340
2341 2011-06-17  Bruno Haible  <bruno@clisp.org>
2342
2343         Fix tests link errors.
2344         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2345         * modules/chown-tests (Makefile.am): Don't link test-chown with
2346         LIBINTL.
2347         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2348         LIBINTL.
2349         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2350         LIBINTL.
2351         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2352         LIBINTL.
2353
2354 2011-06-16  Bruno Haible  <bruno@clisp.org>
2355
2356         crypto/gc-sha1: Fix recent regression.
2357         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2358         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2359
2360         crypto/gc-md5: Fix recent regression.
2361         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2362
2363         crypto/gc-md4: Fix recent regression.
2364         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2365         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2366
2367         crypto/gc-arctwo: Fix recent regression.
2368         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2369         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2370
2371         crypto/gc-rijndael: Fix recent regression.
2372         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2373         (configure.ac): Invoke AC_LIBOBJ here.
2374         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2376
2377         crypto/gc-hmac-sha1: Fix recent regression.
2378         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2379         (configure.ac): Invoke AC_LIBOBJ here.
2380         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2382
2383         crypto/gc-hmac-md5: Fix recent regression.
2384         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2385         (configure.ac): Invoke AC_LIBOBJ here.
2386         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2388
2389         crypto/gc-des: Fix recent regression.
2390         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2391         (configure.ac): Invoke AC_LIBOBJ here.
2392         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2394
2395         crypto/gc-arcfour: Fix recent regression.
2396         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2397         (configure.ac): Invoke AC_LIBOBJ here.
2398         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2400
2401 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2402
2403         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2404         After the 2011-05-21 change, this macro requires
2405         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2406         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2407
2408 2011-06-16  Bruno Haible  <bruno@clisp.org>
2409
2410         fprintftime: Move AC_LIBOBJ invocations to module description.
2411         * m4/fprintftime.m4: Remove file.
2412         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2413         (configure.ac): Remove gl_FPRINTFTIME call.
2414         (Makefile.am): Augment lib_SOURCES.
2415         Reported by Jim Meyering.
2416
2417 2011-06-16  Bruno Haible  <bruno@clisp.org>
2418
2419         tmpfile-safer: Finish 2011-05-23 commit.
2420         * m4/stdio-safer.m4: Really remove file.
2421         Reported by Jim Meyering.
2422
2423 2011-06-16  Bruno Haible  <bruno@clisp.org>
2424
2425         syntax-check: Fix typo.
2426         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2427         printf-posix.m4.
2428         Reported by Jim Meyering.
2429
2430 2011-06-13  Jim Meyering  <meyering@redhat.com>
2431
2432         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2433         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2434
2435 2011-05-23  Bruno Haible  <bruno@clisp.org>
2436
2437         yesno: Move AC_LIBOBJ invocations to module description.
2438         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2439         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2440
2441 2011-05-23  Bruno Haible  <bruno@clisp.org>
2442
2443         xstrtol: Move AC_LIBOBJ invocations to module description.
2444         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2445         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2446
2447 2011-05-23  Bruno Haible  <bruno@clisp.org>
2448
2449         xstrtold: Move AC_LIBOBJ invocations to module description.
2450         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2451         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2452
2453 2011-05-23  Bruno Haible  <bruno@clisp.org>
2454
2455         xstrtod: Move AC_LIBOBJ invocations to module description.
2456         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2457         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2458
2459 2011-05-23  Bruno Haible  <bruno@clisp.org>
2460
2461         xnanosleep: Move AC_LIBOBJ invocations to module description.
2462         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2463         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2464
2465 2011-05-23  Bruno Haible  <bruno@clisp.org>
2466
2467         xgetcwd: Move AC_LIBOBJ invocations to module description.
2468         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2469         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2470
2471 2011-05-23  Bruno Haible  <bruno@clisp.org>
2472
2473         xalloc: Move AC_LIBOBJ invocations to module description.
2474         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2475         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2476
2477 2011-05-23  Bruno Haible  <bruno@clisp.org>
2478
2479         write-any-file: Move AC_LIBOBJ invocations to module description.
2480         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2481         invocation.
2482         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2483
2484 2011-05-23  Bruno Haible  <bruno@clisp.org>
2485
2486         utimens: Move AC_LIBOBJ invocations to module description.
2487         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2488         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2489
2490 2011-05-23  Bruno Haible  <bruno@clisp.org>
2491
2492         utimecmp: Move AC_LIBOBJ invocations to module description.
2493         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2494         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2495
2496 2011-05-23  Bruno Haible  <bruno@clisp.org>
2497
2498         userspec: Move AC_LIBOBJ invocations to module description.
2499         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2500         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2501
2502 2011-05-23  Bruno Haible  <bruno@clisp.org>
2503
2504         unlinkdir: Move AC_LIBOBJ invocations to module description.
2505         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2506         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2507
2508 2011-05-23  Bruno Haible  <bruno@clisp.org>
2509
2510         unistd-safer: Move AC_LIBOBJ invocations to module description.
2511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2512         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2513
2514 2011-05-23  Bruno Haible  <bruno@clisp.org>
2515
2516         tempname: Move AC_LIBOBJ invocations to module description.
2517         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2518         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2519
2520 2011-05-23  Bruno Haible  <bruno@clisp.org>
2521
2522         strftime: Move AC_LIBOBJ invocations to module description.
2523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2524         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2525
2526 2011-05-23  Bruno Haible  <bruno@clisp.org>
2527
2528         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2529         * m4/stdlib-safer.m4: Remove file.
2530         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2531         (configure.ac): Remove gl_STDLIB_SAFER call.
2532         (Makefile.am): Augment lib_SOURCES.
2533
2534 2011-05-23  Bruno Haible  <bruno@clisp.org>
2535
2536         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2537         * m4/stdio-safer.m4: Remove file.
2538         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2539         (configure.ac): Remove gl_TMPFILE_SAFER call.
2540         (Makefile.am): Augment lib_SOURCES.
2541
2542 2011-05-23  Bruno Haible  <bruno@clisp.org>
2543
2544         popen-safer: Move AC_LIBOBJ invocations to module description.
2545         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2546         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2547         (configure.ac): Remove gl_POPEN_SAFER call.
2548         (Makefile.am): Augment lib_SOURCES.
2549
2550 2011-05-23  Bruno Haible  <bruno@clisp.org>
2551
2552         freopen-safer: Move AC_LIBOBJ invocations to module description.
2553         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2554         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2555         (configure.ac): Remove gl_FREOPEN_SAFER call.
2556         (Makefile.am): Augment lib_SOURCES.
2557
2558 2011-05-23  Bruno Haible  <bruno@clisp.org>
2559
2560         fopen-safer: Move AC_LIBOBJ invocations to module description.
2561         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2562         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2563         (configure.ac): Remove gl_FOPEN_SAFER call.
2564         (Makefile.am): Augment lib_SOURCES.
2565
2566 2011-05-23  Bruno Haible  <bruno@clisp.org>
2567
2568         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2569         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2570         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2571
2572 2011-05-23  Bruno Haible  <bruno@clisp.org>
2573
2574         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2575         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2576         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2577
2578 2011-05-23  Bruno Haible  <bruno@clisp.org>
2579
2580         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2581         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2582         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2583
2584 2011-05-23  Bruno Haible  <bruno@clisp.org>
2585
2586         settime: Move AC_LIBOBJ invocations to module description.
2587         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2588         * modules/settime (Makefile.am): Augment lib_SOURCES.
2589
2590 2011-05-23  Bruno Haible  <bruno@clisp.org>
2591
2592         savedir: Move AC_LIBOBJ invocations to module description.
2593         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2594         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2595
2596 2011-05-23  Bruno Haible  <bruno@clisp.org>
2597
2598         save-cwd: Move AC_LIBOBJ invocations to module description.
2599         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2600         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2601
2602 2011-05-23  Bruno Haible  <bruno@clisp.org>
2603
2604         same: Move AC_LIBOBJ invocations to module description.
2605         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2606         * modules/same (Makefile.am): Augment lib_SOURCES.
2607
2608 2011-05-23  Bruno Haible  <bruno@clisp.org>
2609
2610         safe-write: Move AC_LIBOBJ invocations to module description.
2611         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2612         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2613         instead of gl_SAFE_WRITE.
2614         (Makefile.am): Augment lib_SOURCES.
2615
2616 2011-05-23  Bruno Haible  <bruno@clisp.org>
2617
2618         safe-read: Move AC_LIBOBJ invocations to module description.
2619         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2620         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2621         of gl_SAFE_READ.
2622         (Makefile.am): Augment lib_SOURCES.
2623
2624 2011-05-23  Bruno Haible  <bruno@clisp.org>
2625
2626         safe-alloc: Move AC_LIBOBJ invocations to module description.
2627         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2628         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2629
2630 2011-05-23  Bruno Haible  <bruno@clisp.org>
2631
2632         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2633         * m4/rijndael.m4: Remove file.
2634         * modules/crypto/rijndael (Files): Remove it.
2635         (configure.ac): Remove gl_RIJNDAEL call.
2636         (Makefile.am): Augment lib_SOURCES.
2637
2638 2011-05-23  Bruno Haible  <bruno@clisp.org>
2639
2640         readtokens: Move AC_LIBOBJ invocations to module description.
2641         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2642         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2643
2644 2011-05-23  Bruno Haible  <bruno@clisp.org>
2645
2646         read-file: Move AC_LIBOBJ invocations to module description.
2647         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2648         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2649         of gl_FUNC_READ_FILE.
2650         (Makefile.am): Augment lib_SOURCES.
2651
2652 2011-05-23  Bruno Haible  <bruno@clisp.org>
2653
2654         quotearg: Move AC_LIBOBJ invocations to module description.
2655         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2656         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2657
2658 2011-05-23  Bruno Haible  <bruno@clisp.org>
2659
2660         quote: Move AC_LIBOBJ invocations to module description.
2661         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2662         * modules/quote (Makefile.am): Augment lib_SOURCES.
2663
2664 2011-05-23  Bruno Haible  <bruno@clisp.org>
2665
2666         posixver: Move AC_LIBOBJ invocations to module description.
2667         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2668         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2669
2670 2011-05-23  Bruno Haible  <bruno@clisp.org>
2671
2672         posixtm: Move AC_LIBOBJ invocations to module description.
2673         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2674         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2675
2676 2011-05-23  Bruno Haible  <bruno@clisp.org>
2677
2678         physmem: Move AC_LIBOBJ invocations to module description.
2679         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2680         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2681
2682 2011-05-23  Bruno Haible  <bruno@clisp.org>
2683
2684         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2685         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2686         invocation.
2687         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2688
2689 2011-05-23  Bruno Haible  <bruno@clisp.org>
2690
2691         mpsort: Move AC_LIBOBJ invocations to module description.
2692         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2693         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2694
2695 2011-05-23  Bruno Haible  <bruno@clisp.org>
2696
2697         modechange: Move AC_LIBOBJ invocations to module description.
2698         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2699         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2700
2701 2011-05-23  Bruno Haible  <bruno@clisp.org>
2702
2703         mkdir-p: Move AC_LIBOBJ invocations to module description.
2704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2705         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2706
2707 2011-05-23  Bruno Haible  <bruno@clisp.org>
2708
2709         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2710         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2711         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2712
2713 2011-05-23  Bruno Haible  <bruno@clisp.org>
2714
2715         mgetgroups: Move AC_LIBOBJ invocations to module description.
2716         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2717         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2718
2719 2011-05-23  Bruno Haible  <bruno@clisp.org>
2720
2721         memxor: Move AC_LIBOBJ invocations to module description.
2722         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2723         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2724
2725 2011-05-23  Bruno Haible  <bruno@clisp.org>
2726
2727         memcoll: Move AC_LIBOBJ invocations to module description.
2728         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2729         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2730
2731 2011-05-23  Bruno Haible  <bruno@clisp.org>
2732
2733         memcasecmp: Move AC_LIBOBJ invocations to module description.
2734         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2735         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2736
2737 2011-05-23  Bruno Haible  <bruno@clisp.org>
2738
2739         crypto/md5: Move AC_LIBOBJ invocations to module description.
2740         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2741         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2742
2743 2011-05-23  Bruno Haible  <bruno@clisp.org>
2744
2745         crypto/md4: Move AC_LIBOBJ invocations to module description.
2746         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2747         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2748
2749 2011-05-23  Bruno Haible  <bruno@clisp.org>
2750
2751         crypto/md2: Move AC_LIBOBJ invocations to module description.
2752         * m4/md2.m4: Remove file.
2753         * modules/crypto/md2 (Files): Remove it.
2754         (configure.ac): Remove gl_MD2 call.
2755         (Makefile.am): Augment lib_SOURCES.
2756
2757 2011-05-23  Bruno Haible  <bruno@clisp.org>
2758
2759         long-options: Move AC_LIBOBJ invocations to module description.
2760         * m4/long-options.m4: Remove file.
2761         * modules/long-options (Files): Remove it.
2762         (configure.ac): Remove gl_LONG_OPTIONS call.
2763         (Makefile.am): Augment lib_SOURCES.
2764
2765 2011-05-23  Bruno Haible  <bruno@clisp.org>
2766
2767         i-ring: Move AC_LIBOBJ invocations to module description.
2768         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2769         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2770
2771 2011-05-23  Bruno Haible  <bruno@clisp.org>
2772
2773         idcache: Move AC_LIBOBJ invocations to module description.
2774         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2775         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2776
2777 2011-05-23  Bruno Haible  <bruno@clisp.org>
2778
2779         human: Move AC_LIBOBJ invocations to module description.
2780         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2781         * modules/human (Makefile.am): Augment lib_SOURCES.
2782
2783 2011-05-23  Bruno Haible  <bruno@clisp.org>
2784
2785         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2786         * m4/hmac-sha1.m4: Remove file.
2787         * modules/crypto/hmac-sha1 (Files): Remove it.
2788         (configure.ac): Remove gl_HMAC_SHA1 call.
2789         (Makefile.am): Augment lib_SOURCES.
2790
2791 2011-05-23  Bruno Haible  <bruno@clisp.org>
2792
2793         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2794         * m4/hmac-md5.m4: Remove file.
2795         * modules/crypto/hmac-md5 (Files): Remove it.
2796         (configure.ac): Remove gl_HMAC_MD5 call.
2797         (Makefile.am): Augment lib_SOURCES.
2798
2799 2011-05-23  Bruno Haible  <bruno@clisp.org>
2800
2801         hash: Move AC_LIBOBJ invocations to module description.
2802         * m4/hash.m4: Remove file.
2803         * modules/hash (Files): Remove it.
2804         (configure.ac): Remove gl_HASH call.
2805         (Makefile.am): Augment lib_SOURCES.
2806
2807 2011-05-23  Bruno Haible  <bruno@clisp.org>
2808
2809         hard-locale: Move AC_LIBOBJ invocations to module description.
2810         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2811         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2812
2813 2011-05-23  Bruno Haible  <bruno@clisp.org>
2814
2815         getugroups: Move AC_LIBOBJ invocations to module description.
2816         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2817         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2818
2819 2011-05-23  Bruno Haible  <bruno@clisp.org>
2820
2821         gettime: Move AC_LIBOBJ invocations to module description.
2822         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2823         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2824
2825 2011-05-23  Bruno Haible  <bruno@clisp.org>
2826
2827         getndelim2: Move AC_LIBOBJ invocations to module description.
2828         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2829         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2830
2831 2011-05-23  Bruno Haible  <bruno@clisp.org>
2832
2833         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2834         * m4/gc-pbkdf2-sha1.m4: Remove file.
2835         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2836         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2837         (Makefile.am): Augment lib_SOURCES.
2838
2839 2011-05-23  Bruno Haible  <bruno@clisp.org>
2840
2841         fts: Move AC_LIBOBJ invocations to module description.
2842         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2843         * modules/fts (configure.ac): ... to here.
2844
2845 2011-05-23  Bruno Haible  <bruno@clisp.org>
2846
2847         file-type: Move AC_LIBOBJ invocations to module description.
2848         * m4/file-type.m4: Remove file.
2849         * modules/file-type (Files): Remove it.
2850         (configure.ac): Remove gl_FILE_TYPE call.
2851         (Makefile.am): Augment lib_SOURCES.
2852
2853 2011-05-23  Bruno Haible  <bruno@clisp.org>
2854
2855         filenamecat*: Respect rules for use of AC_LIBOBJ.
2856         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2857         Remove AC_LIBOBJ invocation.
2858         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2859         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2860
2861 2011-05-23  Bruno Haible  <bruno@clisp.org>
2862
2863         filemode: Move AC_LIBOBJ invocations to module description.
2864         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2865         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2866
2867 2011-05-23  Bruno Haible  <bruno@clisp.org>
2868
2869         openat-safer: Move AC_LIBOBJ invocations to module description.
2870         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2871         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2872
2873 2011-05-23  Bruno Haible  <bruno@clisp.org>
2874
2875         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2876         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2877         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2878
2879 2011-05-23  Bruno Haible  <bruno@clisp.org>
2880
2881         exclude: Move AC_LIBOBJ invocations to module description.
2882         * m4/exclude.m4: Remove file.
2883         * modules/exclude (Files): Remove it.
2884         (configure.ac): Remove gl_EXCLUDE call.
2885         (Makefile.am): Augment lib_SOURCES.
2886
2887 2011-05-23  Bruno Haible  <bruno@clisp.org>
2888
2889         dirname*: Respect rules for use of AC_LIBOBJ.
2890         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2891         invocations.
2892         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2893         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2894
2895 2011-05-23  Bruno Haible  <bruno@clisp.org>
2896
2897         dirent-safer: Move AC_LIBOBJ invocations to module description.
2898         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2899         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2900
2901 2011-05-23  Bruno Haible  <bruno@clisp.org>
2902
2903         crypto/des: Move AC_LIBOBJ invocations to module description.
2904         * m4/des.m4: Remove file.
2905         * modules/crypto/des (Files): Remove it.
2906         (configure.ac): Remove gl_DES call.
2907         (Makefile.am): Augment lib_SOURCES.
2908
2909 2011-05-23  Bruno Haible  <bruno@clisp.org>
2910
2911         cycle-check: Move AC_LIBOBJ invocations to module description.
2912         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2913         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2914
2915 2011-05-23  Bruno Haible  <bruno@clisp.org>
2916
2917         c-strtold: Move AC_LIBOBJ invocations to module description.
2918         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2919         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2920
2921 2011-05-23  Bruno Haible  <bruno@clisp.org>
2922
2923         c-strtod: Move AC_LIBOBJ invocations to module description.
2924         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2925         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2926
2927 2011-05-23  Bruno Haible  <bruno@clisp.org>
2928
2929         crc: Move AC_LIBOBJ invocations to module description.
2930         * m4/crc.m4: Remove file.
2931         * modules/crc (Files): Remove it.
2932         (configure.ac): Remove gl_CRC call.
2933         (Makefile.am): Augment lib_SOURCES.
2934
2935 2011-05-23  Bruno Haible  <bruno@clisp.org>
2936
2937         close-stream: Move AC_LIBOBJ invocations to module description.
2938         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2939         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2940
2941 2011-05-23  Bruno Haible  <bruno@clisp.org>
2942
2943         closeout: Move AC_LIBOBJ invocations to module description.
2944         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2945         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2946
2947 2011-05-23  Bruno Haible  <bruno@clisp.org>
2948
2949         closein: Move AC_LIBOBJ invocations to module description.
2950         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2951         * modules/closein (Makefile.am): Augment lib_SOURCES.
2952
2953 2011-05-23  Bruno Haible  <bruno@clisp.org>
2954
2955         cloexec: Move AC_LIBOBJ invocations to module description.
2956         * m4/cloexec.m4: Remove file.
2957         * modules/cloexec (Files): Remove it.
2958         (configure.ac): Remove gl_CLOEXEC call.
2959         (Makefile.am): Augment lib_SOURCES.
2960
2961 2011-05-23  Bruno Haible  <bruno@clisp.org>
2962
2963         check-version: Move AC_LIBOBJ invocations to module description.
2964         * m4/check-version.m4: Remove file.
2965         * modules/check-version (Files): Remove it.
2966         (configure.ac): Remove gl_CHECK_VERSION call.
2967         (Makefile.am): Augment lib_SOURCES.
2968
2969 2011-05-23  Bruno Haible  <bruno@clisp.org>
2970
2971         chdir-safer: Move AC_LIBOBJ invocations to module description.
2972         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2973         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2974
2975 2011-05-23  Bruno Haible  <bruno@clisp.org>
2976
2977         canonicalize: Move AC_LIBOBJ invocations to module description.
2978         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2979         AC_LIBOBJ invocation.
2980         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2981
2982 2011-05-23  Bruno Haible  <bruno@clisp.org>
2983
2984         canon-host: Move AC_LIBOBJ invocations to module description.
2985         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2986         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2987         instead of gl_CANON_HOST.
2988         (Makefile.am): Augment lib_SOURCES.
2989
2990 2011-05-23  Bruno Haible  <bruno@clisp.org>
2991
2992         backupfile: Move AC_LIBOBJ invocations to module description.
2993         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2994         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2995
2996 2011-05-23  Bruno Haible  <bruno@clisp.org>
2997
2998         argmatch: Move AC_LIBOBJ invocations to module description.
2999         * m4/argmatch.m4: Remove file.
3000         * modules/argmatch (Files): Remove it.
3001         (configure.ac): Remove gl_ARGMATCH call.
3002         (Makefile.am): Augment lib_SOURCES.
3003
3004 2011-05-23  Bruno Haible  <bruno@clisp.org>
3005
3006         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3007         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3008         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3009
3010 2011-05-23  Bruno Haible  <bruno@clisp.org>
3011
3012         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3013         * m4/arcfour.m4: Remove file.
3014         * modules/crypto/arcfour (Files): Remove it.
3015         (configure.ac): Remove gl_ARCFOUR call.
3016         (Makefile.am): Augment lib_SOURCES.
3017
3018 2011-05-22  Bruno Haible  <bruno@clisp.org>
3019
3020         write: Move AC_LIBOBJ invocations to module description.
3021         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3022         * modules/write (configure.ac): ... to here.
3023
3024 2011-05-22  Bruno Haible  <bruno@clisp.org>
3025
3026         wmemset: Move AC_LIBOBJ invocations to module description.
3027         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3028         here...
3029         * modules/wmemset (configure.ac): ... to here.
3030
3031 2011-05-22  Bruno Haible  <bruno@clisp.org>
3032
3033         wmemmove: Move AC_LIBOBJ invocations to module description.
3034         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3035         here...
3036         * modules/wmemmove (configure.ac): ... to here.
3037
3038 2011-05-22  Bruno Haible  <bruno@clisp.org>
3039
3040         wmemcpy: Move AC_LIBOBJ invocations to module description.
3041         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3042         here...
3043         * modules/wmemcpy (configure.ac): ... to here.
3044
3045 2011-05-22  Bruno Haible  <bruno@clisp.org>
3046
3047         wmemcmp: Move AC_LIBOBJ invocations to module description.
3048         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3049         here...
3050         * modules/wmemcmp (configure.ac): ... to here.
3051
3052 2011-05-22  Bruno Haible  <bruno@clisp.org>
3053
3054         wmemchr: Move AC_LIBOBJ invocations to module description.
3055         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3056         here...
3057         * modules/wmemchr (configure.ac): ... to here.
3058
3059 2011-05-22  Bruno Haible  <bruno@clisp.org>
3060
3061         wcswidth: Move AC_LIBOBJ invocations to module description.
3062         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3063         here...
3064         * modules/wcswidth (configure.ac): ... to here.
3065
3066 2011-05-22  Bruno Haible  <bruno@clisp.org>
3067
3068         wcwidth: Respect rules for use of AC_LIBOBJ.
3069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3070         invocation from here...
3071         * modules/wcwidth (configure.ac): ... to here.
3072         (Depends-on): Update conditions.
3073
3074 2011-05-22  Bruno Haible  <bruno@clisp.org>
3075
3076         wctype: Move AC_LIBOBJ invocations to module description.
3077         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3078         invocation from here...
3079         * modules/wctype (configure.ac): ... to here.
3080         (Depends-on): Update conditions.
3081
3082 2011-05-22  Bruno Haible  <bruno@clisp.org>
3083
3084         wctrans: Move AC_LIBOBJ invocations to module description.
3085         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3086         invocation from here...
3087         * modules/wctrans (configure.ac): ... to here.
3088
3089 2011-05-22  Bruno Haible  <bruno@clisp.org>
3090
3091         wctomb: Move AC_LIBOBJ invocations to module description.
3092         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3093         invocations from here...
3094         * modules/wctomb (configure.ac): ... to here.
3095
3096 2011-05-22  Bruno Haible  <bruno@clisp.org>
3097
3098         wctob: Move AC_LIBOBJ invocations to module description.
3099         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3100         gl_PREREQ_WCTOB invocations from here...
3101         * modules/wctob (configure.ac): ... to here.
3102         (Depends-on): Update conditions.
3103
3104 2011-05-22  Bruno Haible  <bruno@clisp.org>
3105
3106         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3107         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3108         here...
3109         * modules/wcsxfrm (configure.ac): ... to here.
3110
3111 2011-05-22  Bruno Haible  <bruno@clisp.org>
3112
3113         wcstok: Move AC_LIBOBJ invocations to module description.
3114         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3115         * modules/wcstok (configure.ac): ... to here.
3116
3117 2011-05-22  Bruno Haible  <bruno@clisp.org>
3118
3119         wcsstr: Move AC_LIBOBJ invocations to module description.
3120         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3121         * modules/wcsstr (configure.ac): ... to here.
3122
3123 2011-05-22  Bruno Haible  <bruno@clisp.org>
3124
3125         wcsspn: Move AC_LIBOBJ invocations to module description.
3126         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3127         * modules/wcsspn (configure.ac): ... to here.
3128
3129 2011-05-22  Bruno Haible  <bruno@clisp.org>
3130
3131         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3132         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3133         gl_PREREQ_WCSRTOMBS invocations from here...
3134         * modules/wcsrtombs (configure.ac): ... to here.
3135
3136 2011-05-22  Bruno Haible  <bruno@clisp.org>
3137
3138         wcsrchr: Move AC_LIBOBJ invocations to module description.
3139         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3140         here...
3141         * modules/wcsrchr (configure.ac): ... to here.
3142
3143 2011-05-22  Bruno Haible  <bruno@clisp.org>
3144
3145         wcspbrk: Move AC_LIBOBJ invocations to module description.
3146         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3147         here...
3148         * modules/wcspbrk (configure.ac): ... to here.
3149
3150 2011-05-22  Bruno Haible  <bruno@clisp.org>
3151
3152         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3153         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3154         gl_PREREQ_WCSNRTOMBS invocations from here...
3155         * modules/wcsnrtombs (configure.ac): ... to here.
3156
3157 2011-05-22  Bruno Haible  <bruno@clisp.org>
3158
3159         wcsnlen: Move AC_LIBOBJ invocations to module description.
3160         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3161         here...
3162         * modules/wcsnlen (configure.ac): ... to here.
3163
3164 2011-05-22  Bruno Haible  <bruno@clisp.org>
3165
3166         wcsncpy: Move AC_LIBOBJ invocations to module description.
3167         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3168         here...
3169         * modules/wcsncpy (configure.ac): ... to here.
3170
3171 2011-05-22  Bruno Haible  <bruno@clisp.org>
3172
3173         wcsncmp: Move AC_LIBOBJ invocations to module description.
3174         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3175         here...
3176         * modules/wcsncmp (configure.ac): ... to here.
3177
3178 2011-05-22  Bruno Haible  <bruno@clisp.org>
3179
3180         wcsncat: Move AC_LIBOBJ invocations to module description.
3181         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3182         here...
3183         * modules/wcsncat (configure.ac): ... to here.
3184
3185 2011-05-22  Bruno Haible  <bruno@clisp.org>
3186
3187         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3188         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3189         from here...
3190         * modules/wcsncasecmp (configure.ac): ... to here.
3191
3192 2011-05-22  Bruno Haible  <bruno@clisp.org>
3193
3194         wcslen: Move AC_LIBOBJ invocations to module description.
3195         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3196         * modules/wcslen (configure.ac): ... to here.
3197
3198 2011-05-22  Bruno Haible  <bruno@clisp.org>
3199
3200         wcsdup: Move AC_LIBOBJ invocations to module description.
3201         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3202         * modules/wcsdup (configure.ac): ... to here.
3203
3204 2011-05-22  Bruno Haible  <bruno@clisp.org>
3205
3206         wcscspn: Move AC_LIBOBJ invocations to module description.
3207         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3208         here...
3209         * modules/wcscspn (configure.ac): ... to here.
3210
3211 2011-05-22  Bruno Haible  <bruno@clisp.org>
3212
3213         wcscpy: Move AC_LIBOBJ invocations to module description.
3214         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3215         * modules/wcscpy (configure.ac): ... to here.
3216
3217 2011-05-22  Bruno Haible  <bruno@clisp.org>
3218
3219         wcscoll: Move AC_LIBOBJ invocations to module description.
3220         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3221         here...
3222         * modules/wcscoll (configure.ac): ... to here.
3223
3224 2011-05-22  Bruno Haible  <bruno@clisp.org>
3225
3226         wcscmp: Move AC_LIBOBJ invocations to module description.
3227         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3228         * modules/wcscmp (configure.ac): ... to here.
3229
3230 2011-05-22  Bruno Haible  <bruno@clisp.org>
3231
3232         wcschr: Move AC_LIBOBJ invocations to module description.
3233         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3234         * modules/wcschr (configure.ac): ... to here.
3235
3236 2011-05-22  Bruno Haible  <bruno@clisp.org>
3237
3238         wcscat: Move AC_LIBOBJ invocations to module description.
3239         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3240         * modules/wcscat (configure.ac): ... to here.
3241
3242 2011-05-22  Bruno Haible  <bruno@clisp.org>
3243
3244         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3245         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3246         here...
3247         * modules/wcscasecmp (configure.ac): ... to here.
3248
3249 2011-05-22  Bruno Haible  <bruno@clisp.org>
3250
3251         wcrtomb: Move AC_LIBOBJ invocations to module description.
3252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3253         invocations from here...
3254         * modules/wcrtomb (configure.ac): ... to here.
3255
3256 2011-05-22  Bruno Haible  <bruno@clisp.org>
3257
3258         wcpncpy: Move AC_LIBOBJ invocations to module description.
3259         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3260         here...
3261         * modules/wcpncpy (configure.ac): ... to here.
3262
3263 2011-05-22  Bruno Haible  <bruno@clisp.org>
3264
3265         wcpcpy: Move AC_LIBOBJ invocations to module description.
3266         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3267         * modules/wcpcpy (configure.ac): ... to here.
3268
3269 2011-05-22  Bruno Haible  <bruno@clisp.org>
3270
3271         waitpid: Move AC_LIBOBJ invocations to module description.
3272         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3273         invocation from here...
3274         * modules/waitpid (configure.ac): ... to here.
3275
3276 2011-05-22  Bruno Haible  <bruno@clisp.org>
3277
3278         utimensat: Move AC_LIBOBJ invocations to module description.
3279         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3280         here...
3281         * modules/utimensat (configure.ac): ... to here.
3282
3283 2011-05-22  Bruno Haible  <bruno@clisp.org>
3284
3285         usleep: Move AC_LIBOBJ invocations to module description.
3286         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3287         here...
3288         * modules/usleep (configure.ac): ... to here.
3289
3290 2011-05-22  Bruno Haible  <bruno@clisp.org>
3291
3292         unlockpt: Move AC_LIBOBJ invocations to module description.
3293         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3294         gl_PREREQ_UNLOCKPT invocations from here...
3295         * modules/unlockpt (configure.ac): ... to here.
3296
3297 2011-05-22  Bruno Haible  <bruno@clisp.org>
3298
3299         unlink: Respect rules for use of AC_LIBOBJ.
3300         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3301         * modules/unlink (configure.ac): ... to here.
3302
3303 2011-05-22  Bruno Haible  <bruno@clisp.org>
3304
3305         uname: Move AC_LIBOBJ invocations to module description.
3306         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3308         here...
3309         * modules/uname (configure.ac): ... to here.
3310
3311 2011-05-22  Bruno Haible  <bruno@clisp.org>
3312
3313         ttyname_r: Move AC_LIBOBJ invocations to module description.
3314         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3315         gl_PREREQ_TTYNAME_R invocations from here...
3316         * modules/ttyname_r (configure.ac): ... to here.
3317
3318 2011-05-22  Bruno Haible  <bruno@clisp.org>
3319
3320         tsearch: Move AC_LIBOBJ invocations to module description.
3321         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3322         invocations from here...
3323         * modules/tsearch (configure.ac): ... to here.
3324
3325 2011-05-22  Bruno Haible  <bruno@clisp.org>
3326
3327         towctrans: Move AC_LIBOBJ invocations to module description.
3328         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3329         AC_LIBOBJ invocation from here...
3330         * modules/towctrans (configure.ac): ... to here.
3331
3332 2011-05-22  Bruno Haible  <bruno@clisp.org>
3333
3334         tmpfile: Move AC_LIBOBJ invocations to module description.
3335         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3336         invocations from here...
3337         * modules/tmpfile (configure.ac): ... to here.
3338
3339 2011-05-22  Bruno Haible  <bruno@clisp.org>
3340
3341         times: Move AC_LIBOBJ invocations to module description.
3342         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3343         * modules/times (configure.ac): ... to here.
3344
3345 2011-05-22  Bruno Haible  <bruno@clisp.org>
3346
3347         time_r: Move AC_LIBOBJ invocations to module description.
3348         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3349         invocations from here...
3350         * modules/time_r (configure.ac): ... to here.
3351
3352 2011-05-22  Bruno Haible  <bruno@clisp.org>
3353
3354         timegm: Move AC_LIBOBJ invocations to module description.
3355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3356         invocations from here...
3357         * modules/timegm (configure.ac): ... to here.
3358
3359 2011-05-22  Bruno Haible  <bruno@clisp.org>
3360
3361         tcgetsid: Move AC_LIBOBJ invocations to module description.
3362         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3363         and gl_PREREQ_TCGETSID invocations from here...
3364         * modules/tcgetsid (configure.ac): ... to here.
3365         (Depends-on): Update conditions.
3366
3367 2011-05-22  Bruno Haible  <bruno@clisp.org>
3368
3369         symlinkat: Move AC_LIBOBJ invocations to module description.
3370         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3371         here...
3372         * modules/symlinkat (configure.ac): ... to here.
3373
3374 2011-05-22  Bruno Haible  <bruno@clisp.org>
3375
3376         symlink: Move AC_LIBOBJ invocations to module description.
3377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3378         here...
3379         * modules/symlink (configure.ac): ... to here.
3380
3381 2011-05-22  Bruno Haible  <bruno@clisp.org>
3382
3383         strverscmp: Move AC_LIBOBJ invocations to module description.
3384         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3386         from here...
3387         * modules/strverscmp (configure.ac): ... to here.
3388
3389 2011-05-22  Bruno Haible  <bruno@clisp.org>
3390
3391         strtok_r: Move AC_LIBOBJ invocations to module description.
3392         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3393         and gl_PREREQ_STRTOK_R invocations from here...
3394         * modules/strtok_r (configure.ac): ... to here.
3395         (Depends-on): Update conditions.
3396
3397 2011-05-22  Bruno Haible  <bruno@clisp.org>
3398
3399         strtoumax: Move AC_LIBOBJ invocations to module description.
3400         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3402         from here...
3403         * modules/strtoumax (configure.ac): ... to here.
3404
3405 2011-05-22  Bruno Haible  <bruno@clisp.org>
3406
3407         strtoimax: Move AC_LIBOBJ invocations to module description.
3408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3410         from here...
3411         * modules/strtoimax (configure.ac): ... to here.
3412
3413 2011-05-22  Bruno Haible  <bruno@clisp.org>
3414
3415         strtoull: Move AC_LIBOBJ invocations to module description.
3416         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3418         from here...
3419         * modules/strtoull (configure.ac): ... to here.
3420
3421 2011-05-22  Bruno Haible  <bruno@clisp.org>
3422
3423         strtoll: Move AC_LIBOBJ invocations to module description.
3424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3426         here...
3427         * modules/strtoll (configure.ac): ... to here.
3428
3429 2011-05-22  Bruno Haible  <bruno@clisp.org>
3430
3431         strtoul: Move AC_LIBOBJ invocations to module description.
3432         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3433         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3434         * modules/strtoul (configure.ac): ... to here.
3435
3436 2011-05-22  Bruno Haible  <bruno@clisp.org>
3437
3438         strtol: Move AC_LIBOBJ invocations to module description.
3439         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3440         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3441         * modules/strtol (configure.ac): ... to here.
3442
3443 2011-05-22  Bruno Haible  <bruno@clisp.org>
3444
3445         strtod: Move AC_LIBOBJ invocations to module description.
3446         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3447         invocations from here...
3448         * modules/strtod (configure.ac): ... to here.
3449
3450 2011-05-22  Bruno Haible  <bruno@clisp.org>
3451
3452         strstr*: Move AC_LIBOBJ invocations to module description.
3453         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3454         invocations from here...
3455         * modules/strstr-simple (configure.ac): ... to here.
3456         * modules/strstr (configure.ac): ... and here.
3457
3458 2011-05-22  Bruno Haible  <bruno@clisp.org>
3459
3460         strsignal: Move AC_LIBOBJ invocations to module description.
3461         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3462         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3463         * modules/strsignal (configure.ac): ... to here.
3464         (Depends-on): Update conditions.
3465
3466 2011-05-22  Bruno Haible  <bruno@clisp.org>
3467
3468         strsep: Move AC_LIBOBJ invocations to module description.
3469         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3471         here...
3472         * modules/strsep (configure.ac): ... to here.
3473
3474 2011-05-22  Bruno Haible  <bruno@clisp.org>
3475
3476         strptime: Move AC_LIBOBJ invocations to module description.
3477         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3478         gl_PREREQ_STRPTIME invocations from here...
3479         * modules/strptime (configure.ac): ... to here.
3480
3481 2011-05-22  Bruno Haible  <bruno@clisp.org>
3482
3483         strpbrk: Move AC_LIBOBJ invocations to module description.
3484         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3486         here...
3487         * modules/strpbrk (configure.ac): ... to here.
3488
3489 2011-05-22  Bruno Haible  <bruno@clisp.org>
3490
3491         strnlen: Move AC_LIBOBJ invocations to module description.
3492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3493         invocations from here...
3494         * modules/strnlen (configure.ac): ... to here.
3495
3496 2011-05-22  Bruno Haible  <bruno@clisp.org>
3497
3498         strndup: Move AC_LIBOBJ invocations to module description.
3499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3500         invocations from here...
3501         * modules/strndup (configure.ac): ... to here.
3502         (Depends-on): Update conditions.
3503
3504 2011-05-22  Bruno Haible  <bruno@clisp.org>
3505
3506         strncat: Move AC_LIBOBJ invocations to module description.
3507         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3508         invocations from here...
3509         * modules/strncat (configure.ac): ... to here.
3510
3511 2011-05-22  Bruno Haible  <bruno@clisp.org>
3512
3513         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3514         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3515         invocations from here...
3516         * modules/strdup (configure.ac): ... to here.
3517         * modules/strdup-posix (configure.ac): ... and here.
3518
3519 2011-05-22  Bruno Haible  <bruno@clisp.org>
3520
3521         strcspn: Move AC_LIBOBJ invocations to module description.
3522         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3524         here...
3525         * modules/strcspn (configure.ac): ... to here.
3526
3527 2011-05-22  Bruno Haible  <bruno@clisp.org>
3528
3529         strchrnul: Move AC_LIBOBJ invocations to module description.
3530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3531         gl_PREREQ_STRCHRNUL invocations from here...
3532         * modules/strchrnul (configure.ac): ... to here.
3533
3534 2011-05-22  Bruno Haible  <bruno@clisp.org>
3535
3536         strcasestr*: Move AC_LIBOBJ invocations to module description.
3537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3538         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3539         * modules/strcasestr-simple (configure.ac): ... to here.
3540         * modules/strcasestr (configure.ac): ... and here.
3541
3542 2011-05-22  Bruno Haible  <bruno@clisp.org>
3543
3544         strcase: Move AC_LIBOBJ invocations to module description.
3545         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3546         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3547         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3548         gl_PREREQ_STRNCASECMP invocations from here...
3549         * modules/strcase (configure.ac): ... to here.
3550
3551 2011-05-22  Bruno Haible  <bruno@clisp.org>
3552
3553         stpncpy: Move AC_LIBOBJ invocations to module description.
3554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3555         here...
3556         * modules/stpncpy (configure.ac): ... to here.
3557
3558 2011-05-22  Bruno Haible  <bruno@clisp.org>
3559
3560         stpcpy: Move AC_LIBOBJ invocations to module description.
3561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3563         here...
3564         * modules/stpcpy (configure.ac): ... to here.
3565
3566 2011-05-21  Bruno Haible  <bruno@clisp.org>
3567
3568         stat: Move AC_LIBOBJ invocations to module description.
3569         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3570         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3571         here...
3572         * modules/stat (configure.ac): ... to here.
3573
3574 2011-05-21  Bruno Haible  <bruno@clisp.org>
3575
3576         sleep: Move AC_LIBOBJ invocations to module description.
3577         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3578         * modules/sleep (configure.ac): ... to here.
3579
3580 2011-05-21  Bruno Haible  <bruno@clisp.org>
3581
3582         signbit: Move AC_LIBOBJ invocations to module description.
3583         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3584         * modules/signbit (configure.ac): ... to here.
3585
3586 2011-05-21  Bruno Haible  <bruno@clisp.org>
3587
3588         sigprocmask: Move AC_LIBOBJ invocations to module description.
3589         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3590         gl_PREREQ_SIGPROMASK invocations from here...
3591         * modules/sigprocmask (configure.ac): ... to here.
3592
3593 2011-05-21  Bruno Haible  <bruno@clisp.org>
3594
3595         sigaction: Move AC_LIBOBJ invocations to module description.
3596         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3597         gl_PREREQ_SIGACTION invocations from here...
3598         * modules/sigaction (configure.ac): ... to here.
3599
3600 2011-05-21  Bruno Haible  <bruno@clisp.org>
3601
3602         sig2str: Move AC_LIBOBJ invocations to module description.
3603         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3605         here...
3606         * modules/sig2str (configure.ac): ... to here.
3607
3608 2011-05-21  Bruno Haible  <bruno@clisp.org>
3609
3610         setlocale: Move AC_LIBOBJ invocations to module description.
3611         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3612         gl_PREREQ_SETLOCALE invocations from here...
3613         * modules/setlocale (configure.ac): ... to here.
3614
3615 2011-05-21  Bruno Haible  <bruno@clisp.org>
3616
3617         unsetenv: Move AC_LIBOBJ invocations to module description.
3618         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3619         and gl_PREREQ_UNSETENV invocations from here...
3620         * modules/unsetenv (configure.ac): ... to here.
3621         (Depends-on): Update.
3622
3623 2011-05-21  Bruno Haible  <bruno@clisp.org>
3624
3625         setenv: Move AC_LIBOBJ invocations to module description.
3626         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3627         here...
3628         * modules/setenv (configure.ac): ... to here.
3629
3630 2011-05-21  Bruno Haible  <bruno@clisp.org>
3631
3632         selinux-h: Move AC_LIBOBJ invocations to module description.
3633         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3634         AC_LIBOBJ invocation from here...
3635         * modules/selinux-h (configure.ac): ... to here.
3636
3637 2011-05-21  Bruno Haible  <bruno@clisp.org>
3638
3639         select: Respect rules for use of AC_LIBOBJ.
3640         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3641         here...
3642         * modules/select (configure.ac): ... to here.
3643
3644 2011-05-21  Bruno Haible  <bruno@clisp.org>
3645
3646         scandir: Move AC_LIBOBJ invocations to module description.
3647         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3648         invocations from here...
3649         * modules/scandir (configure.ac): ... to here.
3650
3651 2011-05-21  Bruno Haible  <bruno@clisp.org>
3652
3653         rpmatch: Move AC_LIBOBJ invocations to module description.
3654         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3656         here...
3657         * modules/rpmatch (configure.ac): ... to here.
3658
3659 2011-05-21  Bruno Haible  <bruno@clisp.org>
3660
3661         rmdir: Respect rules for use of AC_LIBOBJ.
3662         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3663         * modules/rmdir (configure.ac): ... to here.
3664
3665 2011-05-21  Bruno Haible  <bruno@clisp.org>
3666
3667         renameat: Move AC_LIBOBJ invocations to module description.
3668         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3669         here...
3670         * modules/renameat (configure.ac): ... to here.
3671
3672 2011-05-21  Bruno Haible  <bruno@clisp.org>
3673
3674         rename: Respect rules for use of AC_LIBOBJ.
3675         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3676         here...
3677         * modules/rename (configure.ac): ... to here.
3678
3679 2011-05-21  Bruno Haible  <bruno@clisp.org>
3680
3681         remove: Move AC_LIBOBJ invocations to module description.
3682         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3683         here...
3684         * modules/remove (configure.ac): ... to here.
3685
3686 2011-05-21  Bruno Haible  <bruno@clisp.org>
3687
3688         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3689         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3690         macro.
3691         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3692         * modules/relocatable-lib (configure.ac): ... to here.
3693         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3694         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3695
3696 2011-05-21  Bruno Haible  <bruno@clisp.org>
3697
3698         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3699         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3700         here...
3701         * modules/relocatable-prog (configure.ac): ... to here.
3702
3703 2011-05-21  Bruno Haible  <bruno@clisp.org>
3704
3705         regex: Move AC_LIBOBJ invocations to module description.
3706         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3707         invocations from here...
3708         * modules/regex (configure.ac): ... to here.
3709
3710 2011-05-21  Bruno Haible  <bruno@clisp.org>
3711
3712         realloc-*: Move AC_LIBOBJ invocations to module description.
3713         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3714         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3715         AC_LIBOBJ invocations from here...
3716         * modules/realloc-gnu (configure.ac): ... to here.
3717         * modules/realloc-posix (configure.ac): ... and here.
3718
3719 2011-05-21  Bruno Haible  <bruno@clisp.org>
3720
3721         readutmp: Move AC_LIBOBJ invocations to module description.
3722         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3723         * modules/readutmp (configure.ac): ... to here.
3724
3725 2011-05-21  Bruno Haible  <bruno@clisp.org>
3726
3727         readlinkat: Move AC_LIBOBJ invocations to module description.
3728         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3729         here...
3730         * modules/readlinkat (configure.ac): ... to here.
3731
3732 2011-05-21  Bruno Haible  <bruno@clisp.org>
3733
3734         readlink: Move AC_LIBOBJ invocations to module description.
3735         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3736         gl_PREREQ_READLINK invocations from here...
3737         * modules/readlink (configure.ac): ... to here.
3738
3739 2011-05-21  Bruno Haible  <bruno@clisp.org>
3740
3741         readline: Move AC_LIBOBJ invocations to module description.
3742         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3743         gl_PREREQ_READLINE invocations from here...
3744         * modules/readline (configure.ac): ... to here.
3745
3746 2011-05-21  Bruno Haible  <bruno@clisp.org>
3747
3748         read: Move AC_LIBOBJ invocations to module description.
3749         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3750         * modules/read (configure.ac): ... to here.
3751
3752 2011-05-21  Bruno Haible  <bruno@clisp.org>
3753
3754         rawmemchr: Move AC_LIBOBJ invocations to module description.
3755         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3757         from here...
3758         * modules/rawmemchr (configure.ac): ... to here.
3759
3760 2011-05-21  Bruno Haible  <bruno@clisp.org>
3761
3762         random_r: Move AC_LIBOBJ invocations to module description.
3763         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3764         gl_PREREQ_RANDOM_R invocations from here...
3765         * modules/random_r (configure.ac): ... to here.
3766
3767 2011-05-21  Bruno Haible  <bruno@clisp.org>
3768
3769         pwrite: Move AC_LIBOBJ invocations to module description.
3770         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3771         * modules/pwrite (configure.ac): ... to here.
3772
3773 2011-05-21  Bruno Haible  <bruno@clisp.org>
3774
3775         putenv: Move AC_LIBOBJ invocations to module description.
3776         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3777         * modules/putenv (configure.ac): ... to here.
3778
3779 2011-05-21  Bruno Haible  <bruno@clisp.org>
3780
3781         login_tty: Move AC_LIBOBJ invocations to module description.
3782         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3783         * modules/login_tty (configure.ac): ... to here.
3784
3785 2011-05-21  Bruno Haible  <bruno@clisp.org>
3786
3787         openpty: Move AC_LIBOBJ invocations to module description.
3788         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3789         * modules/openpty (configure.ac): ... to here.
3790
3791 2011-05-21  Bruno Haible  <bruno@clisp.org>
3792
3793         forkpty: Move AC_LIBOBJ invocations to module description.
3794         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3795         * modules/forkpty (configure.ac): ... to here.
3796
3797 2011-05-21  Bruno Haible  <bruno@clisp.org>
3798
3799         ptsname: Move AC_LIBOBJ invocations to module description.
3800         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3801         invocations from here...
3802         * modules/ptsname (configure.ac): ... to here.
3803
3804 2011-05-21  Bruno Haible  <bruno@clisp.org>
3805
3806         pread: Move AC_LIBOBJ invocations to module description.
3807         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3808         * modules/pread (configure.ac): ... to here.
3809
3810 2011-05-21  Bruno Haible  <bruno@clisp.org>
3811
3812         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3813         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3814         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3815         * modules/posix_spawn (configure.ac): ... to here.
3816         * modules/posix_spawnp (configure.ac): ... and here.
3817
3818 2011-05-21  Bruno Haible  <bruno@clisp.org>
3819
3820         popen: Move AC_LIBOBJ invocations to module description.
3821         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3822         invocations from here...
3823         * modules/popen (configure.ac): ... to here.
3824
3825 2011-05-21  Bruno Haible  <bruno@clisp.org>
3826
3827         poll: Move AC_LIBOBJ invocations to module description.
3828         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3829         invocations from here...
3830         * modules/poll (configure.ac): ... to here.
3831
3832 2011-05-21  Bruno Haible  <bruno@clisp.org>
3833
3834         pipe-posix: Move AC_LIBOBJ invocations to module description.
3835         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3836         * modules/pipe-posix (configure.ac): ... to here.
3837
3838 2011-05-21  Bruno Haible  <bruno@clisp.org>
3839
3840         openat: Respect rules for use of AC_LIBOBJ.
3841         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3842         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3843         * modules/openat (configure.ac): ... to here.
3844
3845 2011-05-21  Bruno Haible  <bruno@clisp.org>
3846
3847         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3848         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3849         invocation from here...
3850         * modules/obstack-printf (configure.ac): ... to here.
3851         * modules/obstack-printf-posix (configure.ac): ... and here.
3852
3853 2011-05-21  Bruno Haible  <bruno@clisp.org>
3854
3855         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3857         from here...
3858         * modules/nl_langinfo (configure.ac): ... to here.
3859
3860 2011-05-21  Bruno Haible  <bruno@clisp.org>
3861
3862         nanosleep: Move AC_LIBOBJ invocations to module description.
3863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3864         gl_PREREQ_NANOSLEEP invocations from here...
3865         * modules/nanosleep (configure.ac): ... to here.
3866
3867 2011-05-21  Bruno Haible  <bruno@clisp.org>
3868
3869         mountlist: Move AC_LIBOBJ invocations to module description.
3870         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3871         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3872         * modules/mountlist (configure.ac): ... to here.
3873
3874 2011-05-21  Bruno Haible  <bruno@clisp.org>
3875
3876         mktime: Respect rules for use of AC_LIBOBJ.
3877         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3878         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3879         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3880         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3881         * modules/mktime (configure.ac): ... to here.
3882         * modules/mktime-internal (configure.ac): ... and here.
3883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3884
3885 2011-05-21  Bruno Haible  <bruno@clisp.org>
3886
3887         mkstemps: Move AC_LIBOBJ invocations to module description.
3888         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3889         here...
3890         * modules/mkstemps (configure.ac): ... to here.
3891
3892 2011-05-21  Bruno Haible  <bruno@clisp.org>
3893
3894         mkstemp: Move AC_LIBOBJ invocations to module description.
3895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3896         gl_PREREQ_MKSTEMP invocations from here...
3897         * modules/mkstemp (configure.ac): ... to here.
3898
3899 2011-05-21  Bruno Haible  <bruno@clisp.org>
3900
3901         mkostemps: Move AC_LIBOBJ invocations to module description.
3902         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3903         here...
3904         * modules/mkostemps (configure.ac): ... to here.
3905
3906 2011-05-21  Bruno Haible  <bruno@clisp.org>
3907
3908         mkostemp: Move AC_LIBOBJ invocations to module description.
3909         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3910         gl_PREREQ_MKOSTEMP invocations from here...
3911         * modules/mkostemp (configure.ac): ... to here.
3912
3913 2011-05-21  Bruno Haible  <bruno@clisp.org>
3914
3915         mknod: Move AC_LIBOBJ invocations to module description.
3916         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3917         * modules/mknod (configure.ac): ... to here.
3918
3919 2011-05-21  Bruno Haible  <bruno@clisp.org>
3920
3921         mkfifoat: Move AC_LIBOBJ invocations to module description.
3922         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3923         here...
3924         * modules/mkfifoat (configure.ac): ... to here.
3925
3926 2011-05-21  Bruno Haible  <bruno@clisp.org>
3927
3928         mkfifo: Respect rules for use of AC_LIBOBJ.
3929         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3930         here...
3931         * modules/mkfifo (configure.ac): ... to here.
3932
3933 2011-05-21  Bruno Haible  <bruno@clisp.org>
3934
3935         mkdtemp: Move AC_LIBOBJ invocations to module description.
3936         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3937         invocations from here...
3938         * modules/mkdtemp (configure.ac): ... to here.
3939
3940 2011-05-21  Bruno Haible  <bruno@clisp.org>
3941
3942         mkdir: Move AC_LIBOBJ invocations to module description.
3943         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3944         * modules/mkdir (configure.ac): ... to here.
3945
3946 2011-05-21  Bruno Haible  <bruno@clisp.org>
3947
3948         memset: Move AC_LIBOBJ invocations to module description.
3949         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3951         here...
3952         * modules/memset (configure.ac): ... to here.
3953
3954 2011-05-21  Bruno Haible  <bruno@clisp.org>
3955
3956         memrchr: Move AC_LIBOBJ invocations to module description.
3957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3959         here...
3960         * modules/memrchr (configure.ac): ... to here.
3961
3962 2011-05-21  Bruno Haible  <bruno@clisp.org>
3963
3964         mempcpy: Move AC_LIBOBJ invocations to module description.
3965         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3967         here...
3968         * modules/mempcpy (configure.ac): ... to here.
3969
3970 2011-05-21  Bruno Haible  <bruno@clisp.org>
3971
3972         memmove: Move AC_LIBOBJ invocations to module description.
3973         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3975         here...
3976         * modules/memmove (configure.ac): ... to here.
3977
3978 2011-05-21  Bruno Haible  <bruno@clisp.org>
3979
3980         memmem*: Move AC_LIBOBJ invocations to module description.
3981         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3982         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3983         here...
3984         (gl_FUNC_MEMMEM): ... and here...
3985         * modules/memmem-simple (configure.ac): ... to here.
3986         * modules/memmem (configure.ac): ... and here.
3987
3988 2011-05-21  Bruno Haible  <bruno@clisp.org>
3989
3990         memcpy: Move AC_LIBOBJ invocations to module description.
3991         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3993         here...
3994         * modules/memcpy (configure.ac): ... to here.
3995
3996 2011-05-21  Bruno Haible  <bruno@clisp.org>
3997
3998         memcmp: Simplify autoconf macro.
3999         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4000         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4001         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4002
4003 2011-05-21  Bruno Haible  <bruno@clisp.org>
4004
4005         memcmp: Move AC_LIBOBJ invocations to module description.
4006         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4007         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4008         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4009         * modules/memcmp (configure.ac): ... to here.
4010         (Depends-on): Update conditions.
4011
4012 2011-05-21  Bruno Haible  <bruno@clisp.org>
4013
4014         memchr: Respect rules for use of AC_LIBOBJ.
4015         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4016         invocations from here...
4017         * modules/memchr (configure.ac): ... to here.
4018
4019 2011-05-21  Bruno Haible  <bruno@clisp.org>
4020
4021         mbtowc: Move AC_LIBOBJ invocations to module description.
4022         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4023         invocations from here...
4024         * modules/mbtowc (configure.ac): ... to here.
4025
4026 2011-05-21  Bruno Haible  <bruno@clisp.org>
4027
4028         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4029         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4030         gl_PREREQ_MBSRTOWCS invocations from here...
4031         * modules/mbsrtowcs (configure.ac): ... to here.
4032
4033 2011-05-21  Bruno Haible  <bruno@clisp.org>
4034
4035         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4036         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4037         gl_PREREQ_MBSNRTOWCS invocations from here...
4038         * modules/mbsnrtowcs (configure.ac): ... to here.
4039
4040 2011-05-21  Bruno Haible  <bruno@clisp.org>
4041
4042         mbsinit: Move AC_LIBOBJ invocations to module description.
4043         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4044         invocations from here...
4045         * modules/mbsinit (configure.ac): ... to here.
4046
4047 2011-05-21  Bruno Haible  <bruno@clisp.org>
4048
4049         mbrlen: Move AC_LIBOBJ invocations to module description.
4050         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4051         invocations from here...
4052         * modules/mbrlen (configure.ac): ... to here.
4053
4054 2011-05-21  Bruno Haible  <bruno@clisp.org>
4055
4056         mbrtowc: Respect rules for use of AC_LIBOBJ.
4057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4058         invocations from here...
4059         * modules/mbrtowc (configure.ac): ... to here.
4060
4061 2011-05-21  Bruno Haible  <bruno@clisp.org>
4062
4063         malloc-*: Move AC_LIBOBJ invocations to module description.
4064         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4065         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4066         AC_LIBOBJ invocations from here...
4067         * modules/malloc-gnu (configure.ac): ... to here.
4068         * modules/malloc-posix (configure.ac): ... and here.
4069
4070 2011-05-21  Bruno Haible  <bruno@clisp.org>
4071
4072         lstat, openat: Respect rules for use of AC_LIBOBJ.
4073         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4074         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4075         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4076         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4077         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4078         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4079         here.
4080         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4081
4082 2011-05-21  Bruno Haible  <bruno@clisp.org>
4083
4084         lseek: Move AC_LIBOBJ invocations to module description.
4085         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4086         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4087         * modules/lseek (configure.ac): ... to here.
4088
4089 2011-05-21  Bruno Haible  <bruno@clisp.org>
4090
4091         linkat: Move AC_LIBOBJ invocations to module description.
4092         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4093         here...
4094         * modules/linkat (configure.ac): ... to here.
4095
4096 2011-05-21  Bruno Haible  <bruno@clisp.org>
4097
4098         link: Respect rules for use of AC_LIBOBJ.
4099         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4100         * modules/link (configure.ac): ... to here.
4101
4102 2011-05-21  Bruno Haible  <bruno@clisp.org>
4103
4104         lchown: Move AC_LIBOBJ invocations to module description.
4105         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4106         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4107         * modules/lchown (configure.ac): ... to here.
4108
4109 2011-05-21  Bruno Haible  <bruno@clisp.org>
4110
4111         iswctype: Move AC_LIBOBJ invocations to module description.
4112         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4113         here...
4114         * modules/iswctype (configure.ac): ... to here.
4115
4116 2011-05-21  Bruno Haible  <bruno@clisp.org>
4117
4118         iswblank: Move AC_LIBOBJ invocations to module description.
4119         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4120         here...
4121         * modules/iswblank (configure.ac): ... to here.
4122
4123 2011-05-21  Bruno Haible  <bruno@clisp.org>
4124
4125         atanl: Move AC_LIBOBJ invocations to module description.
4126         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4127         * modules/atanl (configure.ac): ... to here.
4128
4129 2011-05-21  Bruno Haible  <bruno@clisp.org>
4130
4131         acosl: Move AC_LIBOBJ invocations to module description.
4132         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4133         * modules/acosl (configure.ac): ... to here.
4134
4135 2011-05-21  Bruno Haible  <bruno@clisp.org>
4136
4137         asinl: Respect rules for use of AC_LIBOBJ.
4138         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4139         * modules/asinl (configure.ac): ... to here.
4140
4141 2011-05-21  Bruno Haible  <bruno@clisp.org>
4142
4143         tanl: Move AC_LIBOBJ invocations to module description.
4144         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4145         * modules/tanl (configure.ac): ... to here.
4146
4147 2011-05-21  Bruno Haible  <bruno@clisp.org>
4148
4149         cosl: Move AC_LIBOBJ invocations to module description.
4150         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4151         * modules/cosl (configure.ac): ... to here.
4152
4153 2011-05-21  Bruno Haible  <bruno@clisp.org>
4154
4155         sinl: Move AC_LIBOBJ invocations to module description.
4156         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4157         * modules/sinl (configure.ac): ... to here.
4158
4159 2011-05-21  Bruno Haible  <bruno@clisp.org>
4160
4161         logl: Move AC_LIBOBJ invocations to module description.
4162         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4163         * modules/logl (configure.ac): ... to here.
4164
4165 2011-05-21  Bruno Haible  <bruno@clisp.org>
4166
4167         expl: Move AC_LIBOBJ invocations to module description.
4168         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4169         * modules/expl (configure.ac): ... to here.
4170
4171 2011-05-21  Bruno Haible  <bruno@clisp.org>
4172
4173         roundl: Move AC_LIBOBJ invocations to module description.
4174         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4175         * modules/roundl (configure.ac): ... to here.
4176
4177 2011-05-21  Bruno Haible  <bruno@clisp.org>
4178
4179         round: Move AC_LIBOBJ invocations to module description.
4180         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4181         * modules/round (configure.ac): ... to here.
4182
4183 2011-05-21  Bruno Haible  <bruno@clisp.org>
4184
4185         roundf: Move AC_LIBOBJ invocations to module description.
4186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4187         * modules/roundf (configure.ac): ... to here.
4188
4189 2011-05-21  Bruno Haible  <bruno@clisp.org>
4190
4191         truncl: Move AC_LIBOBJ invocations to module description.
4192         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4193         * modules/truncl (configure.ac): ... to here.
4194
4195 2011-05-21  Bruno Haible  <bruno@clisp.org>
4196
4197         trunc: Move AC_LIBOBJ invocations to module description.
4198         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4199         * modules/trunc (configure.ac): ... to here.
4200
4201 2011-05-21  Bruno Haible  <bruno@clisp.org>
4202
4203         truncf: Move AC_LIBOBJ invocations to module description.
4204         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4205         * modules/truncf (configure.ac): ... to here.
4206
4207 2011-05-21  Bruno Haible  <bruno@clisp.org>
4208
4209         ceill: Move AC_LIBOBJ invocations to module description.
4210         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4211         * modules/ceill (configure.ac): ... to here.
4212
4213 2011-05-21  Bruno Haible  <bruno@clisp.org>
4214
4215         ceil: Move AC_LIBOBJ invocations to module description.
4216         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4217         * modules/ceil (configure.ac): ... to here.
4218
4219 2011-05-21  Bruno Haible  <bruno@clisp.org>
4220
4221         ceilf: Move AC_LIBOBJ invocations to module description.
4222         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4223         * modules/ceilf (configure.ac): ... to here.
4224
4225 2011-05-21  Bruno Haible  <bruno@clisp.org>
4226
4227         floorl: Respect rules for use of AC_LIBOBJ.
4228         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4229         * modules/floorl (configure.ac): ... to here.
4230
4231 2011-05-21  Bruno Haible  <bruno@clisp.org>
4232
4233         floor: Respect rules for use of AC_LIBOBJ.
4234         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4235         * modules/floor (configure.ac): ... to here.
4236
4237 2011-05-21  Bruno Haible  <bruno@clisp.org>
4238
4239         floorf: Move AC_LIBOBJ invocations to module description.
4240         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4241         * modules/floorf (configure.ac): ... to here.
4242
4243 2011-05-20  Bruno Haible  <bruno@clisp.org>
4244
4245         sqrtl: Respect rules for use of AC_LIBOBJ.
4246         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4247         * modules/sqrtl (configure.ac): ... to here.
4248
4249 2011-05-20  Bruno Haible  <bruno@clisp.org>
4250
4251         ldexpl: Respect rules for use of AC_LIBOBJ.
4252         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4253         * modules/ldexpl (configure.ac): ... to here.
4254
4255 2011-05-20  Bruno Haible  <bruno@clisp.org>
4256
4257         frexpl*: Respect rules for use of AC_LIBOBJ.
4258         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4259         invocation from here...
4260         * modules/frexpl (configure.ac): ... to here.
4261         * modules/frexpl-nolibm (configure.ac): ... and here.
4262
4263 2011-05-20  Bruno Haible  <bruno@clisp.org>
4264
4265         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4266         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4267         invocation from here...
4268         * modules/frexp (configure.ac): ... to here.
4269         * modules/frexp-nolibm (configure.ac): ... and here.
4270
4271 2011-05-20  Bruno Haible  <bruno@clisp.org>
4272
4273         isnan: Respect rules for use of AC_LIBOBJ.
4274         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4275         invocations here.
4276         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4277         REPLACE_ISNAN.
4278         * modules/isnand (configure.ac): Likewise.
4279         * modules/isnanl (configure.ac): Likewise.
4280
4281 2011-05-20  Bruno Haible  <bruno@clisp.org>
4282
4283         isnanl*: Respect rules for use of AC_LIBOBJ.
4284         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4285         invocation from here...
4286         * modules/isnanl (configure.ac): ... to here.
4287         * modules/isnanl-nolibm (configure.ac): ... and here.
4288
4289 2011-05-20  Bruno Haible  <bruno@clisp.org>
4290
4291         isnand*: Move AC_LIBOBJ invocations to module description.
4292         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4293         invocation from here...
4294         * modules/isnand (configure.ac): ... to here.
4295         * modules/isnand-nolibm (configure.ac): ... and here.
4296
4297 2011-05-20  Bruno Haible  <bruno@clisp.org>
4298
4299         isnanf*: Move AC_LIBOBJ invocations to module description.
4300         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4301         invocation from here...
4302         * modules/isnanf (configure.ac): ... to here.
4303         * modules/isnanf-nolibm (configure.ac): ... and here.
4304
4305 2011-05-20  Bruno Haible  <bruno@clisp.org>
4306
4307         isnan*: Separate the AC_LIBOBJ invocations.
4308         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4309         AC_LIBOBJ invocation.
4310         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4311         here.
4312         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4313         AC_LIBOBJ invocation.
4314         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4315         here.
4316         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4317         AC_LIBOBJ invocation.
4318         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4319         here.
4320         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4321
4322 2011-05-08  Bruno Haible  <bruno@clisp.org>
4323
4324         isinf: Move AC_LIBOBJ invocations to module description.
4325         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4326         * modules/isinf (configure.ac): ... to here.
4327
4328 2011-05-08  Bruno Haible  <bruno@clisp.org>
4329
4330         isfinite: Move AC_LIBOBJ invocations to module description.
4331         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4332         * modules/isfinite (configure.ac): ... to here.
4333
4334 2011-05-08  Bruno Haible  <bruno@clisp.org>
4335
4336         isblank: Move AC_LIBOBJ invocations to module description.
4337         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4338         here...
4339         * modules/isblank (configure.ac): ... to here.
4340
4341 2011-05-08  Bruno Haible  <bruno@clisp.org>
4342
4343         isapipe: Move AC_LIBOBJ invocations to module description.
4344         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4345         gl_PREREQ_ISAPIPE invocations from here...
4346         * modules/isapipe (configure.ac): ... to here.
4347         (Depends-on): Update condition.
4348
4349 2011-05-08  Bruno Haible  <bruno@clisp.org>
4350
4351         ioctl: Move AC_LIBOBJ invocations to module description.
4352         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4353         invocations from here...
4354         * modules/ioctl (configure.ac): ... to here.
4355         (Depends-on): Update condition.
4356
4357 2011-05-08  Bruno Haible  <bruno@clisp.org>
4358
4359         imaxdiv: Move AC_LIBOBJ invocations to module description.
4360         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4361         invocations from here...
4362         * modules/imaxdiv (configure.ac): ... to here.
4363
4364 2011-05-08  Bruno Haible  <bruno@clisp.org>
4365
4366         imaxabs: Move AC_LIBOBJ invocations to module description.
4367         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4368         invocations from here...
4369         * modules/imaxabs (configure.ac): ... to here.
4370
4371 2011-05-08  Bruno Haible  <bruno@clisp.org>
4372
4373         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4375         AC_LIBOBJ invocations from here...
4376         * modules/getaddrinfo (configure.ac): ... to here.
4377         (Depends-on): Add conditions.
4378
4379 2011-05-08  Bruno Haible  <bruno@clisp.org>
4380
4381         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4382         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4383         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4384         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4385         (gl_PREREQ_INET_PTON): ... from here.
4386         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4387         gl_PREREQ_INET_PTON here.
4388         (Depends-on): Update condition.
4389
4390 2011-05-08  Bruno Haible  <bruno@clisp.org>
4391
4392         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4393         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4394         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4395         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4396         (gl_PREREQ_INET_NTOP): ... from here.
4397         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4398         gl_PREREQ_INET_NTOP here.
4399         (Depends-on): Update condition.
4400
4401 2011-05-08  Bruno Haible  <bruno@clisp.org>
4402
4403         iconv_open: Move AC_LIBOBJ invocations to module description.
4404         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4405         AC_LIBOBJ invocations from here...
4406         * modules/iconv_open (configure.ac): ... to here.
4407
4408 2011-05-08  Bruno Haible  <bruno@clisp.org>
4409
4410         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4411         If module 'iconv_open' is among the main modules and module
4412         'iconv_open-utf' is among the tests dependencies, then
4413         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4414         return the special iconv_t values. Therefore iconv() and iconv_close()
4415         must support these special iconv_t values, already in lib, not only in
4416         tests.
4417         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4419         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4420         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4421         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4422         (Depends-on): Add the dependencies of iconv_open-utf.
4423         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4424         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4425         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4426
4427 2011-05-08  Bruno Haible  <bruno@clisp.org>
4428
4429         group-member: Move AC_LIBOBJ invocations to module description.
4430         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4431         gl_PREREQ_GROUP_MEMBER invocations from here...
4432         * modules/group-member (configure.ac): ... to here.
4433
4434 2011-05-08  Bruno Haible  <bruno@clisp.org>
4435
4436         grantpt: Move AC_LIBOBJ invocations to module description.
4437         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4438         invocations from here...
4439         * modules/grantpt (configure.ac): ... to here.
4440
4441 2011-05-08  Bruno Haible  <bruno@clisp.org>
4442
4443         glob: Move AC_LIBOBJ invocations to module description.
4444         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4445         from here...
4446         * modules/glob (configure.ac): ... to here.
4447
4448 2011-05-08  Bruno Haible  <bruno@clisp.org>
4449
4450         getusershell: Move AC_LIBOBJ invocations to module description.
4451         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4452         Move AC_LIBOBJ invocation from here...
4453         * modules/getusershell (configure.ac): ... to here.
4454         (Depends-on): Update condition.
4455
4456 2011-05-08  Bruno Haible  <bruno@clisp.org>
4457
4458         gettimeofday: Move AC_LIBOBJ invocations to module description.
4459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4460         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4461         gl_PREREQ_GETTIMEOFDAY invocations from here...
4462         * modules/gettimeofday (configure.ac): ... to here.
4463
4464 2011-05-08  Bruno Haible  <bruno@clisp.org>
4465
4466         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4467         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4468         just gl_FUNC_TZSET.
4469         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4470         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4471         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4472         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4473
4474 2011-05-08  Bruno Haible  <bruno@clisp.org>
4475
4476         getsubopt: Move AC_LIBOBJ invocations to module description.
4477         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4478         gl_PREREQ_GETSUBOPT invocations from here...
4479         * modules/getsubopt (configure.ac): ... to here.
4480
4481 2011-05-08  Bruno Haible  <bruno@clisp.org>
4482
4483         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4484         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4485         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4486         * modules/getpass-gnu (configure.ac): ... to here.
4487
4488 2011-05-08  Bruno Haible  <bruno@clisp.org>
4489
4490         getpass: Move AC_LIBOBJ invocations to module description.
4491         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4492         gl_PREREQ_GETPASS invocations from here...
4493         * modules/getpass (configure.ac): ... to here.
4494
4495 2011-05-08  Bruno Haible  <bruno@clisp.org>
4496
4497         getpagesize: Move AC_LIBOBJ invocations to module description.
4498         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4499         from here...
4500         * modules/getpagesize (configure.ac): ... to here.
4501
4502 2011-05-08  Bruno Haible  <bruno@clisp.org>
4503
4504         getopt: Move AC_LIBOBJ invocations to module description.
4505         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4506         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4507         invocations from here...
4508         * modules/getopt-gnu (configure.ac): ... to here.
4509         * modules/getopt-posix (configure.ac): ... and here.
4510         (Depends-on): Update condition.
4511
4512 2011-05-08  Bruno Haible  <bruno@clisp.org>
4513
4514         getopt, argp: Respect rules for use of AC_LIBOBJ.
4515         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4516         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4517         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4518         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4519
4520 2011-05-08  Bruno Haible  <bruno@clisp.org>
4521
4522         getlogin_r: Move AC_LIBOBJ invocations to module description.
4523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4524         gl_PREREQ_GETLOGIN_R invocations from here...
4525         * modules/getlogin_r (configure.ac): ... to here.
4526
4527 2011-05-08  Bruno Haible  <bruno@clisp.org>
4528
4529         getlogin: Move AC_LIBOBJ invocations to module description.
4530         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4531         here...
4532         * modules/getlogin (configure.ac): ... to here.
4533
4534 2011-05-08  Bruno Haible  <bruno@clisp.org>
4535
4536         getloadavg: Move AC_LIBOBJ invocations to module description.
4537         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4538         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4539         * modules/getloadavg (configure.ac): ... to here.
4540
4541 2011-05-08  Bruno Haible  <bruno@clisp.org>
4542
4543         gethrxtime: Move AC_LIBOBJ invocations to module description.
4544         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4545         LIB_GETHRXTIME from here...
4546         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4547         invocations from here...
4548         * modules/gethrxtime (configure.ac): ... to here.
4549
4550 2011-05-08  Bruno Haible  <bruno@clisp.org>
4551
4552         gethostname: Move AC_LIBOBJ invocations to module description.
4553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4554         gl_PREREQ_GETHOSTNAME invocations from here...
4555         * modules/gethostname (configure.ac): ... to here.
4556
4557 2011-05-08  Bruno Haible  <bruno@clisp.org>
4558
4559         getgroups: Move AC_LIBOBJ invocations to module description.
4560         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4561         here...
4562         * modules/getgroups (configure.ac): ... to here.
4563
4564 2011-05-08  Bruno Haible  <bruno@clisp.org>
4565
4566         getdtablesize: Move AC_LIBOBJ invocations to module description.
4567         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4568         invocation from here...
4569         * modules/getdtablesize (configure.ac): ... to here.
4570
4571 2011-05-08  Bruno Haible  <bruno@clisp.org>
4572
4573         getdomainname: Move AC_LIBOBJ invocations to module description.
4574         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4575         gl_PREREQ_GETDOMAINNAME invocations from here...
4576         * modules/getdomainname (configure.ac): ... to here.
4577
4578 2011-05-08  Bruno Haible  <bruno@clisp.org>
4579
4580         getline: Move AC_LIBOBJ invocations to module description.
4581         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4582         invocations from here...
4583         * modules/getline (configure.ac): ... to here.
4584
4585 2011-05-08  Bruno Haible  <bruno@clisp.org>
4586
4587         getline: Simplify.
4588         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4589         It's already handled through the module dependency.
4590
4591 2011-05-08  Bruno Haible  <bruno@clisp.org>
4592
4593         getdelim: Move AC_LIBOBJ invocations to module description.
4594         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4595         and gl_PREREQ_GETDELIM invocations from here...
4596         * modules/getdelim (configure.ac): ... to here.
4597         (Depends-on): Fix condition.
4598
4599 2011-05-08  Bruno Haible  <bruno@clisp.org>
4600
4601         getcwd: Move AC_LIBOBJ invocations to module description.
4602         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4603         invocations from here...
4604         * modules/getcwd (configure.ac): ... to here.
4605
4606 2011-05-08  Bruno Haible  <bruno@clisp.org>
4607
4608         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4609         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4610         here...
4611         * modules/getcwd-lgpl (configure.ac): ... to here.
4612
4613 2011-05-07  Bruno Haible  <bruno@clisp.org>
4614
4615         crypto/gc: Move AC_LIBOBJ invocations to module description.
4616         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4617         * modules/crypto/gc (configure.ac): ... to here.
4618
4619 2011-05-07  Bruno Haible  <bruno@clisp.org>
4620
4621         fwriting: Move AC_LIBOBJ invocations to module description.
4622         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4623         here...
4624         * modules/fwriting (configure.ac): ... to here.
4625
4626 2011-05-07  Bruno Haible  <bruno@clisp.org>
4627
4628         fwritable: Move AC_LIBOBJ invocations to module description.
4629         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4630         here...
4631         * modules/fwritable (configure.ac): ... to here.
4632
4633 2011-05-07  Bruno Haible  <bruno@clisp.org>
4634
4635         futimens: Move AC_LIBOBJ invocations to module description.
4636         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4637         here...
4638         * modules/futimens (configure.ac): ... to here.
4639
4640 2011-05-07  Bruno Haible  <bruno@clisp.org>
4641
4642         ftruncate: Move AC_LIBOBJ invocations to module description.
4643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4644         gl_PREREQ_FTRUNCATE invocations from here...
4645         * modules/ftruncate (configure.ac): ... to here.
4646
4647 2011-05-07  Bruno Haible  <bruno@clisp.org>
4648
4649         fsync: Move AC_LIBOBJ invocations to module description.
4650         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4651         invocations from here...
4652         * modules/fsync (configure.ac): ... to here.
4653
4654 2011-05-07  Bruno Haible  <bruno@clisp.org>
4655
4656         fsusage: Move AC_LIBOBJ invocations to module description.
4657         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4658         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4659         * modules/fsusage (configure.ac): ... to here.
4660
4661 2011-05-07  Bruno Haible  <bruno@clisp.org>
4662
4663         freopen: Move AC_LIBOBJ invocations to module description.
4664         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4665         invocations from here...
4666         * modules/freopen (configure.ac): ... to here.
4667
4668 2011-05-07  Bruno Haible  <bruno@clisp.org>
4669
4670         free: Move AC_LIBOBJ invocations to module description.
4671         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4672         invocations from here...
4673         * modules/free (configure.ac): ... to here.
4674
4675 2011-05-07  Bruno Haible  <bruno@clisp.org>
4676
4677         freadable: Move AC_LIBOBJ invocations to module description.
4678         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4679         here...
4680         * modules/freadable (configure.ac): ... to here.
4681
4682 2011-05-07  Bruno Haible  <bruno@clisp.org>
4683
4684         fpurge: Move AC_LIBOBJ invocations to module description.
4685         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4686         invocations from here...
4687         * modules/fpurge (configure.ac): ... to here.
4688
4689 2011-05-07  Bruno Haible  <bruno@clisp.org>
4690
4691         fpending: Move AC_LIBOBJ invocations to module description.
4692         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4693         gl_FUNC_FPENDING.
4694         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4695         invocations from here...
4696         * modules/fpending (configure.ac): ... to here.
4697
4698 2011-05-07  Bruno Haible  <bruno@clisp.org>
4699
4700         fopen: Move AC_LIBOBJ invocations to module description.
4701         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4702         invocations from here...
4703         * modules/fopen (configure.ac): ... to here.
4704
4705 2011-05-07  Bruno Haible  <bruno@clisp.org>
4706
4707         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4708         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4709         gl_FUNC_FNMATCH_POSIX.
4710         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4711         invocations from here...
4712         * modules/fnmatch (configure.ac): ... to here.
4713         * modules/fnmatch-gnu (configure.ac): ... and here.
4714
4715 2011-05-07  Bruno Haible  <bruno@clisp.org>
4716
4717         flock: Move AC_LIBOBJ invocations to module description.
4718         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4719         invocations from here...
4720         * modules/flock (configure.ac): ... to here.
4721
4722 2011-05-07  Bruno Haible  <bruno@clisp.org>
4723
4724         fileblocks: Move AC_LIBOBJ invocations to module description.
4725         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4726         gl_PREREQ_FILEBLOCKS invocations from here...
4727         * modules/fileblocks (configure.ac): ... to here.
4728
4729 2011-05-06  Bruno Haible  <bruno@clisp.org>
4730
4731         fflush: Move AC_LIBOBJ invocations to module description.
4732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4733         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4734         invocations from here...
4735         * modules/fflush (configure.ac): ... to here.
4736
4737 2011-05-06  Bruno Haible  <bruno@clisp.org>
4738
4739         fdopendir: Move AC_LIBOBJ invocations to module description.
4740         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4741         here...
4742         * modules/fdopendir (configure.ac): ... to here.
4743         (Depends-on): Improve conditions.
4744
4745 2011-05-06  Bruno Haible  <bruno@clisp.org>
4746
4747         _Exit: Move AC_LIBOBJ invocations to module description.
4748         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4749         invocations from here...
4750         * modules/_Exit (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         euidaccess: Respect rules for use of AC_LIBOBJ.
4755         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4757         from here...
4758         * modules/euidaccess (configure.ac): ... to here.
4759
4760 2011-05-06  Bruno Haible  <bruno@clisp.org>
4761
4762         error: Move AC_LIBOBJ invocations to module description.
4763         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4764         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4765         invocations from here...
4766         * modules/error (configure.ac): ... to here.
4767
4768 2011-05-06  Bruno Haible  <bruno@clisp.org>
4769
4770         duplocale: Move AC_LIBOBJ invocations to module description.
4771         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4772         gl_PREREQ_DUPLOCALE invocations from here...
4773         * modules/duplocale (configure.ac): ... to here.
4774
4775 2011-05-05  Bruno Haible  <bruno@clisp.org>
4776
4777         dirfd: Move AC_LIBOBJ invocations to module description.
4778         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4779         gl_FUNC_DIRFD.
4780         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4781         here...
4782         * modules/dirfd (configure.ac): ... to here.
4783         (Depends-on): Fix condition.
4784
4785 2011-05-05  Bruno Haible  <bruno@clisp.org>
4786
4787         chown: Respect rules for use of AC_LIBOBJ.
4788         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4789         * modules/chown (configure.ac): ... to here.
4790
4791 2011-05-05  Bruno Haible  <bruno@clisp.org>
4792
4793         chdir-long: Move AC_LIBOBJ invocations to module description.
4794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4795         gl_PREREQ_CHDIR_LONG invocations from here...
4796         * modules/chdir-long (configure.ac): ... to here.
4797
4798 2011-05-05  Bruno Haible  <bruno@clisp.org>
4799
4800         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4801         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4802         from here...
4803         * modules/canonicalize-lgpl (configure.ac): ... to here.
4804
4805 2011-05-05  Bruno Haible  <bruno@clisp.org>
4806
4807         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4808         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4809         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4810         REPLACE_CALLOC.
4811         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4812         * modules/calloc-gnu (configure.ac): Likewise.
4813
4814 2011-05-05  Bruno Haible  <bruno@clisp.org>
4815
4816         btowc: Move AC_LIBOBJ invocations to module description.
4817         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4818         invocations from here...
4819         * modules/btowc (configure.ac): ... to here.
4820
4821 2011-05-21  Bruno Haible  <bruno@clisp.org>
4822
4823         atexit: Move AC_LIBOBJ invocations to module description.
4824         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4826         here...
4827         * modules/atexit (configure.ac): ... to here.
4828
4829 2011-05-05  Bruno Haible  <bruno@clisp.org>
4830
4831         atoll: Move AC_LIBOBJ invocations to module description.
4832         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4833         invocations from here...
4834         * modules/atoll (configure.ac): ... to here.
4835
4836 2011-05-05  Bruno Haible  <bruno@clisp.org>
4837
4838         argz: Move AC_LIBOBJ invocations to module description.
4839         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4840         * modules/argz (configure.ac): ... to here.
4841
4842 2011-05-05  Bruno Haible  <bruno@clisp.org>
4843
4844         alphasort: Move AC_LIBOBJ invocations to module description.
4845         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4846         gl_PREREQ_ALPHASORT invocations from here...
4847         * modules/alphasort (configure.ac): ... to here.
4848
4849 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         verify: new macro verify_expr; verify_true deprecated
4852         * NEWS: Mention this.
4853         * doc/verify.texi (Compile-time Assertions): Document this.
4854         * lib/verify.h (verify_true): Deprecate.
4855         (verify_expr): New macro.
4856         * tests/test-verify.c (function): Test verify_expr.
4857
4858 2011-06-14  Jim Meyering  <meyering@redhat.com>
4859
4860         init.sh: give more portable redirection-related advice in a comment
4861         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4862         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4863         for lots of discussion.  Stefano Lattarini suggested the solution
4864         of putting "9>&2" after the command.  Reported by Bruno Haible.
4865
4866 2011-06-13  Bruno Haible  <bruno@clisp.org>
4867
4868         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4870         'none'.
4871
4872 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         ftoastr: use strtof only if HAVE_STRTOF
4875         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4877         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4878         * modules/ftoastr (configure.ac): Check for strtof.
4879
4880 2011-06-13  Bruno Haible  <bruno@clisp.org>
4881
4882         gnulib-tool: Addendum to 2011-06-08 commit.
4883         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4884         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4885
4886 2011-06-13  Bruno Haible  <bruno@clisp.org>
4887
4888         fseeko: Provide a non-inline replacement of fseek().
4889         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4890         * modules/fseeko (Depends-on): Add fseek.
4891         * modules/fseek (License): Change to LGPLv2+.
4892
4893 2011-06-13  Bruno Haible  <bruno@clisp.org>
4894
4895         ftello: Provide a non-inline replacement of ftell().
4896         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4897         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4898         not have ftello() (such as on mingw).
4899         * modules/ftello (Depends-on): Add ftell.
4900         * modules/ftell (License): Change to LGPLv2+.
4901
4902 2011-05-07  Bruno Haible  <bruno@clisp.org>
4903
4904         ftell: Move AC_LIBOBJ invocations to module description.
4905         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4906         * modules/ftell (configure.ac): ... to here.
4907
4908 2011-05-07  Bruno Haible  <bruno@clisp.org>
4909
4910         ftello: Respect rules for use of AC_LIBOBJ.
4911         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4912         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4913         here...
4914         * modules/ftello (configure.ac): ... to here.
4915
4916 2011-05-07  Bruno Haible  <bruno@clisp.org>
4917
4918         fseeko: Simplify.
4919         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4920         (gl_FUNC_FSEEKO): Inline it here.
4921
4922 2011-05-07  Bruno Haible  <bruno@clisp.org>
4923
4924         fseek: Move AC_LIBOBJ invocations to module description.
4925         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4926         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4927         * modules/fseek (configure.ac): ... to here.
4928
4929 2011-05-07  Bruno Haible  <bruno@clisp.org>
4930
4931         fseek: Respect rules for use of AC_LIBOBJ.
4932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4933         here...
4934         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4935
4936 2011-05-07  Bruno Haible  <bruno@clisp.org>
4937
4938         fseeko: Respect rules for use of AC_LIBOBJ.
4939         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4940         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4941         here...
4942         * modules/fseeko (configure.ac): ... to here.
4943
4944 2011-06-13  Bruno Haible  <bruno@clisp.org>
4945
4946         gnulib-tool: Allow comments in the 'Depends-on' section.
4947         * doc/gnulib.texi (Module description): Mention comment syntax in the
4948         Depends-on section.
4949         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4950
4951 2011-06-13  Bruno Haible  <bruno@clisp.org>
4952
4953         file-set.h: guard __attibute__ use, now that it's not always defined
4954         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4955         versions that support it.  This fixes a coreutils build failure with
4956         the vendor cc on HP-UX 11.31.
4957
4958 2011-06-12  Bruno Haible  <bruno@clisp.org>
4959
4960         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4961         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4962         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4963         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4964         (acl, aclsort): New declarations.
4965         (aclv_nontrivial): New declaration.
4966         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4967         (file_has_acl): Read also the second kind of HP-UX ACLs.
4968         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4969         kind of HP-UX ACLs if the first kind fails.
4970         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4971         second kind of HP-UX ACLs.
4972         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4973         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4974         agree.
4975         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4976         hpuxjfs.
4977         Handle hpuxjfs.
4978         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4979         hpuxjfs.
4980         Handle hpuxjfs.
4981         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4982         (func_test_same_acls): Use both lsacl and getacl.
4983         Handle hpuxjfs.
4984         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4985         (func_test_same_acls): Use both lsacl and getacl.
4986         Handle hpuxjfs.
4987
4988 2011-06-12  Bruno Haible  <bruno@clisp.org>
4989
4990         acl: Complete the 2010-08-10 fix.
4991         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4992         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4993         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4994         explicitly.
4995         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4996         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4997
4998 2011-06-12  Bruno Haible  <bruno@clisp.org>
4999
5000         spawn-pipe tests: Comments.
5001         * tests/test-spawn-pipe-child.c (main): Update comment.
5002         Reported by James Youngman <jay@gnu.org>.
5003
5004 2011-06-11  James Youngman  <jay@gnu.org>
5005
5006         New module 'stat-size'.
5007         * modules/stat-size: New module.  Provides macros for accessing
5008         file size information in instances of struct stat.  Depends on the
5009         fileblocks module because it calls st_blocks.
5010         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5011         * doc/gnulib.texi: Include stat-size.texi.
5012         * doc/stat-size.texi: Documentation for this module.
5013         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5014         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5015         AC_STRUCT_ST_BLOCKS.
5016
5017 2011-06-09  Bruno Haible  <bruno@clisp.org>
5018
5019         thread: Support pthreads-win32.
5020         * lib/glthread/thread.h (gl_thread_self): Define differently on
5021         pthreads-win32.
5022         (gl_null_thread): New declaration.
5023         (gl_thread_self_pointer): New macro.
5024         * lib/glthread/thread.c (gl_null_thread): New constant.
5025         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5026         gl_thread_self.
5027         * tests/test-tls.c: Likewise.
5028         Suggested by Paul Eggert. Reported by Eric Blake.
5029
5030 2011-06-09  Bruno Haible  <bruno@clisp.org>
5031
5032         thread: Fix confusion between NULL and 0.
5033         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5034         Reported by Paul Eggert.
5035
5036 2011-06-09  Bruno Haible  <bruno@clisp.org>
5037
5038         spawn-pipe tests: Avoid test failure on HP-UX 11.
5039         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5040         is closed.
5041
5042 2011-06-09  Bruno Haible  <bruno@clisp.org>
5043
5044         acl tests: Fix compilation error on HP-UX 11.
5045         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5046
5047 2011-06-09  Bruno Haible  <bruno@clisp.org>
5048
5049         rmdir: Avoid test failure on HP-UX 10.20.
5050         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5051         EEXIST.
5052
5053 2011-06-08  Eric Blake  <eblake@redhat.com>
5054
5055         perror: fix test on mingw
5056         * modules/perror-tests (Depends-on): Add dup2.
5057
5058         strerror_r-posix: fix on MacOS
5059         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5060         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5061         logic bug.
5062         * lib/strerror_r.c (strerror_r): Fix the bug.
5063         * lib/strerror.c (strerror): Likewise.
5064         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5065         problem.
5066         * doc/posix-functions/strerror.texi (strerror): Likewise.
5067         * doc/posix-functions/perror.texi (perror): Likewise.
5068         * tests/test-strerror.c (main): Enhance test.
5069         * tests/test-strerror_r.c (main): Likewise.
5070
5071 2011-06-08  Bruno Haible  <bruno@clisp.org>
5072
5073         gnulib-tool: Better isolation between different gnulib-tool invocations.
5074         * gnulib-tool: New option --witness-c-macro.
5075         (witness_c_macro): New variable.
5076         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5077         AM_CPPFLAGS define it as a C macro.
5078         (func_emit_tests_Makefile_am): Likewise.
5079         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5080         read it from there.
5081         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5082         m4_define, not AC_DEFUN.
5083         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5084         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5085         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5086         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5087         s|...|...|, to substitute the values of the GNULIB_* module indicator
5088         variables.
5089         * modules/dirent (Makefile.am): Likewise.
5090         * modules/fcntl-h (Makefile.am): Likewise.
5091         * modules/iconv-h (Makefile.am): Likewise.
5092         * modules/langinfo (Makefile.am): Likewise.
5093         * modules/locale (Makefile.am): Likewise.
5094         * modules/math (Makefile.am): Likewise.
5095         * modules/netdb (Makefile.am): Likewise.
5096         * modules/poll-h (Makefile.am): Likewise.
5097         * modules/pty (Makefile.am): Likewise.
5098         * modules/search (Makefile.am): Likewise.
5099         * modules/signal (Makefile.am): Likewise.
5100         * modules/spawn (Makefile.am): Likewise.
5101         * modules/stdio (Makefile.am): Likewise.
5102         * modules/stdlib (Makefile.am): Likewise.
5103         * modules/string (Makefile.am): Likewise.
5104         * modules/sys_ioctl (Makefile.am): Likewise.
5105         * modules/sys_select (Makefile.am): Likewise.
5106         * modules/sys_socket (Makefile.am): Likewise.
5107         * modules/sys_stat (Makefile.am): Likewise.
5108         * modules/sys_times (Makefile.am): Likewise.
5109         * modules/sys_utsname (Makefile.am): Likewise.
5110         * modules/sys_wait (Makefile.am): Likewise.
5111         * modules/termios (Makefile.am): Likewise.
5112         * modules/time (Makefile.am): Likewise.
5113         * modules/unistd (Makefile.am): Likewise.
5114         * modules/wchar (Makefile.am): Likewise.
5115
5116 2011-06-08  Eric Blake  <eblake@redhat.com>
5117
5118         strerror: simplify replacement
5119         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5120         * modules/strerror (configure.ac): No prereqs needed here...
5121         * modules/strerror-override (configure.ac): ...but this needs it.
5122         (Files): Add file for needed prereq macro.
5123
5124 2011-06-08  Bruno Haible  <bruno@clisp.org>
5125
5126         strerror_r-posix: Tweaks.
5127         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5128         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5130         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5131         (gl_FUNC_STRERROR_R): ... to here.
5132         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5133
5134 2011-06-07  Eric Blake  <eblake@redhat.com>
5135
5136         perror: document fixed bugs
5137         * doc/posix-functions/perror.texi (perror): Document recent
5138         patches.
5139
5140 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5141
5142         stat-time: get_stat_birthtime failure is better-defined
5143         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5144         return a timestamp whose tv_sec and tv_nsec values are both -1.
5145         Previously, the spec said only that the tv_nsec value was negative.
5146         This upward-compatible change simplifies GNU tar a bit.
5147
5148 2011-06-07  Eric Blake  <eblake@redhat.com>
5149
5150         strerror_r-posix: work around cygwin 1.7.9
5151         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5152         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5153         bug without replacing strerror_r.
5154         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5155         strerror_r is buggy, but without requiring strerror_r compilation.
5156         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5157
5158         test-perror: relax test to ignore cygwin bug
5159         * tests/test-perror2.c (main): Relax test on requiring detection
5160         of stream errors, and use unbuffered stream.
5161         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5162         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5163         * doc/posix-functions/fputc.texi (fputc): Likewise.
5164         * doc/posix-functions/fputs.texi (fputs): Likewise.
5165         * doc/posix-functions/fputws.texi (fputws): Likewise.
5166         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5167         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5168         * doc/posix-functions/getopt.texi (getopt): Likewise.
5169         * doc/posix-functions/perror.texi (perror): Likewise.
5170         * doc/posix-functions/printf.texi (printf): Likewise.
5171         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5172         * doc/posix-functions/psignal.texi (psignal): Likewise.
5173         * doc/posix-functions/putc.texi (putc): Likewise.
5174         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5175         Likewise.
5176         * doc/posix-functions/putchar.texi (putchar): Likewise.
5177         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5178         Likewise.
5179         * doc/posix-functions/puts.texi (puts): Likewise.
5180         * doc/posix-functions/putwc.texi (putwc): Likewise.
5181         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5182         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5183         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5184         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5185         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5186         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5187         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5188         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5189
5190 2011-05-22  Bruno Haible  <bruno@clisp.org>
5191
5192         strerror: Move AC_LIBOBJ invocations to module description.
5193         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5194         gl_PREREQ_STRERROR invocations from here...
5195         * modules/strerror (configure.ac): ... to here.
5196
5197 2011-05-21  Bruno Haible  <bruno@clisp.org>
5198
5199         perror: Use common idiom.
5200         * modules/perror (configure.ac): Reorder statements.
5201
5202 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5203
5204         tests: fix usage message in 'mktempd_'
5205         * tests/init.sh (mktempd_): In the usage message, use literal
5206         'mktempd_', not '$ME' (which is even undefined), as the name of
5207         the subroutine.
5208
5209 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5210
5211         tests init: new function 'fatal_', for hard errors
5212         Before this patch, the only way offered by tests/init.sh to
5213         properly signal a hard error was the `framework_failure_'
5214         function.  But the error message issued by that function,
5215         as its name would suggest, refers to a set-up failure in the
5216         testsuite, while hard errors can obviously also be due to
5217         other reasons.  The best way to fix this inconsistency is to
5218         introduce a new function with a more general error message.
5219         * tests/init.sh (fatal_): New function.
5220
5221 2011-06-06  Eric Blake  <eblake@redhat.com>
5222
5223         canonicalize-lgpl: use common idiom
5224         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5225         over newer POSIX -Rf.
5226         Reported by Bruno Haible.
5227
5228         canonicalize-lgpl: work around AIX realpath bug
5229         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5230         * doc/posix-functions/realpath.texi (realpath): Document it.
5231         Reported by Bruno Haible.
5232
5233         strerror: work around FreeBSD bug
5234         * lib/strerror.c (strerror): Special case 0.
5235         Reported by Bruno Haible.
5236
5237         strerror-override: avoid bloating errno module
5238         * modules/errno (Files, configure.ac): Move replacement strings...
5239         * modules/strerror-override: ...to new module.
5240         * modules/strerror (Depends-on): Add strerror-override.
5241         * modules/strerror_r-posix (Depends-on): Likewise.
5242         * MODULES.html.sh: Document new module.
5243         Reported by Bruno Haible.
5244
5245 2011-06-06  Bruno Haible  <bruno@clisp.org>
5246
5247         spawn-pipe tests: Rename program.
5248         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5249         * tests/test-spawn-pipe-child.c: Update comment.
5250         * tests/test-spawn-pipe.sh: Update.
5251         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5252
5253         spawn-pipe tests: Link the child program only against libc.
5254         * tests/test-spawn-pipe-child.c: New file, extracted from
5255         tests/test-spawn-pipe.c.
5256         (main): Expect only one argument.
5257         (is_open): New function, copied from tests/test-pipe.c.
5258         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5259         (child_main): Remove function.
5260         (test_pipe): Pass only one argument to the child program.
5261         (main): Remove child process code. Expect the child program's name as
5262         first argument.
5263         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5264         argument.
5265         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5266         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5267         test-spawn-pipe-child against no libraries.
5268
5269 2011-06-06  Bruno Haible  <bruno@clisp.org>
5270
5271         careadlinkat: Avoid mismatch between ssize_t and int.
5272         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5273         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5274
5275 2011-06-06  Jim Meyering  <meyering@redhat.com>
5276
5277         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5278         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5279         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5280
5281 2011-06-05  Bruno Haible  <bruno@clisp.org>
5282
5283         ansi-c++-opt: Interoperability with libtool.
5284         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5285         set the variable to "no", not to ":".
5286         * NEWS: Mention the change.
5287
5288 2011-06-05  Bruno Haible  <bruno@clisp.org>
5289
5290         acl: Fix test failure on AIX 7.
5291         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5292         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5293
5294 2011-06-05  Bruno Haible  <bruno@clisp.org>
5295
5296         pipe-filter-ii: Fix test failure on AIX and IRIX.
5297         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5298         with EAGAIN, retry with a smaller buffer size.
5299
5300 2011-06-05  Bruno Haible  <bruno@clisp.org>
5301
5302         localename: Fix link dependencies.
5303         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5304         * modules/localename-tests (Makefile.am): Link test-localename with
5305         $(LIBTHREAD).
5306
5307 2011-06-05  Bruno Haible  <bruno@clisp.org>
5308
5309         error: Avoid gcc warning.
5310         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5311
5312 2011-06-05  Bruno Haible  <bruno@clisp.org>
5313
5314         unsetenv: Avoid gcc warning.
5315         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5316
5317 2011-06-05  Bruno Haible  <bruno@clisp.org>
5318
5319         setenv: Avoid gcc warning.
5320         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5321
5322 2011-06-05  Bruno Haible  <bruno@clisp.org>
5323
5324         sys_select: Ensure memset is declared also on AIX 7.
5325         * lib/sys_select.in.h: Include <string.h> also on AIX.
5326         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5327         self-contained also on AIX 7.1.
5328
5329 2011-06-04  Jim Meyering  <meyering@redhat.com>
5330
5331         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5332         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5333         function name, "error".
5334         (_gl_translatable_diag_func_re): New configurable variable.
5335
5336 2011-06-04  Bruno Haible  <bruno@clisp.org>
5337
5338         getopt: Avoid gcc warning.
5339         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5340
5341 2011-06-04  Bruno Haible  <bruno@clisp.org>
5342
5343         strerror_r: Fix comments.
5344         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5345         commit.
5346
5347 2011-06-04  Bruno Haible  <bruno@clisp.org>
5348
5349         perror: Fix compilation error.
5350         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5351         Undefine fprintf, not sprintf.
5352         * modules/perror (Depends-on): Remove intprops, verify.
5353
5354 2011-06-04  Bruno Haible  <bruno@clisp.org>
5355
5356         setlocale: Enable replacement on Cygwin 1.5.
5357         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5358         Cygwin 1.5.x.
5359         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5360         LC_CTYPE category also exists on Cygwin 1.5.x.
5361
5362 2011-06-04  Bruno Haible  <bruno@clisp.org>
5363
5364         strerror-override: Don't disable symbol renamings.
5365         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5366         * lib/strerror-override.c: Include config.h.
5367         (strerror_override): Don't undefine.
5368
5369 2011-06-03  Bruno Haible  <bruno@clisp.org>
5370
5371         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5372         * lib/localename.h: Update copyright header.
5373         * lib/localename.c: Likewise.
5374         * lib/relocatable.h: Likewise.
5375         * lib/relocatable.c: Likewise.
5376
5377 2011-06-02  Bruno Haible  <bruno@clisp.org>
5378
5379         doc: Fix a module name.
5380         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5381
5382 2011-06-02  Bruno Haible  <bruno@clisp.org>
5383
5384         pipe2: Remove dependency on 'nonblocking' module.
5385         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5386         O_NONBLOCK is defined by gnulib.
5387         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5388         is zero.
5389         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5390         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5391         defined by gnulib.
5392         (get_nonblocking_flag): New function.
5393         (main): Test O_NONBLOCK flag only if it is nonzero.
5394         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5395
5396 2011-06-03  Jim Meyering  <meyering@redhat.com>
5397
5398         maint: three new prohibit-header-without-use rules
5399         Prohibit use of cloexec.h, posixver.h, same.h without use.
5400         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5401         (sc_prohibit_posixver_without_use): Likewise.
5402         (sc_prohibit_same_without_use): Likewise.
5403
5404 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5405
5406         allocator: 'die' routine is now given requested size
5407         * lib/allocator.h (struct allocator.die): New size arg.
5408         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5409         If the actual problem is an ssize_t limitation, not a size_t or
5410         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5411
5412 2011-06-01  Eric Blake  <eblake@redhat.com>
5413
5414         strerror: drop strerror_r dependency
5415         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5416         * lib/strerror-override.c (strerror_override): ...to new file.
5417         * lib/strerror-override.h: Add prototype.
5418         * lib/strerror-impl.h: Delete.
5419         * lib/strerror.c (strerror): New implementation.
5420         * modules/errno (Files): Add new files.
5421         (configure.ac): Compile new file as appropriate.
5422         * modules/strerror (Files): Drop unused file.
5423         (Depends-on): Drop strerror_r-posix.
5424         * MODULES.html.sh: Document strerror_r-posix.
5425         Requested by Sam Steingold.
5426
5427         perror: call strerror_r directly
5428         * modules/perror (Files): Drop strerror-impl.h.
5429         * lib/perror.c (perror): Use our own stack buffer, rather than
5430         calling a wrapper that uses static storage.
5431         * doc/posix-functions/perror.texi (perror): Document a limitation
5432         of our replacement.
5433
5434         strerror_r: fix includes for FreeBSD
5435         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5436         since we use abort on some platforms.
5437         Reported by Matthias Bolte.
5438
5439 2011-05-31  Bruno Haible  <bruno@clisp.org>
5440
5441         Fix link errors in tests: openat-die uses gettext-h.
5442         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5443         against $(LIBINTL).
5444         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5445         against $(LIBINTL).
5446         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5447         $(LIBINTL).
5448         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5449         against $(LIBINTL).
5450         * modules/linkat-tests (Makefile.am): Link test-linkat against
5451         $(LIBINTL).
5452         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5453         $(LIBINTL).
5454         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5455         against $(LIBINTL).
5456         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5457         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5458         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5459         $(LIBINTL).
5460         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5461         $(LIBINTL).
5462         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5463         $(LIBINTL).
5464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5465
5466 2011-05-31  Bruno Haible  <bruno@clisp.org>
5467
5468         Fix link errors in tests: wait-process uses gettext-h.
5469         * modules/nonblocking-pipe-tests (Makefile.am): Set
5470         test_nonblocking_pipe_main_LDADD.
5471         * modules/nonblocking-socket-tests (Makefile.am): Link
5472         test-nonblocking-socket-main against $(LIBINTL).
5473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5474
5475 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5476
5477         assert-h: work around 'verify' incompatibility
5478         * lib/verify.h: Use @...@ directives, not ifdef.
5479         * modules/assert-h (assert.h): Implement the directives.
5480         (assert.h): Substitute the symbol-prefix more consistently.
5481
5482 2011-05-29  Jim Meyering  <meyering@redhat.com>
5483
5484         trim: remove three superfluous assignments
5485         * lib/trim.c (trim2): Remove three superfluous assignments
5486         and correct brace positioning.
5487
5488 2011-05-29  Bruno Haible  <bruno@clisp.org>
5489
5490         wctype-h: Avoid namespace pollution on Solaris 2.6.
5491         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5492         identifiers.
5493         * doc/posix-headers/wctype.texi: Mention the problem.
5494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5495
5496 2011-05-28  Jim Meyering  <meyering@redhat.com>
5497
5498         parse-datetime.y: accommodate -Wstrict-overflow
5499         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5500         placate -Wstrict-overflow.
5501
5502         trim: avoid a warning from -O2 -Wstrict-overflow
5503         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5504
5505 2011-05-29  Bruno Haible  <bruno@clisp.org>
5506
5507         gnulib-tool: Fix bug in yesterday's commit.
5508         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5509         twice.
5510
5511 2011-05-29  Bruno Haible  <bruno@clisp.org>
5512
5513         Allow multiple gnulib generated include files to be combined.
5514         * gnulib-tool (func_compute_include_guard_prefix): New function.
5515         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5516         ${gl_include_guard_prefix} references.
5517         (func_import, func_create_testdir): Invoke
5518         func_compute_include_guard_prefix.
5519         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5520         * lib/ctype.in.h: Likewise.
5521         * lib/dirent.in.h: Likewise.
5522         * lib/errno.in.h: Likewise.
5523         * lib/fcntl.in.h: Likewise.
5524         * lib/float.in.h: Likewise.
5525         * lib/getopt.in.h: Likewise.
5526         * lib/iconv.in.h: Likewise.
5527         * lib/langinfo.in.h: Likewise.
5528         * lib/locale.in.h: Likewise.
5529         * lib/math.in.h: Likewise.
5530         * lib/netdb.in.h: Likewise.
5531         * lib/netinet_in.in.h: Likewise.
5532         * lib/poll.in.h: Likewise.
5533         * lib/pthread.in.h: Likewise.
5534         * lib/pty.in.h: Likewise.
5535         * lib/sched.in.h: Likewise.
5536         * lib/se-selinux.in.h: Likewise.
5537         * lib/search.in.h: Likewise.
5538         * lib/signal.in.h: Likewise.
5539         * lib/spawn.in.h: Likewise.
5540         * lib/stdarg.in.h: Likewise.
5541         * lib/stddef.in.h: Likewise.
5542         * lib/stdint.in.h: Likewise.
5543         * lib/stdio.in.h: Likewise.
5544         * lib/stdlib.in.h: Likewise.
5545         * lib/string.in.h: Likewise.
5546         * lib/strings.in.h: Likewise.
5547         * lib/sys_file.in.h: Likewise.
5548         * lib/sys_ioctl.in.h: Likewise.
5549         * lib/sys_select.in.h: Likewise.
5550         * lib/sys_socket.in.h: Likewise.
5551         * lib/sys_stat.in.h: Likewise.
5552         * lib/sys_time.in.h: Likewise.
5553         * lib/sys_times.in.h: Likewise.
5554         * lib/sys_uio.in.h: Likewise.
5555         * lib/sys_utsname.in.h: Likewise.
5556         * lib/sys_wait.in.h: Likewise.
5557         * lib/sysexits.in.h: Likewise.
5558         * lib/termios.in.h: Likewise.
5559         * lib/time.in.h: Likewise.
5560         * lib/unistd.in.h: Likewise.
5561         * lib/wchar.in.h: Likewise.
5562         * lib/wctype.in.h: Likewise.
5563         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5564         * modules/ctype (Makefile.am): Likewise.
5565         * modules/dirent (Makefile.am): Likewise.
5566         * modules/errno (Makefile.am): Likewise.
5567         * modules/fcntl-h (Makefile.am): Likewise.
5568         * modules/float (Makefile.am): Likewise.
5569         * modules/getopt-posix (Makefile.am): Likewise.
5570         * modules/iconv-h (Makefile.am): Likewise.
5571         * modules/langinfo (Makefile.am): Likewise.
5572         * modules/locale (Makefile.am): Likewise.
5573         * modules/math (Makefile.am): Likewise.
5574         * modules/netdb (Makefile.am): Likewise.
5575         * modules/netinet_in (Makefile.am): Likewise.
5576         * modules/poll-h (Makefile.am): Likewise.
5577         * modules/pthread (Makefile.am): Likewise.
5578         * modules/pty (Makefile.am): Likewise.
5579         * modules/sched (Makefile.am): Likewise.
5580         * modules/search (Makefile.am): Likewise.
5581         * modules/selinux-h (Makefile.am): Likewise.
5582         * modules/signal (Makefile.am): Likewise.
5583         * modules/spawn (Makefile.am): Likewise.
5584         * modules/stdarg (Makefile.am): Likewise.
5585         * modules/stddef (Makefile.am): Likewise.
5586         * modules/stdint (Makefile.am): Likewise.
5587         * modules/stdio (Makefile.am): Likewise.
5588         * modules/stdlib (Makefile.am): Likewise.
5589         * modules/string (Makefile.am): Likewise.
5590         * modules/strings (Makefile.am): Likewise.
5591         * modules/sys_file (Makefile.am): Likewise.
5592         * modules/sys_ioctl (Makefile.am): Likewise.
5593         * modules/sys_select (Makefile.am): Likewise.
5594         * modules/sys_socket (Makefile.am): Likewise.
5595         * modules/sys_stat (Makefile.am): Likewise.
5596         * modules/sys_time (Makefile.am): Likewise.
5597         * modules/sys_times (Makefile.am): Likewise.
5598         * modules/sys_uio (Makefile.am): Likewise.
5599         * modules/sys_utsname (Makefile.am): Likewise.
5600         * modules/sys_wait (Makefile.am): Likewise.
5601         * modules/sysexits (Makefile.am): Likewise.
5602         * modules/termios (Makefile.am): Likewise.
5603         * modules/time (Makefile.am): Likewise.
5604         * modules/unistd (Makefile.am): Likewise.
5605         * modules/wchar (Makefile.am): Likewise.
5606         * modules/wctype-h (Makefile.am): Likewise.
5607         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5608
5609 2011-05-29  Bruno Haible  <bruno@clisp.org>
5610
5611         assert-h: Allow multiple gnulib generated replacements to coexist.
5612         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5613
5614 2011-05-29  Bruno Haible  <bruno@clisp.org>
5615
5616         argp: Allow coexistence with strerror_r-posix module.
5617         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5618         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5619         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5620         not the glibc signature.
5621
5622 2011-05-28  Bruno Haible  <bruno@clisp.org>
5623
5624         gnulib-tool: Alternative structure of testdirs, similar to --import.
5625         * gnulib-tool: New option --single-configure.
5626         (func_usage): Document it.
5627         (single_configure): New variable.
5628         (func_modules_transitive_closure_separately,
5629         func_modules_transitive_closure_separately,
5630         func_determine_use_libtests, func_modules_add_dummy_separately,
5631         func_modules_to_filelist_separately): New functions, extracted from
5632         func_import.
5633         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5634         (func_import): Use the new functions.
5635         (func_create_testdir): Set final_modules. Handle $single_configure =
5636         true case.
5637
5638 2011-05-28  Bruno Haible  <bruno@clisp.org>
5639
5640         getloadavg: Remove an unreliable safety check.
5641         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5642         getloadavg.c is in place.
5643         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5644         Reported by Sam Steingold <sds@gnu.org>.
5645
5646 2011-05-28  Bruno Haible  <bruno@clisp.org>
5647
5648         doc: Cleanup yet another file produced by texinfo.tex.
5649         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5650
5651 2011-05-28  Bruno Haible  <bruno@clisp.org>
5652
5653         Finish the conditional dependencies mechanism.
5654         * gnulib-tool: New option --no-conditional-dependencies.
5655         (func_usage): Document it. Don't mark --conditional-dependencies as
5656         experimental.
5657         (cond_dependencies): The possible values can now be true, false, empty.
5658         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5659         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5660         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5661
5662 2011-05-28  Bruno Haible  <bruno@clisp.org>
5663
5664         doc: Use a recent texinfo.tex.
5665         * doc/Makefile (tex_opts): New variable.
5666         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5667
5668 2011-05-28  Jim Meyering  <meyering@redhat.com>
5669
5670         intprops.h: adjust comment to match code change
5671         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5672         only once, it *may* have side effects.  Also fix an unrelated typo.
5673         (_GL_INT_SIGNED): Likewise.
5674
5675 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5676
5677         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5678
5679 2011-05-26  Bruno Haible  <bruno@clisp.org>
5680
5681         mbsrchr: Avoid collision with system function on Interix.
5682         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5683         Reported by Markus Duft <mduft@gentoo.org>.
5684
5685 2011-05-15  James Youngman  <jay@gnu.org>
5686
5687         getopt: for ambiguous options, enumerate the possibilities.
5688         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5689         the ambiguous options when an ambiguous prefix is given. This was
5690         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5691         glibc change was
5692         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5693
5694 2011-05-25  Eric Blake  <eblake@redhat.com>
5695
5696         getcwd: work around mingw bug
5697         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5698         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5699         Reported by Matthias Bolte.
5700
5701 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         test-intprops: disable -Wtype-limits diagnostics
5704         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5705         diagnostics.  Otherwise, the integer overflow macros generate many
5706         diagnostics.  Reported by Jim Meyering in
5707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5708
5709         intprops: shorten, to pacify gcc -Woverlength-strings
5710         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5711         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5712         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5713         likely to run afoul of C compiler limits for string constant lengths.
5714         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5715
5716 2011-05-24  Eric Blake  <eblake@redhat.com>
5717
5718         docs: document recently fixed glibc printf bug
5719         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5720         * doc/posix-functions/printf.texi (printf): Likewise.
5721         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5722         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5723
5724         closein-tests: convert to init.sh
5725         * modules/closein-tests (Files): Add init.sh
5726         * tests/test-closein.sh Use it.
5727
5728         yesno-tests: convert to init.sh
5729         * modules/yesno-tests (Files): Add init.sh.
5730         * tests/test-yesno.sh: Use it.
5731
5732         atexit-tests: ensure reliable exit status
5733         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5734         Reported by Bruno Haible.
5735
5736 2011-05-24  Bruno Haible  <bruno@clisp.org>
5737
5738         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5740         gl_PREREQ_STRERROR_R invocations from here...
5741         * modules/strerror_r-posix (configure.ac): ... to here.
5742
5743 2011-05-24  Eric Blake  <eblake@redhat.com>
5744
5745         strerror_r: fix missing header
5746         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5747
5748         strerror_r: fix AIX test failures
5749         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5750         ERANGE failure.
5751
5752         strerror_r: fix Solaris test failures
5753         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5754         failures.
5755         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5756
5757         strerror_r: enforce POSIX recommendations
5758         * lib/strerror_r.c (safe_copy): New helper method.
5759         (strerror_r): Guarantee a non-empty string.
5760         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5761         recent POSIX rulings and to match our strerror guarantees.
5762         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5763
5764 2011-05-24  Jim Meyering  <meyering@redhat.com>
5765
5766         test-perror2.c: avoid warning about unused variable
5767         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5768
5769 2011-05-24  Eric Blake  <eblake@redhat.com>
5770
5771         perror: avoid spurious test failure on HP-UX
5772         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5773
5774         tests: fix logic bug in init.sh
5775         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5776         shell.
5777
5778 2011-05-24  Jim Meyering  <meyering@redhat.com>
5779
5780         utimensat: do not reference an out-of-scope buffer
5781         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5782         declared in an inner scope, yet "times" would be dereferenced outside
5783         the scope in which "ts" was valid.
5784         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5785         of ts[2] "out/up", so that the use of aliased "times" (via
5786         "times = ts;") does not end up referencing an out-of-scope "ts"
5787
5788         opendir-safer.c: don't clobber errno; don't close negative FD
5789         * lib/opendir-safer.c (opendir_safer):
5790         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5791         file descriptor, and more importantly, don't clobber the
5792         offending errno value with EINVAL.  Before, upon failure
5793         of dup_safer, we would pass the negative file descriptor to
5794         fdopendir, which would clobber errno.
5795
5796 2011-05-23  Bruno Haible  <bruno@clisp.org>
5797
5798         idcache: Fix module description.
5799         * modules/idcache (Include): Set to "idcache.h".
5800
5801 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         gnulib-tool: fix portability problem with MacOS sed
5804         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5805         before the "}".  Problem reported by Leo in
5806         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5807         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5808         sed_extract_condition1, sed_extract_condition2.
5809
5810 2011-05-23  Bruno Haible  <bruno@clisp.org>
5811
5812         hash: Simplify autoconf macro.
5813         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5814
5815 2011-05-23  Bruno Haible  <bruno@clisp.org>
5816
5817         getugroups: Fix module description.
5818         * modules/getugroups (Include): Set to "getugroups.h".
5819
5820 2011-05-23  Bruno Haible  <bruno@clisp.org>
5821
5822         linkat: Simplify autoconf macro.
5823         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5824
5825 2011-05-23  Bruno Haible  <bruno@clisp.org>
5826             Eric Blake  <eblake@redhat.com>
5827
5828         linkat, renameat: Update dependencies.
5829         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5830         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5831         symlinkat.
5832
5833 2011-05-23  Jim Meyering  <meyering@redhat.com>
5834
5835         maint.mk: more tight_scope improvements
5836         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5837         (_gl_TS_headers): Define only in if-0'd block.
5838         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5839         sometimes we must *not* use it.  Adjust uses accordingly.
5840         (sc_tight_scope): Use much simpler grep-based test to determine
5841         whether we skip this rule.
5842
5843         maint.mk: generalize/improve the tight-scope rule
5844         * top/maint.mk: Emit a warning when the test is skipped.
5845         (_gl_TS_dir): Add $(srcdir)/ prefix.
5846         (_gl_TS_function_match): Simplify, rather than trying
5847         to enumerate common types.  Otherwise, it would fail to match an
5848         "extern unsigned char const *" declaration in idutils.
5849         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5850         a way to support use of that type of macro.
5851         (_gl_TS_var_match): Simplify regexp.
5852         (_gl_TS_obj_files): New configurable variable.
5853         (_gl_TS_headers): Likewise.
5854
5855 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5856
5857         verify: fix bug when gnulib <assert.h> is also included
5858         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5859         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5860         Perhaps there's a better way, but this fixes the immediate problem.
5861         Problem reported by Bruno Haible in
5862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5863
5864 2011-05-22  Bruno Haible  <bruno@clisp.org>
5865
5866         xgetcwd: Simplify autoconf macro.
5867         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5868
5869 2011-05-22  Bruno Haible  <bruno@clisp.org>
5870
5871         New module 'mktime-internal'.
5872         * modules/mktime-internal: New file.
5873         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5874         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5875         mktime_internal as a C macro if libc has __mktime_internal.
5876         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5877         conditions.
5878         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5879
5880 2011-05-22  Bruno Haible  <bruno@clisp.org>
5881
5882         timegm: Correct mktime replacement statements.
5883         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5884         defining mktime as a C macro. This completes a 2009-07-28 commit.
5885
5886 2011-05-22  Bruno Haible  <bruno@clisp.org>
5887
5888         timegm: Simplify autoconf macro.
5889         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5890
5891 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5892
5893         clock-time: change to LGPLv2+.
5894         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5895         BSD-like but we have no mark for that; this is good enough for now.
5896
5897 2011-05-21  Bruno Haible  <bruno@clisp.org>
5898
5899         strerror_r: Fix comments.
5900         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5901
5902 2011-05-21  Bruno Haible  <bruno@clisp.org>
5903
5904         relocatable-prog-wrapper: Fix possible link error.
5905         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5906         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5907         (gl_FUNC_SETENV): ... to here.
5908         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5909         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5910
5911 2011-05-21  Bruno Haible  <bruno@clisp.org>
5912
5913         relocatable-prog-wrapper: Assume strerror() exists.
5914         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5915         m4/strerror.m4.
5916         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5917         * lib/relocwrapper.c: Remove mention of strerror module.
5918         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5920         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5921         C macro.
5922
5923 2011-05-21  Bruno Haible  <bruno@clisp.org>
5924
5925         select: Simplify replacement idiom.
5926         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5927         Win32 platforms.
5928         * lib/sys_select.in.h (select): Simplify accordingly.
5929         * modules/select (Depends-on): Likewise.
5930
5931 2011-05-21  Bruno Haible  <bruno@clisp.org>
5932
5933         mkdir-p: Simplify autoconf macro.
5934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5935         gl_FUNC_LCHOWN.
5936
5937 2011-05-21  Eric Blake  <eblake@redhat.com>
5938
5939         strerror_r: avoid clobbering strerror on cygwin
5940         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5941         fall back instead to sys_errlist.
5942         * modules/strerror (configure.ac): Add witness.
5943         * tests/test-strerror_r.c (main): Enhance test.
5944         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5945         * tests/test-perror2.c (main): Free memory before exit.
5946
5947 2011-05-21  Bruno Haible  <bruno@clisp.org>
5948
5949         mkdtemp: Use gnulib naming conventions.
5950         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5951         * modules/mkdtemp (configure.ac): Update.
5952
5953 2011-05-20  Eric Blake  <eblake@redhat.com>
5954
5955         strerror_r: avoid corrupting errno on Solaris
5956         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5957         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5958
5959         strerror_r: avoid compiler warning
5960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5961
5962         strerror_r: simplify AIX code
5963         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5964
5965         test-perror: avoid spurious failure on FreeBSD
5966         * modules/perror-tests (Depends-on): Add strerror, now that
5967         strerror_r no longer pulls it in.
5968
5969 2011-05-20  Bruno Haible  <bruno@clisp.org>
5970
5971         strerror_r-posix: Remove unused dependencies.
5972         * modules/strerror_r-posix (Depends-on): Remove strerror.
5973         Reported by Eric Blake.
5974
5975 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         intprops: remove assumption about A|B representation
5978         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5979         is a valid integer if both A and B are.  Although this is true for
5980         all known practical hosts, the C standard doesn't guarantee it,
5981         and the code need not assume it.  Also, this change may work around
5982         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5984
5985 2011-05-20  Eric Blake  <eblake@redhat.com>
5986
5987         perror: work around FreeBSD bug
5988         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5989         is broken.  Move AC_LIBOBJ...
5990         * modules/perror (configure.ac): Here.
5991         * doc/posix-functions/perror.texi (perror): Document this.
5992         * tests/test-perror2.c (main): Enhance test.
5993
5994         test-perror: check for strerror interactions
5995         * tests/macros.h (STREQ): Add macro.
5996         * modules/perror-tests (Files): Add second test.
5997         * tests/test-perror2.c (main): New file.
5998         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5999
6000         test-perror: rewrite to use init script
6001         * modules/perror-tests (Files): Add init.sh.
6002         * tests/test-perror.sh: Use temporary directory.
6003
6004 2011-05-20  Jim Meyering  <meyering@redhat.com>
6005
6006         maint: replace misused "a" with "an"
6007         * doc/intprops.texi: "a integer"
6008         * doc/regex.texi: "a explanation"
6009         * lib/alignof.h: "a object"
6010         * lib/argmatch.h: "a explanation"
6011         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6012         * lib/stdint.in.h: "a integer"
6013         * lib/userspec.c: "a owner"
6014         * doc/gnulib.texi: Fix "a idea", and reword.
6015
6016 2011-05-19  Jim Meyering  <meyering@redhat.com>
6017
6018         maint: correct misuse of "a" and "an"
6019         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6020         * lib/argp-help.c: "an docum...": s/an/a/
6021         * lib/argp-parse.c: "An vector": s/An/A/
6022         * lib/execute.c: "an native": s/an/a/
6023         * lib/spawn-pipe.c: Likewise.
6024         * lib/gc.h: "an Gc_rc": s/an/a/
6025         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6026         * lib/fts.c: "an stat.st_dev": s/an/a/
6027
6028 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6029
6030         intprops-tests: work around HP-UX 11.23 cc bug with constants
6031         * tests/test-intprops.c (VERIFY): New macro.
6032         (main): Use it, instead of verify, to work around the compiler bug; see
6033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6034
6035         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6036         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6037         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6038         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6039         (_GL_REMAINDER_OVERFLOW): Use it.
6040
6041         intprops-tests: revert unsigned part of previous change
6042         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6043         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6044         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6046
6047 2011-05-19  Bruno Haible  <bruno@clisp.org>
6048
6049         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6050         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6051         strerror_r() returned without filling the buffer.
6052         Reported by Eric Blake.
6053
6054 2011-05-19  Eric Blake  <eblake@redhat.com>
6055
6056         strerror_r: guarantee unchanged errno
6057         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6058         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6059         failure.
6060         * tests/test-strerror_r.c (main): Enhance test.
6061
6062 2011-05-19  Bruno Haible  <bruno@clisp.org>
6063
6064         strerror_r: Reorder #if blocks.
6065         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6066         for consistency with the previous commit.
6067
6068 2011-05-19  Bruno Haible  <bruno@clisp.org>
6069
6070         perror: Avoid clobbering the strerror buffer when possible.
6071         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6072         * lib/strerror.c: Include it.
6073         * modules/strerror (Files): Add lib/strerror-impl.h.
6074         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6075         (my_strerror): New function, defined through lib/strerror-impl.h.
6076         (perror): Use it instead of strerror.
6077         * modules/perror (Files): Add lib/strerror-impl.h.
6078         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6079
6080 2011-05-19  Eric Blake  <eblake@redhat.com>
6081
6082         strerror_r: fix on newer cygwin
6083         * lib/strerror_r.c (strerror_r): Cygwin now has
6084         __xpg_strerror_r, use it.
6085
6086 2011-05-19  Bruno Haible  <bruno@clisp.org>
6087
6088         strerror_r: Avoid clobbering the strerror buffer when possible.
6089         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6090         (sys_nerr, sys_errlist): New declarations.
6091         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6092         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6093         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6094
6095 2011-05-19  Bruno Haible  <bruno@clisp.org>
6096
6097         strerror_r: Fix test failure on mingw.
6098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6099         EXTEND_STRERROR_R.
6100         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6101         macros from errno.in.h instead.
6102
6103 2011-05-19  Eric Blake  <eblake@redhat.com>
6104
6105         strerror: relax test for Solaris
6106         * tests/test-strerror.c (main): Permit Solaris behavior.
6107         * tests/test-strerror_r.c (main): Likewise.
6108
6109         strerror: enforce POSIX ruling on strerror(0)
6110         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6112         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6113         * doc/posix-functions/strerror.texi (strerror): Document it.
6114         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6115         * tests/test-strerror.c (main): Strengthen test.
6116         * tests/test-strerror_r.c (main): Likewise.
6117
6118 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6119
6120         intprop-tests: port to older and more-pedantic compilers
6121         * modules/intprops-tests (Files): Add tests/macros.h.
6122         * tests/test-intprops.c: Include macros.h.
6123         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6124         it's no longer documented to expand to an integer constant expression.
6125         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6126         argument is floating point, as it's no longer documented to expand
6127         to an integer constant expression in that case.
6128         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6129         compiler bugs reported by Bruno Haible.  See
6130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6131         (U0, U1): New constants, to work around the same bugs.  Also,
6132         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6133
6134         intprops: work around C compiler bugs
6135         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6136         bug in Sun C 5.11 2010/08/13 and other compilers; see
6137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6138
6139         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6140         * doc/intprops.texi (Integer Type Determination): Fix
6141         documentation for TYPE_IS_INTEGER: it returns an constant
6142         expression, not an integer constant expression.  Fix doc for
6143         TYPE_SIGNED: it returns an integer constant expression only if its
6144         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6145         hardly worth documented that way....)
6146
6147 2011-05-18  Bruno Haible  <bruno@clisp.org>
6148
6149         strerror_r: Avoid clobbering the strerror buffer when possible.
6150         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6151         Handle gnulib defined errno values here. When strerror() returns NULL
6152         or an empty string, return EINVAL.
6153         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6154         gnulib defined errno values here.
6155         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6156
6157 2011-05-18  Eric Blake  <eblake@redhat.com>
6158
6159         fnmatch: avoid compiler warning
6160         * lib/fnmatch_loop.c (FCT): Use correct type.
6161         Reported by Matthias Bolte.
6162
6163 2011-05-13  Jim Meyering  <meyering@redhat.com>
6164
6165         maint.mk: three new prohibit_<HDR>_without_use rules
6166         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6167         (sc_prohibit_stdio-safer_without_use): Likewise.
6168         (sc_prohibit_xfreopen_without_use): Likewise.
6169
6170 2011-05-17  Jim Meyering  <meyering@redhat.com>
6171
6172         announce-gen: fail if the NEWS delta is empty
6173         If there's nothing noteworthy in NEWS, then either you forgot
6174         or you shouldn't be releasing.
6175         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6176
6177 2011-05-17  Pádraig Brady <P@draigBrady.com>
6178
6179         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6180         reserved symbols starting with double underscore from the check.
6181
6182 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6183
6184         intprops: add doc
6185         * doc/intprops.texi: New file, documenting intprops.
6186         * doc/gnulib.texi (Particular Modules): Include it.
6187
6188         verify: add doc to gnulib manual and fix example
6189         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6190         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6191         (Compile-time Assertions): Fix example so it can't overflow.
6192
6193 2011-05-17  Jim Meyering  <meyering@redhat.com>
6194
6195         warnings.m4: don't usurp save_CPPFLAGS variable name
6196         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6197
6198         doc: fix typo
6199         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6200
6201 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6202             Bruno Haible  <bruno@clisp.org>
6203
6204         doc: Tweak recent change.
6205         * README (Portability guidelines): Tweak new text.
6206         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6207         Interix 6.1.
6208
6209 2011-05-16  Eric Blake  <eblake@redhat.com>
6210
6211         inttypes: avoid autoconf warning
6212         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6213         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6214
6215 2011-05-16  Sam Steingold <sds@gnu.org>
6216         and Eric Blake  <eblake@redhat.com>
6217
6218         vc-list-files: accept multiple directory operands
6219         * build-aux/vc-list-files: Iterate over all remaining operands.
6220
6221 2011-05-16  Bruno Haible  <bruno@clisp.org>
6222
6223         Fix confusion regarding deprecated modules.
6224         * modules/calloc (Status, Notice): Mark module as deprecated, not
6225         obsolete.
6226         * modules/fnmatch-posix (Status, Notice): Likewise.
6227         * modules/getdate (Status, Notice): Likewise.
6228         * modules/getopt (Status, Notice): Likewise.
6229         * modules/malloc (Status, Notice): Likewise.
6230         * modules/pipe (Status, Notice): Likewise.
6231         * modules/realloc (Status, Notice): Likewise.
6232         * modules/rename-dest-slash (Status, Notice): Likewise.
6233         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6234         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6235         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6236         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6237         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6238
6239 2011-05-16  Bruno Haible  <bruno@clisp.org>
6240
6241         doc: List the target platforms.
6242         * doc/gnulib-intro.texi (Target Platforms): New section.
6243         * doc/gnulib.texi (Introduction): Update menu.
6244         * README (Portability guidelines): Refer to the new section. Update
6245         statement about oldest supported environment. Remove rationale why
6246         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6247         unportable C89 function.
6248         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6249         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6250
6251 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6254
6255 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         intprops-tests: new module
6258         * modules/intprops-tests, tests/test-intprops.c: New files.
6259
6260         intprops: add safe, portable integer overflow checking
6261         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6262         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6263         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6264         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6265         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6266         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6267         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6268         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6269         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6270         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6271         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6272
6273 2011-05-12  James Youngman  <jay@gnu.org>
6274
6275         Add a test for glibc's Bugzilla bug #12378.
6276         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6277         doesn't allow the literal matching of a lone "[" (which is
6278         required by POSIX).
6279         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6280
6281 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6282
6283         Sync glibc change fixing Bugzilla bug #12378.
6284         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6285         beginning and fall back to matching as normal character if the
6286         string ends before the matching ']' is found.  This is what POSIX
6287         requires.
6288
6289 2011-05-13  Eric Blake  <eblake@redhat.com>
6290
6291         getcwd-lgpl: relax test for FreeBSD
6292         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6293         issue.
6294         * tests/test-getcwd-lgpl.c (main): Relax test.
6295         Reported by Matthias Bolte.
6296
6297 2011-05-11  Eric Blake  <eblake@redhat.com>
6298
6299         test-fflush: silence compiler warning
6300         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6301
6302 2011-05-11  Bruno Haible  <bruno@clisp.org>
6303
6304         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6305         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6306         * modules/canonicalize (Depends-on): Add 'nocrash'.
6307         * modules/canonicalize-lgpl (Depends-on): Likewise.
6308         * doc/posix-functions/realpath.texi: Update platforms list.
6309         Reported by Ryan Schmidt <ryandesign@macports.org>.
6310
6311 2011-05-11  Bruno Haible  <bruno@clisp.org>
6312
6313         group-member: Declare function in <unistd.h>.
6314         * lib/unistd.in.h (group_member): New declaration.
6315         * lib/group-member.h: Remove file.
6316         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6317         * tests/test-unistd-c++.cc: Check signature of group_member.
6318         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6319         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6320         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6321         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6322         HAVE_GROUP_MEMBER.
6323         * modules/group-member (Files): Remove lib/group-member.h.
6324         (Depends-on): Add unistd. Specify conditions.
6325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6326         (Include): Change to <unistd.h>.
6327         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6328         HAVE_GROUP_MEMBER.
6329         * NEWS: Mention the change.
6330         * lib/euidaccess.c: Don't include group-member.h.
6331
6332 2011-05-11  Bruno Haible  <bruno@clisp.org>
6333
6334         group-member: Document module.
6335         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6336         module.
6337
6338 2011-05-11  Bruno Haible  <bruno@clisp.org>
6339
6340         fclose: Fix mistake earlier today.
6341         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6342
6343 2011-05-11  Eric Blake  <eblake@redhat.com>
6344
6345         fclose: preserve fflush errors
6346         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6347         Reported by Jim Meyering.
6348
6349         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6350         * build-aux/bootstrap (check_versions): When no specific version
6351         is required, merely check that the app produces an exit status
6352         that indicates its existence.
6353
6354         maint.mk: drop redundant check
6355         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6356         the same but better.
6357
6358 2011-05-11  Bruno Haible  <bruno@clisp.org>
6359
6360         fclose: Fix possible link error.
6361         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6362         unregister_shadow_fd. Improve comments.
6363         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6364         Eric Blake.
6365
6366 2011-05-11  Jim Meyering  <meyering@redhat.com>
6367
6368         maint.mk: improve "can not" detection and generalize rule name
6369         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6370         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6371         Use the same technique as in sc_prohibit_doubled_word, so that
6372         we recognize "can not" also when the words are separated by a newline.
6373         Suggested by Eric Blake.
6374         (perl_filename_lineno_text_): Define.  Factored out of...
6375         (prohibit_doubled_word_): ...here.  Use the new definition.
6376         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6377         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6378         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6379
6380 2011-05-10  Eric Blake  <eblake@redhat.com>
6381
6382         fclose: avoid double close race when possible
6383         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6384         all but WINDOWS_SOCKETS.
6385
6386 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6387
6388         openat: correct new comment
6389         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6390
6391 2011-05-10  Jim Meyering  <meyering@redhat.com>
6392
6393         openat: add comments
6394         * lib/openat-proc.c (openat_proc_name): Add comments,
6395         mostly from Eric Blake.
6396
6397 2011-05-09  Eric Blake  <eblake@redhat.com>
6398
6399         openat: reduce syscalls in first probe of /proc
6400         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6401         be a directory.  Simplify the probe for .. bugs.
6402         * modules/openat (Depends-on): Drop same-inode.
6403         Reported by Bastien ROUCARIES.
6404
6405 2011-05-09  Jim Meyering  <meyering@redhat.com>
6406
6407         maint.mk: change semantics/name of tight_scope variables
6408         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6409         Rename variables to align with semantics that make them more useful.
6410
6411         maint.mk: tweak new rule's name not to impinge
6412         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6413         (sc_tight_scope): Use new rule name rather than $@-0.
6414
6415         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6416         * top/maint.mk (sc_tight_scope): New rule.
6417         (sc_tight_scope-0): New rule, ifdef'd out.
6418         (_gl_TS_dir): Default.
6419         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6420         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6421
6422 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6423
6424         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6425         Haible <bruno@clisp.org>.
6426
6427 2011-05-08  Bruno Haible  <bruno@clisp.org>
6428
6429         Comments.
6430         * m4/isnanf.m4: Add comment.
6431         * m4/isnanl.m4: Likewise.
6432
6433 2011-05-08  Bruno Haible  <bruno@clisp.org>
6434
6435         glob: Remove obsolete macro.
6436         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6437
6438 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6439
6440         intprops: Sun C 5.11 supports __typeof__
6441         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6442         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6443         which is new.
6444         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6445
6446         intprops: switch to usual gnulib indenting and naming
6447         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6448         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6449
6450         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6451
6452 2011-05-08  Jim Meyering  <meyering@redhat.com>
6453
6454         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6455         * top/maint.mk (release-prep): Use make's --no-print-directory
6456         option when generating the announcement.  This eliminates the
6457         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6458         generated announcement template.
6459
6460 2011-05-08  Bruno Haible  <bruno@clisp.org>
6461
6462         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6463         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6464         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6465
6466 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6467
6468         ignore-value, verify: Omit include files from lib_SOURCES.
6469         * modules/ignore-value, modules/verify (Makefile.am):
6470         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6471         that leads Automake to duplicate use of am__objects_... variables
6472         in Makefile.in.  See
6473         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6474
6475 2011-05-07  Bruno Haible  <bruno@clisp.org>
6476
6477         fclose: Simplify autoconf macro.
6478         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6479         defined.
6480
6481 2011-05-07  Bruno Haible  <bruno@clisp.org>
6482
6483         canonicalize-lgpl: Fix autoconf macro ordering bug.
6484         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6485         gl_STDLIB_H_DEFAULTS.
6486
6487 2011-05-06  Eric Blake  <eblake@redhat.com>
6488
6489         maintainer-makefile: make sc_po_check easier to tune
6490         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6491         to probe for strings, such as an alternate location for gnulib.
6492
6493         fclose: guarantee behavior on seekable stdin
6494         * modules/fclose (Depends-on): Add fflush.
6495         * doc/posix-functions/fclose.texi (fclose): Document this.
6496         * tests/test-fclose.c (main): Make test for this unconditional.
6497
6498 2011-05-06  Bruno Haible  <bruno@clisp.org>
6499
6500         fflush, fpurge: Relicense under LGPLv2+.
6501         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6502         * modules/fpurge (License): Likewise.
6503         With permission from Eric Blake and Jim Meyering.
6504         Suggested by Eric Blake.
6505
6506 2011-05-06  Karl Berry  <karl@gnu.org>
6507
6508         * MODULES.html.sh (func_all_modules): remove exit.
6509
6510 2011-05-06  Jim Meyering  <meyering@redhat.com>
6511
6512         maint.mk: use info-gnu@ as the default only for a stable release
6513         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6514         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6515         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6516         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6517
6518 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6519
6520         assert-h: new module, which supports C1X-style static_assert
6521         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6522         * lib/verify.h: Revamp so that this can be copied into assert.h,
6523         while retaining the ability to use it standalone as before.
6524         Rename private identifiers so as not to encroach on the
6525         standard C namespace, since this is now used by assert.h.
6526         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6527         the old verify_true.
6528         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6529         the old verify_true.  Use _GL_VERIFY_TYPE.
6530         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6531         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6532         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6533         defined when this file is copied into the replacement assert.h.
6534         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6535         and _Static_assert is not built in.
6536         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6537         defined, and use the new macros mentioned above.
6538         * doc/posix-headers/assert.texi: Document this.
6539
6540 2011-05-05  Bruno Haible  <bruno@clisp.org>
6541
6542         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6543         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6544         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6545         gl_REPLACE_FCLOSE here.
6546         * modules/fflush (Depends-on): Remove fclose.
6547         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6548         combination with module 'fclose'.
6549
6550 2011-05-05  Bruno Haible  <bruno@clisp.org>
6551
6552         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6553         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6554         gl_FUNC_FFLUSH.
6555         (gl_FUNC_FFLUSH): Use it.
6556         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6558         gl_REPLACE_FSEEKO here.
6559
6560 2011-05-05  Bruno Haible  <bruno@clisp.org>
6561
6562         tzset: Relicense under LGPL.
6563         * modules/tzset (License): Change to LGPL.
6564         No agreement needed; it's a no-op.
6565
6566         strtoimax, strtoumax: Relicense under LGPL.
6567         * modules/strtoimax (License): Change to LGPL.
6568         * modules/strtoumax (License): Likewise.
6569         With permission from Jim Meyering, Paul Eggert:
6570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6572
6573         getgroups: Relicense under LGPL.
6574         * modules/getgroups (License): Change to LGPL.
6575         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6579
6580         nanosleep: Relicense under LGPL.
6581         * modules/nanosleep (License): Change to LGPL.
6582         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6583         Haible:
6584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6588
6589         futimens: Relicense under LGPL.
6590         * modules/futimens (License): Change to LGPL.
6591         With permission from Eric Blake:
6592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6593
6594         fflush: Relicense under LGPL.
6595         * modules/fflush (License): Change to LGPL.
6596         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6600
6601         tmpfile: Relicense under LGPL.
6602         * modules/tmpfile (License): Change to LGPL.
6603         With permission from Ben Pfaff:
6604         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6605
6606         isfinite: Relicense under LGPL.
6607         * modules/isfinite (License): Change to LGPL.
6608         With permission from Ben Pfaff, Bruno Haible:
6609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6611
6612         acosl..tanl: Relicense under LGPL.
6613         * modules/acosl (License): Change to LGPL.
6614         * modules/asinl (License): Likewise.
6615         * modules/atanl (License): Likewise.
6616         * modules/cosl (License): Likewise.
6617         * modules/expl (License): Likewise.
6618         * modules/logl (License): Likewise.
6619         * modules/sinl (License): Likewise.
6620         * modules/sqrtl (License): Likewise.
6621         * modules/tanl (License): Likewise.
6622         Source code originally from glibc and Paolo Bonzini. Agreements:
6623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6625
6626 2011-05-05  Bruno Haible  <bruno@clisp.org>
6627
6628         signal: Define sighandler_t.
6629         * lib/signal.in.h (sighandler_t): New type.
6630         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6631         whether sighandler_t is defined.
6632         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6633         * modules/signal (Depends-on): Add extensions.
6634         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6635         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6636         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6637
6638 2011-05-05  Eric Blake  <eblake@redhat.com>
6639
6640         maint: remove useless REPLACE_*_H macros
6641         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6642         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6643         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6644         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6645         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6646         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6647         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6648         * m4/btowc.m4: Update callers.
6649         * m4/dirfd.m4: Likewise.
6650         * m4/duplocale.m4: Likewise.
6651         * m4/fchdir.m4: Likewise.
6652         * m4/fdopendir.m4: Likewise.
6653         * m4/inet_ntop.m4: Likewise.
6654         * m4/inet_pton.m4: Likewise.
6655         * m4/ioctl.m4: Likewise.
6656         * m4/mbrlen.m4: Likewise.
6657         * m4/mbrtowc.m4: Likewise.
6658         * m4/mbsinit.m4: Likewise.
6659         * m4/mbsnrtowcs.m4: Likewise.
6660         * m4/mbsrtowcs.m4: Likewise.
6661         * m4/poll.m4: Likewise.
6662         * m4/setlocale.m4: Likewise.
6663         * m4/wcrtomb.m4: Likewise.
6664         * m4/wcsnrtombs.m4: Likewise.
6665         * m4/wcsrtombs.m4: Likewise.
6666         * m4/wctob.m4: Likewise.
6667         * m4/wcwidth.m4: Likewise.
6668         * modules/posix_spawn: Likewise.
6669         * modules/posix_spawn_file_actions_addclose: Likewise.
6670         * modules/posix_spawn_file_actions_adddup2: Likewise.
6671         * modules/posix_spawn_file_actions_addopen: Likewise.
6672         * modules/posix_spawn_file_actions_destroy: Likewise.
6673         * modules/posix_spawn_file_actions_init: Likewise.
6674         * modules/posix_spawnattr_destroy: Likewise.
6675         * modules/posix_spawnattr_getflags: Likewise.
6676         * modules/posix_spawnattr_getpgroup: Likewise.
6677         * modules/posix_spawnattr_getschedparam: Likewise.
6678         * modules/posix_spawnattr_getschedpolicy: Likewise.
6679         * modules/posix_spawnattr_getsigdefault: Likewise.
6680         * modules/posix_spawnattr_getsigmask: Likewise.
6681         * modules/posix_spawnattr_init: Likewise.
6682         * modules/posix_spawnattr_setflags: Likewise.
6683         * modules/posix_spawnattr_setpgroup: Likewise.
6684         * modules/posix_spawnattr_setschedparam: Likewise.
6685         * modules/posix_spawnattr_setschedpolicy: Likewise.
6686         * modules/posix_spawnattr_setsigdefault: Likewise.
6687         * modules/posix_spawnattr_setsigmask: Likewise.
6688         * modules/posix_spawnp: Likewise.
6689
6690 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6691
6692         Add option to do-release-commit-and-tag to specify branch.
6693         * build-aux/do-release-commit-and-tag: Add --branch.
6694
6695 2011-05-03  Bruno Haible  <bruno@clisp.org>
6696
6697         Avoid unnecessary compilation units, through conditional dependencies.
6698         * modules/accept (Depends-on): Add conditions to the dependencies.
6699         * modules/acosl (Depends-on): Likewise.
6700         * modules/argz (Depends-on): Likewise.
6701         * modules/asinl (Depends-on): Likewise.
6702         * modules/atanl (Depends-on): Likewise.
6703         * modules/atoll (Depends-on): Likewise.
6704         * modules/bind (Depends-on): Likewise.
6705         * modules/btowc (Depends-on): Likewise.
6706         * modules/canonicalize-lgpl (Depends-on): Likewise.
6707         * modules/ceil (Depends-on): Likewise.
6708         * modules/ceilf (Depends-on): Likewise.
6709         * modules/ceill (Depends-on): Likewise.
6710         * modules/chdir-long (Depends-on): Likewise.
6711         * modules/chown (Depends-on): Likewise.
6712         * modules/close (Depends-on): Likewise.
6713         * modules/connect (Depends-on): Likewise.
6714         * modules/cosl (Depends-on): Likewise.
6715         * modules/dirfd (Depends-on): Likewise.
6716         * modules/dprintf (Depends-on): Likewise.
6717         * modules/dprintf-posix (Depends-on): Likewise.
6718         * modules/error (Depends-on): Likewise.
6719         * modules/euidaccess (Depends-on): Likewise.
6720         * modules/expl (Depends-on): Likewise.
6721         * modules/faccessat (Depends-on): Likewise.
6722         * modules/fchdir (Depends-on): Likewise.
6723         * modules/fclose (Depends-on): Likewise.
6724         * modules/fcntl (Depends-on): Likewise.
6725         * modules/fdopendir (Depends-on): Likewise.
6726         * modules/fflush (Depends-on): Likewise.
6727         * modules/floor (Depends-on): Likewise.
6728         * modules/floorf (Depends-on): Likewise.
6729         * modules/floorl (Depends-on): Likewise.
6730         * modules/fnmatch (Depends-on): Likewise.
6731         * modules/fopen (Depends-on): Likewise.
6732         * modules/fprintf-posix (Depends-on): Likewise.
6733         * modules/frexp (Depends-on): Likewise.
6734         * modules/frexp-nolibm (Depends-on): Likewise.
6735         * modules/frexpl (Depends-on): Likewise.
6736         * modules/frexpl-nolibm (Depends-on): Likewise.
6737         * modules/fseek (Depends-on): Likewise.
6738         * modules/fsusage (Depends-on): Likewise.
6739         * modules/ftell (Depends-on): Likewise.
6740         * modules/ftello (Depends-on): Likewise.
6741         * modules/futimens (Depends-on): Likewise.
6742         * modules/getcwd (Depends-on): Likewise.
6743         * modules/getcwd-lgpl (Depends-on): Likewise.
6744         * modules/getdelim (Depends-on): Likewise.
6745         * modules/getdomainname (Depends-on): Likewise.
6746         * modules/getgroups (Depends-on): Likewise.
6747         * modules/gethostname (Depends-on): Likewise.
6748         * modules/getline (Depends-on): Likewise.
6749         * modules/getlogin_r (Depends-on): Likewise.
6750         * modules/getopt-posix (Depends-on): Likewise.
6751         * modules/getpeername (Depends-on): Likewise.
6752         * modules/getsockname (Depends-on): Likewise.
6753         * modules/getsockopt (Depends-on): Likewise.
6754         * modules/getsubopt (Depends-on): Likewise.
6755         * modules/getusershell (Depends-on): Likewise.
6756         * modules/glob (Depends-on): Likewise.
6757         * modules/grantpt (Depends-on): Likewise.
6758         * modules/iconv_open (Depends-on): Likewise.
6759         * modules/iconv_open-utf (Depends-on): Likewise.
6760         * modules/inet_ntop (Depends-on): Likewise.
6761         * modules/inet_pton (Depends-on): Likewise.
6762         * modules/ioctl (Depends-on): Likewise.
6763         * modules/isapipe (Depends-on): Likewise.
6764         * modules/isfinite (Depends-on): Likewise.
6765         * modules/isinf (Depends-on): Likewise.
6766         * modules/lchown (Depends-on): Likewise.
6767         * modules/ldexpl (Depends-on): Likewise.
6768         * modules/link (Depends-on): Likewise.
6769         * modules/linkat (Depends-on): Likewise.
6770         * modules/listen (Depends-on): Likewise.
6771         * modules/logl (Depends-on): Likewise.
6772         * modules/lstat (Depends-on): Likewise.
6773         * modules/mbrlen (Depends-on): Likewise.
6774         * modules/mbrtowc (Depends-on): Likewise.
6775         * modules/mbsinit (Depends-on): Likewise.
6776         * modules/mbsnrtowcs (Depends-on): Likewise.
6777         * modules/mbsrtowcs (Depends-on): Likewise.
6778         * modules/mbtowc (Depends-on): Likewise.
6779         * modules/memcmp (Depends-on): Likewise.
6780         * modules/mkdir (Depends-on): Likewise.
6781         * modules/mkdtemp (Depends-on): Likewise.
6782         * modules/mkfifo (Depends-on): Likewise.
6783         * modules/mkfifoat (Depends-on): Likewise.
6784         * modules/mknod (Depends-on): Likewise.
6785         * modules/mkostemp (Depends-on): Likewise.
6786         * modules/mkostemps (Depends-on): Likewise.
6787         * modules/mkstemp (Depends-on): Likewise.
6788         * modules/mkstemps (Depends-on): Likewise.
6789         * modules/mktime (Depends-on): Likewise.
6790         * modules/nanosleep (Depends-on): Likewise.
6791         * modules/open (Depends-on): Likewise.
6792         * modules/openat (Depends-on): Likewise.
6793         * modules/perror (Depends-on): Likewise.
6794         * modules/poll (Depends-on): Likewise.
6795         * modules/popen (Depends-on): Likewise.
6796         * modules/posix_spawn (Depends-on): Likewise.
6797         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6798         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6799         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6800         * modules/posix_spawnp (Depends-on): Likewise.
6801         * modules/pread (Depends-on): Likewise.
6802         * modules/printf-posix (Depends-on): Likewise.
6803         * modules/ptsname (Depends-on): Likewise.
6804         * modules/putenv (Depends-on): Likewise.
6805         * modules/pwrite (Depends-on): Likewise.
6806         * modules/readline (Depends-on): Likewise.
6807         * modules/readlink (Depends-on): Likewise.
6808         * modules/readlinkat (Depends-on): Likewise.
6809         * modules/recv (Depends-on): Likewise.
6810         * modules/recvfrom (Depends-on): Likewise.
6811         * modules/regex (Depends-on): Likewise.
6812         * modules/remove (Depends-on): Likewise.
6813         * modules/rename (Depends-on): Likewise.
6814         * modules/renameat (Depends-on): Likewise.
6815         * modules/rmdir (Depends-on): Likewise.
6816         * modules/round (Depends-on): Likewise.
6817         * modules/roundf (Depends-on): Likewise.
6818         * modules/roundl (Depends-on): Likewise.
6819         * modules/rpmatch (Depends-on): Likewise.
6820         * modules/select (Depends-on): Likewise.
6821         * modules/send (Depends-on): Likewise.
6822         * modules/sendto (Depends-on): Likewise.
6823         * modules/setenv (Depends-on): Likewise.
6824         * modules/setlocale (Depends-on): Likewise.
6825         * modules/setsockopt (Depends-on): Likewise.
6826         * modules/shutdown (Depends-on): Likewise.
6827         * modules/sigaction (Depends-on): Likewise.
6828         * modules/signbit (Depends-on): Likewise.
6829         * modules/sigprocmask (Depends-on): Likewise.
6830         * modules/sinl (Depends-on): Likewise.
6831         * modules/sleep (Depends-on): Likewise.
6832         * modules/snprintf (Depends-on): Likewise.
6833         * modules/snprintf-posix (Depends-on): Likewise.
6834         * modules/socket (Depends-on): Likewise.
6835         * modules/sprintf-posix (Depends-on): Likewise.
6836         * modules/sqrtl (Depends-on): Likewise.
6837         * modules/stat (Depends-on): Likewise.
6838         * modules/strchrnul (Depends-on): Likewise.
6839         * modules/strdup-posix (Depends-on): Likewise.
6840         * modules/strerror (Depends-on): Likewise.
6841         * modules/strerror_r-posix (Depends-on): Likewise.
6842         * modules/strndup (Depends-on): Likewise.
6843         * modules/strnlen (Depends-on): Likewise.
6844         * modules/strptime (Depends-on): Likewise.
6845         * modules/strsep (Depends-on): Likewise.
6846         * modules/strsignal (Depends-on): Likewise.
6847         * modules/strstr-simple (Depends-on): Likewise.
6848         * modules/strtod (Depends-on): Likewise.
6849         * modules/strtoimax (Depends-on): Likewise.
6850         * modules/strtok_r (Depends-on): Likewise.
6851         * modules/strtoumax (Depends-on): Likewise.
6852         * modules/symlink (Depends-on): Likewise.
6853         * modules/symlinkat (Depends-on): Likewise.
6854         * modules/tanl (Depends-on): Likewise.
6855         * modules/tcgetsid (Depends-on): Likewise.
6856         * modules/tmpfile (Depends-on): Likewise.
6857         * modules/trunc (Depends-on): Likewise.
6858         * modules/truncf (Depends-on): Likewise.
6859         * modules/truncl (Depends-on): Likewise.
6860         * modules/uname (Depends-on): Likewise.
6861         * modules/unlink (Depends-on): Likewise.
6862         * modules/unlockpt (Depends-on): Likewise.
6863         * modules/unsetenv (Depends-on): Likewise.
6864         * modules/usleep (Depends-on): Likewise.
6865         * modules/utimensat (Depends-on): Likewise.
6866         * modules/vasprintf (Depends-on): Likewise.
6867         * modules/vdprintf (Depends-on): Likewise.
6868         * modules/vdprintf-posix (Depends-on): Likewise.
6869         * modules/vfprintf-posix (Depends-on): Likewise.
6870         * modules/vprintf-posix (Depends-on): Likewise.
6871         * modules/vsnprintf (Depends-on): Likewise.
6872         * modules/vsnprintf-posix (Depends-on): Likewise.
6873         * modules/vsprintf-posix (Depends-on): Likewise.
6874         * modules/wcrtomb (Depends-on): Likewise.
6875         * modules/wcscasecmp (Depends-on): Likewise.
6876         * modules/wcscspn (Depends-on): Likewise.
6877         * modules/wcsdup (Depends-on): Likewise.
6878         * modules/wcsncasecmp (Depends-on): Likewise.
6879         * modules/wcsnrtombs (Depends-on): Likewise.
6880         * modules/wcspbrk (Depends-on): Likewise.
6881         * modules/wcsrtombs (Depends-on): Likewise.
6882         * modules/wcsspn (Depends-on): Likewise.
6883         * modules/wcsstr (Depends-on): Likewise.
6884         * modules/wcstok (Depends-on): Likewise.
6885         * modules/wcswidth (Depends-on): Likewise.
6886         * modules/wctob (Depends-on): Likewise.
6887         * modules/wctomb (Depends-on): Likewise.
6888         * modules/wctype (Depends-on): Likewise.
6889         * modules/wcwidth (Depends-on): Likewise.
6890         * modules/write (Depends-on): Likewise.
6891
6892 2011-05-03  Bruno Haible  <bruno@clisp.org>
6893
6894         Support for conditional dependencies.
6895         * doc/gnulib.texi (Module description): Document the syntax of
6896         conditional dependencies.
6897         * gnulib-tool: New option --conditional-dependencies.
6898         (func_usage): Document it.
6899         (cond_dependencies): New variable.
6900         (func_get_automake_snippet_conditional,
6901         func_get_automake_snippet_unconditional): New functions, extracted from
6902         func_get_automake_snippet.
6903         (func_get_automake_snippet): Use them.
6904         (sed_first_32_chars): New variable.
6905         (func_module_shellfunc_name): New function.
6906         (func_module_shellvar_name): New function.
6907         (func_module_conditional_name): New function.
6908         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6909         func_cond_module_condition): New functions.
6910         (func_modules_transitive_closure): Add support for conditional
6911         dependencies.
6912         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6913         conditional automake snippet in an automake conditional.
6914         (func_emit_autoconf_snippets): Emit shell functions that contain the
6915         code for conditional modules.
6916         (func_import, func_create_testdir): Update specification.
6917
6918 2011-05-03  Eric Blake  <eblake@redhat.com>
6919
6920         test-getaddrinfo: report error information
6921         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6922
6923 2011-05-03  Jim Meyering  <meyering@redhat.com>
6924
6925         bootstrap: avoid build failure when $GZIP is set
6926         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6927         program name.  If defined at all, it is supposed to list gzip options.
6928         Reported by Alan Curry in http://debbugs.gnu.org/8609
6929
6930 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6931
6932         readme-release: new module with release instructions
6933         * modules/readme-release: New module.
6934         * top/README-release: New file, from coreutils, grep, diffutils.
6935         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6936
6937 2011-05-02  Eric Blake  <eblake@redhat.com>
6938
6939         fflush: also replace fclose when fixing fflush
6940         * modules/fflush (Depends-on): Add fclose.
6941         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6942         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6943         memstreams with no backing fd.
6944         * doc/posix-functions/fclose.texi (fclose): Document the use of
6945         fflush module to fix the bug.
6946         * tests/test-fclose.c (main): Relax test when fclose is used in
6947         isolation.
6948
6949         fclose: add some tests
6950         * modules/fclose-tests: New test module.
6951         * tests/test-fclose.c: New file.
6952         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6953
6954         fclose: reduced dependencies
6955         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6956         simpler lseek.
6957         * lib/fclose.c (rpl_fclose): Likewise.
6958         Reported by Simon Josefsson.
6959
6960         exit: drop remaining clients
6961         * modules/argmatch (Depends-on): Replace exit with stdlib.
6962         * modules/copy-file (Depends-on): Likewise.
6963         * modules/execute (Depends-on): Likewise.
6964         * modules/exitfail (Depends-on): Likewise.
6965         * modules/obstack (Depends-on): Likewise.
6966         * modules/pagealign_alloc (Depends-on): Likewise.
6967         * modules/pipe-filter-gi (Depends-on): Likewise.
6968         * modules/pipe-filter-ii (Depends-on): Likewise.
6969         * modules/savewd (Depends-on): Likewise.
6970         * modules/spawn-pipe (Depends-on): Likewise.
6971         * modules/wait-process (Depends-on): Likewise.
6972         * modules/xsetenv (Depends-on): Likewise.
6973         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6974         * modules/git-merge-changelog (Depends-on): Likewise.
6975         * modules/long-options (Depends-on): Likewise.
6976         * modules/pt_chown (Depends-on): Likewise.
6977         * modules/sysexits (Depends-on): Likewise.
6978
6979         freading: relax license from LGPLv3+ to LGPLv2+
6980         * modules/freading (License): Relax LGPL version.
6981
6982 2011-05-02  Bruno Haible  <bruno@clisp.org>
6983
6984         fchdir: Remove unused dependencies.
6985         * modules/fchdir (Depends-on): Remove include_next.
6986
6987 2011-05-02  Bruno Haible  <bruno@clisp.org>
6988
6989         gnulib-tool: Refactor.
6990         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6991         from func_emit_autoconf_snippets.
6992         (func_emit_autoconf_snippets): Use it.
6993
6994 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6995
6996         * NEWS: Document removal of 'exit'.
6997         * modules/exit: Remove file.
6998
6999 2011-05-01  Bruno Haible  <bruno@clisp.org>
7000
7001         Update DEPENDENCIES.
7002         * DEPENDENCIES (gettext): Recommend the newest release.
7003         Reported by Simon Josefsson.
7004
7005 2011-05-01  Bruno Haible  <bruno@clisp.org>
7006
7007         gnulib-tool: Reduce code duplication.
7008         * gnulib-tool (func_emit_autoconf_snippets): New function.
7009         (func_import, func_create_testdir): Use it.
7010
7011 2011-04-30  Eric Blake  <eblake@redhat.com>
7012
7013         fclose: don't fail on non-seekable input stream
7014         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7015         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7016         since fflush is allowed to fail in that case.
7017
7018 2011-04-30  Bruno Haible  <bruno@clisp.org>
7019
7020         dup3: cleanup
7021         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7022
7023 2011-04-30  Bruno Haible  <bruno@clisp.org>
7024
7025         netdb: Make it work in C++ mode.
7026         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7027         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7028         module.
7029         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7030         gl_MODULE_INDICATOR_FOR_TESTS.
7031         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7032         * modules/netdb-c++-tests: New file.
7033         * tests/test-netdb-c++.cc: New file.
7034
7035 2011-04-30  Bruno Haible  <bruno@clisp.org>
7036
7037         New modules 'vfscanf', 'vscanf'.
7038         * modules/vfscanf: New file.
7039         * modules/vscanf: New file.
7040         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7041         here.
7042         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7043         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7044
7045 2011-04-30  Bruno Haible  <bruno@clisp.org>
7046
7047         passfd: Add comments.
7048         * lib/passfd.c: Add comments about platforms.
7049
7050 2011-04-30  Bruno Haible  <bruno@clisp.org>
7051
7052         sys_uio: Make <sys/uio.h> self-contained.
7053         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7054         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7055
7056 2011-04-30  Bruno Haible  <bruno@clisp.org>
7057
7058         sys_socket: Ensure 'struct iovec' definition.
7059         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7060         <sys/socket.h>.
7061         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7062
7063 2011-04-30  Bruno Haible  <bruno@clisp.org>
7064
7065         sys_uio: Protect definition of 'struct iovec'.
7066         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7067         it as a C struct.
7068
7069 2011-04-30  Bruno Haible  <bruno@clisp.org>
7070
7071         manywarnings: fix indentation
7072         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7073
7074 2011-04-30  Pádraig Brady <P@draigBrady.com>
7075
7076         manywarnings: add -Wno-missing-field-initializers if needed.
7077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7078         option if it's needed to allow initialization with { 0, }
7079
7080 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7081
7082         announce-gen: cosmetic improvement
7083         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7084
7085 2011-04-29  Jim Meyering  <meyering@redhat.com>
7086
7087         vc-list-files: indent with spaces, not TABs
7088         * build-aux/vc-list-files: Convert leading TABs to spaces,
7089         to match the style of most other files in gnulib.
7090
7091         announce-gen: indent with spaces, not TABs
7092         * build-aux/announce-gen: Convert all TABs to spaces, to match
7093         the style of most other files in gnulib.
7094
7095 2011-04-29  Eric Blake  <eblake@redhat.com>
7096
7097         quotearg: avoid uninitialized variable use
7098         * lib/quotearg.c (quoting_options_from_style): Initialize
7099         remaining fields, and ensure that custom styles are only used via
7100         quoting_options rather than quoting_style.
7101
7102 2011-04-29  Jim Meyering  <meyering@redhat.com>
7103
7104         maint.mk: remove unused VC-tag variable
7105         * top/maint.mk (VC-tag): Remove unused variable.
7106
7107 2011-04-29  Bruno Haible  <bruno@clisp.org>
7108
7109         netdb: fix gai_strerror replacements
7110         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7111         * modules/netdb: Substitute it.
7112
7113 2011-04-29  Jim Meyering  <meyering@redhat.com>
7114
7115         test-getcwd.c: avoid new set-but-not-used warning
7116         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7117         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7118         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7119         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7120
7121         test-hash.c: avoid a new shadowing warning
7122         * tests/test-hash.c (main): Don't shadow "dup".
7123
7124 2011-04-28  Eric Blake  <eblake@redhat.com>
7125
7126         getaddrinfo: fix gai_strerror signature
7127         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7128         and work around mingw with UNICODE defined.
7129         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7130         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7131         * modules/netdb (Makefile.am): Substitute it.
7132         * lib/netdb.in.h (gai_strerror): Declare replacement.
7133         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7134         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7135         the fix.
7136
7137         getsockopt: avoid compiler warning
7138         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7139         Reported by Matthias Bolte.
7140
7141         tests: drop unused link dependency
7142         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7143         * modules/dirent-safer-tests (Makefile.am): Likewise.
7144         * modules/fdopendir-tests (Makefile.am): Likewise.
7145         * modules/mkfifoat-tests (Makefile.am): Likewise.
7146         * modules/openat-safer-tests (Makefile.am): Likewise.
7147         * modules/openat-tests (Makefile.am): Likewise.
7148         * modules/readlinkat-tests (Makefile.am): Likewise.
7149         * modules/symlinkat-tests (Makefile.am): Likewise.
7150         * modules/linkat-tests (Makefile.am): Likewise.
7151         (Depends-on): Switch to filenamecat-lgpl.
7152         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7153         LIBINTL.
7154         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7155         * tests/test-linkat.c (main): Don't require xalloc.
7156
7157         hash, mgetgroups: drop xalloc dependency
7158         * lib/hash.c (includes): Adjust includes.
7159         * lib/mgetgroups.c (includes): Likewise.
7160         (xgetgroups): Move...
7161         * lib/xgetgroups.c: ...to new file.
7162         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7163         * modules/xgetgroups: New file, split from...
7164         * modules/mgetgroups: ...here.
7165         (Depends-on): Add xalloc-oversized.
7166         * modules/hash (Depends-on): Likewise.
7167         * modules/hash-tests (Depends-on): Drop xalloc.
7168         (test_hash_LDADD): Drop unused library.
7169         * tests/test-hash.c (main): Break xalloc dependency.
7170         (includes): Drop unused include.
7171
7172         xalloc-oversized: new module
7173         * modules/xalloc-oversized: New module.
7174         * modules/xalloc (Depends-on): Add it.
7175         * lib/xalloc.h (xalloc_oversized): Move...
7176         * lib/xalloc-oversized.h: ...into new file.
7177
7178         utimecmp: drop dependency on xmalloc
7179         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7180         due to memory pressure.
7181         * modules/utimecmp (Depends-on): Drop xalloc.
7182
7183 2011-04-27  Eric Blake  <eblake@redhat.com>
7184
7185         getcwd: fix mingw bugs
7186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7187         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7188         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7189
7190 2011-04-27  Bruno Haible  <bruno@clisp.org>
7191
7192         mkstemps: Ensure declaration on MacOS X 10.5.
7193         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7194         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7195         MacOS X.
7196
7197 2011-04-27  Bruno Haible  <bruno@clisp.org>
7198
7199         mkstemp: More documentation.
7200         * doc/posix-functions/mkstemp.texi: Document header file problem on
7201         MacOS X.
7202
7203 2011-04-27  Bruno Haible  <bruno@clisp.org>
7204
7205         mkstemp: Tweak configure message when cross-compiling.
7206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7207         result as a guess.
7208
7209 2011-04-27  Bruno Haible  <bruno@clisp.org>
7210
7211         clean-temp: Clarify what it does.
7212         * lib/clean-temp.h: Add more comments.
7213         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7214         module.
7215         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7216         * doc/glibc-functions/mkstemps.texi: Likewise.
7217         * doc/glibc-functions/mkostemps.texi: Likewise.
7218
7219 2011-04-27  Eric Blake  <eblake@redhat.com>
7220
7221         fchdir: avoid extra chdir and fix test
7222         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7223         getcwd-lgpl.
7224         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7225         have to be canonical.
7226         (canonicalize_file_name): Drop unused macro.
7227         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7228
7229         filenamecat-lgpl: fix licence
7230         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7231         when it was first created.
7232
7233         linkat, renameat: add missing dependency
7234         * modules/linkat (Depends-on): Require getcwd-lgpl.
7235         * modules/renameat (Depends-on): Likewise.
7236
7237         tests: reduce dependencies
7238         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7239         * tests/test-renameat.c (main): Likewise.
7240         * modules/linkat-tests (Depends-on): Relax dependency.
7241         * modules/renameat-tests (Depends-on): Likewise.
7242         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7243         dependency explicit.
7244
7245         save-cwd: reduce default dependency
7246         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7247         * lib/save-cwd.c: Update comments.
7248         * NEWS: Document the semantic change.
7249
7250         getcwd: enhance tests
7251         * tests/test-getcwd-lgpl.c: New file, taken from...
7252         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7253         repeat long path stress tests from m4 probe.
7254         * modules/getcwd-lgpl-tests: New module.
7255         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7256         * m4/getcwd-abort-bug.m4: Update comment.
7257         * m4/getcwd-path-max.m4: Likewise.
7258
7259         getcwd-lgpl: new module
7260         * modules/getcwd-lgpl: New module.
7261         * lib/getcwd-lgpl.c: New file.
7262         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7263         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7264         * modules/getcwd (configure.ac): Set C witness.
7265         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7266
7267         getcwd: tweak comments
7268         * m4/getcwd-abort-bug.m4: Fix comments.
7269         * m4/getcwd-path-max.m4: Likewise.
7270         * m4/getcwd.m4: Likewise.
7271
7272 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7273         and Eric Blake  <eblake@redhat.com>
7274
7275         mkstemp: replace if system version uses wrong permissions
7276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7277         read/write mode bits set in file created by mkstemp.
7278         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7279
7280 2011-04-27  Eric Blake  <eblake@redhat.com>
7281
7282         passfd: avoid compiler warning
7283         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7284         Reported by Laine Stump.
7285
7286 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7287
7288         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7289         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7290
7291 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7292         and Eric Blake  <eblake@redhat.com>
7293
7294         mkstemp: mention clean-temp module
7295         * lib/mkstemp.c: Add comment.
7296         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7297
7298 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7299
7300         inttypes: also provide default values for 32-bit tests
7301         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7302         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7303
7304 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7305
7306         strtoumax: remove dependency on strtoimax
7307         This is like the strtoull change of yesterday.
7308         * modules/strtoumax (Files): Add lib/strtoimax.c.
7309         (Depends-on): Remove strtoimax and add verify.
7310
7311         inttypes-incomplete: new module
7312         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7313         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7314         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7315         of gl_INTTYPES_H.
7316         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7317         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7318         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7319         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7320         * modules/strtoumax, modules/xstrtol (Depends-on):
7321         Depend on inttypes-incomplete, not inttypes.
7322         * modules/inttypes-incomplete: New module, containing the contents
7323         of the old modules/inttypes module, except that the Files: section
7324         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7325         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7326         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7327         (Depends-on): Depend only on inttypes-incomplete.
7328         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7329
7330         inttypes: omit now-redundant strtoimax and strtoumax work
7331         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7332         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7333
7334         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7335         This supports apps that need pointers to strtoimax and strtoumax,
7336         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7337         nonexistent functions.  See
7338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7339         et seq.
7340         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7341         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7342         a macro.
7343         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7344
7345 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7346
7347         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7348
7349 2011-04-25  Bruno Haible  <bruno@clisp.org>
7350
7351         strtol, strtoul: Mark modules as obsolete.
7352         * modules/strtol (Status, Notice): New sections.
7353         * modules/strtoul (Status, Notice): New sections.
7354
7355 2011-04-25  Bruno Haible  <bruno@clisp.org>
7356
7357         strtod: Remove check for strtod, unless supporting old platforms.
7358         * modules/strtod-obsolete: New file.
7359         * m4/strtod-obsolete.m4: New file.
7360         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7361         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7362         * modules/strtod (Depends-on): Add strtod-obsolete.
7363         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7364
7365 2011-04-25  Bruno Haible  <bruno@clisp.org>
7366
7367         strcase: Make module obsolete.
7368         * modules/strcase (Status, Notice): New sections.
7369
7370 2011-04-25  Bruno Haible  <bruno@clisp.org>
7371
7372         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7373         * modules/dup2-obsolete: New file.
7374         * m4/dup2-obsolete.m4: New file.
7375         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7376         gl_FUNC_DUP2_OBSOLETE is not also defined.
7377         * modules/dup2 (Depends-on): Add dup2-obsolete.
7378         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7379
7380 2011-04-25  Bruno Haible  <bruno@clisp.org>
7381
7382         strnlen: Avoid memchr related link error on old obsolete platforms.
7383         * modules/memchr-obsolete: New file.
7384         * m4/memchr-obsolete.m4: New file.
7385         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7386         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7387         * modules/memchr (Depends-on): Add memchr-obsolete.
7388         * modules/strnlen (Depends-on): Likewise.
7389         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7390
7391 2011-04-25  Jim Meyering  <meyering@redhat.com>
7392
7393         maint.mk: makefile_at_at_check extend and clean up
7394         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7395         in addition to */Makefile.am.
7396         Exempt legitimate uses of @VAR@ notation, e.g.,
7397         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7398         Remove obsolete coreutils-specific comment.
7399         Prompted by discussion here:
7400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7401
7402 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7403
7404         strtoul: remove dependency on strtol
7405         This is so that 'configure' need not check for strtol merely because
7406         the application needs strtoul.
7407         * modules/strtoul (Files): Add lib/strtol.c.
7408         (Depends-on): Remove strtol.
7409
7410         strtoull: remove dependency on strtoul
7411         This is like the strtoll change.
7412         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7413         (Depends-on): Remove strtoul.
7414
7415         strtoll: remove dependency on strtol
7416         This is so that 'configure' need not check for strtol merely because
7417         the application needs strtoll.
7418         * modules/strtoll (Files): Add lib/strtol.c.
7419         (Depends-on): Remove strtol.
7420
7421 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7422
7423         inttypes: Move some configure check to module 'imaxdiv'.
7424         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7425         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7426         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7427
7428 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         inttypes: Move some configure check to module 'imaxabs'.
7431         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7432         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7433         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7434
7435 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7436
7437         inttypes: Remove configure tests that are not needed since 2009-12-31.
7438         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7439         gl_cv_header_working_inttypes_h.
7440
7441 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7442
7443         * modules/strnlen (Depends-on): Remove memchr.
7444         The strnlen implementation doesn't need the memchr module's fixes; see
7445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7446
7447         strtol: remove dependency on wchar
7448         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7449         * modules/strtol (Depends-on): Remove wchar.
7450
7451 2011-04-21  Eric Blake  <eblake@redhat.com>
7452
7453         passfd: fix test regression on Linux
7454         * modules/passfd-tests (configure.ac): Correct socketpair check.
7455
7456         passfd: speed up configure and drop unused code
7457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7458         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7459         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7460         Instead of probing at configure for unix_scm_rights_bsd44_way,
7461         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7462         check to a struct member probe.
7463         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7464         (sendfd, recvfd): Update preprocessor checks.
7465         * modules/passfd (Files): Reflect rename, and drop unused file.
7466         (Depends-on): Drop unused dependency.
7467
7468         passfd: allow compilation on mingw
7469         * modules/sys_socket (Depends-on): Add sys_uio.
7470         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7471         iovec and a minimal struct msghdr.
7472         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7473         * tests/test-sys_socket.c (main): Enhance test.
7474         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7475         guaranteed to provide what we need.
7476         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7477         * modules/passfd-tests (Depends-on): Add sys_wait.
7478         * tests/test-passfd.c (main): Skip test on mingw, for now.
7479         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7480         partial 'struct msghdr' implementation.
7481
7482         sys_uio: new module
7483         * modules/sys_uio: New module.
7484         * modules/sys_uio-tests: Likewise.
7485         * lib/sys_uio.in.h: New file.
7486         * m4/sys_uio_h.m4: Likewise.
7487         * tests/test-sys_uio.c: Likewise.
7488         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7489         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7490
7491 2011-04-20  Jim Meyering  <meyering@redhat.com>
7492
7493         useless-if-before-free: avoid false-positive
7494         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7495         disjunct so that it too requires a terminating ";".  Without that,
7496         this script would identify as useless one statement from gcc that
7497         was not:
7498           if (aligned_ptr)
7499             free (((void **) aligned_ptr) [-1]);
7500
7501 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7502
7503         doc: update users.txt.
7504         * users.txt: Add barcode.
7505
7506 2011-04-19  Bruno Haible  <bruno@clisp.org>
7507
7508         ioctl: Remove link dependency on native Windows.
7509         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7510         (gl_close_fn, gl_ioctl_fn): New types.
7511         (struct fd_hook): Renamed from struct close_hook. Change type of
7512         private_close_fn field. Add private_ioctl_fn field.
7513         (close_hook_fn): Add parameter for primary close method.
7514         (execute_close_hooks, execute_all_close_hooks): Likewise.
7515         (ioctl_hook_fn): New type.
7516         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7517         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7518         argument.
7519         (unregister_fd_hook): Renamed from unregister_close_hook.
7520         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7521         Don't include <unistd.h>.
7522         (close): Remove undef.
7523         (anchor): Update.
7524         (execute_close_hooks): Add argument for primary close method.
7525         (execute_all_close_hooks): Likewise.
7526         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7527         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7528         argument. Allow each argument to be NULL.
7529         (unregister_fd_hook): Renamed from unregister_close_hook.
7530         * lib/close.c (rpl_close): Pass 'close' function pointer to
7531         execute_all_close_hooks.
7532         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7533         (primary_ioctl): New function.
7534         (ioctl): Don't call ioctlsocket here. Instead, call
7535         execute_all_ioctl_hooks.
7536         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7537         close method.
7538         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7539         (fd_sockets_hook): Renamed from close_sockets_hook.
7540         (gl_sockets_startup, gl_sockets_cleanup): Update.
7541         * modules/fd-hook: Renamed from modules/close-hook. Update.
7542         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7543         * modules/sockets (Depends-on): Likewise.
7544         * modules/ioctl (Depends-on): Add fd-hook.
7545         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7546         GNULIB_SOCKET.
7547
7548 2011-04-19  Bruno Haible  <bruno@clisp.org>
7549
7550         Move the support of O_NONBLOCK in open() to the 'open' module.
7551         * modules/nonblocking (Depends-on): Remove 'open'.
7552         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7553         gl_cv_have_open_O_NONBLOCK.
7554         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7555         O_NONBLOCK support.
7556         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7557
7558 2011-04-17  Bruno Haible  <bruno@clisp.org>
7559
7560         pipe2: Simplify code.
7561         * lib/pipe2.c (pipe2): Reduce code duplication.
7562
7563 2011-04-17  Bruno Haible  <bruno@clisp.org>
7564
7565         nonblocking: Add comment.
7566         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7567
7568 2011-04-17  Bruno Haible  <bruno@clisp.org>
7569
7570         nonblocking: Add tests for sockets.
7571         * tests/test-nonblocking-socket.sh: New file.
7572         * tests/test-nonblocking-socket-main.c: New file.
7573         * tests/test-nonblocking-socket-child.c: New file.
7574         * tests/test-nonblocking-socket.h: New file.
7575         * tests/socket-server.h: New file.
7576         * tests/socket-client.h: New file.
7577         * modules/nonblocking-socket-tests: New file.
7578         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7579
7580 2011-04-17  Bruno Haible  <bruno@clisp.org>
7581
7582         nonblocking: Add tests for pipes.
7583         * tests/test-nonblocking-pipe.sh: New file.
7584         * tests/test-nonblocking-pipe-main.c: New file.
7585         * tests/test-nonblocking-pipe-child.c: New file.
7586         * tests/test-nonblocking-pipe.h: New file.
7587         * tests/test-nonblocking-writer.h: New file.
7588         * tests/test-nonblocking-reader.h: New file.
7589         * tests/test-nonblocking-misc.h: New file.
7590         * modules/nonblocking-pipe-tests: New file.
7591         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7592
7593 2011-04-16  Bruno Haible  <bruno@clisp.org>
7594
7595         gettext: Clarify the needed programmer actions.
7596         * modules/gettext (Notice): New field.
7597         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7598
7599 2011-04-16  Bruno Haible  <bruno@clisp.org>
7600
7601         strchrnul: Tweak last commit.
7602         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7603         bug.
7604         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7605         as in _GL_FUNCDECL_SYS.
7606         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7607         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7608
7609 2011-04-15  Eric Blake  <eblake@redhat.com>
7610
7611         strchrnul: work around cygwin bug
7612         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7613         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7615         * modules/string (Makefile.am): Substitute it.
7616         * lib/string.in.h (strchrnul): Use it.
7617
7618 2011-04-15  Bruno Haible  <bruno@clisp.org>
7619
7620         Don't require lib/stdio-write.c when only module 'stdio' is used.
7621         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7622         invocation.
7623         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7624
7625 2011-04-14  Bruno Haible  <bruno@clisp.org>
7626
7627         Support non-blocking pipe I/O in read() on native Windows.
7628         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7629         (read): New declaration.
7630         * lib/read.c: New file.
7631         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7632         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7633         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7634         vscanf): New declarations.
7635         * lib/stdio-read.c: New file.
7636         * m4/read.m4: New file.
7637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7638         REPLACE_READ.
7639         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7640         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7641         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7642         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7643         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7644         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7645         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7646         * modules/read: New file.
7647         * modules/nonblocking (Files): Add lib/stdio-read.c.
7648         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7649         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7650         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7651         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7652         * modules/pread (Depends-on): Add read.
7653         * modules/safe-read (Depends-on): Likewise.
7654         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7655         gets, scanf, vfscanf, vscanf): Verify signatures.
7656         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7657         problem with non-blocking pipes.
7658         * doc/posix-functions/fgetc.texi: Likewise.
7659         * doc/posix-functions/fgets.texi: Likewise.
7660         * doc/posix-functions/fread.texi: Likewise.
7661         * doc/posix-functions/fscanf.texi: Likewise.
7662         * doc/posix-functions/getc.texi: Likewise.
7663         * doc/posix-functions/getchar.texi: Likewise.
7664         * doc/posix-functions/gets.texi: Likewise.
7665         * doc/posix-functions/scanf.texi: Likewise.
7666         * doc/posix-functions/vfscanf.texi: Likewise.
7667         * doc/posix-functions/vscanf.texi: Likewise.
7668
7669 2011-04-14  Bruno Haible  <bruno@clisp.org>
7670
7671         Support non-blocking pipe I/O in write() on native Windows.
7672         * lib/write.c (rpl_write): Split a write request that failed merely
7673         because the byte count was larger than the pipe buffer's size.
7674         * doc/posix-functions/write.texi: Mention the problem with large byte
7675         counts.
7676
7677 2011-04-14  Bruno Haible  <bruno@clisp.org>
7678
7679         wchar: Ensure that wchar_t gets defined on uClibc.
7680         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7681         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7682
7683 2011-04-13  Bruno Haible  <bruno@clisp.org>
7684
7685         safe-write, full-read: Avoid unnecessary compilation units.
7686         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7687         (Depends-on): Remove safe-read. Add ssize_t.
7688         * modules/full-read (Files): Add lib/full-write.c.
7689         (Depends-on): Add full-write.
7690
7691 2011-04-13  Bruno Haible  <bruno@clisp.org>
7692
7693         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7694         * modules/pwrite (Depends-on): Add 'write'.
7695
7696 2011-04-13  Bruno Haible  <bruno@clisp.org>
7697
7698         Support non-blocking pipe I/O in write() on native Windows.
7699         * lib/unistd.in.h (write): Enable replacement also if
7700         GNULIB_UNISTD_H_NONBLOCKING is 1.
7701         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7702         (rpl_write): When failing to write on a non-blocking pipe, change
7703         errno from ENOSPC to EAGAIN.
7704         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7705         putchar, puts, vfprintf, vprintf): Enable replacement also if
7706         GNULIB_STDIO_H_NONBLOCKING is 1.
7707         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7708         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7709         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7710         CALL_WITH_SIGPIPE_EMULATION.
7711         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7712         * m4/nonblocking.m4: New file.
7713         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7714         for non-blocking I/O support.
7715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7716         GNULIB_UNISTD_H_NONBLOCKING.
7717         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7718         required for non-blocking I/O support.
7719         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7720         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7721         lib/stdio-write.c, m4/asm-underscore.m4.
7722         (Depends-on): Add stdio, unistd.
7723         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7724         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7725         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7726         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7727         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7728         problem with non-blocking pipes.
7729         * doc/posix-functions/fputc.texi: Likewise.
7730         * doc/posix-functions/fputs.texi: Likewise.
7731         * doc/posix-functions/fwrite.texi: Likewise.
7732         * doc/posix-functions/printf.texi: Likewise.
7733         * doc/posix-functions/putc.texi: Likewise.
7734         * doc/posix-functions/putchar.texi: Likewise.
7735         * doc/posix-functions/puts.texi: Likewise.
7736         * doc/posix-functions/vfprintf.texi: Likewise.
7737         * doc/posix-functions/vprintf.texi: Likewise.
7738         * doc/posix-functions/write.texi: Likewise.
7739
7740 2011-04-10  Jim Meyering  <meyering@redhat.com>
7741
7742         maint.mk: prohibit doubled words
7743         Detect them also when they're separated by a newline.
7744         There are 3 ways to customize it:
7745           - disable the test on a per file basis, as usual with rules using
7746             $(VC_LIST_EXCEPT)
7747           - replace the default doubled-word-selecting regexp (affects all files)
7748           - ignore a particular file-vs-doubled-word match
7749         I nearly used that last one to ignore the "is is" match in
7750         coreutils' NEWS file, since the text was "ls -is is ..."
7751         To do that, I would have added this line to cfg.mk:
7752           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7753         but it would have ignored any "is is" match in NEWS.
7754         Low probability, but still...
7755         Instead, I changed the text, slightly:
7756           -  ls -is is now consistent with ls -lis in ignoring values returned
7757           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7758         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7759         (prohibit_doubled_word_): Define.
7760         (sc_prohibit_doubled_word): New rule.
7761         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7762
7763 2011-04-10  Jim Meyering  <meyering@redhat.com>
7764
7765         maint: fix doubled-word typo in comment
7766         * m4/gethostname.m4: s/is is/it is/
7767         * m4/getdomainname.m4: Likewise.
7768
7769 2011-04-10  Jim Meyering  <meyering@redhat.com>
7770
7771         maint: remove doubled word: s/it it/it/
7772         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7773
7774 2011-04-10  Jim Meyering  <meyering@redhat.com>
7775
7776         maint.mk: remove useless semicolon and backslash
7777         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7778         semicolon and backslash.
7779
7780 2011-04-10  Bruno Haible  <bruno@clisp.org>
7781
7782         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7783         * modules/stdint-tests (Depends-on): Add wchar.
7784
7785 2011-04-10  Jim Meyering  <meyering@redhat.com>
7786
7787         maint: remove doubled words in comments, e.g., s/a a/a/
7788         * lib/strptime.c (day_of_the_week): s/the the/the/
7789         * tests/test-chown.h (test_chown): s/a a/a/
7790
7791         test-chown.h: correct a cast
7792         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7793         when the destination is a stat.st_gid.
7794
7795 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7796
7797         getaddrinfo: Fix test for sa_len member.
7798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7799         include <sys/types.h> before <sys/socket.h>.
7800
7801 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7802
7803         maint: change "can not" to "cannot"
7804         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7805         boundaries.
7806
7807 2011-04-09  Jim Meyering  <meyering@redhat.com>
7808
7809         maint: change "a a" to "a"
7810         * tests/test-lchown.h (test_lchown): s/a a/a/
7811
7812         maint.mk: prohibit \<the the\>
7813         * top/maint.mk (sc_prohibit_the_the): New rule.
7814
7815         maint: fix "the the" in comment
7816         * lib/count-one-bits.h: s/the the/the/
7817
7818         maint: change "can not" to "cannot"
7819         But do not change the occurrences in maintain.texi or in
7820         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7821         * doc/gnulib-tool.texi: s/can not/cannot/
7822         * doc/posix-functions/accept.texi (accept): Likewise.
7823         * doc/posix-functions/socket.texi (socket): Likewise.
7824         * lib/mbrtowc.c: Likewise.
7825
7826         maint.mk: prohibit use of "can not"
7827         * top/maint.mk (sc_prohibit_can_not): New rule.
7828         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7829
7830 2011-04-09  Bruno Haible  <bruno@clisp.org>
7831
7832         careadlinkat: Guard against misuse of careadlinkatcwd.
7833         * lib/careadlinkat.c: Include <stdlib.h>.
7834         (careadlinkatcwd): Check that the fd argument is as expected.
7835
7836 2011-04-09  Bruno Haible  <bruno@clisp.org>
7837
7838         careadlinkat: Use common coding style.
7839         * lib/careadlinkat.c: Move gnulib includes after system includes.
7840
7841 2011-04-09  Bruno Haible  <bruno@clisp.org>
7842
7843         careadlinkat: Clarify specification.
7844         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7845         (careadlinkatcwd): Add comment.
7846         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7847
7848 2011-04-09  Bruno Haible  <bruno@clisp.org>
7849
7850         areadlinkat: Avoid link error on many platforms.
7851         * modules/areadlinkat (Depends-on): Add areadlink.
7852
7853 2011-04-09  Bruno Haible  <bruno@clisp.org>
7854
7855         allocator, careadlinkat: Fix double-inclusion guard.
7856         * lib/allocator.h: Fix double-inclusion guard.
7857         * lib/careadlinkat.h: Likewise.
7858
7859 2011-04-09  Bruno Haible  <bruno@clisp.org>
7860
7861         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7862         * lib/relocwrapper.c: Update dependencies hierarchy.
7863         * build-aux/install-reloc: Update list of files to be compiled.
7864         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7865         lib/allocator.[hc].
7866
7867 2011-04-08  Eric Blake  <eblake@redhat.com>
7868
7869         strftime: silence gnulib-tool warning
7870         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7871
7872 2011-04-08  Bruno Haible  <bruno@clisp.org>
7873
7874         verify: Fix syntax error with GCC 4.6 in C++ mode.
7875         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7876         (HAVE_STATIC_ASSERT): New macro.
7877         (verify_true, verify): Use 'static_assert' if it is supported and
7878         '_Static_assert' is not supported.
7879
7880 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7881
7882         allocator: New module.
7883         * modules/allocator, lib/allocator.c: New files.
7884         * lib/allocator.h (stdlib_allocator): New decl.
7885         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7886         Remove.  Do not include <stdlib.h>.
7887         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7888         * modules/careadlinkat (Files): Remove lib/allocator.h.
7889         (Depends-on): Add allocator.
7890
7891         stdlib: let modules use system malloc, realloc
7892         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7893         if !_GL_USE_STDLIB_ALLOC.
7894         (malloc, realloc): Limit this change to a smaller scope.
7895
7896         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7897         (malloc, realloc): Don't #undef; no longer needed.
7898         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7899         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7900         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7901         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7902         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7903         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7904         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7905         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7906
7907         careadlinkat: rename members to avoid problem
7908         * lib/allocator.h (struct allocator): Rename members from
7909         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7910         and realloc are #define'd.  Reported by Eric Blake in
7911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7912         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7913
7914 2011-04-08  Eric Blake  <eblake@redhat.com>
7915
7916         nonblocking: reduce dependency
7917         * tests/test-nonblocking.c: Only test sockets when in use.
7918         * modules/nonblocking-tests (Depends-on): Drop socket.
7919         (Makefile.am): Link even if sockets are not present.
7920         * modules/pipe2-tests (Makefile.am): Likewise.
7921         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7922
7923         pipe2: fix O_NONBLOCK support on mingw
7924         * modules/pipe2 (Depends-on): Add nonblocking.
7925         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7926         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7927         * tests/test-nonblocking.c (main): Likewise.
7928         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7929
7930         fcntl-h: fix O_ACCMODE on cygwin
7931         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7932         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7933
7934         pipe-filter: drop O_NONBLOCK workarounds
7935         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7936         * modules/pipe-filter-ii (Depends-on): Likewise.
7937         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7938
7939         nonblocking: provide O_NONBLOCK for mingw
7940         * modules/nonblocking (Depends-on): Add open.
7941         (configure.ac): Set new witness macro.
7942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7943         * modules/fcntl-h (Makefile.am): Substitute it.
7944         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7945         nonblocking module is in use.
7946         * lib/nonblocking.c: Adjust portability test.
7947         * lib/open.c (open): Don't let native open see gnulib flag.
7948         * tests/test-fcntl-h.c (main): Enhance test.
7949         * tests/test-open.h (test_open): Likewise.
7950         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7951
7952         careadlinkat: fix compilation error on mingw
7953         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7954         within struct allocator.
7955
7956 2011-04-06  Eric Blake  <eblake@redhat.com>
7957
7958         binary-io: relicense under LGPLv2+
7959         * modules/binary-io (License): Relax to LGPLv2+.
7960         Requested for libvirt, and required by pipe2.
7961
7962 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         verify: use _Static_assert if available
7965         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7966         (verify_true, verify): Use it if available.  This generates better
7967         diagnostics with GCC 4.6.0 and later.
7968
7969 2011-04-05  Bruno Haible  <bruno@clisp.org>
7970
7971         Remove leftover generated .h files after config.status changed.
7972
7973         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7974         GL_GENERATE_ALLOCA_H.
7975         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7976         GL_GENERATE_ALLOCA_H evaluates to false.
7977
7978         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7979         GL_GENERATE_ARGZ_H.
7980         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7981         evaluates to false.
7982
7983         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7984         GL_GENERATE_BYTESWAP_H.
7985         * modules/byteswap (Makefile.am): Remove byteswap.h if
7986         GL_GENERATE_BYTESWAP_H evaluates to false.
7987
7988         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7989         GL_GENERATE_ERRNO_H.
7990         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7991         evaluates to false.
7992
7993         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7994         GL_GENERATE_FLOAT_H.
7995         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7996         evaluates to false.
7997
7998         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7999         GL_GENERATE_FNMATCH_H.
8000         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8001         GL_GENERATE_FNMATCH_H evaluates to false.
8002
8003         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8004         GL_GENERATE_GLOB_H.
8005         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8006         evaluates to false.
8007
8008         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8009         automake conditional GL_GENERATE_ICONV_H.
8010         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8011         evaluates to false.
8012
8013         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8014         GL_GENERATE_NETINET_IN_H.
8015         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8016         GL_GENERATE_NETINET_IN_H evaluates to false.
8017
8018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8019         conditional GL_GENERATE_PTHREAD_H.
8020         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8021         * modules/pthread (Makefile.am): Remove pthread.h if
8022         GL_GENERATE_PTHREAD_H evaluates to false.
8023
8024         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8025         GL_GENERATE_SCHED_H.
8026         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8027         evaluates to false.
8028
8029         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8030         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8031         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8032         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8033
8034         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8035         GL_GENERATE_STDARG_H.
8036         * modules/stdarg (Makefile.am): Remove stdarg.h if
8037         GL_GENERATE_STDARG_H evaluates to false.
8038
8039         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8040         GL_GENERATE_STDBOOL_H.
8041         * modules/stdbool (Makefile.am): Remove stdbool.h if
8042         GL_GENERATE_STDBOOL_H evaluates to false.
8043
8044         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8045         conditional GL_GENERATE_STDDEF_H.
8046         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8047         * modules/stddef (Makefile.am): Remove stddef.h if
8048         GL_GENERATE_STDDEF_H evaluates to false.
8049
8050         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8051         GL_GENERATE_STDINT_H.
8052         * modules/stdint (Makefile.am): Remove stdint.h if
8053         GL_GENERATE_STDINT_H evaluates to false.
8054
8055         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8056         GL_GENERATE_SYSEXITS_H.
8057         * modules/sysexits (Makefile.am): Remove sysexits.h if
8058         GL_GENERATE_SYSEXITS_H evaluates to false.
8059
8060         Reported by Karl Berry and Ralf Wildenhues.
8061
8062 2011-04-05  Bruno Haible  <bruno@clisp.org>
8063
8064         Ensure to rebuild generated .h files when config.status has changed.
8065         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8066         config.status.
8067         * modules/ctype (Makefile.am): Likewise.
8068         * modules/dirent (Makefile.am): Likewise.
8069         * modules/errno (Makefile.am): Likewise.
8070         * modules/fcntl-h (Makefile.am): Likewise.
8071         * modules/float (Makefile.am): Likewise.
8072         * modules/getopt-posix (Makefile.am): Likewise.
8073         * modules/glob (Makefile.am): Likewise.
8074         * modules/iconv-h (Makefile.am): Likewise.
8075         * modules/inttypes (Makefile.am): Likewise.
8076         * modules/langinfo (Makefile.am): Likewise.
8077         * modules/locale (Makefile.am): Likewise.
8078         * modules/math (Makefile.am): Likewise.
8079         * modules/netdb (Makefile.am): Likewise.
8080         * modules/netinet_in (Makefile.am): Likewise.
8081         * modules/poll-h (Makefile.am): Likewise.
8082         * modules/pthread (Makefile.am): Likewise.
8083         * modules/pty (Makefile.am): Likewise.
8084         * modules/sched (Makefile.am): Likewise.
8085         * modules/search (Makefile.am): Likewise.
8086         * modules/selinux-h (Makefile.am): Likewise.
8087         * modules/signal (Makefile.am): Likewise.
8088         * modules/spawn (Makefile.am): Likewise.
8089         * modules/stdarg (Makefile.am): Likewise.
8090         * modules/stdbool (Makefile.am): Likewise.
8091         * modules/stddef (Makefile.am): Likewise.
8092         * modules/stdint (Makefile.am): Likewise.
8093         * modules/stdio (Makefile.am): Likewise.
8094         * modules/stdlib (Makefile.am): Likewise.
8095         * modules/string (Makefile.am): Likewise.
8096         * modules/strings (Makefile.am): Likewise.
8097         * modules/sys_file (Makefile.am): Likewise.
8098         * modules/sys_ioctl (Makefile.am): Likewise.
8099         * modules/sys_select (Makefile.am): Likewise.
8100         * modules/sys_socket (Makefile.am): Likewise.
8101         * modules/sys_stat (Makefile.am): Likewise.
8102         * modules/sys_time (Makefile.am): Likewise.
8103         * modules/sys_times (Makefile.am): Likewise.
8104         * modules/sys_utsname (Makefile.am): Likewise.
8105         * modules/sys_wait (Makefile.am): Likewise.
8106         * modules/sysexits (Makefile.am): Likewise.
8107         * modules/termios (Makefile.am): Likewise.
8108         * modules/time (Makefile.am): Likewise.
8109         * modules/unistd (Makefile.am): Likewise.
8110         * modules/wchar (Makefile.am): Likewise.
8111         * modules/wctype-h (Makefile.am): Likewise.
8112         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8113
8114 2011-04-05  Bruno Haible  <bruno@clisp.org>
8115
8116         pipe2: Relicense under LGPLv2+.
8117         * modules/pipe2 (License): Change to LGPLv2+.
8118         Requested by Eric Blake, for libvirt.
8119
8120 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8121
8122         bootstrap: compute gnulib_extra_files after updating build_aux
8123         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8124         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8125
8126 2011-04-05  Eric Blake  <eblake@redhat.com>
8127
8128         bootstrap: preserve git whitelist item sorting
8129         * build-aux/bootstrap (sort_patterns): New function.
8130         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8131
8132 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8133
8134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8135         sc_space_tab check.
8136
8137 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8138
8139         areadlink, areadlinkat: rewrite in terms of careadlinkat
8140         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8141         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8142         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8143         (malloc, realloc): Remove #undefs.
8144         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8145         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8146         readlink, ssize_t, stdint, unistd.
8147         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8148         areadlink, stdint.
8149
8150         careadlinkat: new module
8151         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8152         * modules/careadlinkat: New files, written by me with
8153         a review and feedback from Ben Pfaff in
8154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8155
8156 2011-04-01  Bruno Haible  <bruno@clisp.org>
8157
8158         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8159         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8160         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8161         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8162         Reported by Bruce Korb <bruce.korb@gmail.com>.
8163
8164 2011-04-01  Bruno Haible  <bruno@clisp.org>
8165
8166         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8167         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8168         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8169         * modules/wcpcpy (Depends-on): Add extensions.
8170         * modules/wcpncpy (Depends-on): Likewise.
8171         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8172         systems.
8173         * doc/posix-functions/wcpncpy.texi: Likewise.
8174         * doc/posix-functions/wcwidth.texi: Likewise.
8175
8176 2011-03-31  Eric Blake  <eblake@redhat.com>
8177
8178         nonblocking: fix mingw test failures
8179         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8180         non-blocking flag on regular file.
8181         (get_nonblocking_flag): Set errno on invalid fd.
8182         * tests/test-nonblocking.c (main): Avoid test failure on
8183         directories if fchdir is not active.
8184         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8185
8186 2011-03-31  Bruno Haible  <bruno@clisp.org>
8187
8188         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8189         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8190         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8191         Reported by Simon Josefsson <simon@josefsson.org>.
8192
8193 2011-03-31  Bruno Haible  <bruno@clisp.org>
8194         and Eric Blake  <eblake@redhat.com>
8195
8196         nonblocking: new module
8197         * modules/nonblocking: New module.
8198         * modules/nonblocking-tests: Likewise.
8199         * lib/nonblocking.h: New file.
8200         * lib/nonblocking.c: Likewise.
8201         * tests/test-nonblocking.c: New test.
8202         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8203
8204 2011-03-30  Bruno Haible  <bruno@clisp.org>
8205
8206         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8207         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8208         instead of 'printf' format for GCC >= 4.4.
8209         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8210         (fprintf, printf, vfprintf, vprintf): Declare with
8211         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8212         the system's vfprintf() function.
8213         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8214
8215 2011-03-30  Eric Blake  <eblake@redhat.com>
8216
8217         passfd: fix scoping bug
8218         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8219         before sendmsg/recvmsg.
8220
8221         passfd: standardize coding conventions
8222         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8223         can be learned at compile time.
8224         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8225         ifdefs.
8226         (sendfd, recvfd): Follow gnulib code conventions.
8227
8228         passfd: fix incorrect sendmsg arguments
8229         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8230         incorrect msg_controllen value.
8231         * modules/passfd-tests (Depends-on): Check for alarm.
8232         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8233         Reported by Bastien ROUCARIES.
8234
8235 2011-03-30  Bruno Haible  <bruno@clisp.org>
8236
8237         c-strcasestr: Relicense under LGPLv2+.
8238         * modules/c-strcasestr (License): Change to LGPLv2+.
8239         Requested by Eric Blake, for libvirt.
8240
8241 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8242
8243         * users.txt: Add libidn2.  Fix libtasn1 link.
8244
8245 2011-03-30  Jim Meyering  <meyering@redhat.com>
8246
8247         tests: readlink* ("",... fails with EINVAL on newer kernels
8248         readlink and readlinkat have typically failed with ENOENT for
8249         the invalid, empty file name,  "".  However, with the advent
8250         of linux-2.6.39, they fail with EINVAL.
8251         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8252         when operating on the empty file name.
8253         * tests/test-readlink.h (test_readlink): Likewise.
8254
8255 2011-03-29  Bruno Haible  <bruno@clisp.org>
8256
8257         Relicense some modules under LGPLv2+, for libidn2.
8258         * modules/array-mergesort (License): Change to LGPLv2+.
8259         * modules/c-strcaseeq (License): Likewise.
8260         * modules/striconveh (License): Likewise.
8261         * modules/striconveha (License): Likewise.
8262         * modules/uniconv/base (License): Likewise.
8263         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8264         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8265         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8266         * modules/unictype/base (License): Likewise.
8267         * modules/unictype/bidiclass-of (License): Likewise.
8268         * modules/unictype/category-M (License): Likewise.
8269         * modules/unictype/category-none (License): Likewise.
8270         * modules/unictype/category-of (License): Likewise.
8271         * modules/unictype/category-test (License): Likewise.
8272         * modules/unictype/category-test-withtable (License): Likewise.
8273         * modules/unictype/combining-class (License): Likewise.
8274         * modules/unictype/joiningtype-of (License): Likewise.
8275         * modules/unictype/scripts (License): Likewise.
8276         * modules/uninorm/base (License): Likewise.
8277         * modules/uninorm/canonical-decomposition (License): Likewise.
8278         * modules/uninorm/composition (License): Likewise.
8279         * modules/uninorm/decompose-internal (License): Likewise.
8280         * modules/uninorm/decomposition-table (License): Likewise.
8281         * modules/uninorm/nfc (License): Likewise.
8282         * modules/uninorm/nfd (License): Likewise.
8283         * modules/uninorm/u32-normalize (License): Likewise.
8284         * modules/unistr/base (License): Likewise.
8285         * modules/unistr/u32-cpy (License): Likewise.
8286         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8287         * modules/unistr/u32-to-u8 (License): Likewise.
8288         * modules/unistr/u32-uctomb (License): Likewise.
8289         * modules/unistr/u8-check (License): Likewise.
8290         * modules/unistr/u8-mblen (License): Likewise.
8291         * modules/unistr/u8-mbtouc (License): Likewise.
8292         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8293         * modules/unistr/u8-mbtoucr (License): Likewise.
8294         * modules/unistr/u8-prev (License): Likewise.
8295         * modules/unistr/u8-strlen (License): Likewise.
8296         * modules/unistr/u8-to-u32 (License): Likewise.
8297         * modules/unistr/u8-uctomb (License): Likewise.
8298         * modules/unitypes (License): Likewise.
8299         Requested by Simon Josefsson.
8300
8301 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8302
8303         lib-symbol-visibility: Add a notice.
8304         * modules/lib-symbol-visibility (Notice): New field.
8305
8306 2011-03-29  Bruno Haible  <bruno@clisp.org>
8307
8308         getaddrinfo: Doc fix.
8309         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8310         section "fixed in Gnulib".
8311
8312 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8313
8314         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8315         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8316
8317 2011-03-26  Bruno Haible  <bruno@clisp.org>
8318
8319         unictype/property-byname: Reduce the number of load-time relocations.
8320         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8321         (UC_PROPERTY_INDEX_*): New enumeration values.
8322         (uc_property_byname): Convert an index from the lookup table to an
8323         uc_property_t.
8324         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8325         values.
8326
8327 2011-03-26  Bruno Haible  <bruno@clisp.org>
8328
8329         unictype/property-byname: Allow omitted word separators and aliases.
8330         * lib/unictype/pr_byname.gperf: Add property names without word
8331         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8332         for 'space'.
8333
8334 2011-03-26  Bruno Haible  <bruno@clisp.org>
8335
8336         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8337         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8338         also hyphens to space.
8339         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8340         without spaces.
8341         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8342
8343 2011-03-26  Bruno Haible  <bruno@clisp.org>
8344
8345         unictype/joiningtype-byname: Recognize long names as well.
8346         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8347         a long name.
8348         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8349         unictype/joiningtype_byname.h.
8350         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8351         * lib/unictype/joiningtype_byname.gperf: New file.
8352         * modules/unictype/joiningtype-byname (Files): Add
8353         lib/unictype/joiningtype_byname.gperf.
8354         (Depends-on): Add gperf.
8355         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8356         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8357         long names.
8358
8359         Tests for module 'unictype/joiningtype-longname'.
8360         * modules/unictype/joiningtype-longname-tests: New file.
8361         * tests/unictype/test-joiningtype_longname.c: New file.
8362
8363         New module 'unictype/joiningtype-longname'.
8364         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8365         * lib/unictype/joiningtype_longname.c: New file.
8366         * modules/unictype/joiningtype-longname: New file.
8367         * modules/unictype/joiningtype-all (Depends-on): Add
8368         unictype/joiningtype-longname.
8369
8370 2011-03-26  Bruno Haible  <bruno@clisp.org>
8371
8372         unictype/bidiclass-byname: Recognize long names as well.
8373         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8374         name.
8375         * lib/unictype/bidi_byname.c: Include <string.h>,
8376         unictype/bidi_byname.h.
8377         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8378         * lib/unictype/bidi_byname.gperf: New file.
8379         * modules/unictype/bidiclass-byname (Files): Add
8380         lib/unictype/bidi_byname.gperf.
8381         (Depends-on): Add gperf.
8382         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8383         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8384         long names.
8385
8386         Tests for module 'unictype/bidiclass-longname'.
8387         * modules/unictype/bidiclass-longname-tests: New file.
8388         * tests/unictype/test-bidi_longname.c: New file.
8389
8390         New module 'unictype/bidiclass-longname'.
8391         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8392         * lib/unictype/bidi_longname.c: New file.
8393         * modules/unictype/bidiclass-longname: New file.
8394         * modules/unictype/bidiclass-all (Depends-on): Add
8395         unictype/bidiclass-longname.
8396
8397 2011-03-26  Bruno Haible  <bruno@clisp.org>
8398
8399         unictype/bidi*: Rename modules.
8400         * modules/unictype/bidiclass-all: Renamed from
8401         modules/unictype/bidicategory-all.
8402         * modules/unictype/bidiclass-name: Renamed from
8403         modules/unictype/bidiclass-name.
8404         (Description): Update.
8405         * modules/unictype/bidiclass-name-tests: Renamed from
8406         modules/unictype/bidicategory-name-tests.
8407         * modules/unictype/bidiclass-byname: Renamed from
8408         modules/unictype/bidicategory-byname.
8409         (Description): Update.
8410         * modules/unictype/bidiclass-byname-tests: Renamed from
8411         modules/unictype/bidicategory-byname-tests.
8412         * modules/unictype/bidiclass-of: Renamed from
8413         modules/unictype/bidicategory-of.
8414         (Description): Update.
8415         * modules/unictype/bidiclass-of-tests: Renamed from
8416         modules/unictype/bidicategory-of-tests.
8417         * modules/unictype/bidiclass-test: Renamed from
8418         modules/unictype/bidicategory-test.
8419         (Description): Update.
8420         * modules/unictype/bidiclass-test-tests: Renamed from
8421         modules/unictype/bidicategory-test-tests.
8422         * modules/unictype/bidicategory-all: New file, a simple redirection.
8423         * modules/unictype/bidicategory-name: Likewise.
8424         * modules/unictype/bidicategory-byname: Likewise.
8425         * modules/unictype/bidicategory-of: Likewise.
8426         * modules/unictype/bidicategory-test: Likewise.
8427         * modules/unictype/property-bidi-* (Dependencies): Update.
8428         * lib/unictype/bidi_*.c: Update comment.
8429
8430 2011-03-26  Bruno Haible  <bruno@clisp.org>
8431
8432         unictype/bidi*: Rename functions, part 2.
8433         * modules/unictype/bidicategory-name (configure.ac): Update required
8434         libunistring version.
8435         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8436
8437 2011-03-25  Bruno Haible  <bruno@clisp.org>
8438
8439         New module 'unictype/combining-class-all'.
8440         * modules/unictype/combining-class-all: New file.
8441
8442         Tests for module 'unictype/combining-class-byname'.
8443         * modules/unictype/combining-class-byname-tests: New file.
8444         * tests/unictype/test-combiningclass_byname.c: New file.
8445
8446         New module 'unictype/combining-class-byname'.
8447         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8448         * lib/unictype/combiningclass_byname.c: New file.
8449         * lib/unictype/combiningclass_byname.gperf: New file.
8450         * modules/unictype/combining-class-byname: New file.
8451
8452         Tests for module 'unictype/combining-class-longname'.
8453         * modules/unictype/combining-class-longname-tests: New file.
8454         * tests/unictype/test-combiningclass_longname.c: New file.
8455
8456         New module 'unictype/combining-class-longname'.
8457         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8458         * lib/unictype/combiningclass_longname.c: New file.
8459         * modules/unictype/combining-class-longname: New file.
8460
8461         Tests for module 'unictype/combining-class-name'.
8462         * modules/unictype/combining-class-name-tests: New file.
8463         * tests/unictype/test-combiningclass_name.c: New file.
8464
8465         New module 'unictype/combining-class-name'.
8466         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8467         * lib/unictype/combiningclass_name.c: New file.
8468         * modules/unictype/combining-class-name: New file.
8469
8470 2011-03-25  Bruno Haible  <bruno@clisp.org>
8471
8472         unictype/combining-class: Rename source files.
8473         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8474         of unictype/combining.h.
8475         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8476         Update.
8477         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8478         * modules/unictype/combining-class (Description): Fix.
8479         (Files, Makefile.am): Update.
8480         * tests/unictype/test-combiningclass.c: Renamed from
8481         tests/unictype/test-combining.c.
8482         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8483
8484 2011-03-25  Bruno Haible  <bruno@clisp.org>
8485
8486         unictype: Update list of canonical combining classes.
8487         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8488
8489 2011-03-25  Bruno Haible  <bruno@clisp.org>
8490
8491         unictype/category-byname: Recognize long names as well.
8492         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8493         a long name.
8494         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8495         unictype/categ_byname.h.
8496         (UC_CATEGORY_INDEX_*): New enumeration values.
8497         (uc_general_category_byname): Use uc_general_category_lookup and
8498         convert from index to value.
8499         * lib/unictype/categ_byname.gperf: New file.
8500         * modules/unictype/category-byname (Files): Add
8501         lib/unictype/categ_byname.gperf.
8502         (Depends-on): Add gperf.
8503         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8504         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8505         long names.
8506
8507         Tests for module 'unictype/category-longname'.
8508         * modules/unictype/category-longname-tests: New file.
8509         * tests/unictype/test-categ_longname.c: New file.
8510
8511         New module 'unictype/category-longname'.
8512         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8513         * lib/unictype/categ_longname.c: New file.
8514         * modules/unictype/category-longname: New file.
8515         * modules/unictype/category-all (Depends-on): Add it.
8516
8517 2011-03-25  Bruno Haible  <bruno@clisp.org>
8518
8519         Tests for module 'unictype/category-LC'.
8520         * modules/unictype/category-LC-tests: New file.
8521         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8522
8523         New module 'unictype/category-LC'.
8524         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8525         (UC_CATEGORY_LC): New declaration.
8526         (UC_CASED_LETTER): New macro.
8527         * lib/gen-uni-tables.c (is_category_LC): New function.
8528         (output_categories): Also handle category LC.
8529         (UC_CATEGORY_MASK_LC): New enumeration value.
8530         (general_category_byname): Also handle category LC.
8531         * lib/unictype/categ_LC.c: New file.
8532         * lib/unictype/categ_LC.h: New file, automatically generated.
8533         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8534         category LC.
8535         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8536         * modules/unictype/category-LC: New file.
8537         * modules/unictype/category-byname (Depends-on): Add
8538         unictype/category-LC.
8539         * modules/unictype/category-all (Depends-on): Likewise.
8540
8541 2011-03-25  Eric Blake  <eblake@redhat.com>
8542
8543         xmalloc: revert yesterday's regression
8544         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8545         realloc's underlying behavior (allowing allocation of zero-size
8546         objects, especially if malloc-gnu is also in use).
8547
8548 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8549
8550         maint.mk: add missing version to VC-tag
8551         * top/maint.mk: git tag was missing actual tag name; add it.
8552
8553         valgrind: do leak checking, and exit with code 1 on error (not 0)
8554         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8555         to VALGRIND.
8556
8557 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8558
8559         posix-modules: say what it does.
8560         * posix-modules: Add a line to the --help output saying what it does.
8561
8562 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8563
8564         xmalloc: Do not leak if underlying realloc is C99 compatible.
8565         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8566         This avoids a leak on C99-based systems.  See
8567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8568
8569 2011-03-24  Eric Blake  <eblake@redhat.com>
8570
8571         realloc: document portability problem
8572         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8573         passing 0 size to realloc.
8574
8575 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8576
8577         doc: update users.txt
8578         * users.txt: Add cvsps, tmpwatch
8579
8580 2011-03-23  Matt Rice  <ratmice@gmail.com>
8581
8582         doc: update users.txt
8583         * users.txt: Add gdb.
8584
8585 2011-03-23  Jim Meyering  <meyering@redhat.com>
8586
8587         doc: update users.txt
8588         Looking through matches up to the following URL (there are still
8589         several more pages), I found several projects that use gnulib:
8590         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8591         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8592         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8593
8594 2011-03-22  Bruno Haible  <bruno@clisp.org>
8595
8596         unictype/bidi*: Rename functions.
8597         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8598         uc_bidi_class, uc_is_bidi_class): New declarations.
8599         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8600         uc_bidi_category_byname.
8601         (uc_bidi_category_byname): New function.
8602         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8603         u_bidi_category_name.
8604         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8605         (uc_bidi_category_name): New function.
8606         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8607         uc_bidi_category.
8608         (uc_bidi_category): New function.
8609         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8610         uc_is_bidi_category. Invoke uc_bidi_class.
8611         (uc_is_bidi_category): New function.
8612         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8613         instead of uc_bidi_category_byname.
8614         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8615         instead of uc_bidi_category_name.
8616         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8617         uc_bidi_category.
8618         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8619         instead of uc_is_bidi_category.
8620
8621 2011-03-21  Bruno Haible  <bruno@clisp.org>
8622
8623         New module 'unictype/joininggroup-all'.
8624         * modules/unictype/joininggroup-all: New file.
8625
8626         Tests for module 'unictype/joininggroup-of'.
8627         * modules/unictype/joininggroup-of-tests: New file.
8628         * tests/unictype/test-joininggroup_of.c: New file.
8629         * tests/unictype/test-joininggroup_of.h: New file, automatically
8630         generated by gen-uni-tables.
8631
8632         New module 'unictype/joininggroup-of'.
8633         * modules/unictype/joininggroup-of: New file.
8634         * lib/unictype/joininggroup_of.c: New file.
8635         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8636         gen-uni-tables.
8637
8638         Tests for module 'unictype/joininggroup-byname'.
8639         * modules/unictype/joininggroup-byname-tests: New file.
8640         * tests/unictype/test-joininggroup_byname.c: New file.
8641
8642         New module 'unictype/joininggroup-byname'.
8643         * modules/unictype/joininggroup-byname: New file.
8644         * lib/unictype/joininggroup_byname.c: New file.
8645         * lib/unictype/joininggroup_byname.gperf: New file.
8646
8647         Tests for module 'unictype/joininggroup-name'.
8648         * modules/unictype/joininggroup-name-tests: New file.
8649         * tests/unictype/test-joininggroup_name.c: New file.
8650
8651         New module 'unictype/joininggroup-name'.
8652         * modules/unictype/joininggroup-name: New file.
8653         * lib/unictype/joininggroup_name.c: New file.
8654         * lib/unictype/joininggroup_name.h: New file.
8655
8656         New module 'unictype/joiningtype-all'.
8657         * modules/unictype/joiningtype-all: New file.
8658
8659         Tests for module 'unictype/joiningtype-of'.
8660         * modules/unictype/joiningtype-of-tests: New file.
8661         * tests/unictype/test-joiningtype_of.c: New file.
8662         * tests/unictype/test-joiningtype_of.h: New file, automatically
8663         generated by gen-uni-tables.
8664
8665         New module 'unictype/joiningtype-of'.
8666         * modules/unictype/joiningtype-of: New file.
8667         * lib/unictype/joiningtype_of.c: New file.
8668         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8669         gen-uni-tables.
8670
8671         Tests for module 'unictype/joiningtype-byname'.
8672         * modules/unictype/joiningtype-byname-tests: New file.
8673         * tests/unictype/test-joiningtype_byname.c: New file.
8674
8675         New module 'unictype/joiningtype-byname'.
8676         * modules/unictype/joiningtype-byname: New file.
8677         * lib/unictype/joiningtype_byname.c: New file.
8678
8679         Tests for module 'unictype/joiningtype-name'.
8680         * modules/unictype/joiningtype-name-tests: New file.
8681         * tests/unictype/test-joiningtype_name.c: New file.
8682
8683         New module 'unictype/joiningtype-name'.
8684         * modules/unictype/joiningtype-name: New file.
8685         * lib/unictype/joiningtype_name.c: New file.
8686
8687         unictype: Add support for Arabic shaping properties.
8688         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8689         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8690         declarations.
8691         (UC_JOINING_GROUP_*): New enumeration values.
8692         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8693         declarations.
8694         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8695         (unicode_joining_type): New variable.
8696         (UC_JOINING_GROUP_*): New enumeration values.
8697         (unicode_joining_group): New variable.
8698         (fill_arabicshaping, joining_type_as_c_identifier,
8699         output_joining_type_test, output_joining_type,
8700         joining_group_as_c_identifier, output_joining_group_test,
8701         output_joining_group): New functions.
8702         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8703         fill_arabicshaping and output_joining_type_test, output_joining_type,
8704         output_joining_group_test, output_joining_group.
8705         Reported by Simon Josefsson.
8706
8707 2011-03-21  Jim Meyering  <meyering@redhat.com>
8708
8709         strftime: fix a bug in yesterday's change
8710         * lib/strftime.c (add): Accommodate width's initial value of -1.
8711         Otherwise, nstrftime would copy uninitialized data into
8712         the result buffer.
8713
8714 2011-03-21  Jim Meyering  <meyering@redhat.com>
8715
8716         tests: add strftime-tests module
8717         * tests/test-strftime.c: New file.
8718         * modules/strftime-tests: New module.
8719
8720 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8721
8722         strftime: don't assume a byte count fits in 'int'
8723         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8724         found this problem by static analysis, using gcc -Wstrict-overflow
8725         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8726         on an integer overflow having undefined behavior, but it turns out
8727         that the argument is a size, which might not fit in 'int' anyway,
8728
8729 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8730
8731         stdio: don't require ignore_value around fwrite
8732
8733         This patch works around libc bug 11959
8734         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8735         Without this patch, applications must often write
8736         ignore_value (fwrite (...)) even though the ignore_value is
8737         not helpful here.  It's common to write many objects, using
8738         fwrite/printf/etc., and then use ferror to detect output error.
8739
8740         I considered making this patch optional, but decided against it,
8741         because libc is obviously being inconsistent here: there is no
8742         reason libc should insist that user code must inspect fwrite
8743         return's value without also insisting that it inspect printf's,
8744         putchar's, etc.  If user code wants to have a strict style where
8745         all these functions' values are checked (so that ferror need not
8746         be checked), we could add support for that style in a new gnulib
8747         module, but in the meantime it's better to be consistent and to
8748         support common usage.
8749
8750         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8751         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8752         that we are compiling in checking mode, and if not C++, and
8753         if not already wrapping fwrite for some other reason.
8754         (fwrite): #define to rpl_fwrite if the latter is defined.
8755
8756 2011-03-20  Bruno Haible  <bruno@clisp.org>
8757
8758         verror: Fix compilation error introduced on 2011-02-13.
8759         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8760         instead of __attribute__.
8761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8762
8763 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8764             Bruno Haible  <bruno@clisp.org>
8765
8766         socklen: do not depend on sys_socket
8767         While trying to modify Emacs to use gnulib's socklen module,
8768         I discovered a circular dependency: socklen depends on sys_socket
8769         and vice versa.  Emacs can use socklen, but it does not need
8770         sys_socket because it has its own substitute for sys/socket.h.
8771         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8772         gl_TYPE_SOCKLEN_T.
8773         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8774         gl_PREREQ_SYS_H_SOCKET.
8775         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8776         gl_PREREQ_SYS_H_SOCKET.
8777         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8778         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8779         * modules/socklen (Depends-on): Do not depend on sys_socket.
8780         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8781
8782 2011-03-20  Jim Meyering  <meyering@redhat.com>
8783
8784         maint.mk: sort file names *after* new transformation
8785         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8786         prefix would have led to an unwarranted failure in GNU parted.
8787         Sort after that transformation.
8788
8789 2011-03-19  Jim Meyering  <meyering@redhat.com>
8790
8791         maint.mk: fix po-file syntax-check rule
8792         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8793         Patch by Bruno Haible.
8794
8795 2011-03-19  Bruno Haible  <bruno@clisp.org>
8796
8797         socklen: Update comment.
8798         * m4/socklen.m4: Update comment about platforms.
8799
8800 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8801             Bruno Haible  <bruno@clisp.org>
8802
8803         inet_ntop, inet_pton: Simplify.
8804         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8805         documented to provide socklen_t and we already depend on sys_socket.
8806         * modules/inet_pton (Depends-on): Likewise.
8807         * lib/arpa_inet.in.h: Adjust comment.
8808
8809 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8810             Bruno Haible  <bruno@clisp.org>
8811
8812         netdb: Simplify.
8813         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8814         documented to provide socklen_t and we already depend on sys_socket.
8815         * lib/netdb.in.h: Adjust comment.
8816
8817 2011-03-19  Bruno Haible  <bruno@clisp.org>
8818
8819         sys_socket, netdb: Document problem with socklen_t.
8820         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8821         platforms.
8822         * doc/posix-headers/netdb.texi: Likewise.
8823
8824 2011-03-18  Eric Blake  <eblake@redhat.com>
8825
8826         maint.mk: let po check work in VPATH build
8827         * top/maint.mk (po_file): Allow cfg.mk override.
8828         (sc_po_check): Allow VPATH use.
8829         Reported by Jiri Denemark.
8830
8831 2011-03-16  Jim Meyering  <meyering@redhat.com>
8832
8833         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8834         Before, you would have had to create one .x-sc_ file per rule in order
8835         to exempt offending files.  Now, you may instead use a Make variable --
8836         usually defined in cfg.mk -- whose name identifies the affected rule.
8837         * top/maint.mk (_sc_excl): Define.
8838         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8839         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8840
8841 2011-03-13  Bruno Haible  <bruno@clisp.org>
8842
8843         ignore-value tests: Avoid warnings.
8844         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8845         empty for gcc < 3.4.
8846
8847 2011-03-13  Bruno Haible  <bruno@clisp.org>
8848
8849         passfd: Fix link error on Solaris.
8850         * modules/passfd (Description): Correct.
8851         (Depends-on): Add socketlib.
8852         (Link): New section.
8853         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8854
8855 2011-03-13  Bruno Haible  <bruno@clisp.org>
8856
8857         passfd: Fix link error on AIX 5.2.
8858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8859
8860 2011-03-13  Bruno Haible  <bruno@clisp.org>
8861
8862         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8863         * lib/sys_socket.in.h: Include <stddef.h>.
8864         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8865         CMSG_FIRSTHDR. Remove unused variable.
8866
8867 2011-03-13  Bruno Haible  <bruno@clisp.org>
8868
8869         passfd: Fix compilation error on OpenBSD.
8870         * lib/passfd.c: Include <sys/uio.h>.
8871
8872 2011-03-13  Bruno Haible  <bruno@clisp.org>
8873
8874         passfd test: Fix warnings.
8875         * tests/test-passfd.c: Include <sys/wait.h>.
8876         (main): Fix typo.
8877
8878 2011-03-13  Bruno Haible  <bruno@clisp.org>
8879
8880         passfd module, part 4, tweaks.
8881         * tests/test-passfd.c: Reorder includes.
8882         (main): Fix perror and printf calls.
8883
8884 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8885
8886         passfd module, part 4.
8887         * modules/passfd-tests: New file.
8888         * tests/test-passfd.c: New file.
8889
8890 2011-03-13  Jim Meyering  <meyering@redhat.com>
8891
8892         Makefile: rely on GNU make; derive syntax-check rule names
8893         Rather than requiring that each sc_ rule be listed as a dependent
8894         of "check", use features of GNU make to derive the list.
8895         * Makefile (syntax-check-rules): Define.
8896         (check): Depend on the new variable, not the hard-coded list.
8897
8898 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8899             Bruno Haible  <bruno@clisp.org>
8900
8901         passfd module, part 3.
8902         * lib/passfd.h (recvfd): Add a flags argument.
8903         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8904         (recvfd): Add a flags argument.
8905         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8906         exists.
8907         * modules/passfd (Depends-on): Add cloexec.
8908         Suggested by Eric Blake.
8909
8910 2011-03-13  Bruno Haible  <bruno@clisp.org>
8911
8912         passfd module, part 2, tweaks.
8913         * modules/passfd (Files): Reorder.
8914         (Depends-on): Remove errno.
8915         (Include): Remove <sys/socket.h>, <sys/un.h>.
8916         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8917         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8918         specification header. Include <sys/socket.h> always. Don't include
8919         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8920         (sendfd): Clarify that it sets errno when it fails.
8921         (recvfd): Fix specification.
8922
8923 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8924
8925         passfd module, part 2.
8926         * modules/passfd: New file.
8927         * lib/passfd.h: New file.
8928         * lib/passfd.c: New file.
8929
8930 2011-03-12  Bruno Haible  <bruno@clisp.org>
8931
8932         wcswidth, mbswidth: Avoid integer overflow.
8933         * lib/wcswidth.c: Include <limits.h>.
8934         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8935         * lib/mbswidth.c: Include <limits.h>.
8936         (mbsnwidth): Avoid 'int' overflow.
8937         Reported by Jim Meyering.
8938
8939 2011-03-12  Bruno Haible  <bruno@clisp.org>
8940
8941         futimens, utimensat: Avoid endless recursion on Solaris 10.
8942         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8943         Solaris.
8944         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8945         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8946
8947 2011-03-11  Jim Meyering  <meyering@redhat.com>
8948
8949         maint.mk: relax a regexp to accommodate other formatting styles
8950         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8951         between "ngettext" and the following "(".
8952
8953 2011-03-11  Pádraig Brady <P@draigBrady.com>
8954
8955         maint.mk: suppress a false positive warning
8956         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8957         diagnostics are marked with ngettext.
8958
8959 2011-03-10  Eric Blake  <eblake@redhat.com>
8960
8961         wchar: add explicit dependencies, for Tru64
8962         * modules/mbmemcasecoll (Depends-on): Add wchar.
8963         * modules/mbtowc (Depends-on): Likewise.
8964         * modules/vasnprintf (Depends-on): Likewise.
8965         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8966         * modules/wctomb (Depends-on): Likewise.
8967         Reported by Peter O'Gorman.
8968
8969 2011-03-08  Bruno Haible  <bruno@clisp.org>
8970
8971         passfd module, part 1, tweaks.
8972         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8973         Improve indentation. Improve AC_MSG_CHECKING messages.
8974         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8975         gl_SOCKET_FAMILIES.
8976
8977 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8978
8979         passfd module, part 1.
8980         * m4/afunix.m4: New file.
8981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8982         sockets.
8983
8984 2011-03-08  Bruno Haible  <bruno@clisp.org>
8985
8986         regex-quote: New API.
8987         * lib/regex-quote.h: Include <stdbool.h>.
8988         (struct regex_quote_spec): New type.
8989         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8990         New declarations.
8991         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8992         'const struct regex_quote_spec *' argument.
8993         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8994         (pcre_special): New constant.
8995         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8996         New functions.
8997         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8998         'const struct regex_quote_spec *' argument.
8999         * modules/regex-quote (Depends-on): Add stdbool.
9000         * tests/test-regex-quote.c (check): Update for new API. Add test for
9001         anchored results.
9002         * NEWS: Mention the API change.
9003         Reported by Reuben Thomas and Eric Blake.
9004
9005 2011-03-06  Bruno Haible  <bruno@clisp.org>
9006
9007         regex-quote: Fix creation of POSIX extended regular expressions.
9008         * lib/regex-quote.c (ere_special): Add grouping and alternation
9009         operators.
9010
9011 2011-03-05  Bruno Haible  <bruno@clisp.org>
9012
9013         doc: Improve doc regarding autopoint vs. gnulib.
9014         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9015         disable autopoint while running autoreconf.
9016         Suggested by Ralf Wildenhues.
9017
9018 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9019
9020         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9021         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9022
9023 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9024
9025         parse-duration: remove xalloc.h dependency
9026         * lib/parse-duration.c (parse_period): handle NULL return from
9027         strdup instead of calling xstrdup().
9028         * modules/parse-duration: remove "xalloc" dependency
9029
9030 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9031
9032         bootstrap: honor m4_base when running aclocal
9033         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9034
9035 2011-03-02  Jim Meyering  <meyering@redhat.com>
9036
9037         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9038         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9039         on request from Matt Booth.
9040
9041 2011-03-01  Eric Blake  <eblake@redhat.com>
9042
9043         test-link: work on Hurd
9044         * tests/test-link.h (test_link): Hurd rejects linking directories
9045         with EISDIR instead of the POSIX-mandated EPERM.
9046
9047 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9048
9049         stdio: simplify by moving files to printf-posix, sigpipe
9050         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9051         since this symbol is needed only if printf is replaced.
9052         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9053         Require gl_ASM_SYMBOL_PREFIX.
9054         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9055         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9056         (Depends-on): Add 'raise'.
9057         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9058         * modules/stdio (Files): Remove lib/stdio-write.c,
9059         m4/asm-underscore.m4.
9060         (Depends-on): Remove 'raise'.
9061
9062         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9063         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9064         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9065         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9066
9067 2011-02-28  Bruno Haible  <bruno@clisp.org>
9068
9069         localcharset: Assume ANSI C behaviour of free().
9070         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9071         calling free().
9072         Suggested by Simon Josefsson <simon@josefsson.org>.
9073
9074 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9075             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9076             Bruno Haible  <bruno@clisp.org>  (tiny change)
9077
9078         On Cygwin, use /proc file system instead of win32 API.
9079         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9080         Win32 file names.
9081         (DllMain): Simplify by removing Cygwin specific code.
9082         (find_shared_library_fullname): Use Linux specific implementation also
9083         for Cygwin.
9084         (get_shared_library_fullname): Update accordingly.
9085         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9086         Win32 file names.
9087         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9088         Cygwin specific code.
9089
9090 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9091             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9092
9093         Fix OpenMP flag detection for various Fortran compilers.
9094         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9095         OpenMP-conditional compilation construct, to force compile
9096         failure with missing OpenMP flag.
9097         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9098
9099 2011-02-25  Eric Blake  <eblake@redhat.com>
9100
9101         strstr: expand test coverage
9102         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9103         compilation.
9104         * tests/test-memmem.c (main): Duplicate tests.
9105         * tests/test-strcasestr.c (main): Likewise.
9106         * tests/test-c-strcasestr.c (main): Likewise.
9107
9108 2011-02-25  Jim Meyering  <meyering@redhat.com>
9109
9110         maint.mk: detect missing-NL-at-EOF, too
9111         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9112         it also detects when a file lacks a newline at EOF.
9113         (require_exactly_one_NL_at_EOF_): Renamed from
9114         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9115         since people may well have .x-sc_... file names tied to the
9116         existing name.  Suggested by Eric Blake.
9117
9118 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9119
9120         dirname: move m4/dos.m4 functionality into lib/dosname.h
9121
9122         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9123         extracts symbols from it, puts them into config.h; but it's much
9124         easier to use the symbols directly.  filename.h already does this,
9125         but it disagrees with dos.m4 in some respects.  This patch
9126         introduces a different include file dosname.h that packages up
9127         dos.m4, and then later we can work on merging filename.h and
9128         dosname.h.  Applications that need only the easy-to-configure
9129         symbols should consider including dosname.h rather than dirname.h.
9130         * NEWS: Mention incompatible changes.
9131         * m4/dos.m4: Remove.
9132         * lib/dosname.h, modules/dosname: New files.
9133         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9134         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9135         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9136         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9137         Include dosname.h, not dirname.h.
9138         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9139         Include dosname.h, for definitions of symbols like ISSLASH
9140         that used to be in config.h.
9141         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9143         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9144         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9145         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9146         * modules/rmdir (Files): Likewise.
9147         * modules/stat (Files): Likewise.
9148         * modules/unlink (Files): Likewise.
9149         * modules/dirname-lgpl (Depends-on): Add dosname.
9150         * modules/lstat (Depends-on): Likewise.
9151         * modules/openat (Depends-on): Likewise.
9152         * modules/rmdir (Depends-on): Likewise.
9153         * modules/savewd (Depends-on): Likewise.
9154         * modules/stat (Depends-on): Likewise.
9155         * modules/unlink (Depends-on): Likewise.
9156         * modules/openat (Depends-on): Remove dirname-lgpl.
9157         * modules/savewd (Depends-on): Likewise.
9158         * tests/test-dirname.c: Do not use removed symbols like
9159         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9160         the remaining symbols, e.g., ISSLASH ('\\').
9161
9162 2011-02-25  Eric Blake  <eblake@redhat.com>
9163
9164         strstr: revert patches that introduced bug and pessimization
9165         * lib/str-two-way.h: Add another reference.
9166         (two_way_short_needle, two_way_long_needle): Revert changes from
9167         2011-02-24; they pessimize search speed.
9168         (critical_factorization): Partially revert changes from
9169         2010-06-22; they violate the requirement that the left half of the
9170         needle be smaller than the period of the needle.
9171
9172 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9173
9174         filenamecat: remove unnecessary dependency on dirname-lgpl
9175         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9176         is no direct dependency, just an indirect one via filenamecat-lgpl.
9177
9178         remove: remove unnecessary use of m4/dos.m4
9179         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9180         * modules/remove (FILES): Remove m4/dos.m4.
9181
9182         * lib/openat-proc.c: Don't include dirname.h; not needed.
9183
9184         backupfile: remove unnecessary use of m4/dos.m4
9185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9186         of its symbols are used by the backupfile code.  backupfile.c does
9187         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9188         for the rare case of programs that want all their backup file
9189         names to live within 8+3 limits, and dos.m4 doesn't address that.
9190         * modules/backupfile (Files): Remove m4/dos.m4.
9191
9192 2011-02-24  Jim Meyering  <meyering@redhat.com>
9193
9194         strstr: fix a bug whereby strstr would mistakenly return NULL
9195         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9196         in period calculation.
9197         (two_way_long_needle): Likewise.
9198         The original problem was reported by Mike Stump in
9199         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9200         Ralf Wildenhues provided the short needle and haystack.
9201         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9202         Add a more involved test to trigger the bug in two_way_long_needle.
9203
9204 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9205
9206         gnulib-tool: remove use of bold display in help screen
9207         * gnulib-tool (func_usage): Do not use bold display anymore in the
9208         help screen.  That was just meant to be a temporary emphasis for a
9209         backward-incompatible change.
9210
9211 2011-02-23  Bruno Haible  <bruno@clisp.org>
9212
9213         Fix misindentation of preprocessor directives.
9214         * lib/argp-namefrob.h: Reindent preprocessor directives.
9215         * lib/getopt_int.h (struct _getopt_data): Likewise.
9216         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9217         * lib/vasnprintf.c (decode_long_double): Likewise.
9218         * tests/test-argmatch.c: Insert blank lines, for clarity.
9219         * tests/test-exclude.c: Likewise.
9220
9221 2011-02-22  Bruno Haible  <bruno@clisp.org>
9222
9223         ioctl: Fix for MacOS X in 64-bit mode.
9224         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9225         value.
9226         Suggested by Eric Blake.
9227         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9228
9229 2011-02-22  Jim Meyering  <meyering@redhat.com>
9230
9231         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9232         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9233         in lib/.
9234
9235 2011-02-22  Eric Blake  <eblake@redhat.com>
9236
9237         maint: avoid any CDPATH issue
9238         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9239
9240         maint: adjust cpp indentation for my modules, as well
9241         * Makefile (sc_cpp_indent_check): Add my name.
9242         * lib/fbufmode.c: Filter through cppi.
9243         * lib/fpurge.c: Likewise.
9244         * lib/freadable.c: Likewise.
9245         * lib/freading.c: Likewise.
9246         * lib/fwritable.c: Likewise.
9247         * lib/fwriting.c: Likewise.
9248         * lib/sigaction.c: Likewise.
9249
9250 2011-02-22  Jim Meyering  <meyering@redhat.com>
9251
9252         maint: adjust cpp indentation to reflect nesting depth
9253         I.e., in a block of code that begins with an unnested "#if",
9254         put one space between the "#" in column 1 and following token.
9255         For example,
9256         -#include <sys/vfs.h>
9257         +# include <sys/vfs.h>
9258         Do this only in .c files that are part of a module I maintain.
9259         * lib/linkat.c: Filter through cppi.
9260         * lib/nanosleep.c: Likewise.
9261         * lib/openat.c: Likewise.
9262         * lib/openat-die.c: Likewise.
9263         * lib/dup3.c: Likewise.
9264         * lib/fchownat.c: Likewise.
9265         * lib/flock.c: Likewise.
9266         * lib/fsync.c: Likewise.
9267         * lib/fts.c: Likewise.
9268         * lib/getpass.c: Likewise.
9269         * lib/gettimeofday.c: Likewise.
9270         * lib/userspec.c: Likewise.
9271         * Makefile (sc_cpp_indent_check): New rule, to check this.
9272
9273 2011-02-22  Bruno Haible  <bruno@clisp.org>
9274
9275         New module 'wctomb'.
9276         * lib/stdlib.in.h (wctomb): New declaration.
9277         * lib/wctomb.c: New file.
9278         * lib/wctomb-impl.h: New file.
9279         * m4/wctomb.m4: New file.
9280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9281         REPLACE_WCTOMB.
9282         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9283         REPLACE_WCTOMB.
9284         * modules/wctomb: New file.
9285         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9286         * doc/posix-functions/wctomb.texi: Mention the new module.
9287         * modules/wctob (Depends-on): Add wctomb.
9288
9289 2011-02-22  Bruno Haible  <bruno@clisp.org>
9290
9291         New module 'mbtowc'.
9292         * lib/stdlib.in.h (mbtowc): New declaration.
9293         * lib/mbtowc.c: New file.
9294         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9295         * m4/mbtowc.m4: New file.
9296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9297         REPLACE_MBTOWC.
9298         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9299         REPLACE_MBTOWC.
9300         * modules/mbtowc: New file.
9301         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9302         * doc/posix-functions/mbtowc.texi: Mention the new module.
9303         * modules/btowc (Depends-on): Add mbtowc.
9304
9305 2011-02-22  Bruno Haible  <bruno@clisp.org>
9306
9307         wcrtomb: Add more tests for native Windows platforms.
9308         * tests/test-wcrtomb-w32-1.sh: New file.
9309         * tests/test-wcrtomb-w32-2.sh: New file.
9310         * tests/test-wcrtomb-w32-3.sh: New file.
9311         * tests/test-wcrtomb-w32-4.sh: New file.
9312         * tests/test-wcrtomb-w32-5.sh: New file.
9313         * tests/test-wcrtomb-w32.c: New file.
9314         * modules/wcrtomb-tests (Files): Add them.
9315         (Makefile.am): Arrange to run these tests.
9316         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9317         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9318
9319 2011-02-20  Bruno Haible  <bruno@clisp.org>
9320
9321         wcrtomb: Enhance test.
9322         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9323
9324 2011-02-20  Bruno Haible  <bruno@clisp.org>
9325
9326         mbrtowc: Tiny optimization.
9327         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9328
9329 2011-02-20  Jim Meyering  <meyering@redhat.com>
9330
9331         test-exclude.c: remove unmatched #endif
9332         * tests/test-exclude.c: Remove stray #endif, left over from
9333         the change of a week ago.
9334
9335 2011-02-19  Jim Meyering  <meyering@redhat.com>
9336
9337         git-version-gen: skip "-dirty" check when appropriate
9338         * build-aux/git-version-gen: Don't run any git commands when the
9339         version string comes from .tarball-version.  Prior to this, we
9340         would run git update-index --refresh even from a just-unpacked
9341         tarball directory, and that could affect a .git/ directory in a
9342         parent of the build directory.  Reported by Mike Frysinger.
9343
9344 2011-02-19  Bruno Haible  <bruno@clisp.org>
9345
9346         unictype/property-byname: Reduce the size of the 'data' segment.
9347         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9348
9349 2011-02-19  Bruno Haible  <bruno@clisp.org>
9350
9351         unictype/scripts: Reduce the size of the 'data' segment.
9352         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9353         '%pic'.
9354         * lib/unictype/scripts_byname.gperf: Regenerated.
9355
9356 2011-02-19  Bruno Haible  <bruno@clisp.org>
9357
9358         stdint: Update documentation.
9359         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9360
9361 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9362
9363         stdint: omit redundant check for wchar.h
9364         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9365         always tests whether wchar.h exists, so remove the now-redundant test.
9366
9367 2011-02-18  Bruno Haible  <bruno@clisp.org>
9368
9369         stdint: Cut dependency to module 'wchar'.
9370         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9371         include the necessary prerequisites.
9372         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9373         * modules/stdint (Depends-on): Remove wchar.
9374         (Makefile.am): Substitute HAVE_WCHAR_H.
9375         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9376
9377 2011-02-18  Eric Blake  <eblake@redhat.com>
9378
9379         longlong: skip, rather than fail, on cross-compilation
9380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9381         when cross-compiling; regression from 2011-02-16.
9382
9383 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9384
9385         * NEWS: Mention 2011-02-08 change to stdlib.
9386
9387 2011-02-17  Bruno Haible  <bruno@clisp.org>
9388
9389         getloadavg: Add comments about platforms.
9390         * m4/getloadavg.m4: Add comment.
9391         * lib/getloadavg.c: Likewise.
9392
9393 2011-02-17  Bruno Haible  <bruno@clisp.org>
9394
9395         getloadavg: Fix link error on Solaris 2.6.
9396         * modules/getloadavg (Link): New section.
9397         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9398         linking test-getloadavg.
9399         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9400         getloadavg.
9401
9402 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9405         It was 'int', but this doesn't match the IRIX 6.5 manual.
9406         Suggested by Bruno Haible in
9407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9408
9409 2011-02-17  Bruno Haible  <bruno@clisp.org>
9410
9411         havelib: Fix comments.
9412         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9413         change.
9414
9415 2011-02-17  Bruno Haible  <bruno@clisp.org>
9416
9417         havelib: Update config.rpath.
9418         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9419
9420 2011-02-17  Bruno Haible  <bruno@clisp.org>
9421
9422         getloadavg test: Add some plausibility checks.
9423         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9424         is improbable.
9425
9426 2011-02-16  Eric Blake  <eblake@redhat.com>
9427
9428         maintainer-makefile: make syntax-check a no-op from tarballs
9429         * top/maint.mk (no-vc-detected): New rule.
9430         (local-checks-available): Use it to avoid hanging if someone tries
9431         'make syntax-check' from a tarball.  Also append to any non-syntax
9432         checks already defined in cfg.mk.
9433
9434 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9435
9436         longlong: tune, particularly for common case of c99
9437
9438         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9439         or running anything if c99, or if unsigned long long int does not
9440         work.  In either case, we know the answer without further tests.
9441         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9442         it at most once, and use its results for both long long int and
9443         unsigned long long int.  This is more likely to be efficient in
9444         the common case where the program wants to check for both long
9445         long int and unsigned long long int.
9446         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9447         since the answer is already known.
9448
9449 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9450
9451         getloadavg: set errno
9452         * lib/getloadavg.c: Set errno when returning -1.  If no other
9453         error number looks appropriate, set it to ENOSYS if the getloadavg
9454         looks like it can't possibly ever work, ENOTSUP otherwise.
9455         Suggested by Bruno Haible in
9456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9457
9458         getloadavg: trim unused parts and speed up 'configure'
9459         * NEWS: Document this.
9460         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9461         always compiled if getloadavg is absent.
9462         Move test code to ...
9463         * tests/test-getloadavg.c: New file, containing previous
9464         contents of test from lib/getloadavg.c.  It also contains
9465         suggestions by Bruno Haible in
9466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9467         * modules/getloadavg-tests: New file.
9468         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9469         Do tests in the same order as they're needed for getloadavg.c.
9470         Omit setgid-related tests that generate symbols KMEM_GROUP,
9471         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9472         Do only the tests that are needed to see whether the system has
9473         getloadavg, moving the other tests into ...
9474         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9475         NLIST_NAME_UNION; nobody should be using it.  Do not define
9476         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9477         relevant, as the user of this module shouldn't care how getloadavg
9478         is implemented.
9479
9480         getloadavg: omit unused var
9481         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9482
9483 2011-02-15  Jim Meyering  <meyering@redhat.com>
9484
9485         doc: update users.txt
9486         * users.txt: Update iwhd's URL.
9487
9488 2011-02-13  Bruno Haible  <bruno@clisp.org>
9489
9490         Consistent macro naming for macros that use GCC __attribute__.
9491         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9492         _ATTRIBUTE_NONNULL_.
9493         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9494         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9495         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9496         ATTRIBUTE_DEPRECATED.
9497         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9498         ATTRIBUTE_NORETURN.
9499         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9500         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9501         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9502         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9503         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9504         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9505         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9506         ATTRIBUTE_SENTINEL.
9507         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9508         ATTRIBUTE_RETURN_CHECK.
9509         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9510         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9511         ATTRIBUTE_NORETURN.
9512         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9513         Reported by Paul Eggert.
9514
9515 2011-02-13  Bruno Haible  <bruno@clisp.org>
9516
9517         Don't interfere with a program's definition of __attribute__.
9518         * lib/argp.h (__attribute__): Remove definition.
9519         (_GL_ATTRIBUTE_FORMAT): New macro.
9520         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9521         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9522         (_GL_ATTRIBUTE_FORMAT): New macro.
9523         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9524         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9525         GCC 3 or newer.
9526         * lib/error.h (__attribute__): Remove definition.
9527         (_GL_ATTRIBUTE_FORMAT): New macro.
9528         (error, error_at_line): Use it.
9529         * lib/hash.h (__attribute__): Remove definition.
9530         (ATTRIBUTE_WUR): Update definition. Define always.
9531         * lib/openat.h (__attribute__): Remove definition.
9532         (ATTRIBUTE_NORETURN): Update definition. Define always.
9533         * lib/sigpipe-die.h (__attribute__): Remove definition.
9534         (ATTRIBUTE_NORETURN): Update definition. Define always.
9535         * lib/vasnprintf.h (__attribute__): Remove definition.
9536         (_GL_ATTRIBUTE_FORMAT): New macro.
9537         (asnprintf, vasnprintf): Use it.
9538         * lib/xalloc.h (__attribute__): Remove definition.
9539         (ATTRIBUTE_NORETURN): Update definition. Define always.
9540         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9541         * lib/xmemdup0.h (__attribute__): Remove definition.
9542         (ATTRIBUTE_NORETURN): Update definition. Define always.
9543         * lib/xprintf.h (__attribute__): Remove definition.
9544         (_GL_ATTRIBUTE_FORMAT): New macro.
9545         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9546         * lib/xstrtol.h (__attribute__): Remove definition.
9547         (ATTRIBUTE_NORETURN): Update definition. Define always.
9548         * lib/xvasprintf.h (__attribute__): Remove definition.
9549         (_GL_ATTRIBUTE_FORMAT): New macro.
9550         (xasprintf, xvasprintf): Use it.
9551         * tests/test-argmatch.c (__attribute__): Remove definition.
9552         (ATTRIBUTE_NORETURN): Update definition. Define always.
9553         * tests/test-exclude.c (__attribute__): Remove definition.
9554         (ATTRIBUTE_NORETURN): Update definition. Define always.
9555         Reported by Paul Eggert.
9556
9557 2011-02-13  Bruno Haible  <bruno@clisp.org>
9558
9559         mbrtowc: Add more tests for native Windows platforms.
9560         * tests/test-mbrtowc-w32-1.sh: New file.
9561         * tests/test-mbrtowc-w32-2.sh: New file.
9562         * tests/test-mbrtowc-w32-3.sh: New file.
9563         * tests/test-mbrtowc-w32-4.sh: New file.
9564         * tests/test-mbrtowc-w32-5.sh: New file.
9565         * tests/test-mbrtowc-w32.c: New file.
9566         * modules/mbrtowc-tests (Files): Add them.
9567         (Makefile.am): Arrange to run these tests.
9568         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9569         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9570
9571 2011-02-13  Bruno Haible  <bruno@clisp.org>
9572
9573         mbrtowc: Work around native Windows bug.
9574         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9575         guess when no suitable locale for testing was found.
9576         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9577
9578 2011-02-13  Bruno Haible  <bruno@clisp.org>
9579
9580         mbsinit: Work around mingw bug.
9581         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9582         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9583         Windows.
9584         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9585
9586 2011-02-13  Bruno Haible  <bruno@clisp.org>
9587
9588         mbsinit: Don't crash for a NULL argument.
9589         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9590         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9591
9592 2011-02-13  Bruno Haible  <bruno@clisp.org>
9593
9594         Don't interfere with a program's definition of __attribute__.
9595         * lib/stdio.in.h (__attribute__): Remove definition.
9596         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9597         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9598         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9599         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9600         * lib/string.in.h (__attribute__): Remove definition.
9601         Reported by Paul Eggert.
9602
9603 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9604
9605         stdlib: don't get in the way of non-GCC __attribute__
9606         See thread starting at
9607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9608         Revert previous stdlib change, installing the following instead:
9609         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9610         to get in the way of a non-GCC compiler that supports __attribute__.
9611         (_GL_ATTRIBUTE_RETURN): New macro.
9612         (_Exit): Use it instead of __attribute__.
9613
9614 2011-02-12  Bruno Haible  <bruno@clisp.org>
9615
9616         quotearg test: Avoid test failure on mingw.
9617         * tests/test-quotearg.sh: Convert the locale identifier from native
9618         Windows syntax to Unix syntax.
9619
9620 2011-02-12  Bruno Haible  <bruno@clisp.org>
9621
9622         setlocale: Prefer gnulib's override over libintl's override.
9623         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9624         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9625         GNULIB_defined_setlocale is set.
9626
9627 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9628
9629         stdlib: support non-GCC __attribute__
9630
9631         Fix a serious and tricky problem encountered when attempting to
9632         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9633         5.5, but it crashed due to memory corruption on Solaris 10 with
9634         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9635         bits that are otherwise zero.  This tagging is optional inside
9636         Emacs but is preferred and is used when __attribute__ ((__aligned
9637         (8))) works, as it does with both recent-enough GCC and with Sun C
9638         5.11.  However, Sun C 5.11 is not GCC and does not #define
9639         __GNUC__ and __GNUC_MINOR__.
9640
9641         When I added the getloadavg module to Emacs, it brought in
9642         stdlib.in.h, which contained this fragment:
9643
9644            #ifndef __attribute__
9645            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9646            #  define __attribute__(Spec)   /* empty */
9647            # endif
9648            #endif
9649
9650         When files that include <stdlib.h> were compiled with Sun C 5.11,
9651         the above code disabled __attribute__ ((__aligned (8))), which
9652         caused variables to not be properly aligned, which eventually led
9653         to the pointer corruption mentioned above.  (This was a bit hard
9654         to diagnose, unfortunately.)
9655
9656         Several "#define __attribute__(X) /* empty */" code snippets need
9657         to be eradicated from Gnulib to work with non-GCC compilers that
9658         support __attribute__.  The Autoconf way to do this is to test for
9659         each kind of attribute that we want support for, and selectively
9660         enable that in source code.
9661
9662         Fix this problem just for stdlib.h, by adding a test for the
9663         __noreturn__ attribute, and change stdlib.in.h to use that test
9664         when needed.  This technique can be easily generalized to the
9665         other *.in.h files and attributes, and a similar technique can be
9666         used for *.h and *.c files.  This patch is enough to solve the
9667         problem for Emacs + getloadavg, and I thought I'd publish it for
9668         feedback before undertaking further, similar fixes in other
9669         modules.
9670
9671         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9672         because it's not needed for stdlib.h.  It merely substitutes the
9673         value directly into stdlib.h.  We may well need to #define it, or
9674         similar symbols, for other modules, but it's nice to also have an
9675         option to not #define it for applications like Emacs that do not
9676         need it.
9677
9678         * lib/stdlib.in.h (__attribute__): Do not #define.
9679         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9680         be defined only if the _Exit module is also used.
9681         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9683         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9684         platforms.
9685         * modules/_Exit (Files): Add m4/attribute.m4.
9686         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9687         * m4/attribute.m4: New file.
9688
9689 2011-02-12  Bruno Haible  <bruno@clisp.org>
9690
9691         wcsrtombs: Work around bug on native Windows.
9692         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9693         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9694         instead of len.
9695         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9696
9697 2011-02-12  Bruno Haible  <bruno@clisp.org>
9698
9699         mbsrtowcs: Work around bug on native Windows.
9700         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9701         against mingw bug.
9702         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9703
9704 2011-02-12  Bruno Haible  <bruno@clisp.org>
9705
9706         Avoid setlocale bugs in tests.
9707         * modules/btowc (Dependencies): Add setlocale.
9708         * modules/c-strcase (Dependencies): Likewise.
9709         * modules/mbmemcasecmp (Dependencies): Likewise.
9710         * modules/mbmemcasecoll (Dependencies): Likewise.
9711         * modules/mbrtowc (Dependencies): Likewise.
9712         * modules/mbscasecmp (Dependencies): Likewise.
9713         * modules/mbscasestr (Dependencies): Likewise.
9714         * modules/mbschr (Dependencies): Likewise.
9715         * modules/mbscspn (Dependencies): Likewise.
9716         * modules/mbsinit (Dependencies): Likewise.
9717         * modules/mbsncasecmp (Dependencies): Likewise.
9718         * modules/mbsnrtowcs (Dependencies): Likewise.
9719         * modules/mbspbrk (Dependencies): Likewise.
9720         * modules/mbspcasecmp (Dependencies): Likewise.
9721         * modules/mbsrchr (Dependencies): Likewise.
9722         * modules/mbsrtowcs (Dependencies): Likewise.
9723         * modules/mbsspn (Dependencies): Likewise.
9724         * modules/mbsstr (Dependencies): Likewise.
9725         * modules/nl_langinfo (Dependencies): Likewise.
9726         * modules/quotearg (Dependencies): Likewise.
9727         * modules/unicase/locale-language (Dependencies): Likewise.
9728         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9729         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9730         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9731         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9732         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9733         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9734         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9735         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9736         * modules/vasnprintf-posix (Dependencies): Likewise.
9737         * modules/wcrtomb (Dependencies): Likewise.
9738         * modules/wcsnrtombs (Dependencies): Likewise.
9739         * modules/wcsrtombs (Dependencies): Likewise.
9740
9741 2011-02-12  Bruno Haible  <bruno@clisp.org>
9742
9743         setlocale: Workaround native Windows bug.
9744         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9745         succeeds but sets LC_CTYPE to "C", report a failure.
9746         * tests/test-setlocale2.sh: New file.
9747         * tests/test-setlocale2.c: New file.
9748         * modules/setlocale-tests (Files): Add the new files.
9749         (Makefile.am): Enable test-setlocale2.sh test.
9750         * doc/posix-functions/setlocale.texi: Mention workaround.
9751
9752 2011-02-11  Bruno Haible  <bruno@clisp.org>
9753
9754         Tests for module 'setlocale'.
9755         * modules/setlocale-tests: New file.
9756         * tests/test-setlocale1.sh: New file.
9757         * tests/test-setlocale1.c: New file.
9758
9759         New module 'setlocale'.
9760         * lib/locale.in.h (setlocale): New declaration.
9761         * lib/setlocale.c: New file, based on
9762         gettext/gettext-runtime/intl/setlocale.c.
9763         * m4/setlocale.m4: New file.
9764         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9765         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9766         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9767         REPLACE_SETLOCALE.
9768         * modules/setlocale: New file.
9769         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9770         * doc/posix-functions/setlocale.texi: Mention the new module.
9771
9772 2011-02-11  Bruno Haible  <bruno@clisp.org>
9773
9774         Prepare for locale dependent tests on mingw.
9775         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9776         because it has the wrong locale encoding.
9777         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9778         French_France.1252 instead of "fr".
9779         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9780         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9781         because it has the wrong locale encoding.
9782         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9783         native Windows, try Turkish_Turkey.65001.
9784         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9785         Chinese_China.54936.
9786
9787         Prepare for locale dependent tests on mingw.
9788         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9789         differently.
9790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9791         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9792         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9794
9795 2011-02-11  Eric Blake  <eblake@redhat.com>
9796
9797         strptime: avoid compiler warnings
9798         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9799         compiler warnings about dead code.
9800         Reported by Daniel P. Berrange.
9801
9802 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9803
9804         doc: update users.txt
9805         * users.txt: Add rcs.
9806
9807 2011-02-10  John W. Eaton  <jwe@gnu.org>
9808
9809         doc: update users.txt
9810         * users.txt: Add octave.
9811
9812 2011-02-10  Jim Meyering  <meyering@redhat.com>
9813
9814         doc: update users.txt
9815         * users.txt: Add iwhd.
9816
9817 2011-02-09  Bruno Haible  <bruno@clisp.org>
9818
9819         gnulib-tool: Make copyright notice adjustment more robust.
9820         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9821         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9822         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9823         License".
9824         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9825
9826 2011-02-06  Bruno Haible  <bruno@clisp.org>
9827
9828         New module 'towctrans'.
9829         * modules/towctrans: New file.
9830         * lib/wctype.in.h (towctrans): New declaration.
9831         * lib/towctrans.c: New file.
9832         * lib/towctrans-impl.h: New file.
9833         * m4/towctrans.m4: New file.
9834         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9835         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9836         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9837         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9838         * doc/posix-functions/towctrans.texi: Mention the new module.
9839
9840 2011-02-06  Bruno Haible  <bruno@clisp.org>
9841
9842         New module 'wctrans'.
9843         * modules/wctrans: New file.
9844         * lib/wctype.in.h (wctrans): New declaration.
9845         * lib/wctrans.c: New file.
9846         * lib/wctrans-impl.h: New file.
9847         * m4/wctrans.m4: New file.
9848         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9849         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9850         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9851         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9852         * doc/posix-functions/wctrans.texi: Mention the new module.
9853
9854 2011-02-06  Bruno Haible  <bruno@clisp.org>
9855
9856         New module 'iswctype'.
9857         * modules/iswctype: New file.
9858         * lib/wctype.in.h (iswctype): New declaration.
9859         * lib/iswctype.c: New file.
9860         * lib/iswctype-impl.h: New file.
9861         * m4/iswctype.m4: New file.
9862         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9863         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9864         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9865         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9866         * doc/posix-functions/iswctype.texi: Mention the new module and the
9867         HP-UX 11.00 problem.
9868
9869 2011-02-06  Bruno Haible  <bruno@clisp.org>
9870
9871         New module 'wctype'.
9872         * modules/wctype: Change to represent the wctype() substitute.
9873         * lib/wctype.in.h (wctype): New declaration.
9874         * lib/wctype.c: New file.
9875         * lib/wctype-impl.h: New file.
9876         * m4/wctype.m4: New file.
9877         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9878         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9879         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9880         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9881         * doc/posix-functions/wctype.texi: Mention the new module and the
9882         HP-UX 11.00 problem.
9883
9884 2011-02-06  Bruno Haible  <bruno@clisp.org>
9885
9886         wctype-h: Ensure wctype_t and wctrans_t are defined.
9887         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9888         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9889         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9890         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9891         HAVE_WCTRANS_T.
9892         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9893
9894 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9895
9896         flock: fix license typo
9897
9898         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9899         omitted.
9900
9901 2011-02-08  Bruno Haible  <bruno@clisp.org>
9902
9903         Split large sed scripts, for HP-UX sed.
9904         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9905         to avoid HP-UX limit of 99 commands, in the near future.
9906         * modules/stdlib (Makefile.am): Likewise.
9907         * modules/unistd (Makefile.am): Likewise.
9908         * modules/wchar (Makefile.am): Likewise.
9909         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9910         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9912
9913 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9914             Bruno Haible  <bruno@clisp.org>
9915
9916         stdlib: improve random_r modularization
9917         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9918         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9919         you also need the random_r module to get this material right.
9920         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9921         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9922         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9923
9924 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         stdlib: don't depend on stdint
9927         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9928         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9929         be independent of whether stdint.h is needed.
9930         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9931         here, instead of ...
9932         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9933         struct random_data should be using the random_r module, not just
9934         the stdlib module (which wouldn't make sense: what package needs
9935         just struct random_data without also needing random_r?).
9936         * modules/stdlib (Depends-on): Remove stdint.
9937
9938         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9939         See the thread rooted at
9940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9941         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9942         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9943         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9944         __VMS)); previously it was always included (via fcntl--.h).
9945         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9946         hand; this is good enough for load averages.  Also, do not use
9947         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9948         flags directly if available and don't bother otherwise.  (Packages
9949         that need the extra reliability should use the modules that define
9950         these flags on older platforms that lack them.)
9951         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9952         fcntl-safer.
9953
9954 2011-02-08  Jim Meyering  <meyering@redhat.com>
9955
9956         di-set.h, ino-map.h: add multiple-inclusion guard
9957         Technically, the guard is required only for ino-map.h, due to its
9958         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9959         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9960         * lib/ino-map.h: Likewise.
9961
9962 2011-02-06  Bruno Haible  <bruno@clisp.org>
9963
9964         iswblank: Ensure declaration on glibc systems.
9965         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9966         * modules/iswblank (Dependencies): Add 'extensions'.
9967         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9968
9969 2011-02-06  Bruno Haible  <bruno@clisp.org>
9970
9971         New module 'iswblank'.
9972         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9973         * modules/iswblank: New file.
9974         * modules/wctype-h (Files): Remove lib/iswblank.c.
9975         (Makefile.am): Substitute GNULIB_ISWBLANK.
9976         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9977         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9978         (gl_WCTYPE_H_DEFAULTS): New macro.
9979         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9980         * modules/iswblank-tests: New file.
9981         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9982         * tests/test-wctype-h.c (main): Remove iswblank tests.
9983         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9984         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9985         of 'wctype-h'.
9986         * NEWS: Mention the change.
9987         * modules/mbchar (Depends-on): Add iswblank.
9988
9989 2011-02-08  Bruno Haible  <bruno@clisp.org>
9990
9991         di-set tests: Refactor.
9992         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9993         unnecessary includes.
9994         (ASSERT): Remove macro.
9995         (main): Make C90 compliant by avoiding variable declaration after
9996         statement.
9997         * modules/di-set-tests (Files): Add tests/macros.h.
9998
9999 2011-02-08  Bruno Haible  <bruno@clisp.org>
10000
10001         ino-map tests: Refactor.
10002         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10003         unnecessary includes.
10004         (ASSERT): Remove macro.
10005         (main): Make C90 compliant by avoiding variable declaration after
10006         statement.
10007         * modules/ino-map-tests (Files): Add tests/macros.h.
10008
10009 2011-02-08  Jim Meyering  <meyering@redhat.com>
10010
10011         di-set: add "const" to a cast
10012         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10013         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10014
10015 2011-02-06  Bruno Haible  <bruno@clisp.org>
10016
10017         Rename module 'wctype' to 'wctype-h'.
10018         * modules/wctype-h: Renamed from modules/wctype.
10019         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10020         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10021         (Files, Depends-on, Makefile.am): Update.
10022         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10023         (Files, Makefile.am): Update.
10024         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10025         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10026         * doc/posix-headers/wctype.texi: Update.
10027         * doc/posix-functions/iswalnum.texi: Update.
10028         * doc/posix-functions/iswalpha.texi: Update.
10029         * doc/posix-functions/iswblank.texi: Update.
10030         * doc/posix-functions/iswcntrl.texi: Update.
10031         * doc/posix-functions/iswdigit.texi: Update.
10032         * doc/posix-functions/iswgraph.texi: Update.
10033         * doc/posix-functions/iswlower.texi: Update.
10034         * doc/posix-functions/iswprint.texi: Update.
10035         * doc/posix-functions/iswpunct.texi: Update.
10036         * doc/posix-functions/iswspace.texi: Update.
10037         * doc/posix-functions/iswupper.texi: Update.
10038         * doc/posix-functions/iswxdigit.texi: Update.
10039         * doc/posix-functions/towlower.texi: Update.
10040         * doc/posix-functions/towupper.texi: Update.
10041         * NEWS: Mention the change.
10042         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10043         * modules/mbchar (Dependencies): Likewise.
10044         * modules/mbswidth (Dependencies): Likewise.
10045         * modules/quotearg (Dependencies): Likewise.
10046         * modules/regex (Dependencies): Likewise.
10047         * modules/wcscasecmp (Dependencies): Likewise.
10048         * modules/wcsncasecmp (Dependencies): Likewise.
10049         * modules/wcwidth (Dependencies): Likewise.
10050
10051 2011-02-06  Bruno Haible  <bruno@clisp.org>
10052
10053         New module 'wcswidth'.
10054         * modules/wcswidth: New file.
10055         * lib/wchar.in.h (wcswidth): New declaration.
10056         * lib/wcswidth.c: New file.
10057         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10058         * m4/wcswidth.m4: New file.
10059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10061         REPLACE_WCSWIDTH.
10062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10063         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10064         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10065         * doc/posix-functions/wcswidth.texi: Mention the new module.
10066
10067 2011-02-06  Bruno Haible  <bruno@clisp.org>
10068
10069         New module 'wcstok'.
10070         * modules/wcstok: New file.
10071         * lib/wchar.in.h (wcstok): New declaration.
10072         * lib/wcstok.c: New file.
10073         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10074         * m4/wcstok.m4: New file.
10075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10078         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10079         * doc/posix-functions/wcstok.texi: Mention the new module.
10080
10081 2011-02-06  Bruno Haible  <bruno@clisp.org>
10082
10083         New module 'wcsstr'.
10084         * modules/wcsstr: New file.
10085         * lib/wchar.in.h (wcsstr): New declaration.
10086         * lib/wcsstr.c: New file.
10087         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10088         * m4/wcsstr.m4: New file.
10089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10092         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10093         * doc/posix-functions/wcsstr.texi: Mention the new module.
10094
10095 2011-02-06  Bruno Haible  <bruno@clisp.org>
10096
10097         New module 'wcspbrk'.
10098         * modules/wcspbrk: New file.
10099         * lib/wchar.in.h (wcspbrk): New declaration.
10100         * lib/wcspbrk.c: New file.
10101         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10102         * m4/wcspbrk.m4: New file.
10103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10106         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10107         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10108
10109 2011-02-06  Bruno Haible  <bruno@clisp.org>
10110
10111         New module 'wcsspn'.
10112         * modules/wcsspn: New file.
10113         * lib/wchar.in.h (wcsspn): New declaration.
10114         * lib/wcsspn.c: New file.
10115         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10116         * m4/wcsspn.m4: New file.
10117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10120         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10121         * doc/posix-functions/wcsspn.texi: Mention the new module.
10122
10123 2011-02-06  Bruno Haible  <bruno@clisp.org>
10124
10125         New module 'wcscspn'.
10126         * modules/wcscspn: New file.
10127         * lib/wchar.in.h (wcscspn): New declaration.
10128         * lib/wcscspn.c: New file.
10129         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10130         * m4/wcscspn.m4: New file.
10131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10133         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10134         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10135         * doc/posix-functions/wcscspn.texi: Mention the new module.
10136
10137 2011-02-06  Bruno Haible  <bruno@clisp.org>
10138
10139         New module 'wcsrchr'.
10140         * modules/wcsrchr: New file.
10141         * lib/wchar.in.h (wcsrchr): New declaration.
10142         * lib/wcsrchr.c: New file.
10143         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10144         * m4/wcsrchr.m4: New file.
10145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10148         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10149         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10150
10151 2011-02-06  Bruno Haible  <bruno@clisp.org>
10152
10153         New module 'wcschr'.
10154         * modules/wcschr: New file.
10155         * lib/wchar.in.h (wcschr): New declaration.
10156         * lib/wcschr.c: New file.
10157         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10158         * m4/wcschr.m4: New file.
10159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10162         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10163         * doc/posix-functions/wcschr.texi: Mention the new module.
10164
10165 2011-02-06  Bruno Haible  <bruno@clisp.org>
10166
10167         New module 'wcsdup'.
10168         * modules/wcsdup: New file.
10169         * lib/wchar.in.h (wcsdup): New declaration.
10170         * lib/wcsdup.c: New file.
10171         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10172         * m4/wcsdup.m4: New file.
10173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10176         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10177         * doc/posix-functions/wcsdup.texi: Mention the new module.
10178
10179 2011-02-06  Bruno Haible  <bruno@clisp.org>
10180
10181         New module 'wcsxfrm'.
10182         * modules/wcsxfrm: New file.
10183         * lib/wchar.in.h (wcsxfrm): New declaration.
10184         * lib/wcsxfrm.c: New file.
10185         * lib/wcsxfrm-impl.h: New file.
10186         * m4/wcsxfrm.m4: New file.
10187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10190         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10191         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10192
10193 2011-02-06  Bruno Haible  <bruno@clisp.org>
10194
10195         New module 'wcscoll'.
10196         * modules/wcscoll: New file.
10197         * lib/wchar.in.h (wcscoll): New declaration.
10198         * lib/wcscoll.c: New file.
10199         * lib/wcscoll-impl.h: New file.
10200         * m4/wcscoll.m4: New file.
10201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10204         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10205         * doc/posix-functions/wcscoll.texi: Mention the new module.
10206
10207 2011-02-06  Bruno Haible  <bruno@clisp.org>
10208
10209         New module 'wcsncasecmp'.
10210         * modules/wcsncasecmp: New file.
10211         * lib/wchar.in.h (wcsncasecmp): New declaration.
10212         * lib/wcsncasecmp.c: New file.
10213         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10214         * m4/wcsncasecmp.m4: New file.
10215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10218         HAVE_WCSNCASECMP.
10219         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10220         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10221
10222 2011-02-06  Bruno Haible  <bruno@clisp.org>
10223
10224         New module 'wcscasecmp'.
10225         * modules/wcscasecmp: New file.
10226         * lib/wchar.in.h (wcscasecmp): New declaration.
10227         * lib/wcscasecmp.c: New file.
10228         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10229         * m4/wcscasecmp.m4: New file.
10230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10233         HAVE_WCSCASECMP.
10234         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10235         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10236
10237 2011-02-05  Bruno Haible  <bruno@clisp.org>
10238
10239         New module 'wcsncmp'.
10240         * modules/wcsncmp: New file.
10241         * lib/wchar.in.h (wcsncmp): New declaration.
10242         * lib/wcsncmp.c: New file.
10243         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10244         * m4/wcsncmp.m4: New file.
10245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10248         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10249         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10250
10251 2011-02-05  Bruno Haible  <bruno@clisp.org>
10252
10253         New module 'wcscmp'.
10254         * modules/wcscmp: New file.
10255         * lib/wchar.in.h (wcscmp): New declaration.
10256         * lib/wcscmp.c: New file.
10257         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10258         * m4/wcscmp.m4: New file.
10259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10262         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10263         * doc/posix-functions/wcscmp.texi: Mention the new module.
10264
10265 2011-02-05  Bruno Haible  <bruno@clisp.org>
10266
10267         New module 'wcsncat'.
10268         * modules/wcsncat: New file.
10269         * lib/wchar.in.h (wcsncat): New declaration.
10270         * lib/wcsncat.c: New file.
10271         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10272         * m4/wcsncat.m4: New file.
10273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10276         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10277         * doc/posix-functions/wcsncat.texi: Mention the new module.
10278
10279 2011-02-05  Bruno Haible  <bruno@clisp.org>
10280
10281         New module 'wcscat'.
10282         * modules/wcscat: New file.
10283         * lib/wchar.in.h (wcscat): New declaration.
10284         * lib/wcscat.c: New file.
10285         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10286         * m4/wcscat.m4: New file.
10287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10290         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10291         * doc/posix-functions/wcscat.texi: Mention the new module.
10292
10293 2011-02-05  Bruno Haible  <bruno@clisp.org>
10294
10295         New module 'wcpncpy'.
10296         * modules/wcpncpy: New file.
10297         * lib/wchar.in.h (wcpncpy): New declaration.
10298         * lib/wcpncpy.c: New file.
10299         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10300         * m4/wcpncpy.m4: New file.
10301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10303         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10304         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10305         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10306
10307 2011-02-05  Bruno Haible  <bruno@clisp.org>
10308
10309         New module 'wcsncpy'.
10310         * modules/wcsncpy: New file.
10311         * lib/wchar.in.h (wcsncpy): New declaration.
10312         * lib/wcsncpy.c: New file.
10313         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10314         * m4/wcsncpy.m4: New file.
10315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10318         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10319         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10320
10321 2011-02-05  Bruno Haible  <bruno@clisp.org>
10322
10323         New module 'wcpcpy'.
10324         * modules/wcpcpy: New file.
10325         * lib/wchar.in.h (wcpcpy): New declaration.
10326         * lib/wcpcpy.c: New file.
10327         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10328         * m4/wcpcpy.m4: New file.
10329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10331         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10332         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10333         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10334
10335 2011-02-05  Bruno Haible  <bruno@clisp.org>
10336
10337         New module 'wcscpy'.
10338         * modules/wcscpy: New file.
10339         * lib/wchar.in.h (wcscpy): New declaration.
10340         * lib/wcscpy.c: New file.
10341         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10342         * m4/wcscpy.m4: New file.
10343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10346         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10347         * doc/posix-functions/wcscpy.texi: Mention the new module.
10348
10349 2011-02-05  Bruno Haible  <bruno@clisp.org>
10350
10351         New module 'wcsnlen'.
10352         * modules/wcsnlen: New file.
10353         * lib/wchar.in.h (wcsnlen): New declaration.
10354         * lib/wcsnlen.c: New file.
10355         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10356         * m4/wcsnlen.m4: New file.
10357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10360         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10361         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10362
10363 2011-02-05  Bruno Haible  <bruno@clisp.org>
10364
10365         New module 'wcslen'.
10366         * modules/wcslen: New file.
10367         * lib/wchar.in.h (wcslen): New declaration.
10368         * lib/wcslen.c: New file.
10369         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10370         * m4/wcslen.m4: New file.
10371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10374         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10375         * doc/posix-functions/wcslen.texi: Mention the new module.
10376
10377 2011-02-05  Bruno Haible  <bruno@clisp.org>
10378
10379         New module 'wmemset'.
10380         * modules/wmemset: New file.
10381         * lib/wchar.in.h (wmemset): New declaration.
10382         * lib/wmemset.c: New file.
10383         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10384         * m4/wmemset.m4: New file.
10385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10387         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10388         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10389         * doc/posix-functions/wmemset.texi: Mention the new module.
10390
10391 2011-02-05  Bruno Haible  <bruno@clisp.org>
10392
10393         New module 'wmemmove'.
10394         * modules/wmemmove: New file.
10395         * lib/wchar.in.h (wmemmove): New declaration.
10396         * lib/wmemmove.c: New file.
10397         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10398         * m4/wmemmove.m4: New file.
10399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10401         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10402         HAVE_WMEMMOVE.
10403         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10404         * doc/posix-functions/wmemmove.texi: Mention the new module.
10405
10406 2011-02-05  Bruno Haible  <bruno@clisp.org>
10407
10408         New module 'wmemcpy'.
10409         * modules/wmemcpy: New file.
10410         * lib/wchar.in.h (wmemcpy): New declaration.
10411         * lib/wmemcpy.c: New file.
10412         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10413         * m4/wmemcpy.m4: New file.
10414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10416         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10417         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10418         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10419
10420 2011-02-05  Bruno Haible  <bruno@clisp.org>
10421
10422         New module 'wmemcmp'.
10423         * modules/wmemcmp: New file.
10424         * lib/wchar.in.h (wmemcmp): New declaration.
10425         * lib/wmemcmp.c: New file.
10426         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10427         * m4/wmemcmp.m4: New file.
10428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10430         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10431         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10432         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10433
10434 2011-02-07  Jim Meyering  <meyering@redhat.com>
10435
10436         di-set, ino-map: new modules, from coreutils
10437         * lib/di-set.c: New file.
10438         * lib/di-set.h: Likewise.
10439         * lib/ino-map.c: Likewise.
10440         * lib/ino-map.h: Likewise.
10441         * modules/di-set: Likewise.
10442         * modules/di-set-tests: Likewise.
10443         * modules/ino-map: Likewise.
10444         * modules/ino-map-tests: Likewise.
10445         * tests/test-di-set.c: Likewise.
10446         * tests/test-ino-map.c: Likewise.
10447
10448 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10449
10450         getloadavg: merge minor changes from Emacs
10451
10452         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10453         (getloadavg): Use memset, not bzero.
10454
10455         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10456         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10457         clash (bug#86).
10458
10459 2010-11-14  Bruno Haible  <bruno@clisp.org>
10460
10461         Allow multiple gnulib generated replacements to coexist.
10462         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10463         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10464         * lib/langinfo.in.h (nl_item): Likewise.
10465         * lib/math.in.h (_NaN, NAN): Likewise.
10466         * lib/netdb.in.h (struct addrinfo): Likewise.
10467         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10468         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10469         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10470         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10471         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10472         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10473         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10474         pthread_mutexattr_init, pthread_mutexattr_settype,
10475         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10476         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10477         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10478         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10479         * lib/sched.in.h (struct sched_param): Likewise.
10480         * lib/se-selinux.in.h (security_class_t, security_context_t,
10481         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10482         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10483         lsetfilecon, fsetfilecon, security_check_context,
10484         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10485         Likewise.
10486         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10487         Likewise.
10488         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10489         _gl_function_taking_int_returning_void_t, union sigval,
10490         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10491         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10492         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10493         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10494         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10495         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10496         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10497         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10498         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10499         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10500         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10501         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10502         socklen_t, rpl_fd_isset): Likewise.
10503         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10504         * lib/sys_time.in.h (struct timeval): Likewise.
10505         * lib/sys_times.in.h (struct tms): Likewise.
10506         * lib/sys_utsname.in.h (struct utsname):
10507         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10508         * lib/unistd.in.h (getpagesize): Likewise.
10509         * lib/wchar.in.h (mbstate_t): Likewise.
10510         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10511         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10512         towlower, towupper): Likewise.
10513         Reported by Sam Steingold <sds@gnu.org>.
10514
10515 2011-02-05  Eric Blake  <eblake@redhat.com>
10516
10517         unsetenv: work around Haiku issues
10518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10519         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10520
10521 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10522
10523         libposix: avoid calling error() within libposix
10524         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10525         is defined.
10526
10527 2011-02-05  Eric Blake  <eblake@redhat.com>
10528
10529         strerror_r-posix: port to cygwin
10530         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10531         implementation.
10532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10533         * tests/test-strerror_r.c (main): Fix test.
10534         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10535         issue.
10536
10537 2011-02-05  Bruno Haible  <bruno@clisp.org>
10538
10539         New module 'wmemchr'.
10540         * modules/wmemchr: New file.
10541         * lib/wchar.in.h (wmemchr): New declaration.
10542         * lib/wmemchr.c: New file.
10543         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10544         * m4/wmemchr.m4: New file.
10545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10547         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10548         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10549         * doc/posix-functions/wmemchr.texi: Mention the new module.
10550
10551 2011-02-04  Eric Blake  <eblake@redhat.com>
10552
10553         fdopendir: detect FreeBSD bug
10554         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10555         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10556
10557 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         stdbool: do not define HAVE_STDBOOL_H
10560         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10561         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10562         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10563         imported from the latest Autoconf git.  It was motivated by Emacs,
10564         which uses gnulib but does not need HAVE_STDBOOL_H.
10565
10566 2011-02-04  Bruno Haible  <bruno@clisp.org>
10567
10568         wcsnrtombs: Prepare for new module wwcsnrtombs.
10569         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10570         * lib/wcsnrtombs.c: Include it.
10571         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10572
10573         wcsrtombs: Prepare for new module wwcsrtombs.
10574         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10575         * lib/wcsrtombs.c: Include it.
10576         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10577
10578         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10579         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10580         * lib/mbsnrtowcs.c: Include it.
10581         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10582
10583         mbsrtowcs: Prepare for new module mbsrtowwcs.
10584         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10585         * lib/mbsrtowcs.c: Include it.
10586         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10587
10588 2011-02-04  Bruno Haible  <bruno@clisp.org>
10589
10590         vasnprintf: Reduce use of malloc for small format strings.
10591         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10592         (arguments): Add room for the first 7 arguments.
10593         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10594         (char_directives, u8_directives, u16_directives, u32_directives): Add
10595         room for the first 7 directives.
10596         * lib/printf-parse.c: Include <string.h>.
10597         (PRINTF_PARSE): Change memory handling code so that it uses the first
10598         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10599         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10600         Reported by Pádraig Brady <P@draigbrady.com>.
10601
10602 2011-01-31  Eric Blake  <eblake@redhat.com>
10603
10604         dup2: work around Haiku bug
10605         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10606         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10607         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10608         * tests/test-dup2.c (main): Enhance test.
10609
10610 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10611
10612         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10613         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10614         declared by eglibc 2.11.2.
10615         * lib/stdio.in.h: Likewise.
10616
10617 2011-01-31  Eric Blake  <eblake@redhat.com>
10618
10619         ignore-value: add missing test dependency
10620         * tests/test-ignore-value.c: Revert previous change; stdio.h
10621         provides off_t.
10622         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10623
10624 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10625
10626         mktime: clarify long_int width checking
10627         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10628         the top level, to make it clearer that the assumption about
10629         long_int width is being checked.  See
10630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10631
10632 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10633
10634         ignore-value: Fix self-test.
10635         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10636
10637 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         TYPE_MAXIMUM: avoid theoretically undefined behavior
10640         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10641         negative number, which the C Standard says has undefined behavior.
10642         In practice this is not a problem, but might as well do it by the book.
10643         Reported by Rich Felker and Eric Blake; see
10644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10645         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10646         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10648         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10649         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10650         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10651
10652         mktime: #undef mktime before #defining it
10653         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10654
10655         mktime: systematically normalize tm_isdst comparisons
10656         * lib/mktime.c (isdst_differ): New function.
10657         (__mktime_internal): Use it systematically for all isdst comparisons.
10658         This completes the fix for libc BZ #6723, and removes the need for
10659         normalizing tm_isdst.  See
10660         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10661         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10662
10663         mktime: fix some integer overflow issues and sidestep the rest
10664
10665         This was prompted by a bug report by Benjamin Lindner for MinGW
10666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10667         His bug is due to signed integer overflow (0 - INT_MIN), and I
10668         I scanned through mktime.c looking for other integer overflow
10669         problems, fixing all the bugs I found.
10670
10671         Although the C Standard says the resulting code is still not safe
10672         in the presence of integer overflow, in practice it should be good
10673         enough for all real-world two's-complement implementations, except
10674         for debugging environments that deliberately trap on integer
10675         overflow (e.g., gcc -ftrapv).
10676
10677         * lib/mktime.c (WRAPV): New macro.
10678         (SHR): Also check that long_int and time_t shift right in the
10679         usual way, before using the fast-but-unportable method.
10680         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10681         used.  The code already assumed two's complement, so there's
10682         no need to test for alternatives.  All uses removed.
10683         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10684         the C standard.  Problem reported by Rich Felker in
10685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10686         (twos_complement_arithmetic): Also check long_int and time_t.
10687         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10688         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10689         (__mktime_internal): Avoid integer overflow with unary subtraction
10690         in two instances where -1 - X is an adequate replacement for -X,
10691         since the calculations are approximate.
10692
10693 2011-01-29  Eric Blake  <eblake@redhat.com>
10694
10695         mktime: avoid infinite loop
10696         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10697         type; behavior is still undefined but portable to all known targets.
10698         Reported by Rich Felker.
10699
10700 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10701
10702         rename, unlink, same-inode: Relicense.
10703         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10704         * modules/unlink (License): Likewise.
10705         * modules/same-inode (License): Likewise.
10706
10707 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10708
10709         mktime: avoid problems on NetBSD 5 / i386
10710         * lib/mktime.c (long_int): New type.  This works around a problem
10711         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10712         but time_t is 64 bits, and where I expect the existing code is
10713         wrong in some cases.
10714         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10715         (ydhms_diff): Bring back the compile-time check for wide-enough
10716         year and yday.
10717
10718         mktime: fix misspelling in comment
10719         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10720         This merges all recent glibc changes of importance.
10721
10722 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10723
10724         move-if-change: cope with concurrent mv of identical file.
10725         * build-aux/move-if-change (CMPPROG): Accept environment
10726         variable as an override for `cmp'.
10727         (usage): Document CMPPROG.
10728         Adjust comparison to drop stdout.  Cope with failure of mv if
10729         the target file exists and is identical to the source, for
10730         parallel builds.
10731         Report from H.J. Lu against binutils in PR binutils/12283.
10732
10733 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10734
10735         * users.txt: Mention sharutils.
10736
10737 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10738
10739         * users.txt: Mention OATH Toolkit.
10740
10741 2011-01-27  Bruno Haible  <bruno@clisp.org>
10742
10743         Prepare for supporting FreeBSD 10.
10744         * build-aux/config.libpath: Remove handling of freebsd1*.
10745
10746 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10747
10748         Prepare for supporting FreeBSD 10.
10749         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10750         match FreeBSD 10.0.
10751
10752 2011-01-27  Bruno Haible  <bruno@clisp.org>
10753
10754         vma-iter, get-rusage-as: Add OpenBSD support.
10755         * modules/vma-iter (configure.ac): Test for mquery.
10756         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10757         * lib/vma-iter.c: Include <sys/mman.h>.
10758         (vma_iterate): Add an implementation based on mquery().
10759         * lib/resource-ext.h (get_rusage_as): Update comments.
10760         * lib/get-rusage-as.c: Likewise.
10761         * lib/get-rusage-data.c: Likewise.
10762
10763 2011-01-26  Karl Berry  <karl@gnu.org>
10764
10765         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10766         variables to make it easier to override the makeinfo program used.
10767
10768 2011-01-26  Eric Blake  <eblake@redhat.com>
10769
10770         fcntl: work around Haiku F_DUPFD bugs
10771         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10772         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10773         cloexec bit on duplication.
10774         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10775
10776 2011-01-26  Bruno Haible  <bruno@clisp.org>
10777
10778         Enable memory leak tests on AIX.
10779         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10780         * tests/test-fprintf-posix3.c (main): Likewise.
10781
10782 2011-01-26  Bruno Haible  <bruno@clisp.org>
10783
10784         Tests for module 'get-rusage-data'.
10785         * modules/get-rusage-data-tests: New file.
10786         * tests/test-get-rusage-data.c: New file.
10787
10788         New module 'get-rusage-data'.
10789         * lib/resource-ext.h (get_rusage_data): New declaration.
10790         * lib/get-rusage-data.c: New file.
10791         * modules/get-rusage-data: New file.
10792
10793 2011-01-25  Bruno Haible  <bruno@clisp.org>
10794
10795         get-rusage-as: Allow for easier testing.
10796         * lib/resource-ext.h (get_rusage_as): Add comment.
10797         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10798         (main): New function for interactive testing.
10799
10800 2011-01-25  Bruno Haible  <bruno@clisp.org>
10801
10802         vma-iter: Treat Haiku like BeOS.
10803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10804         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10805
10806 2011-01-25  Eric Blake  <eblake@redhat.com>
10807
10808         c-stack: fix regression on cygwin when libsigsegv is present
10809         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10810
10811 2011-01-24  Bruno Haible  <bruno@clisp.org>
10812
10813         vma-iter: Avoid empty intervals.
10814         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10815         on an empty interval.
10816
10817 2011-01-24  Jim Meyering  <meyering@redhat.com>
10818
10819         u64: remove unnecessary #include
10820         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10821
10822 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10823
10824         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10825         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10826
10827 2011-01-23  Bruno Haible  <bruno@clisp.org>
10828
10829         New module 'vma-iter'.
10830         * lib/vma-iter.h: New file.
10831         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10832         * modules/vma-iter: New file.
10833         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10834         for get_rusage_as_via_iterator.
10835         (vma_iterate_callback): New function.
10836         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10837         * modules/get-rusage-as (Depends-on): Add vma-iter.
10838
10839 2011-01-23  Bruno Haible  <bruno@clisp.org>
10840
10841         uninorm: Tweak includes.
10842         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10843         Reported by Jim Meyering.
10844
10845 2011-01-23  Bruno Haible  <bruno@clisp.org>
10846
10847         get-rusage-as: Improve on NetBSD.
10848         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10849         /proc, like on FreeBSD.
10850
10851 2011-01-23  Jim Meyering  <meyering@redhat.com>
10852
10853         xreadlink.h: remove unnecessary #include
10854         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10855
10856         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10857         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10858
10859 2011-01-23  Bruno Haible  <bruno@clisp.org>
10860
10861         get-rusage-as: Fix bug.
10862         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10863         original limit when aborting the first loop.
10864
10865 2011-01-23  Bruno Haible  <bruno@clisp.org>
10866
10867         wctype: Ensure valid C syntax.
10868         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10869         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10870
10871 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10872
10873         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10875         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10876         as they are needed only for configure's test case.
10877         This removes two unnecessary symbols from config.h.
10878
10879         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10880         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10882         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10883         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10884         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10885         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10886         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10887         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10888         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10889         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10890         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10891         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10892         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10893         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10894         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10895         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10896         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10897
10898 2011-01-21  Eric Blake  <eblake@redhat.com>
10899
10900         maintainer-makefile: work with older git for submodule check
10901         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10902         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10903         Reported by Matthias Bolte.
10904
10905         bootstrap: minor portability fixes
10906         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10907         (usage): Omit leading capital and trailing . on help phrases, per
10908         GNU Coding Standards.
10909         (check_versions, top level): Prefix messages with script name.
10910
10911 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10912
10913         bootstrap: support --no-git option
10914         * build-aux/bootstrap: Add --no-git option, to be used when
10915         --gnulib-srcdir points to the exact desired checkout.
10916
10917 2011-01-21  Eric Blake  <eblake@redhat.com>
10918
10919         strerror_r-posix: work with glibc 2.13
10920         * lib/strerror_r.c (strerror_r): Fix return type.
10921
10922 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10923             Bruno Haible  <bruno@clisp.org>
10924
10925         uN_strstr: New unit tests.
10926         * modules/unistr/u8-strstr-tests: New file.
10927         * modules/unistr/u16-strstr-tests: New file.
10928         * modules/unistr/u32-strstr-tests: New file.
10929         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10930         * tests/unistr/test-u8-strstr.c: New file.
10931         * tests/unistr/test-u16-strstr.c: New file.
10932         * tests/unistr/test-u32-strstr.c: New file.
10933
10934 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10935             Bruno Haible  <bruno@clisp.org>
10936
10937         Make uN_strstr functions O(n) worst-case.
10938         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10939         16-bit and 32-bit unit cases, use the unibyte algorithm from
10940         lib/mbsstr.c.
10941         * lib/unistr/u8-strstr.c: Include <string.h>.
10942         (UNIT_IS_UINT8_T): New macro.
10943         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10944         (U_STRLEN, U_STRNLEN): New macros.
10945         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10946         (U_STRLEN, U_STRNLEN): New macros.
10947         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10948         (configure.ac): Update required libunistring version.
10949         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10950         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10951         malloca.
10952         (configure.ac): Update required libunistring version.
10953         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10954         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10955         malloca.
10956         (configure.ac): Update required libunistring version.
10957
10958 2011-01-21  Pádraig Brady  <P@draigBrady.com>
10959             Bruno Haible  <bruno@clisp.org>
10960
10961         Prepare for faster uN_strstr functions.
10962         * lib/str-kmp.h: Support definable UNITs.
10963         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10964         needle_len argument.
10965         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10966         * lib/mbscasestr.c (mbscasestr): Likewise.
10967
10968 2011-01-21  Pádraig Brady <P@draigBrady.com>
10969
10970         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10971         * tests/test-malloca.c (main): Unset the environment variable
10972         to greatly speed up the test.
10973         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10974         * modules/malloca-tests: Depend on unsetenv.
10975
10976 2011-01-21  Pádraig Brady <P@draigBrady.com>
10977
10978         ignore-value: remove stdint dependency
10979         * lib/ignore-value.h: Remove <stdint.h>
10980         * modules/ignore-value: Remove stdint dependency.
10981
10982 2011-01-21  Jim Meyering  <meyering@redhat.com>
10983
10984         maint.mk: adjust variable name to be consistent with other gl_ vars
10985         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10986         to be lower case.
10987
10988 2011-01-20  Jim Meyering  <meyering@redhat.com>
10989
10990         maint.mk: make "check" depend on public-submodule-commit by default
10991         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10992
10993 2011-01-20  Bruno Haible  <bruno@clisp.org>
10994
10995         mbfile, mbiter: Complete change from 2008-12-21.
10996         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10997         * m4/mbiter.m4 (gl_MBITER): Likewise.
10998
10999 2011-01-20  Jim Meyering  <meyering@redhat.com>
11000
11001         init.sh: insert space between each function name and "()"
11002         * tests/init.sh: Make it a little easier to see that a function's
11003         name is "warn_", and not "warn" when looking at the first part of
11004         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11005
11006 2011-01-20  Jim Meyering  <meyering@redhat.com>
11007
11008         mountlist: clean up code formatting
11009         * lib/mountlist.c (read_file_system_list): Split a long line,
11010         correct bracing style, use NULL in place of "(struct statfs *)0",
11011         don't parenthesize return value, add spaces around "=" and after
11012         ";-in-for-stmt".
11013
11014 2011-01-14  Markus Duft <mduft@gentoo.org>
11015
11016         mountlist: add support for Interix
11017         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11018         Apply statvfs to all entries of /dev/fs.
11019         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11020         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11021
11022 2011-01-20  Jim Meyering  <meyering@redhat.com>
11023
11024         maint.mk: improve the public-submodule-commit rule
11025         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11026         to suppress printing of its commands... unless V=1.
11027         Add git submodule's --quiet option to suppress printing of e.g.,
11028         "Entering gnulib" output.
11029         "cd" into $(srcdir) before running git submodule.
11030
11031 2011-01-20  Bruno Haible  <bruno@clisp.org>
11032
11033         include_next: Fix bug introduced on 2011-01-18.
11034         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11035         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11036         ac_cv_header_... variable if the second argument is not 'check'.
11037         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11038         gl_NEXT_HEADERS_INTERNAL.
11039
11040 2011-01-20  Bruno Haible  <bruno@clisp.org>
11041
11042         Allow the user to avoid the GNULIB_TEST_* macros.
11043         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11044         Suggested by Paul Eggert.
11045
11046 2011-01-14  Jim Meyering  <meyering@redhat.com>
11047
11048         bootstrap: avoid failure when there is no .gitmodules file
11049         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11050         has been assigned to, even when its value is the empty string.
11051         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11052         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11053         Reported by John W. Eaton <jwe@gnu.org>.
11054
11055 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11056
11057         assume <ctype.h>, ..., <time.h> exist
11058         For years gnulib has been assuming the existence of the headers
11059         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11060         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11061         them, since they don't appear to be needed.
11062         * README (Portability guidelines): Document this.
11063         * lib/flock.c: Assume <fcntl.h> exists.
11064         * lib/regex_internal.h: Assume <locale.h> exists.
11065         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11067         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11068         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11069         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11070         * m4/regex.m4 (gl_REGEX): Likewise.
11071         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11072         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11073         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11074         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11075         * tests/test-argp.c: Likewise.
11076         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11077
11078         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11079         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11080         AA_APPLE_UNIVERSAL_BUILD.  See
11081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11082         * NEWS: Document this.
11083
11084 2011-01-19  Eric Blake  <eblake@redhat.com>
11085
11086         c-stack: assume stack overflow if SA_SIGINFO unsupported
11087         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11088         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11089         sigaction will work.
11090         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11091         behavior match Linux.
11092         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11093
11094         stdbool-tests: accomodate Haiku
11095         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11096
11097         binary-io: fix O_TEXT on Haiku
11098         * modules/binary-io (Depends-on): Add fcntl-h.
11099         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11100         than blindly undefining O_TEXT.
11101         Reported by Scott McCreary.
11102
11103 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11104
11105         include_next: do not check for standard headers like stddef.h
11106
11107         I found this problem when modifying Emacs to use gnulib.
11108         I noticed that it added HAVE_STDDEF_H to config.h, even though
11109         gnulib always assumes <stddef.h> exists as per README and this
11110         symbol is unnecessary.
11111         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11112         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11113         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11114         faster for headers like stddef.h that are known to exist.
11115         (gl_CHECK_NEXT_HEADERS): Use it.
11116         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11117         rather than gl_CHECK_NEXT_HEADERS.
11118         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11119         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11120
11121 2011-01-18  Eric Blake  <eblake@redhat.com>
11122
11123         ansi-c++-opt: skip C++ dependency style if C++ is unused
11124         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11125         tests when we know C++ compilation is not desired.
11126         Reported by Scott McCreary.
11127
11128 2011-01-18  Bruno Haible  <bruno@clisp.org>
11129
11130         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11131         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11132         (main): Perform test also when getrlimit and setrlimit don't exist or
11133         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11134         limiting the address space size using setrlimit, compare the address
11135         space size before and after the the test.
11136         * tests/test-dprintf-posix2.c: Likewise.
11137         * tests/test-fprintf-posix3.sh: Update skip messages.
11138         * tests/test-dprintf-posix2.sh: Likewise.
11139         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11140         * modules/dprintf-posix-tests (Depends-on): Likewise.
11141         Reported by Bruce Korb <bkorb@gnu.org> and
11142         Gary V. Vaughan <gary@gnu.org>.
11143
11144 2011-01-18  Bruno Haible  <bruno@clisp.org>
11145
11146         get-rusage-as: Improvement for Cygwin.
11147         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11148         areas that are merely reserved.
11149
11150 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11151
11152         strftime: remove dependencies on multibyte modules
11153
11154         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11155         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11156         only if __osf__ is defined, and I suspect OSF doesn't need these
11157         other modules.  If my guess is wrong, we'll need to come up with a
11158         variant of strftime that doesn't need the multibyte modules.
11159
11160         I discovered this problem when attempting modify Emacs to use the
11161         strftime module.  With the previous gnulib, this caused Emacs to
11162         need 31 new files, ranging from lib/config.charset to
11163         m4/wint_t.m4.  This was overkill and I expect would be offputting
11164         to the Emacs maintainers.  After this change, only 6 new files are
11165         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11166         stdbool.m4, and tm_gmtoff.m4.
11167
11168         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11169         Suggested by Bruno Haible in
11170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11171         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11172         and do not check for wchar.h.
11173         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11174         (Depends-on): Remove mbrlen, mbsinit, wchar.
11175
11176 2011-01-18  Bruno Haible  <bruno@clisp.org>
11177
11178         Tests for module 'get-rusage-as'.
11179         * modules/get-rusage-as-tests: New file.
11180         * tests/test-get-rusage-as.c: New file.
11181
11182         New module 'get-rusage-as'.
11183         * modules/get-rusage-as: New file.
11184         * lib/resource-ext.h: New file.
11185         * lib/get-rusage-as.c: New file.
11186
11187 2011-01-17  Eric Blake  <eblake@redhat.com>
11188
11189         sigaction: relax license from LGPLv3+ to LGPLv2+
11190         * modules/sigaction (License): Relax to LGPLv2+.
11191
11192 2011-01-14  Bruno Haible  <bruno@clisp.org>
11193
11194         filemode: Make function declarations usable in C++ mode.
11195         * lib/filemode.h: Enclose function declarations in extern "C" block.
11196         Reported by John W. Eaton <jwe@gnu.org>.
11197
11198 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11199
11200         save-cwd: no longer include "xgetcwd.h"
11201         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11202         This avoids a compilation failure in projects that use save-cwd
11203         without also using the xgetcwd module.
11204
11205 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11208         This is so that a program like Emacs, which needs only dtoastr,
11209         does not have to bother with distributing and compiling ftoastr
11210         and ldtoastr.
11211         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11212         * modules/dtoastr, modules/ldtoastr: New files.
11213         * modules/ftoastr: Now works just for 'float'.
11214         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11215         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11216         dtoastr.c, ldtoastr.c.
11217
11218 2011-01-11  Jim Meyering  <meyering@redhat.com>
11219
11220         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11221         There is no need to work around the lack of the fchdir function,
11222         since gnulib can now provide a replacement when required.
11223         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11224         * modules/save-cwd (Depends-on): Add fchdir.
11225
11226 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11227
11228         openat, save-cwd: avoid xmalloc
11229
11230         This removes a direct (but undocumented) dependency of openat on
11231         xalloc, along with an indirect dependency via save-cwd.  It also
11232         removes a dependency of save-cwd on xgetcwd, and thereby
11233         indirectly on xalloc.  This change causes the openat substitute
11234         to fall back on save_cwd when memory is tight, and for save_cwd to
11235         fail instead of dying when memory is tight, but that's good enough.
11236         Problem and initial idea for fix reported by Bastien Roucaries in
11237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11238
11239         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11240         xalloc.h (for xmalloc).
11241         (openat_proc_name): Use malloc, not xmalloc.
11242         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11243         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11244
11245         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11246         This avoids heap allocation for file names whose lengths are in
11247         the range 512..1023, with the upper bound increasing to at most
11248         4031 depending on the platform's PATH_MAX.  (We do not want
11249         pathmax.h here as it might supply a non-constant PATH_MAX.)
11250         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11251         Perhaps they should be moved to malloca.h?
11252         (OPENAT_BUFFER_SIZE): Use them.
11253
11254 2011-01-10  Bruno Haible  <bruno@clisp.org>
11255
11256         doc: Update users.txt.
11257         * users.txt: Add recutils.
11258
11259 2011-01-09  Karl Berry  <karl@gnu.org>
11260
11261         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11262
11263         * doc/configmake.texi: New file.
11264         * doc/gnulib.texi: Include it.
11265         * modules/configmake: Move documentation from here.
11266
11267 2011-01-09  Bruno Haible  <bruno@clisp.org>
11268
11269         Update to Unicode 6.0.0.
11270         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11271         (get_lbp): Update for Unicode 6.0.0.
11272         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11273         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11274         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11275         U+11001, U+11038..U+11046. Remove U+06DE.
11276         (uc_width): Fix bounds of planes.
11277         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11278         lib/uniwidth/width.c.
11279         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11280         trailing whitespace removed.
11281         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11282         without comments, but with the original copyright notice.
11283         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11284         * lib/unicase/ignorable.h: Likewise.
11285         * lib/unicase/tocasefold.h: Likewise.
11286         * lib/unicase/tolower.h: Likewise.
11287         * lib/unicase/totitle.h: Likewise.
11288         * lib/unicase/toupper.h: Likewise.
11289         * lib/unictype/bidi_of.h: Likewise.
11290         * lib/unictype/blocks.h: Likewise.
11291         * lib/unictype/categ_C.h: Likewise.
11292         * lib/unictype/categ_Cn.h: Likewise.
11293         * lib/unictype/categ_L.h: Likewise.
11294         * lib/unictype/categ_Ll.h: Likewise.
11295         * lib/unictype/categ_Lm.h: Likewise.
11296         * lib/unictype/categ_Lo.h: Likewise.
11297         * lib/unictype/categ_Lu.h: Likewise.
11298         * lib/unictype/categ_M.h: Likewise.
11299         * lib/unictype/categ_Mc.h: Likewise.
11300         * lib/unictype/categ_Me.h: Likewise.
11301         * lib/unictype/categ_Mn.h: Likewise.
11302         * lib/unictype/categ_N.h: Likewise.
11303         * lib/unictype/categ_Nd.h: Likewise.
11304         * lib/unictype/categ_No.h: Likewise.
11305         * lib/unictype/categ_P.h: Likewise.
11306         * lib/unictype/categ_Po.h: Likewise.
11307         * lib/unictype/categ_S.h: Likewise.
11308         * lib/unictype/categ_Sc.h: Likewise.
11309         * lib/unictype/categ_Sk.h: Likewise.
11310         * lib/unictype/categ_Sm.h: Likewise.
11311         * lib/unictype/categ_So.h: Likewise.
11312         * lib/unictype/categ_of.h: Likewise.
11313         * lib/unictype/combining.h: Likewise.
11314         * lib/unictype/ctype_alnum.h: Likewise.
11315         * lib/unictype/ctype_alpha.h: Likewise.
11316         * lib/unictype/ctype_graph.h: Likewise.
11317         * lib/unictype/ctype_lower.h: Likewise.
11318         * lib/unictype/ctype_print.h: Likewise.
11319         * lib/unictype/ctype_punct.h: Likewise.
11320         * lib/unictype/ctype_upper.h: Likewise.
11321         * lib/unictype/decdigit.h: Likewise.
11322         * lib/unictype/digit.h: Likewise.
11323         * lib/unictype/numeric.h: Likewise.
11324         * lib/unictype/pr_alphabetic.h: Likewise.
11325         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11327         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11328         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11329         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11330         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11331         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11332         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11333         * lib/unictype/pr_case_ignorable.h: Likewise.
11334         * lib/unictype/pr_cased.h: Likewise.
11335         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11336         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11337         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11338         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11339         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11340         * lib/unictype/pr_combining.h: Likewise.
11341         * lib/unictype/pr_composite.h: Likewise.
11342         * lib/unictype/pr_currency_symbol.h: Likewise.
11343         * lib/unictype/pr_decimal_digit.h: Likewise.
11344         * lib/unictype/pr_deprecated.h: Likewise.
11345         * lib/unictype/pr_format_control.h: Likewise.
11346         * lib/unictype/pr_grapheme_base.h: Likewise.
11347         * lib/unictype/pr_grapheme_extend.h: Likewise.
11348         * lib/unictype/pr_grapheme_link.h: Likewise.
11349         * lib/unictype/pr_id_continue.h: Likewise.
11350         * lib/unictype/pr_id_start.h: Likewise.
11351         * lib/unictype/pr_ideographic.h: Likewise.
11352         * lib/unictype/pr_lowercase.h: Likewise.
11353         * lib/unictype/pr_math.h: Likewise.
11354         * lib/unictype/pr_numeric.h: Likewise.
11355         * lib/unictype/pr_other_alphabetic.h: Likewise.
11356         * lib/unictype/pr_other_id_continue.h: Likewise.
11357         * lib/unictype/pr_other_math.h: Likewise.
11358         * lib/unictype/pr_punctuation.h: Likewise.
11359         * lib/unictype/pr_sentence_terminal.h: Likewise.
11360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11361         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11362         * lib/unictype/pr_unified_ideograph.h: Likewise.
11363         * lib/unictype/pr_uppercase.h: Likewise.
11364         * lib/unictype/pr_xid_continue.h: Likewise.
11365         * lib/unictype/pr_xid_start.h: Likewise.
11366         * lib/unictype/scripts.h: Likewise.
11367         * lib/unictype/scripts_byname.gperf: Likewise.
11368         * lib/unictype/sy_java_ident.h: Likewise.
11369         * lib/unigbrk/gbrkprop.h: Likewise.
11370         * lib/unilbrk/lbrkprop1.h: Likewise.
11371         * lib/unilbrk/lbrkprop2.h: Likewise.
11372         * lib/uninorm/decomposition-table2.h: Likewise.
11373         * lib/uniwbrk/wbrkprop.h: Likewise.
11374         * tests/unicase/test-cased.c: Likewise.
11375         * tests/unicase/test-ignorable.c: Likewise.
11376         * tests/unicase/test-uc_tolower.c: Likewise.
11377         * tests/unicase/test-uc_totitle.c: Likewise.
11378         * tests/unicase/test-uc_toupper.c: Likewise.
11379         * tests/unictype/test-categ_C.c: Likewise.
11380         * tests/unictype/test-categ_Cn.c: Likewise.
11381         * tests/unictype/test-categ_L.c: Likewise.
11382         * tests/unictype/test-categ_Ll.c: Likewise.
11383         * tests/unictype/test-categ_Lm.c: Likewise.
11384         * tests/unictype/test-categ_Lo.c: Likewise.
11385         * tests/unictype/test-categ_Lu.c: Likewise.
11386         * tests/unictype/test-categ_M.c: Likewise.
11387         * tests/unictype/test-categ_Mc.c: Likewise.
11388         * tests/unictype/test-categ_Me.c: Likewise.
11389         * tests/unictype/test-categ_Mn.c: Likewise.
11390         * tests/unictype/test-categ_N.c: Likewise.
11391         * tests/unictype/test-categ_Nd.c: Likewise.
11392         * tests/unictype/test-categ_No.c: Likewise.
11393         * tests/unictype/test-categ_P.c: Likewise.
11394         * tests/unictype/test-categ_Po.c: Likewise.
11395         * tests/unictype/test-categ_S.c: Likewise.
11396         * tests/unictype/test-categ_Sc.c: Likewise.
11397         * tests/unictype/test-categ_Sk.c: Likewise.
11398         * tests/unictype/test-categ_Sm.c: Likewise.
11399         * tests/unictype/test-categ_So.c: Likewise.
11400         * tests/unictype/test-ctype_alnum.c: Likewise.
11401         * tests/unictype/test-ctype_alpha.c: Likewise.
11402         * tests/unictype/test-ctype_graph.c: Likewise.
11403         * tests/unictype/test-ctype_lower.c: Likewise.
11404         * tests/unictype/test-ctype_print.c: Likewise.
11405         * tests/unictype/test-ctype_punct.c: Likewise.
11406         * tests/unictype/test-ctype_upper.c: Likewise.
11407         * tests/unictype/test-decdigit.h: Likewise.
11408         * tests/unictype/test-digit.h: Likewise.
11409         * tests/unictype/test-numeric.h: Likewise.
11410         * tests/unictype/test-pr_alphabetic.c: Likewise.
11411         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11412         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11413         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11414         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11415         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11416         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11417         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11418         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11419         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11420         * tests/unictype/test-pr_cased.c: Likewise.
11421         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11422         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11423         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11424         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11425         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11426         * tests/unictype/test-pr_combining.c: Likewise.
11427         * tests/unictype/test-pr_composite.c: Likewise.
11428         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11429         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11430         * tests/unictype/test-pr_deprecated.c: Likewise.
11431         * tests/unictype/test-pr_format_control.c: Likewise.
11432         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11433         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11434         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11435         * tests/unictype/test-pr_id_continue.c: Likewise.
11436         * tests/unictype/test-pr_id_start.c: Likewise.
11437         * tests/unictype/test-pr_ideographic.c: Likewise.
11438         * tests/unictype/test-pr_lowercase.c: Likewise.
11439         * tests/unictype/test-pr_math.c: Likewise.
11440         * tests/unictype/test-pr_numeric.c: Likewise.
11441         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11442         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11443         * tests/unictype/test-pr_other_math.c: Likewise.
11444         * tests/unictype/test-pr_punctuation.c: Likewise.
11445         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11446         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11447         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11448         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11449         * tests/unictype/test-pr_uppercase.c: Likewise.
11450         * tests/unictype/test-pr_xid_continue.c: Likewise.
11451         * tests/unictype/test-pr_xid_start.c: Likewise.
11452         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11453         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11454         changes.
11455         * lib/unictype/categ_Cc.h: Likewise.
11456         * lib/unictype/categ_Cf.h: Likewise.
11457         * lib/unictype/categ_Co.h: Likewise.
11458         * lib/unictype/categ_Cs.h: Likewise.
11459         * lib/unictype/categ_Lt.h: Likewise.
11460         * lib/unictype/categ_Nl.h: Likewise.
11461         * lib/unictype/categ_Pc.h: Likewise.
11462         * lib/unictype/categ_Pd.h: Likewise.
11463         * lib/unictype/categ_Pe.h: Likewise.
11464         * lib/unictype/categ_Pf.h: Likewise.
11465         * lib/unictype/categ_Pi.h: Likewise.
11466         * lib/unictype/categ_Ps.h: Likewise.
11467         * lib/unictype/categ_Z.h: Likewise.
11468         * lib/unictype/categ_Zl.h: Likewise.
11469         * lib/unictype/categ_Zp.h: Likewise.
11470         * lib/unictype/categ_Zs.h: Likewise.
11471         * lib/unictype/ctype_blank.h: Likewise.
11472         * lib/unictype/ctype_cntrl.h: Likewise.
11473         * lib/unictype/ctype_digit.h: Likewise.
11474         * lib/unictype/ctype_space.h: Likewise.
11475         * lib/unictype/ctype_xdigit.h: Likewise.
11476         * lib/unictype/mirror.h: Likewise.
11477         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11478         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11479         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11480         * lib/unictype/pr_bidi_control.h: Likewise.
11481         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11482         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11483         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11484         * lib/unictype/pr_bidi_pdf.h: Likewise.
11485         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11486         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11487         * lib/unictype/pr_dash.h: Likewise.
11488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11489         * lib/unictype/pr_diacritic.h: Likewise.
11490         * lib/unictype/pr_extender.h: Likewise.
11491         * lib/unictype/pr_hex_digit.h: Likewise.
11492         * lib/unictype/pr_hyphen.h: Likewise.
11493         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11494         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11495         * lib/unictype/pr_ignorable_control.h: Likewise.
11496         * lib/unictype/pr_iso_control.h: Likewise.
11497         * lib/unictype/pr_join_control.h: Likewise.
11498         * lib/unictype/pr_left_of_pair.h: Likewise.
11499         * lib/unictype/pr_line_separator.h: Likewise.
11500         * lib/unictype/pr_logical_order_exception.h: Likewise.
11501         * lib/unictype/pr_non_break.h: Likewise.
11502         * lib/unictype/pr_not_a_character.h: Likewise.
11503         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11504         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11505         * lib/unictype/pr_other_id_start.h: Likewise.
11506         * lib/unictype/pr_other_lowercase.h: Likewise.
11507         * lib/unictype/pr_other_uppercase.h: Likewise.
11508         * lib/unictype/pr_paired_punctuation.h: Likewise.
11509         * lib/unictype/pr_paragraph_separator.h: Likewise.
11510         * lib/unictype/pr_pattern_syntax.h: Likewise.
11511         * lib/unictype/pr_pattern_white_space.h: Likewise.
11512         * lib/unictype/pr_private_use.h: Likewise.
11513         * lib/unictype/pr_quotation_mark.h: Likewise.
11514         * lib/unictype/pr_radical.h: Likewise.
11515         * lib/unictype/pr_soft_dotted.h: Likewise.
11516         * lib/unictype/pr_space.h: Likewise.
11517         * lib/unictype/pr_titlecase.h: Likewise.
11518         * lib/unictype/pr_variation_selector.h: Likewise.
11519         * lib/unictype/pr_white_space.h: Likewise.
11520         * lib/unictype/pr_zero_width.h: Likewise.
11521         * lib/unictype/sy_c_ident.h: Likewise.
11522         * lib/unictype/sy_c_whitespace.h: Likewise.
11523         * lib/unictype/sy_java_whitespace.h: Likewise.
11524         * lib/uninorm/composition-table.gperf: Likewise.
11525         * lib/uninorm/decomposition-table1.h: Likewise.
11526         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11527         LB8.
11528         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11529         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11530         * modules/unictype/*: Bump version number of expected libunistring
11531         version.
11532
11533 2011-01-09  Bruno Haible  <bruno@clisp.org>
11534
11535         Update to Unicode 5.2.0.
11536         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11537         trailing whitespace removed.
11538
11539 2011-01-09  Bruno Haible  <bruno@clisp.org>
11540
11541         New Unicode character properties, from Unicode 5.2.0.
11542         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11543         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11544         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11545         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11546         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11547         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11548         uc_is_property_cased, uc_is_property_case_ignorable,
11549         uc_is_property_changes_when_lowercased,
11550         uc_is_property_changes_when_uppercased,
11551         uc_is_property_changes_when_titlecased,
11552         uc_is_property_changes_when_casefolded,
11553         uc_is_property_changes_when_casemapped): New declarations.
11554         * lib/unictype/pr_byname.gperf: Add the new properties.
11555         * modules/unictype/property-byname (Depends-on): Depend on the new
11556         properties modules.
11557         * modules/unictype/property-all (Depends-on): Likewise.
11558         * MODULES.html.sh (Unicode string functions): Add
11559         unictype/property-case-ignorable, unictype/property-cased,
11560         unictype/property-changes-when-casefolded,
11561         unictype/property-changes-when-casemapped,
11562         unictype/property-changes-when-lowercased,
11563         unictype/property-changes-when-titlecased,
11564         unictype/property-changes-when-uppercased.
11565
11566         New module 'unictype/property-changes-when-casemapped'.
11567         * modules/unictype/property-changes-when-casemapped: New file.
11568         * lib/unictype/pr_changes_when_casemapped.c: New file.
11569         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11570         generated by gen-uni-tables.
11571         * modules/unictype/property-changes-when-casemapped-tests: New file.
11572         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11573         automatically generated by gen-uni-tables.
11574
11575         New module 'unictype/property-changes-when-casefolded'.
11576         * modules/unictype/property-changes-when-casefolded: New file.
11577         * lib/unictype/pr_changes_when_casefolded.c: New file.
11578         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11579         generated by gen-uni-tables.
11580         * modules/unictype/property-changes-when-casefolded-tests: New file.
11581         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11582         automatically generated by gen-uni-tables.
11583
11584         New module 'unictype/property-changes-when-titlecased'.
11585         * modules/unictype/property-changes-when-titlecased: New file.
11586         * lib/unictype/pr_changes_when_titlecased.c: New file.
11587         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11588         generated by gen-uni-tables.
11589         * modules/unictype/property-changes-when-titlecased-tests: New file.
11590         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11591         automatically generated by gen-uni-tables.
11592
11593         New module 'unictype/property-changes-when-uppercased'.
11594         * modules/unictype/property-changes-when-uppercased: New file.
11595         * lib/unictype/pr_changes_when_uppercased.c: New file.
11596         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11597         generated by gen-uni-tables.
11598         * modules/unictype/property-changes-when-uppercased-tests: New file.
11599         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11600         automatically generated by gen-uni-tables.
11601
11602         New module 'unictype/property-changes-when-lowercased'.
11603         * modules/unictype/property-changes-when-lowercased: New file.
11604         * lib/unictype/pr_changes_when_lowercased.c: New file.
11605         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11606         generated by gen-uni-tables.
11607         * modules/unictype/property-changes-when-lowercased-tests: New file.
11608         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11609         automatically generated by gen-uni-tables.
11610
11611         New module 'unictype/property-case-ignorable'.
11612         * modules/unictype/property-case-ignorable: New file.
11613         * lib/unictype/pr_case_ignorable.c: New file.
11614         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11615         by gen-uni-tables.
11616         * modules/unictype/property-case-ignorable-tests: New file.
11617         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11618         generated by gen-uni-tables.
11619
11620         New module 'unictype/property-cased'.
11621         * modules/unictype/property-cased: New file.
11622         * lib/unictype/pr_cased.c: New file.
11623         * lib/unictype/pr_cased.h: New file, automatically generated by
11624         gen-uni-tables.
11625         * modules/unictype/property-cased-tests: New file.
11626         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11627         gen-uni-tables.
11628
11629 2011-01-09  Bruno Haible  <bruno@clisp.org>
11630
11631         Update to Unicode 5.2.0.
11632         * lib/gen-uni-tables.c (output_predicate, output_category,
11633         output_combclass, output_bidi_category, output_decimal_digit_test,
11634         output_decimal_digit, output_digit_test, output_digit,
11635         output_numeric_test, output_numeric, output_mirror, output_scripts,
11636         output_scripts_byname, output_blocks, output_ident_category): Fix
11637         comment header.
11638         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11639         get_wbp.
11640         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11641         items.
11642         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11643         Changes_When_Lowercased, Changes_When_Uppercased,
11644         Changes_When_Titlecased, Changes_When_Casefolded,
11645         Changes_When_Casemapped.
11646         (is_property_alphabetic, is_property_default_ignorable_code_point):
11647         Update for Unicode 5.2.0.
11648         (is_property_cased, is_property_case_ignorable,
11649         is_property_changes_when_lowercased,
11650         is_property_changes_when_uppercased,
11651         is_property_changes_when_titlecased,
11652         is_property_changes_when_casefolded,
11653         is_property_changes_when_casemapped): New functions.
11654         (output_properties): Output also the properties cased, case_ignorable,
11655         changes_when_lowercased, changes_when_uppercased,
11656         changes_when_titlecased, changes_when_casefolded,
11657         changes_when_casemapped.
11658         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11659         Unicode TR#11 revision 17 -> 19.
11660         (LBP_CP): New enumeration value.
11661         (LBP_*): Adjust values accordingly.
11662         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11663         TR#14 revision 22 -> 24.
11664         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11665         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11666         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11667         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11668         is_WBP_MIDLETTER.
11669         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11670         the code1 and code2 of each composition rule.
11671         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11672         * lib/unicase/ignorable.h: Likewise.
11673         * lib/unicase/tocasefold.h: Likewise.
11674         * lib/unicase/tolower.h: Likewise.
11675         * lib/unicase/totitle.h: Likewise.
11676         * lib/unicase/toupper.h: Likewise.
11677         * lib/unictype/bidi_of.h: Likewise.
11678         * lib/unictype/blocks.h: Likewise.
11679         * lib/unictype/categ_C.h: Likewise.
11680         * lib/unictype/categ_Cf.h: Likewise.
11681         * lib/unictype/categ_Cn.h: Likewise.
11682         * lib/unictype/categ_L.h: Likewise.
11683         * lib/unictype/categ_Ll.h: Likewise.
11684         * lib/unictype/categ_Lm.h: Likewise.
11685         * lib/unictype/categ_Lo.h: Likewise.
11686         * lib/unictype/categ_Lu.h: Likewise.
11687         * lib/unictype/categ_M.h: Likewise.
11688         * lib/unictype/categ_Mc.h: Likewise.
11689         * lib/unictype/categ_Mn.h: Likewise.
11690         * lib/unictype/categ_N.h: Likewise.
11691         * lib/unictype/categ_Nd.h: Likewise.
11692         * lib/unictype/categ_Nl.h: Likewise.
11693         * lib/unictype/categ_No.h: Likewise.
11694         * lib/unictype/categ_P.h: Likewise.
11695         * lib/unictype/categ_Pd.h: Likewise.
11696         * lib/unictype/categ_Po.h: Likewise.
11697         * lib/unictype/categ_S.h: Likewise.
11698         * lib/unictype/categ_Sc.h: Likewise.
11699         * lib/unictype/categ_So.h: Likewise.
11700         * lib/unictype/categ_of.h: Likewise.
11701         * lib/unictype/combining.h: Likewise.
11702         * lib/unictype/ctype_alnum.h: Likewise.
11703         * lib/unictype/ctype_alpha.h: Likewise.
11704         * lib/unictype/ctype_graph.h: Likewise.
11705         * lib/unictype/ctype_lower.h: Likewise.
11706         * lib/unictype/ctype_print.h: Likewise.
11707         * lib/unictype/ctype_punct.h: Likewise.
11708         * lib/unictype/ctype_upper.h: Likewise.
11709         * lib/unictype/decdigit.h: Likewise.
11710         * lib/unictype/digit.h: Likewise.
11711         * lib/unictype/numeric.h: Likewise.
11712         * lib/unictype/pr_alphabetic.h: Likewise.
11713         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11714         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11715         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11716         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11717         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11718         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11719         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11720         * lib/unictype/pr_combining.h: Likewise.
11721         * lib/unictype/pr_composite.h: Likewise.
11722         * lib/unictype/pr_currency_symbol.h: Likewise.
11723         * lib/unictype/pr_dash.h: Likewise.
11724         * lib/unictype/pr_decimal_digit.h: Likewise.
11725         * lib/unictype/pr_deprecated.h: Likewise.
11726         * lib/unictype/pr_diacritic.h: Likewise.
11727         * lib/unictype/pr_extender.h: Likewise.
11728         * lib/unictype/pr_grapheme_base.h: Likewise.
11729         * lib/unictype/pr_grapheme_extend.h: Likewise.
11730         * lib/unictype/pr_grapheme_link.h: Likewise.
11731         * lib/unictype/pr_id_continue.h: Likewise.
11732         * lib/unictype/pr_id_start.h: Likewise.
11733         * lib/unictype/pr_ideographic.h: Likewise.
11734         * lib/unictype/pr_ignorable_control.h: Likewise.
11735         * lib/unictype/pr_logical_order_exception.h: Likewise.
11736         * lib/unictype/pr_lowercase.h: Likewise.
11737         * lib/unictype/pr_numeric.h: Likewise.
11738         * lib/unictype/pr_other_alphabetic.h: Likewise.
11739         * lib/unictype/pr_punctuation.h: Likewise.
11740         * lib/unictype/pr_sentence_terminal.h: Likewise.
11741         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11742         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11743         * lib/unictype/pr_unified_ideograph.h: Likewise.
11744         * lib/unictype/pr_uppercase.h: Likewise.
11745         * lib/unictype/pr_xid_continue.h: Likewise.
11746         * lib/unictype/pr_xid_start.h: Likewise.
11747         * lib/unictype/pr_zero_width.h: Likewise.
11748         * lib/unictype/scripts.h: Likewise.
11749         * lib/unictype/scripts_byname.gperf: Likewise.
11750         * lib/unictype/sy_java_ident.h: Likewise.
11751         * lib/unigbrk/gbrkprop.h: Likewise.
11752         * lib/unilbrk/lbrkprop1.h: Likewise.
11753         * lib/unilbrk/lbrkprop2.h: Likewise.
11754         * lib/unilbrk/lbrktables.h: Likewise.
11755         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11756         LBP_CP. Implement rule LB30.
11757         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11758         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11759         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11760         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11761         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11762         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11763         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11764         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11765         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11766         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11767         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11768         bits instead of 16 bits in the code1 and code2 of each composition
11769         rule.
11770         (uc_composition): Update for Unicode 5.2.0.
11771         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11772         * lib/uninorm/decomposition-table2.h: Likewise.
11773         * lib/uniwbrk/wbrkprop.h: Likewise.
11774         * tests/unicase/test-cased.c: Likewise.
11775         * tests/unicase/test-ignorable.c: Likewise.
11776         * tests/unicase/test-uc_tolower.c: Likewise.
11777         * tests/unicase/test-uc_totitle.c: Likewise.
11778         * tests/unicase/test-uc_toupper.c: Likewise.
11779         * tests/unictype/test-categ_C.c: Likewise.
11780         * tests/unictype/test-categ_Cf.c: Likewise.
11781         * tests/unictype/test-categ_Cn.c: Likewise.
11782         * tests/unictype/test-categ_L.c: Likewise.
11783         * tests/unictype/test-categ_Ll.c: Likewise.
11784         * tests/unictype/test-categ_Lm.c: Likewise.
11785         * tests/unictype/test-categ_Lo.c: Likewise.
11786         * tests/unictype/test-categ_Lu.c: Likewise.
11787         * tests/unictype/test-categ_M.c: Likewise.
11788         * tests/unictype/test-categ_Mc.c: Likewise.
11789         * tests/unictype/test-categ_Mn.c: Likewise.
11790         * tests/unictype/test-categ_N.c: Likewise.
11791         * tests/unictype/test-categ_Nd.c: Likewise.
11792         * tests/unictype/test-categ_Nl.c: Likewise.
11793         * tests/unictype/test-categ_No.c: Likewise.
11794         * tests/unictype/test-categ_P.c: Likewise.
11795         * tests/unictype/test-categ_Pd.c: Likewise.
11796         * tests/unictype/test-categ_Po.c: Likewise.
11797         * tests/unictype/test-categ_S.c: Likewise.
11798         * tests/unictype/test-categ_Sc.c: Likewise.
11799         * tests/unictype/test-categ_So.c: Likewise.
11800         * tests/unictype/test-ctype_alnum.c: Likewise.
11801         * tests/unictype/test-ctype_alpha.c: Likewise.
11802         * tests/unictype/test-ctype_graph.c: Likewise.
11803         * tests/unictype/test-ctype_lower.c: Likewise.
11804         * tests/unictype/test-ctype_print.c: Likewise.
11805         * tests/unictype/test-ctype_punct.c: Likewise.
11806         * tests/unictype/test-ctype_upper.c: Likewise.
11807         * tests/unictype/test-decdigit.h: Likewise.
11808         * tests/unictype/test-digit.h: Likewise.
11809         * tests/unictype/test-numeric.h: Likewise.
11810         * tests/unictype/test-pr_alphabetic.c: Likewise.
11811         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11812         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11813         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11814         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11815         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11816         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11817         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11818         * tests/unictype/test-pr_combining.c: Likewise.
11819         * tests/unictype/test-pr_composite.c: Likewise.
11820         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11821         * tests/unictype/test-pr_dash.c: Likewise.
11822         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11823         * tests/unictype/test-pr_deprecated.c: Likewise.
11824         * tests/unictype/test-pr_diacritic.c: Likewise.
11825         * tests/unictype/test-pr_extender.c: Likewise.
11826         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11827         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11828         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11829         * tests/unictype/test-pr_id_continue.c: Likewise.
11830         * tests/unictype/test-pr_id_start.c: Likewise.
11831         * tests/unictype/test-pr_ideographic.c: Likewise.
11832         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11833         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11834         * tests/unictype/test-pr_lowercase.c: Likewise.
11835         * tests/unictype/test-pr_numeric.c: Likewise.
11836         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11837         * tests/unictype/test-pr_punctuation.c: Likewise.
11838         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11839         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11840         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11841         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11842         * tests/unictype/test-pr_uppercase.c: Likewise.
11843         * tests/unictype/test-pr_xid_continue.c: Likewise.
11844         * tests/unictype/test-pr_xid_start.c: Likewise.
11845         * tests/unictype/test-pr_zero_width.c: Likewise.
11846         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11847         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11848         changed behaviour: line breaking is now disallowed between a letter
11849         or '=' and '('.
11850         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11851         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11852         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11853         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11854         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11855         lib/uniwidth/width.c.
11856         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11857         without comments, but with the original copyright notice.
11858         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11859         changes.
11860         * lib/unictype/categ_Cc.h: Likewise.
11861         * lib/unictype/categ_Co.h: Likewise.
11862         * lib/unictype/categ_Cs.h: Likewise.
11863         * lib/unictype/categ_Lt.h: Likewise.
11864         * lib/unictype/categ_Me.h: Likewise.
11865         * lib/unictype/categ_Pc.h: Likewise.
11866         * lib/unictype/categ_Pe.h: Likewise.
11867         * lib/unictype/categ_Pf.h: Likewise.
11868         * lib/unictype/categ_Pi.h: Likewise.
11869         * lib/unictype/categ_Ps.h: Likewise.
11870         * lib/unictype/categ_Sk.h: Likewise.
11871         * lib/unictype/categ_Sm.h: Likewise.
11872         * lib/unictype/categ_Z.h: Likewise.
11873         * lib/unictype/categ_Zl.h: Likewise.
11874         * lib/unictype/categ_Zp.h: Likewise.
11875         * lib/unictype/categ_Zs.h: Likewise.
11876         * lib/unictype/ctype_blank.h: Likewise.
11877         * lib/unictype/ctype_cntrl.h: Likewise.
11878         * lib/unictype/ctype_digit.h: Likewise.
11879         * lib/unictype/ctype_space.h: Likewise.
11880         * lib/unictype/ctype_xdigit.h: Likewise.
11881         * lib/unictype/mirror.h: Likewise.
11882         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11883         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11884         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11885         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11886         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11887         * lib/unictype/pr_bidi_control.h: Likewise.
11888         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11889         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11890         * lib/unictype/pr_bidi_pdf.h: Likewise.
11891         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11892         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11893         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11894         * lib/unictype/pr_format_control.h: Likewise.
11895         * lib/unictype/pr_hex_digit.h: Likewise.
11896         * lib/unictype/pr_hyphen.h: Likewise.
11897         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11898         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11899         * lib/unictype/pr_iso_control.h: Likewise.
11900         * lib/unictype/pr_join_control.h: Likewise.
11901         * lib/unictype/pr_left_of_pair.h: Likewise.
11902         * lib/unictype/pr_line_separator.h: Likewise.
11903         * lib/unictype/pr_math.h: Likewise.
11904         * lib/unictype/pr_non_break.h: Likewise.
11905         * lib/unictype/pr_not_a_character.h: Likewise.
11906         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11907         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11908         * lib/unictype/pr_other_id_continue.h: Likewise.
11909         * lib/unictype/pr_other_id_start.h: Likewise.
11910         * lib/unictype/pr_other_lowercase.h: Likewise.
11911         * lib/unictype/pr_other_math.h: Likewise.
11912         * lib/unictype/pr_other_uppercase.h: Likewise.
11913         * lib/unictype/pr_paired_punctuation.h: Likewise.
11914         * lib/unictype/pr_paragraph_separator.h: Likewise.
11915         * lib/unictype/pr_pattern_syntax.h: Likewise.
11916         * lib/unictype/pr_pattern_white_space.h: Likewise.
11917         * lib/unictype/pr_private_use.h: Likewise.
11918         * lib/unictype/pr_quotation_mark.h: Likewise.
11919         * lib/unictype/pr_radical.h: Likewise.
11920         * lib/unictype/pr_soft_dotted.h: Likewise.
11921         * lib/unictype/pr_space.h: Likewise.
11922         * lib/unictype/pr_titlecase.h: Likewise.
11923         * lib/unictype/pr_variation_selector.h: Likewise.
11924         * lib/unictype/pr_white_space.h: Likewise.
11925         * lib/unictype/sy_c_ident.h: Likewise.
11926         * lib/unictype/sy_c_whitespace.h: Likewise.
11927         * lib/unictype/sy_java_whitespace.h: Likewise.
11928         * modules/uni*/*: Bump version number of expected libunistring version.
11929         Reported by Simon Josefsson.
11930
11931 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11932
11933         useless-if-before-free: fix typo in --help and make the internal,
11934         automatic version date update process work once again.
11935         --help output contained a NUL character instead of the
11936         backslash-zero that was intended.  Also, the "must lie within
11937         the first 8 lines" line is on line 9, and hence not getting
11938         automatically updated.
11939         * build-aux/useless-if-before-free: Fix the former by adding a
11940         backslash, and the latter by condensing the three lines of what-it-does
11941         to a single line, leaving one line of slack for the future.
11942
11943 2011-01-09  Bruno Haible  <bruno@clisp.org>
11944
11945         uniwidth/width: Fix width of U+1D173..U+1D17A.
11946         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11947         symbolic_width, output_width_property_test): New functions.
11948         (main): Invoke output_nonspacing_property, output_width_property_test.
11949         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11950         U+1D173..U+1D17A.
11951         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11952         1.
11953         * modules/uniwidth/*: Bump version number of expected libunistring
11954         version.
11955         * modules/unilbrk/*: Likewise.
11956
11957 2011-01-08  Bruno Haible  <bruno@clisp.org>
11958
11959         uninorm tests: Preserve copyright of Unicode data file.
11960         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11961         Mention modifications.
11962
11963 2011-01-08  Bruno Haible  <bruno@clisp.org>
11964
11965         gen-uni-tables: Prepare for Unicode 5.2.0.
11966         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11967         (debug_output_lbp, output_lbp): Update.
11968
11969 2011-01-08  Bruno Haible  <bruno@clisp.org>
11970
11971         unilbrk: Clarify gen-uni-tables.c code.
11972         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11973         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11974         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11975
11976 2011-01-07  Bruno Haible  <bruno@clisp.org>
11977
11978         strtod: Restore errno when successfully parsing Infinity or NaN.
11979         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11980         restore the original errno.
11981
11982 2011-01-07  Bruno Haible  <bruno@clisp.org>
11983
11984         remove test: Avoid failure on HP-UX 11.
11985         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11986
11987 2011-01-07  Bruno Haible  <bruno@clisp.org>
11988
11989         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11990         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11991         error code.
11992
11993 2011-01-07  Pádraig Brady <P@draigBrady.com>
11994
11995         ignore-value: fixup comments, and add Eric Blake
11996         as an author since he rewrote the macros.
11997         * lib/ignore-value.h (ignore_value):  State that
11998         we now support aggregates.  Also specify exactly
11999         when the GCC warn_unused_result feature was added.
12000
12001 2011-01-06  Eric Blake  <eblake@redhat.com>
12002
12003         ignore-value: support aggregate types
12004         * lib/ignore-value.h (ignore_value): Provide separate gcc
12005         definition.
12006         * modules/ignore-value-tests: New test module.
12007         * tests/test-ignore-value.c: New test.
12008
12009         maint.mk: improve sc_prohibit_strcmp regex
12010         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12011         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12012         definition of STRNEQ.
12013
12014         signal: work around Haiku issue with SIGBUS
12015         * lib/siglist.h: Add comment.
12016         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12017         strsignal's favoring of SIGSEGV.
12018         * tests/test-signal.c (main): Avoid test failure.
12019         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12020         Reported by Scott McCreary.
12021
12022         maint.mk: add pre-release check to ensure submodule commits are public
12023         * top/maint.mk (public-submodule-commit): New rule.
12024         (submodule-checks): New variable.
12025         (alpha beta stable): Depend on the variable.
12026
12027 2011-01-05  Pádraig Brady <P@draigBrady.com>
12028         and Jim Meyering  <meyering@redhat.com>
12029
12030         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12031         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12032         (ATTRIBUTE_DEPRECATED): Define.
12033         (_ignore_case): New function.
12034         (ignore_value): New macro, to replace the old function.
12035         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12036         * modules/ignore-value (Depends-on): Add stdint.
12037
12038 2011-01-04  Eric Blake  <eblake@redhat.com>
12039
12040         doc: regenerate INSTALL
12041         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12042         @firstparagraphindent support, now that autoconf dropped it.
12043         (INSTALL_PRELUDE): Reinstate old macro.
12044         * doc/install.texi: Resync from autoconf.
12045         * doc/INSTALL: Reflect recent autoconf update.
12046         * doc/INSTALL.ISO: Likewise.
12047         * doc/INSTALL.UTF-8: Likewise.
12048         Reported by Karl Berry.
12049
12050 2011-01-04  Bruce Korb  <address@hidden>
12051
12052         git-version-gen: avoid a sub-shell
12053         * build-aux/git-version-gen: Redirect stderr in `...` via
12054         "exec 2>...", rather than via an added sub-shell.
12055
12056 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12057
12058         git-version-gen: use (...) rather than sh -c '...'
12059         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12060         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12061
12062 2011-01-03  Jim Meyering  <meyering@redhat.com>
12063
12064         git-version-gen: convert leading TABs to spaces
12065         * build-aux/git-version-gen: Expand leading TABs.
12066
12067         git-version-gen: handle failed "git rev-list"
12068         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12069         from git and proceeding as if it had succeeded but printed no SHA1
12070         checksums, suppress the diagnostic and handle the failure.
12071         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12072
12073         git-version-gen: include command name in one more diagnostic
12074         * build-aux/git-version-gen: When the required .tarball-version file
12075         was missing or unreadable, you might see the diagnostic from "cat",
12076         but no trace of the name of the invoking script.  Now, you still see
12077         the diagnostic from cat, but also get one from "git-version-gen: ".
12078         Inspired by a patch from Bruce Korb.
12079
12080         update-copyright: adjust test to match changed code
12081         * tests/test-update-copyright.sh: Change test's expected output
12082         to match new actual output.
12083
12084 2011-01-02  Bruno Haible  <bruno@clisp.org>
12085
12086         getlogin_r: Avoid test failure on HP-UX 11.
12087         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12088         ERANGE when the second argument is zero.
12089         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12090         portability problem.
12091
12092 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12093
12094         * build-aux/update-copyright: doc Simon's changes
12095
12096 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12097
12098         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12099         environment variable.
12100
12101 2011-01-02  Bruno Haible  <bruno@clisp.org>
12102
12103         unigbrk: Avoid gcc warnings.
12104         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12105         unused variable.
12106         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12107         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12108         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12109         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12110         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12111         Change type of first argument to 'const char *'.
12112         (main): Remove unused variable.
12113         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12114         type of first argument to 'const char *'.
12115         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12116         Likewise.
12117         (main): Change type of variable 's'.
12118         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12119         to 'int'.
12120
12121 2011-01-02  Bruno Haible  <bruno@clisp.org>
12122
12123         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12124         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12125         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12126         bug.
12127         * lib/pwrite.c: Undo 2010-12-31 patch.
12128         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12129
12130 2011-01-02  Bruno Haible  <bruno@clisp.org>
12131
12132         pread: Fix test whether it works.
12133         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12134
12135 2011-01-02  Bruno Haible  <bruno@clisp.org>
12136
12137         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12138         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12139         ends in "6". Don't require a specific month name. Try also the locale
12140         names found on HP-UX 11 and Solaris 7.
12141
12142 2011-01-02  Bruno Haible  <bruno@clisp.org>
12143
12144         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12145         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12146         C linkage.
12147         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12148
12149 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12150
12151         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12152         for consistency, since the "cluster" term is not used elsewhere.
12153         * lib/unigbrk.in.h: Update name.
12154         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12155         * lib/unigbrk/u16-grapheme-next.c: Update name.
12156         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12157         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12158         * lib/unigbrk/u32-grapheme-next.c: Update name.
12159         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12160         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12161         * lib/unigbrk/u8-grapheme-next.c: Update name.
12162         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12163         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12164         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12165         Suggested by Bruno Haible.
12166
12167 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12168
12169         Remove module 'u8-grapheme-len' as too redundant with
12170         'u8-grapheme-next'.
12171         * modules/unigbrk/u8-grapheme-len: Delete file.
12172         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12173         * lib/unigbrk.in.h: Remove prototype for deleted function.
12174         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12175         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12176
12177         Remove module 'u16-grapheme-len' as too redundant with
12178         'u16-grapheme-next'.
12179         * modules/unigbrk/u16-grapheme-len: Delete file.
12180         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12181         * lib/unigbrk.in.h: Remove prototype for deleted function.
12182         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12183         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12184
12185         Remove module 'u32-grapheme-len' as too redundant with
12186         'u32-grapheme-next'.
12187         * modules/unigbrk/u32-grapheme-len: Delete file.
12188         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12189         * lib/unigbrk.in.h: Remove prototype for deleted function.
12190         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12191         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12192
12193         Suggested by Bruno Haible.
12194
12195 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12196
12197         * unigbrk.in.h: Fix typo: "ben" => "been".
12198         Reported by Bruno Haible.
12199
12200 2011-01-01  Jim Meyering  <meyering@redhat.com>
12201
12202         maint: update almost all copyright ranges to include 2011
12203         Run the new "make update-copyright" rule.
12204
12205 2011-01-01  Jim Meyering  <meyering@redhat.com>
12206
12207         maint: update-copyright: exempt doc/INSTALL*
12208         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12209         since they are generated.  Suggested by Bruno Haible.
12210
12211 2011-01-01  Jim Meyering  <meyering@redhat.com>
12212
12213         maint: refine the update-copyright rule
12214         * Makefile (update-copyright): Also exclude any file that includes
12215         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12216         code that merely generates the comment.
12217
12218 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12219
12220         New module 'u8-grapheme-len'.
12221         * modules/unigbrk/u8-grapheme-len: New file.
12222         * modules/unigbrk/u8-grapheme-len-tests: New file.
12223         * lib/unigbrk.in.h: Add prototype for new function.
12224         * lib/unigbrk/u8-grapheme-len.c: New file.
12225         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12226
12227         New module 'u16-grapheme-len'.
12228         * modules/unigbrk/u16-grapheme-len: New file.
12229         * modules/unigbrk/u16-grapheme-len-tests: New file.
12230         * lib/unigbrk.in.h: Add prototype for new function.
12231         * lib/unigbrk/u16-grapheme-len.c: New file.
12232         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12233
12234         New module 'u32-grapheme-len'.
12235         * modules/unigbrk/u32-grapheme-len: New file.
12236         * modules/unigbrk/u32-grapheme-len-tests: New file.
12237         * lib/unigbrk.in.h: Add prototype for new function.
12238         * lib/unigbrk/u32-grapheme-len.c: New file.
12239         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12240
12241         New module 'u8-grapheme-next'.
12242         * modules/unigbrk/u8-grapheme-next: New file.
12243         * modules/unigbrk/u8-grapheme-next-tests: New file.
12244         * lib/unigbrk.in.h: Add prototype for new function.
12245         * lib/unigbrk/u8-grapheme-next.c: New file.
12246         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12247
12248         New module 'u16-grapheme-next'.
12249         * modules/unigbrk/u16-grapheme-next: New file.
12250         * modules/unigbrk/u16-grapheme-next-tests: New file.
12251         * lib/unigbrk.in.h: Add prototype for new function.
12252         * lib/unigbrk/u16-grapheme-next.c: New file.
12253         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12254
12255         New module 'u32-grapheme-next'.
12256         * modules/unigbrk/u32-grapheme-next: New file.
12257         * modules/unigbrk/u32-grapheme-next-tests: New file.
12258         * lib/unigbrk.in.h: Add prototype for new function.
12259         * lib/unigbrk/u32-grapheme-next.c: New file.
12260         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12261
12262         New module 'u8-grapheme-prev'.
12263         * modules/unigbrk/u8-grapheme-prev: New file.
12264         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12265         * lib/unigbrk.in.h: Add prototype for new function.
12266         * lib/unigbrk/u8-grapheme-prev.c: New file.
12267         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12268
12269         New module 'u16-grapheme-prev'.
12270         * modules/unigbrk/u16-grapheme-prev: New file.
12271         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12272         * lib/unigbrk.in.h: Add prototype for new function.
12273         * lib/unigbrk/u16-grapheme-prev.c: New file.
12274         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12275
12276         New module 'u32-grapheme-prev'.
12277         * modules/unigbrk/u32-grapheme-prev: New file.
12278         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12279         * lib/unigbrk.in.h: Add prototype for new function.
12280         * lib/unigbrk/u32-grapheme-prev.c: New file.
12281         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12282
12283         New module 'u8-grapheme-breaks'.
12284         * modules/unigbrk/u8-grapheme-breaks: New file.
12285         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12286         * lib/unigbrk.in.h: Add prototype for new function.
12287         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12288         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12289
12290         New module 'u16-grapheme-breaks'.
12291         * modules/unigbrk/u16-grapheme-breaks: New file.
12292         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12293         * lib/unigbrk.in.h: Add prototype for new function.
12294         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12295         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12296
12297         New module 'u32-grapheme-breaks'.
12298         * modules/unigbrk/u32-grapheme-breaks: New file.
12299         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12300         * lib/unigbrk.in.h: Add prototype for new function.
12301         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12302         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12303
12304         New module 'ulc-grapheme-breaks'.
12305         * modules/unigbrk/ulc-grapheme-breaks: New file.
12306         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12307         * m4/locale-ar.m4: New file.
12308         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12309         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12310         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12311
12312 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12313
12314         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12315         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12316         modified how this file was generated before I initially submitted
12317         the module, but failed to regenerate it.  This meant that several
12318         of the level2 entries were wrong.
12319         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12320         Remove the division-by-2 that is folded into the table now that
12321         gbrkprop.h has been regenerated properly.  Now -1 entries are
12322         handled correctly.
12323
12324         New module 'unigbrk/uc-gbrk-prop-tests'.
12325         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12326         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12327         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12328         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12329
12330 2011-01-01  Bruno Haible  <bruno@clisp.org>
12331
12332         Avoid use of hexadecimal escapes.
12333         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12334         instead of hexadecimal escapes.
12335
12336 2011-01-01  Jim Meyering  <meyering@redhat.com>
12337
12338         maint: new rule to update copyright year ranges
12339         * Makefile (update-copyright): New rule.
12340
12341         maint: indent with TABs in Makefile
12342         * Makefile: Expand leading sequences of spaces to TABs
12343
12344         version-etc: update the copyright year it reports
12345         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12346
12347 2010-12-31  Bruno Haible  <bruno@clisp.org>
12348
12349         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12350         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12351         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12352         zero.
12353
12354 2010-12-31  Bruno Haible  <bruno@clisp.org>
12355
12356         pwrite: Work around HP-UX 11.11 bug.
12357         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12358         works and set REPLACE_PWRITE if not.
12359         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12360         function.
12361         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12362
12363 2010-12-31  Bruno Haible  <bruno@clisp.org>
12364
12365         pread: Work around HP-UX 11 bugs.
12366         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12367         and set REPLACE_PREAD if not.
12368         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12369
12370 2010-12-31  Eric Blake  <eblake@redhat.com>
12371
12372         nl_langinfo: fix YESEXPR on Irix 6.5
12373         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12374         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12375         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12376         it.
12377
12378 2010-12-31  Bruno Haible  <bruno@clisp.org>
12379
12380         iconv: Document HP-UX 11 bug.
12381         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12382
12383 2010-12-31  Bruno Haible  <bruno@clisp.org>
12384
12385         ldexpl: Fix link error on HP-UX 11.
12386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12387         LDEXPL_LIBM, using $ISNANL_LIBM.
12388
12389 2010-12-31  Eric Blake  <eblake@redhat.com>
12390
12391         ftello: avoid compilation failure with SunStudio c89
12392         * lib/ftello.c (ftello): Use lseek, not llseek.
12393
12394         tests: avoid failing coreutils tests on cygwin
12395         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12396         (create_exe_shims_): Return 0 when skipping.
12397
12398 2010-12-31  Bruno Haible  <bruno@clisp.org>
12399
12400         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12401         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12402
12403 2010-12-31  Bruno Haible  <bruno@clisp.org>
12404
12405         waitpid: Fix link error in C++ mode.
12406         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12407
12408 2010-12-31  Bruno Haible  <bruno@clisp.org>
12409
12410         isnan: Use GCC built-ins when possible.
12411         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12412         __builtin_isnan.
12413         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12414         (isnan): Define using GCC built-ins for GCC >= 4.0.
12415
12416 2010-12-31  Bruno Haible  <bruno@clisp.org>
12417
12418         isnand: Fix mistake.
12419         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12420         __builtin_isnand.
12421
12422 2010-12-31  Bruno Haible  <bruno@clisp.org>
12423
12424         open: Avoid C++ error on HP-UX 11.
12425         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12426
12427 2010-12-31  Bruno Haible  <bruno@clisp.org>
12428
12429         time_r: Add missing declarations on HP-UX 11.
12430         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12431         instead of HAVE_LOCALTIME_R.
12432         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12433         HAVE_LOCALTIME_R always.
12434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12435         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12436         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12437         HAVE_LOCALTIME_R.
12438         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12439         * doc/posix-functions/localtime_r.texi: Likewise.
12440
12441 2010-12-29  Eric Blake  <eblake@redhat.com>
12442
12443         mountlist: tweak previous commit
12444         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12445         Reported by Paul Eggert.
12446
12447         mountlist: fix local drive detection on cygwin
12448         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12449         that works for cygwin.
12450
12451 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12452
12453         ftoastr, snprintf: ftoastr + snprintf module
12454         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12455         since the snprintf module now should be good enough here.
12456         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12457         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12458         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12459         GNULIB_SNPRINTF only for the test directory, and the latter
12460         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12461         seems to suffice by itself.
12462
12463 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12464
12465         alloca: one step towards thread-safety
12466         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12467         need for a static variable.  All callers changed.  This does not
12468         make the alloca replacement thread-safe, but it's one step.
12469
12470         tests: minor indenting change
12471         * tests/init.sh: Sync from coreutils housekeeping patch
12472         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12473         to keep lines within 80 columns.
12474
12475 2010-12-28  Jim Meyering  <meyering@redhat.com>
12476
12477         regex: don't infloop on persistent failing calloc
12478         * lib/regexec.c (build_trtable): Return failure indication upon
12479         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12480         In glibc, this was fixed for version 2.13:
12481         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12482
12483 2010-12-28  Bruno Haible  <bruno@clisp.org>
12484             Paul Eggert <eggert@cs.ucla.edu>
12485
12486         linkat: Make implementation robust against system behaviour variations.
12487         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12488         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12489         way, and to -2 if it needs a generic runtime test.
12490         * lib/linkat.c (solaris_optimized_link_immediate,
12491         solaris_optimized_link_follow): New functions.
12492         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12493         (check_same_link): Use it.
12494
12495 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12496
12497         New module 'unigbrk/base'.
12498         * modules/unigbrk/base: New file.
12499         * lib/unigbrk.in.h: New file.
12500
12501         New module 'unigbrk/uc-gbrk-prop'.
12502         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12503         * modules/unigbrk/uc-gbrk-prop: New file.
12504         * lib/unigbrk/gbrkprop.h: New file.
12505         * lib/unigbrk/uc-gbrk-prop.c: New file.
12506
12507         New module 'unigbrk/uc-is-grapheme-break'.
12508         * modules/unigbrk/uc-is-grapheme-break: New file.
12509         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12510         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12511         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12512         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12513         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12514
12515         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12516
12517 2010-12-27  Bruno Haible  <bruno@clisp.org>
12518
12519         linkat test: Avoid failure on Solaris 11 2010-11.
12520         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12521
12522 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12523
12524         utimens: work around glibc rounding bug on more platforms
12525         * lib/utimens.c (fdutimens): Work around rounding bug even if
12526         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12528
12529 2010-12-27  Bruno Haible  <bruno@clisp.org>
12530
12531         select tests: Improve comments.
12532         * tests/test-select.c (do_select): Add comments.
12533
12534 2010-12-27  Bruno Haible  <bruno@clisp.org>
12535
12536         select tests: Safer way of handling timeout.
12537         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12538         at every invocation.
12539
12540 2010-12-27  Bruno Haible  <bruno@clisp.org>
12541
12542         select tests: Use 'bool' where appropriate.
12543         * tests/test-select.c (connect_to_socket): Change argument type to
12544         'bool'.
12545
12546 2010-12-27  Bruno Haible  <bruno@clisp.org>
12547
12548         select tests: Use existing modules.
12549         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12550         (configure.ac): Don't test for unistd.h.
12551         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12552         declared in <unistd.h>.
12553
12554 2010-12-27  Bruno Haible  <bruno@clisp.org>
12555
12556         mbrtowc: Work around a Solaris 7 bug.
12557         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12558         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12559         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12560         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12561         MBRTOWC_NULL_ARG1_BUG.
12562         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12563         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12564         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12565         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12566
12567 2010-12-27  Jim Meyering  <meyering@redhat.com>
12568
12569         read-file.c: tweak syntax
12570         * lib/read-file.c (fread_file): Remove space after "*" in function
12571         definitions.
12572
12573 2010-12-27  Bruno Haible  <bruno@clisp.org>
12574
12575         times test: Avoid gcc warnings on OSF/1.
12576         * tests/test-times.c (main): Cast printf arguments from clock_t to
12577         'long int'.
12578
12579 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12580
12581         utimens: work around glibc rounding bug on older Linux kernels
12582         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12583         on Linux with a glibc whose utimes might not work, then work
12584         around a longstanding glibc bug involving rounding rather than
12585         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12587
12588 2010-12-26  Bruno Haible  <bruno@clisp.org>
12589
12590         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12591         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12592         _GL_CXXALIAS_SYS.
12593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12594
12595 2010-12-26  Bruno Haible  <bruno@clisp.org>
12596
12597         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12598         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12599         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12600         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12601         looking for the declaration.
12602         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12603         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12604         problem.
12605         * doc/posix-functions/inet_pton.texi: Likewise.
12606
12607 2010-12-26  Bruno Haible  <bruno@clisp.org>
12608
12609         arpa_inet: Use the common idioms with C++ support.
12610         * lib/arpa_inet.in.h: Include c++defs.h.
12611         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12612         support.
12613         * modules/arpa_inet (Depends-on): Add c++defs.
12614         (Makefile.am): Substitute the contents of c++defs.h.
12615         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12616         * modules/arpa_inet-c++-tests: New file.
12617         * tests/test-arpa_inet-c++.cc: New file.
12618
12619 2010-12-25  Bruno Haible  <bruno@clisp.org>
12620
12621         Fix more C++ link errors on Solaris 8.
12622         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12623         $(LIB_EACCESS).
12624         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12625         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12626         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12627         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12628         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12629
12630 2010-12-25  Bruno Haible  <bruno@clisp.org>
12631
12632         printf-posix: Fix link error when a non-GCC compiler is used.
12633         * lib/stdio.in.h (printf): When not using GCC, override printf
12634         correctly.
12635         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12636
12637 2010-12-25  Bruno Haible  <bruno@clisp.org>
12638
12639         strerror_r-posix: Update doc.
12640         * doc/posix-functions/strerror_r.texi: Update doc about the return
12641         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12642
12643 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         utimens: simplify the logic of the previous change
12646         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12647         This should not affect whether the test succeeds or fails.
12648
12649         utimens: configure better on hosts with NFS clock skew
12650         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12651         uses the clock of the local host.  It might use the clock of the
12652         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12654
12655 2010-12-25  Bruno Haible  <bruno@clisp.org>
12656
12657         ptsname test: Avoid failure on Solaris.
12658         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12659         open a pseudo-terminal; don't use BSD-style ptys.
12660         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12661
12662 2010-12-25  Bruno Haible  <bruno@clisp.org>
12663
12664         ptsname: Avoid ERANGE failure on some systems.
12665         * lib/ptsname.c (buffer): Increase size.
12666
12667 2010-12-25  Bruno Haible  <bruno@clisp.org>
12668
12669         rename, renameat: Avoid test failures at NFS mounted locations.
12670         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12671         so that subsequent mkdir calls succeed.
12672
12673 2010-12-25  Bruno Haible  <bruno@clisp.org>
12674
12675         iswblank: Fix C++ link error on Solaris 8.
12676         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12677         _GL_FUNCDECL_SYS.
12678
12679 2010-12-25  Bruno Haible  <bruno@clisp.org>
12680
12681         unistd: Fix C++ link error on Solaris 8.
12682         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12683
12684 2010-12-25  Bruno Haible  <bruno@clisp.org>
12685
12686         readlink doc: Mention an old glibc bug.
12687         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12688
12689 2010-12-25  Bruno Haible  <bruno@clisp.org>
12690
12691         fcntl-h: Fix for use of C++ on glibc systems.
12692         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12693         also on glibc systems in C++ mode.
12694         Reported by Gary V. Vaughan <gary@gnu.org>.
12695
12696 2010-12-25  Bruno Haible  <bruno@clisp.org>
12697
12698         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12699         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12700
12701 2010-12-25  Bruno Haible  <bruno@clisp.org>
12702
12703         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12704         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12705         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12706         test whether truncl works according to ISO C 99 with IEC 60559.
12707         * m4/truncl-ieee.m4: New file.
12708         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12709         m4/signbit.m4.
12710         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12711
12712 2010-12-25  Bruno Haible  <bruno@clisp.org>
12713
12714         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12715         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12716         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12717         test whether ceill works according to ISO C 99 with IEC 60559.
12718         * m4/ceill-ieee.m4: New file.
12719         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12720         m4/signbit.m4.
12721         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12722
12723 2010-12-25  Bruno Haible  <bruno@clisp.org>
12724
12725         Ensure all prerequisites of <wchar.h> are included.
12726         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12727         before <wchar.h>.
12728         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12729         gl_MBRLEN_NUL_RETVAL): Likewise.
12730         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12731         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12732         AC_FUNC_MBRTOWC): Likewise.
12733         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12734         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12735         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12736         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12737         Likewise.
12738         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12739         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12740         (gl_WCHAR_H): Improve comments.
12741         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12742
12743 2010-12-25  Bruno Haible  <bruno@clisp.org>
12744
12745         strtok_r: Fix C syntax error in autoconf macro.
12746         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12747         characters in test program.
12748
12749 2010-12-24  Bruno Haible  <bruno@clisp.org>
12750
12751         ceil, trunc, round: Fix gcc warnings.
12752         * lib/ceil.c (MIN): Undefine before redefining.
12753         * lib/trunc.c (MIN): Likewise.
12754         * lib/round.c (MIN): Likewise.
12755         Include <math.h> first.
12756
12757 2010-12-24  Bruno Haible  <bruno@clisp.org>
12758
12759         select tests: Avoid failures on OSF/1 5.1.
12760         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12761         failure of closing the last socket; it may fail with ECONNRESET.
12762
12763 2010-12-24  Eric Blake  <eblake@redhat.com>
12764
12765         stdint: avoid HP-UX 10.20 preprocessor bug
12766         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12767         than #if.
12768         * tests/test-floor2.c (main): Likewise.
12769         Reported by Peter O'Gorman.
12770
12771         pipe: make obsoletion transition easier
12772         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12773         * modules/pipe (Files): Include revived file.
12774         (Include): Drop reference, to mirror getdate's behavior.
12775
12776 2010-12-24  Bruno Haible  <bruno@clisp.org>
12777
12778         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12779         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12780         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12782
12783 2010-12-24  Bruno Haible  <bruno@clisp.org>
12784
12785         gethostname: Ensure declaration on NonStop Kernel.
12786         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12787         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12788
12789 2010-12-24  Bruno Haible  <bruno@clisp.org>
12790
12791         sys_select: Ensure all necessary types on NonStop Kernel.
12792         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12793         include <sys/time.h>.
12794         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12795         NonStop Kernel.
12796         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12797
12798 2010-12-24  Bruno Haible  <bruno@clisp.org>
12799
12800         sys_select: Remove unneeded include.
12801         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12802         have <sys/select.h>.
12803
12804 2010-12-24  Bruno Haible  <bruno@clisp.org>
12805
12806         gethostname: Provide a fallback for HOST_NAME_MAX.
12807         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12808         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12809         instead.
12810         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12811
12812 2010-12-24  Bruno Haible  <bruno@clisp.org>
12813
12814         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12815         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12816         (SA_RESTART): Likewise.
12817         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12818
12819 2010-12-24  Bruno Haible  <bruno@clisp.org>
12820
12821         signal: Define NSIG.
12822         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12823         * tests/test-signal.c (nsig): New variable.
12824         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12825
12826 2010-12-24  Bruno Haible  <bruno@clisp.org>
12827
12828         rename, renameat: Avoid test failures on OSF/1 5.1.
12829         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12830         alternative error codes.
12831         * tests/test-renameat.c (main): Likewise.
12832
12833 2010-12-24  Bruno Haible  <bruno@clisp.org>
12834
12835         *printf: Detect large precisions bug on Solaris 10/SPARC.
12836         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12837         by Paul Eggert.
12838         * tests/test-snprintf-posix.h (test_function): Add this test code here
12839         too.
12840         * tests/test-sprintf-posix.h (test_function): Likewise.
12841         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12842         * tests/test-vasprintf-posix.c (test_function): Likewise.
12843         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12844         around by gnulib.
12845         * doc/posix-functions/printf.texi: Likewise.
12846         * doc/posix-functions/snprintf.texi: Likewise.
12847         * doc/posix-functions/sprintf.texi: Likewise.
12848         * doc/posix-functions/vfprintf.texi: Likewise.
12849         * doc/posix-functions/vprintf.texi: Likewise.
12850         * doc/posix-functions/vsnprintf.texi: Likewise.
12851         * doc/posix-functions/vsprintf.texi: Likewise.
12852         * doc/posix-functions/dprintf.texi: Undo last commit.
12853         * doc/posix-functions/vdprintf.texi: Likewise.
12854
12855 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12856
12857         tests: port test-fdutimensat.c to Solaris 8
12858         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12859         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12860         On Solaris 8, it fails with errno == ENOSYS, because there is no
12861         futimens (so it can't use the fd), and there is no lutimens (so it
12862         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12863
12864         vsnprintf: make more consistent with snprintf; doc fixes
12865
12866         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12867         the byte count return problem was promoted from the snprintf-posix
12868         to the snprintf module.
12869         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12870         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12871         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12872         * tests/test-snprintf.c (main): Check the byte count returned.
12873         * tests/test-vsnprintf.c (main): Likewise.
12874
12875 2010-12-23  Eric Blake  <eblake@redhat.com>
12876
12877         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12878         * modules/sigpipe (License): Relax license.
12879
12880 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12881
12882         doc: document Solaris printf bug with large float precisions
12883         * doc/posix-functions/dprintf.texi (dprintf):
12884         * doc/posix-functions/fprintf.texi (fprintf):
12885         * doc/posix-functions/printf.texi (printf):
12886         * doc/posix-functions/snprintf.texi (snprintf):
12887         * doc/posix-functions/sprintf.texi (sprintf):
12888         * doc/posix-functions/vdprintf.texi (vdprintf):
12889         * doc/posix-functions/vfprintf.texi (vfprintf):
12890         * doc/posix-functions/vprintf.texi (vprintf):
12891         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12892         * doc/posix-functions/vsprintf.texi (vsprintf):
12893         Mention that these functions mishandle large floating point
12894         precisions on Solaris 10.  The same bug is also present in Solaris
12895         8, and I assume earlier.  This causes "cd gnulib-tests; make
12896         check" to fail on Solaris 8 (and I assume, later) when building
12897         the latest coreutils, in test-vasprintf-posix's call to
12898         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12899         the wide flavors (e.g., wprintf) so this patch just updates the
12900         documentation for the narrow ones.
12901
12902         test-posixtm.c: add two tests
12903         * tests/test-posixtm.c: Add two tests, to highlight the
12904         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12905         around this bug; this is merely to document it.
12906
12907 2010-12-22  Bruno Haible  <bruno@clisp.org>
12908
12909         getlogin_r: Work around portability problem on OSF/1.
12910         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12911         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12912         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12913         test for a truncated result.
12914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12915         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12916         * modules/getlogin_r (Depends-on): Add memchr.
12917         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12918
12919 2010-12-22  Bruno Haible  <bruno@clisp.org>
12920
12921         ptsname: Avoid test failure on OSF/1 5.1.
12922         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12923         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12924         (same_slave): New function.
12925         (main): Use it to compare ptsname's result with the expected file name.
12926
12927 2010-12-22  Bruno Haible  <bruno@clisp.org>
12928
12929         Port extended stdio modules to HP NonStop Kernel.
12930         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12931         macros.
12932         * lib/fbufmode.c: Update comments.
12933         * lib/fflush.c: Likewise.
12934         * lib/fpurge.c: Likewise.
12935         * lib/freadable.c: Likewise.
12936         * lib/freadahead.c: Likewise.
12937         * lib/freading.c: Likewise.
12938         * lib/freadptr.c: Likewise.
12939         * lib/freadseek.c: Likewise.
12940         * lib/fseeko.c: Likewise.
12941         * lib/fseterr.c: Likewise.
12942         * lib/fwritable.c: Likewise.
12943         * lib/fwriting.c: Likewise.
12944         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12945
12946 2010-12-22  Bruno Haible  <bruno@clisp.org>
12947
12948         ttyname_r: Work around bug on OSF/1 5.1.
12949         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12950         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12951         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12952         present.
12953         * lib/ttyname_r.c (ttyname_r): Update comments.
12954
12955 2010-12-22  Bruno Haible  <bruno@clisp.org>
12956
12957         round: Implement result sign according to IEEE 754.
12958         * lib/round.c (MIN, MINUS_ZERO): New macros.
12959         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12960         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12961         * tests/test-round-ieee.c (main): Likewise.
12962         * tests/test-roundl-ieee.c (main): Likewise.
12963
12964         trunc: Implement result sign according to IEEE 754.
12965         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12966         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12967         * tests/test-trunc2.c: Include minus-zero.h.
12968         (MINUS_ZERO): New macro.
12969         (trunc_reference): Keep in sync with lib/trunc.c.
12970         * tests/test-truncf2.c: Include minus-zero.h.
12971         (MINUS_ZERO): New macro.
12972         (truncf_reference): Keep in sync with lib/trunc.c.
12973         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12974         * tests/test-trunc-ieee.c (main): Likewise.
12975         * tests/test-truncl-ieee.c (main): Likewise.
12976
12977         ceil: Implement result sign according to IEEE 754.
12978         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12979         (FUNC): Return -0.0 for -1 < x < 0.
12980         * tests/test-ceil2.c: Include minus-zero.h.
12981         (MINUS_ZERO): New macro.
12982         (ceil_reference): Keep in sync with lib/ceil.c.
12983         * tests/test-ceilf2.c: Include minus-zero.h.
12984         (MINUS_ZERO): New macro.
12985         (ceilf_reference): Keep in sync with lib/ceil.c.
12986         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12987         * tests/test-ceil-ieee.c (main): Likewise.
12988         * tests/test-ceill-ieee.c (main): Likewise.
12989
12990         floor: Implement result sign according to IEEE 754.
12991         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12992         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12993         * tests/test-floorf2.c (floorf_reference): Likewise.
12994         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12995         * tests/test-floor-ieee.c (main): Likewise.
12996         * tests/test-floorl-ieee.c (main): Likewise.
12997
12998 2010-12-22  Bruno Haible  <bruno@clisp.org>
12999
13000         getaddrinfo: Update doc.
13001         * doc/posix-functions/gai_strerror.texi: Return type is also different
13002         on AIX and HP-UX.
13003
13004 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13005
13006         getaddrinfo, inet_ntop: Update doc for Solaris.
13007         * doc/posix-functions/gai_strerror.texi: Return type is also an
13008         issue on Solaris 9 and earlier.
13009         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13010         on Solaris 10 and earlier.
13011
13012 2010-12-21  Bruno Haible  <bruno@clisp.org>
13013
13014         New module 'roundl-ieee'.
13015         * modules/roundl-ieee: New file.
13016         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13017         test whether roundl works according to ISO C 99 with IEC 60559.
13018         * m4/roundl-ieee.m4: New file.
13019         * modules/roundl-ieee-tests: New file.
13020         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13021         * tests/test-roundl.c (main): Remove signbit tests.
13022         * modules/roundl-tests (Depends-on): Remove signbit.
13023         * doc/posix-functions/roundl.texi: Mention the new module.
13024
13025 2010-12-21  Bruno Haible  <bruno@clisp.org>
13026
13027         New module 'truncl-ieee'.
13028         * modules/truncl-ieee: New file.
13029         * modules/truncl-ieee-tests: New file.
13030         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13031         * tests/test-truncl.c (main): Remove signbit tests.
13032         * modules/truncl-tests (Depends-on): Remove signbit.
13033         * doc/posix-functions/truncl.texi: Mention the new module.
13034
13035 2010-12-21  Bruno Haible  <bruno@clisp.org>
13036
13037         New module 'ceill-ieee'.
13038         * modules/ceill-ieee: New file.
13039         * modules/ceill-ieee-tests: New file.
13040         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13041         * tests/test-ceill.c (main): Remove signbit tests.
13042         * modules/ceill-tests (Depends-on): Remove signbit.
13043         * doc/posix-functions/ceill.texi: Mention the new module.
13044
13045 2010-12-21  Bruno Haible  <bruno@clisp.org>
13046
13047         New module 'floorl-ieee'.
13048         * modules/floorl-ieee: New file.
13049         * modules/floorl-ieee-tests: New file.
13050         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13051         * tests/test-floorl.c (main): Remove signbit tests.
13052         * modules/floorl-tests (Depends-on): Remove signbit.
13053         * doc/posix-functions/floorl.texi: Mention the new module.
13054
13055 2010-12-21  Bruno Haible  <bruno@clisp.org>
13056
13057         New module 'round-ieee'.
13058         * modules/round-ieee: New file.
13059         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13060         whether round works according to ISO C 99 with IEC 60559.
13061         * m4/round-ieee.m4: New file.
13062         * modules/round-ieee-tests: New file.
13063         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13064         * tests/test-round1.c (main): Remove signbit tests.
13065         * modules/round-tests (Depends-on): Remove 'signbit'.
13066         * doc/posix-functions/round.texi: Mention the new module.
13067
13068 2010-12-21  Bruno Haible  <bruno@clisp.org>
13069
13070         New module 'trunc-ieee'.
13071         * modules/trunc-ieee: New file.
13072         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13073         whether trunc works according to ISO C 99 with IEC 60559.
13074         * m4/trunc-ieee.m4: New file.
13075         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13077         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13078         * modules/trunc-ieee-tests: New file.
13079         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13080         * tests/test-trunc1.c (main): Remove signbit tests.
13081         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13082         * doc/posix-functions/trunc.texi: Mention the new module.
13083
13084 2010-12-21  Bruno Haible  <bruno@clisp.org>
13085
13086         New module 'ceil-ieee'.
13087         * modules/ceil-ieee: New file.
13088         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13089         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13090         ISO C 99 with IEC 60559.
13091         * m4/ceil-ieee.m4: New file.
13092         * modules/ceil (Files): Add lib/ceil.c.
13093         (Depends-on): Add 'float'.
13094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13095         * lib/math.in.h (ceil): New declaration.
13096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13097         REPLACE_CEIL.
13098         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13099         * modules/ceil-ieee-tests: New file.
13100         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13101         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13102         * doc/posix-functions/ceil.texi: Mention the new module.
13103
13104 2010-12-21  Bruno Haible  <bruno@clisp.org>
13105
13106         New module 'floor-ieee'.
13107         * modules/floor-ieee: New file.
13108         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13109         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13110         ISO C 99 with IEC 60559.
13111         * m4/floor-ieee.m4: New file.
13112         * modules/floor (Files): Add lib/floor.c.
13113         (Depends-on): Add 'float'.
13114         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13115         * lib/math.in.h (floor): New declaration.
13116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13117         REPLACE_FLOOR.
13118         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13119         * modules/floor-ieee-tests: New file.
13120         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13121         * tests/test-math-c++.cc: Check the signature of 'floor'.
13122         * doc/posix-functions/floor.texi: Mention the new module.
13123
13124 2010-12-21  Bruno Haible  <bruno@clisp.org>
13125
13126         New module 'roundf-ieee'.
13127         * modules/roundf-ieee: New file.
13128         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13129         test whether roundf works according to ISO C 99 with IEC 60559.
13130         * m4/roundf-ieee.m4: New file.
13131         * modules/roundf-ieee-tests: New file.
13132         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13133         * tests/test-roundf1.c (main): Remove signbit tests.
13134         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13135         * doc/posix-functions/roundf.texi: Mention the new module.
13136
13137 2010-12-21  Bruno Haible  <bruno@clisp.org>
13138
13139         New module 'truncf-ieee'.
13140         * modules/truncf-ieee: New file.
13141         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13142         test whether truncf works according to ISO C 99 with IEC 60559.
13143         * m4/truncf-ieee.m4: New file.
13144         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13146         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13147         * modules/truncf-ieee-tests: New file.
13148         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13149         * tests/test-truncf1.c (main): Remove signbit tests.
13150         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13151         * doc/posix-functions/truncf.texi: Mention the new module.
13152
13153 2010-12-21  Bruno Haible  <bruno@clisp.org>
13154
13155         New module 'ceilf-ieee'.
13156         * modules/ceilf-ieee: New file.
13157         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13158         test whether ceilf works according to ISO C 99 with IEC 60559.
13159         * m4/ceilf-ieee.m4: New file.
13160         * modules/ceilf-ieee-tests: New file.
13161         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13162         * tests/test-ceilf1.c (main): Remove signbit tests.
13163         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13164         * doc/posix-functions/ceilf.texi: Mention the new module.
13165
13166 2010-12-21  Bruno Haible  <bruno@clisp.org>
13167
13168         New module 'floorf-ieee'.
13169         * modules/floorf-ieee: New file.
13170         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13171         test whether floorf works according to ISO C 99 with IEC 60559.
13172         * m4/floorf-ieee.m4: New file.
13173         * modules/floorf-ieee-tests: New file.
13174         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13175         * tests/test-floorf1.c (main): Remove signbit tests.
13176         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13177         * doc/posix-functions/floorf.texi: Mention the new module.
13178
13179 2010-12-21  Bruno Haible  <bruno@clisp.org>
13180
13181         Support for minus zero in autoconf macros.
13182         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13183         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13184         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13185         * tests/minus-zero.h: Update comments.
13186
13187 2010-12-21  Bruno Haible  <bruno@clisp.org>
13188
13189         Tests for module 'ceil'.
13190         * modules/ceil-tests: New file.
13191         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13192         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13193
13194 2010-12-21  Bruno Haible  <bruno@clisp.org>
13195
13196         Tests for module 'floor'.
13197         * modules/floor-tests: New file.
13198         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13199         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13200
13201 2010-12-21  Bruno Haible  <bruno@clisp.org>
13202
13203         math: Fix indentation.
13204         * lib/math.in.h (floorf): Fix indentation.
13205
13206 2010-12-21  Bruno Haible  <bruno@clisp.org>
13207
13208         Fix cross-compilation guesses on Solaris.
13209         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13210         not match "solaris2.10".
13211         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13212         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13213         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13214
13215 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13218         This fixes a problem observed with the latest coreutils snapshot
13219         that caused a test to fail on Solaris 8.  src/csplit.c's call
13220         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13221         earlier, instead of returning the number of bytes that would have
13222         been generated; this causes csplit to incorrectly report memory
13223         exhaustion.
13224         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13225         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13226         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13227         comments to match.
13228         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13229         Fix typo in matching older versions of Solaris: "solaris2.10"
13230         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13231         only for guessing while cross-compiling.
13232         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13233
13234 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         ftoastr: fix comment again
13237         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13239         Also, simplify example a bit by using flags = 0.
13240
13241 2010-12-20  Bruno Haible  <bruno@clisp.org>
13242
13243         round*, trunc*: Update documentation regarding glibc.
13244         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13245         * doc/posix-functions/round.texi: Likewise.
13246         * doc/posix-functions/roundl.texi: Likewise.
13247         * doc/posix-functions/truncf.texi: Likewise.
13248         * doc/posix-functions/trunc.texi: Likewise.
13249         * doc/posix-functions/truncl.texi: Likewise.
13250
13251 2010-12-20  Bruno Haible  <bruno@clisp.org>
13252
13253         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13254         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13255         * doc/posix-functions/round.texi: Likewise.
13256         * doc/posix-functions/roundl.texi: Likewise.
13257
13258 2010-12-20  Bruno Haible  <bruno@clisp.org>
13259
13260         ttyname_r: Add missing declaration on HP-UX 11.
13261         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13262         HAVE_TTYNAME_R.
13263         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13264         declared. Set HAVE_TTYNAME_R always.
13265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13266         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13267         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13268         HAVE_TTYNAME_R.
13269         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13270
13271 2010-12-20  Bruno Haible  <bruno@clisp.org>
13272
13273         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13274         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13275         * doc/posix-functions/getlogin_r.texi: Likewise.
13276         * tests/test-getlogin.c: Include <errno.h>.
13277         (main): Avoid test failure on HP-UX 11.11.
13278         * tests/test-getlogin_r.c (main): Likewise.
13279
13280 2010-12-20  Bruno Haible  <bruno@clisp.org>
13281
13282         getlogin_r: Add missing declaration on HP-UX 11.
13283         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13284         declared also when it exists as a function.
13285         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13286
13287 2010-12-20  Bruno Haible  <bruno@clisp.org>
13288
13289         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13290         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13291         through wcrtomb.
13292
13293 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13294
13295         ftoastr: fix comment
13296         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13298
13299 2010-12-19  Bruno Haible  <bruno@clisp.org>
13300
13301         isnan: Ensure it is a macro.
13302         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13303         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13304         Solaris.
13305
13306 2010-12-19  Bruno Haible  <bruno@clisp.org>
13307
13308         ldexpl test: Fix link error on OSF/1 5.1.
13309         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13310
13311 2010-12-19  Bruno Haible  <bruno@clisp.org>
13312
13313         wctype: Make it work in C++ mode on OSF/1 5.1.
13314         * lib/wctype.in.h (iswblank): Declare but not define here.
13315         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13316         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13317         * modules/wctype (Files): Add lib/iswblank.c.
13318
13319 2010-12-19  Bruno Haible  <bruno@clisp.org>
13320
13321         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13322         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13323         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13324
13325 2010-12-19  Bruno Haible  <bruno@clisp.org>
13326
13327         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13329         _POSIX_PII_SOCKET.
13330         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13331         * doc/posix-functions/recvfrom.texi: Likewise.
13332         * doc/posix-functions/send.texi: Likewise.
13333         * doc/posix-functions/sendto.texi: Likewise.
13334
13335 2010-12-19  Bruno Haible  <bruno@clisp.org>
13336
13337         tcgetsid: Add missing declaration on OSF/1 5.1.
13338         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13339         HAVE_TCGETSID.
13340         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13341         Don't set HAVE_TCGETSID.
13342         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13343         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13344         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13345         HAVE_TCGETSID.
13346         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13347
13348 2010-12-19  Bruno Haible  <bruno@clisp.org>
13349
13350         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13351         * lib/stdio.in.h: During the include_next statement, let recursive
13352         includes of this file include only the system header file.
13353
13354 2010-12-19  Bruno Haible  <bruno@clisp.org>
13355
13356         iconv_open: Fix regression from 2010-12-04.
13357         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13358         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13359
13360 2010-12-19  Bruno Haible  <bruno@clisp.org>
13361
13362         stdbool test: Avoid a gcc warning.
13363         * tests/test-stdbool.c (main): Fail if e1 is false.
13364         Reported by Jim Meyering.
13365
13366 2010-12-19  Jim Meyering  <meyering@redhat.com>
13367
13368         setenv: restore to working order
13369         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13370         mistakenly removed.
13371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13372         HAVE_SETENV.
13373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13374         HAVE_SETENV.
13375
13376 2010-12-19  Bruno Haible  <bruno@clisp.org>
13377
13378         Document some different function declarations on OSF/1 5.1.
13379         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13380         * doc/posix-functions/inet_ntop.texi: Likewise.
13381         * doc/posix-functions/gethostname.texi: Likewise.
13382         * lib/unistd.in.h (gethostname): Update comment.
13383
13384 2010-12-19  Bruno Haible  <bruno@clisp.org>
13385
13386         doc: Mention vasprintf-posix module.
13387         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13388         the 'vasprintf-posix' module.
13389         * doc/glibc-functions/vasprintf.texi: Likewise.
13390
13391 2010-12-19  Bruno Haible  <bruno@clisp.org>
13392
13393         unsetenv: Add missing declaration on OSF/1 5.1.
13394         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13395         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13396         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13398         not HAVE_UNSETENV.
13399         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13400         HAVE_UNSETENV.
13401         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13402
13403 2010-12-19  Bruno Haible  <bruno@clisp.org>
13404
13405         setenv: Add missing declaration on OSF/1 5.1.
13406         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13408         declared. Don't set HAVE_SETENV.
13409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13410         not HAVE_SETENV.
13411         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13412         HAVE_SETENV.
13413         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13414
13415 2010-12-19  Bruno Haible  <bruno@clisp.org>
13416
13417         nl_langinfo tests: Avoid gcc warning.
13418         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13419
13420 2010-12-19  Bruno Haible  <bruno@clisp.org>
13421
13422         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13423         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13424         _GL_CXXALIAS_SYS.
13425
13426 2010-12-19  Bruno Haible  <bruno@clisp.org>
13427
13428         stdbool: Relax test.
13429         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13430         address to 'bool' work in static initializer, for compilers other than
13431         GCC.
13432
13433 2010-12-19  Bruno Haible  <bruno@clisp.org>
13434
13435         ftello: Add missing declaration on OSF/1 5.1.
13436         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13437         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13439         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13440         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13441
13442 2010-12-19  Bruno Haible  <bruno@clisp.org>
13443
13444         fseeko: Add missing declaration on OSF/1 5.1.
13445         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13448         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13449         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13450
13451 2010-12-19  Bruno Haible  <bruno@clisp.org>
13452
13453         fchdir: Add missing declaration on OSF/1 5.1.
13454         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13457         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13458         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13459
13460 2010-12-19  Bruno Haible  <bruno@clisp.org>
13461
13462         relocatable-prog-wrapper: Separate from relocatable-prog.
13463         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13464         uninstall-relocwrapper rule here.
13465         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13466         Reported by Ian Beckwith <ianb@erislabs.net>.
13467
13468 2010-12-19  Bruno Haible  <bruno@clisp.org>
13469
13470         unistr/u8-mbsnlen: Add missing dependency.
13471         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13472         Reported by Ian Beckwith <ianb@erislabs.net>.
13473
13474 2010-12-19  Bruno Haible  <bruno@clisp.org>
13475
13476         iconv: Make it possible again to use this module without 'iconv-h'.
13477         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13478         if it is not defined.
13479         Reported by Ian Beckwith <ianb@erislabs.net>.
13480
13481 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13482
13483         acl: port to Solaris 8 when copying from tmpfs to ufs
13484         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13485         error number.  Problem observed on Solaris 8 with latest
13486         coreutils, with "mv A B", where A is on a tmpfs file system and B
13487         is on a ufs file system.  This caused coreutils' mv/part-symlink
13488         test to fail.
13489
13490         tests: set fail=0 at start
13491         * tests/init.sh (setup_): Move fail=0 initialization here ...
13492         (mktempd_): ... from here, so that tests can rely on fail being
13493         set to 0 initially.  This fixes a problem in coreutils; see:
13494         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13495
13496 2010-12-18  Bruno Haible  <bruno@clisp.org>
13497
13498         memmem-simple: Stylistic changes.
13499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13500         Fix preprocessor directive indentation.
13501
13502 2010-12-15  Pádraig Brady <P@draigBrady.com>
13503
13504         memmem, memmem-simple: reorganize and expand empty needle check
13505         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13506         functional checks to memmem-simple so that one has a fully functional
13507         memmem by using just this module.
13508         Restrict the performance only check to the memmem module.
13509         Also expand the empty needle check to ensure the correct
13510         pointer is returned, not just a non NULL pointer.
13511         * doc/glibc-functions/memmem.texi: Rearrange the portability
13512         documentation to correlate with the rearranged checks.
13513         Clarify exactly how the memmem and memmem-simple modules
13514         relate to each other.
13515
13516 2010-12-15  Pádraig Brady <P@draigBrady.com>
13517             Bruno Haible  <bruno@clisp.org>
13518
13519         Improve cross-compilation guesses for uClibc.
13520         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13521         that uClibc does not have the glibc bug.
13522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13523         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13524
13525 2010-12-14  Eric Blake  <eblake@redhat.com>
13526
13527         configmake: provide fallbacks for oldest supported autotools
13528         * m4/configmake.m4: New file.
13529         * modules/configmake (Files): Ship it.
13530         (configure.ac): Use it to guarantee fallbacks.
13531
13532 2010-12-13  Pádraig Brady <P@draigBrady.com>
13533
13534         read-file: Improve handling of large files
13535         * lib/read-file.c (fread_file): Minimize realloc()s
13536         for regular files, and better manage sizes around SIZE_MAX.
13537
13538 2010-12-13  Eric Blake  <eblake@redhat.com>
13539
13540         cloexec, fcntl: relax license
13541         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13542         consent from all contributors.
13543         * modules/fcntl (License): Likewise.
13544
13545 2010-12-10  Bruno Haible  <bruno@clisp.org>
13546
13547         Tests for module 'pipe-posix'.
13548         * modules/pipe-posix-tests: New file.
13549         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13550
13551 2010-12-10  Bruno Haible  <bruno@clisp.org>
13552
13553         pipe-posix: Make it work in C++ mode.
13554         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13555         (pipe): Use common idiom, not a macro definition.
13556         * lib/pipe.c: New file.
13557         * m4/pipe.m4: New file.
13558         * modules/pipe-posix (Description): Enhance.
13559         (Files): Add lib/pipe.c, m4/pipe.m4.
13560         (configure.ac): Invoke gl_FUNC_PIPE.
13561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13562         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13563         * tests/test-unistd-c++.cc: Check the signature of pipe.
13564
13565 2010-12-10  Bruno Haible  <bruno@clisp.org>
13566
13567         Rename module 'pipe' to 'spawn-pipe'.
13568         * modules/spawn-pipe: New file, renamed from modules/pipe.
13569         (Files, configure.ac, Makefile.am): Update.
13570         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13571         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13572         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13573         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13574         "spawn-pipe.h" instead of "pipe.h".
13575         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13576         to gl_SPAWN_PIPE.
13577         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13578         (Files, Makefile.am): Update.
13579         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13580         Update.
13581         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13582         Include "spawn-pipe.h" instead of "pipe.h".
13583         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13584         * lib/javacomp.c: Likewise.
13585         * lib/javaversion.c: Likewise.
13586         * lib/pipe-filter-gi.c: Likewise.
13587         * lib/pipe-filter-ii.c: Likewise.
13588         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13589         * modules/javacomp (Depends-on): Likewise.
13590         * modules/javaversion (Depends-on): Likewise.
13591         * modules/pipe-filter-gi (Depends-on): Likewise.
13592         * modules/pipe-filter-ii (Depends-on): Likewise.
13593         * MODULES.html.sh (Executing programs): Update.
13594         * NEWS: Mention the change.
13595
13596 2010-12-10  Eric Blake  <eblake@redhat.com>
13597
13598         pipe-posix: new module
13599         * modules/pipe-posix: New file.
13600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13601         (gl_UNISTD_H): Check for declaration.
13602         * modules/unistd (Makefile.am): Substitute it.
13603         * lib/unistd.in.h (pipe): Provide it for mingw.
13604         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13605         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13606
13607 2010-12-07  Bruno Haible  <bruno@clisp.org>
13608
13609         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13610         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13611         u8_strcmp_gnu.
13612         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13613
13614 2010-12-06  Bruno Haible  <bruno@clisp.org>
13615
13616         Update internal documentation.
13617         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13618
13619 2010-12-04  Bruno Haible  <bruno@clisp.org>
13620
13621         Put more information about failed tests into the test return codes.
13622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13623         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13624         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13626         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13628         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13629         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13630         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13633         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13634         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13635         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13636         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13637         returns a bit mask.
13638         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13639         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13640         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13641         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13642         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13643         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13646         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13647         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13648         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13649         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13650         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13652         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13653         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13654         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13655         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13656         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13658         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13659         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13661         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13662         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13663         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13664         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13665         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13666         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13667         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13668         gl_PRINTF_PRECISION): Likewise.
13669         * m4/regex.m4 (gl_REGEX): Likewise.
13670         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13673         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13677         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13678         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13679         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13680         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13681         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13682         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13683         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13684         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13685         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13686         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13689         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13690         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13691         enumerated value.
13692         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13693
13694 2010-12-04  Bruno Haible  <bruno@clisp.org>
13695
13696         Update for Solaris 11 2010-11.
13697         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13698         Express, released in November 2010.
13699
13700 2010-12-04  Bruno Haible  <bruno@clisp.org>
13701
13702         nproc: Relax license.
13703         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13704         and Paul Eggert.
13705         Requested by Ludovic Courtès <ludo@gnu.org>.
13706
13707 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13708
13709         utimecmp: fine-grained src to nearby coarse-grained dest
13710
13711         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13712         and the source is on a file system with higher-resolution time
13713         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13714         not work, and the time stamps are close together, the algorithm to
13715         determine the exact resolution from the read-back mtime was buggy:
13716         it had a "!=" where it should have had an "==".  This bug has been
13717         in the code ever since it was introduced to gnulib.
13718         Problem reported by Dan Jacobson in
13719         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13720
13721 2010-11-30  Bruno Haible  <bruno@clisp.org>
13722
13723         strerror_r-posix: Fix autoconf test.
13724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13725
13726 2010-11-28  Bruno Haible  <bruno@clisp.org>
13727             Paul Eggert  <eggert@cs.ucla.edu>
13728
13729         Tests for module 'getdomainname'.
13730         * modules/getdomainname-tests: New file.
13731         * tests/test-getdomainname.c: New file, based on
13732         tests/test-gethostname.c.
13733
13734 2010-11-28  Bruno Haible  <bruno@clisp.org>
13735             Paul Eggert  <eggert@cs.ucla.edu>
13736
13737         getdomainname: Use the system function when possible.
13738         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13739         (getdomainname): Replace if needed. Provide the declaration if it is
13740         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13741         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13742         (getdomainname): When the system has getdomainname, call the system
13743         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13744         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13745         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13746         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13747         the function if its second argument is of type 'int' or if it is found
13748         in libnsl.
13749         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13750         <sys/systeminfo.h> and sysinfo().
13751         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13753         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13754         HAVE_GETDOMAINNAME.
13755         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13756         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13757         * doc/glibc-functions/getdomainname.texi: Document the problems with
13758         the getdomainname declaration.
13759
13760 2010-11-28  Bruno Haible  <bruno@clisp.org>
13761
13762         sys_socket: Ensure ss_family field on AIX.
13763         * lib/sys_socket.in.h (ss_family): New macro definition.
13764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13765         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13766         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13767         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13768         * modules/sys_socket (Makefile.am): Substitute
13769         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13770         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13771
13772 2010-11-27  Bruno Haible  <bruno@clisp.org>
13773
13774         readline: Improve configure output.
13775         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13776         "checking for readline..." result understandable.
13777
13778 2010-11-27  Bruno Haible  <bruno@clisp.org>
13779
13780         *printf-posix: Detect a bug on Solaris 10/x86.
13781         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13782         for floating-point output.
13783         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13784         directive.
13785         * tests/test-snprintf-posix.h (test_function): Likewise.
13786         * tests/test-sprintf-posix.h (test_function): Likewise.
13787         * tests/test-vasprintf-posix.c (test_function): Likewise.
13788         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13789         * doc/posix-functions/printf.texi: Likewise.
13790         * doc/posix-functions/snprintf.texi: Likewise.
13791         * doc/posix-functions/sprintf.texi: Likewise.
13792         * doc/posix-functions/vfprintf.texi: Likewise.
13793         * doc/posix-functions/vprintf.texi: Likewise.
13794         * doc/posix-functions/vsnprintf.texi: Likewise.
13795         * doc/posix-functions/vsprintf.texi: Likewise.
13796         * doc/glibc-functions/obstack_printf.texi: Likewise.
13797         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13798
13799 2010-11-27  Bruno Haible  <bruno@clisp.org>
13800
13801         Fix link error when module libunistring-optional is in use.
13802         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13803         * modules/striconveha-tests (Makefile.am): Likewise.
13804
13805 2010-11-27  Bruno Haible  <bruno@clisp.org>
13806
13807         regex: Mention link dependencies.
13808         * modules/regex (Link): New section.
13809         * modules/rpmatch (Link): Likewise.
13810         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13811
13812 2010-11-27  Bruno Haible  <bruno@clisp.org>
13813
13814         ftoastr: Fix compilation error on Solaris.
13815         * lib/ftoastr.c: Include <config.h>.
13816
13817 2010-11-27  Bruno Haible  <bruno@clisp.org>
13818
13819         getloadavg: Update documentation.
13820         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13821
13822 2010-11-27  Bruno Haible  <bruno@clisp.org>
13823
13824         sys_socket: Fix test whether the functions are declared.
13825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13826         not <sys/select.h>.
13827
13828 2010-11-27  Bruno Haible  <bruno@clisp.org>
13829
13830         getpass: Make sure to get system declaration on some platforms.
13831         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13832         gl_USE_SYSTEM_EXTENSIONS.
13833         * modules/getpass (Depends-on): Add extensions.
13834
13835 2010-11-26  Bruno Haible  <bruno@clisp.org>
13836
13837         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13838         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13839         'iconv' module is present.
13840         (ICONV_CONST): New macro.
13841         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13842         ICONV_CONST.
13843         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13844         set ICONV_CONST.
13845         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13846         here.
13847         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13848         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13849         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13850         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13851         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13852         present.
13853
13854 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13855
13856         ftoastr: comment fix
13857         * lib/ftoastr.c: "little" -> "little or no" in comment
13858
13859 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13860
13861         stdint: port to GCC 4.3 + OSX + Octave
13862         On this platform, stdint.h is buggy and defines int64_t to long
13863         long int.  The replacement defined it to long int, causing
13864         problems with C++ style name mangling.  Instead, trust the system
13865         definition if INT64_MAX is defined, and likewise for the unsigned
13866         variant.   Problem reported by Jarno Rajahalme in
13867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13868         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13869         and don't mess with int64_t and INT64_MAX in this case.
13870         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13871
13872 2010-11-24  Bruno Haible  <bruno@clisp.org>
13873
13874         doc: Corrections regarding MacOS X 10.4 and 10.5.
13875         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13876         MacOS X.
13877         Reported by Simon Josefsson.
13878
13879 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13880
13881         Uninstall ".bin" files installed by relocwrapper.
13882         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13883         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13884         unless it is already there.
13885
13886 2010-11-21  Bruno Haible  <bruno@clisp.org>
13887
13888         Update for NetBSD 5.0.
13889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13890         NetBSD; the test fails on NetBSD 5.0.
13891         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13892         about NetBSD.
13893
13894 2010-11-21  Bruno Haible  <bruno@clisp.org>
13895
13896         Update for HP-UX 11.23 and HP-UX 11.31.
13897         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13898         HP-UX.
13899
13900 2010-11-21  Bruno Haible  <bruno@clisp.org>
13901
13902         Update for MacOS X 10.5.
13903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13904         MacOS X; the test fails on MacOS X 10.5.8.
13905         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13906         about MacOS X.
13907
13908 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13909
13910         bootstrap: add bootstrap_sync option.
13911         See discussion at
13912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13914         * build-aux/bootstrap: Accept --bootstrap-sync to update
13915         bootstrap if it is not identical to the local gnulib's
13916         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13917         enable this by default.  Accept --no-bootstrap-sync to disable
13918         it.
13919
13920 2010-11-20  Bruno Haible  <bruno@clisp.org>
13921
13922         Ensure that <features.h> is included before __GLIBC__ is tested.
13923         * lib/printf-parse.h: Include <features.h>.
13924         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13925         Reported by Mike Frysinger <vapier@gentoo.org>.
13926
13927         Ensure that <features.h> is included before __GLIBC__ is tested.
13928         * lib/wchar.in.h: Include <features.h>.
13929         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13930         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13931         Reported by Mike Frysinger <vapier@gentoo.org>.
13932
13933         Ensure that <features.h> is included before __GLIBC__ is tested.
13934         * lib/arpa_inet.in.h: Include <features.h>.
13935         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13936         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13937         Reported by Mike Frysinger <vapier@gentoo.org>.
13938
13939         Ensure that <features.h> is included before __GLIBC__ is tested.
13940         * build-aux/link-warning.h: Include <features.h>.
13941         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13942         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13943         Reported by Mike Frysinger <vapier@gentoo.org>.
13944
13945         Ensure that <features.h> is included before __GLIBC__ is tested.
13946         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13947         Reported by Mike Frysinger <vapier@gentoo.org>.
13948
13949 2010-11-20  Bruno Haible  <bruno@clisp.org>
13950
13951         memmem: Fix autoconf test.
13952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13953
13954 2010-11-20  Bruno Haible  <bruno@clisp.org>
13955
13956         Port to uClibc.
13957         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13958         * lib/fcntl.in.h: Likewise.
13959         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13960         * lib/mbrtowc.c (mbrtowc): Likewise.
13961         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13962         * lib/strerror_r.c: Likewise.
13963         * lib/unistr/u8-strnlen.c: Likewise.
13964         * lib/vasnprintf.c (decimal_point_char): Likewise.
13965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13966         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13968         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13969         * tests/test-sigaction.c (handler, main): Likewise.
13970         * lib/freading.h: Treat uClibc like a non-glibc platform.
13971         * lib/freading.c: Likewise.
13972         * lib/gettext.h: Likewise.
13973         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13974         Likewise.
13975         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13976         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13977         * lib/propername.c (proper_name_utf8): Likewise.
13978         * lib/spawn.in.h: Likewise.
13979         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13980         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13981         mem_cd_iconveh_internal): Likewise.
13982         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13983         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13984         strstr, strcasestr): Likewise.
13985         * lib/unicodeio.c (unicode_to_mb): Likewise.
13986         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13987         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13988         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13989         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13990         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13991         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13992         * lib/unistr/u8-stpncpy.c: Likewise.
13993         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13994         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13997         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14002         Likewise.
14003         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14004         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14008         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14009         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14010         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14011         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14012         * tests/test-striconveha.c (main): Likewise.
14013         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14014         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14015         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14016         * doc/posix-functions/getline.texi: Likewise.
14017         Reported by Mike Frysinger <vapier@gentoo.org>.
14018
14019 2010-11-20  Bruno Haible  <bruno@clisp.org>
14020
14021         nproc: Fix condition.
14022         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14023         HAVE_PTHREAD_AFFINITY_NP.
14024
14025 2010-11-20  Bruno Haible  <bruno@clisp.org>
14026
14027         Fix a comment.
14028         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14029
14030 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14031
14032         ftoastr: don't assume snprintf
14033         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14034         Implement a subset of snprintf here, by using sprintf safely.
14035         * modules/ftoastr (Depends-on): Remove snprintf.
14036
14037 2010-11-19  Jim Meyering  <meyering@redhat.com>
14038
14039         test-rename.h: fix compilation failure
14040         * tests/test-rename.h (test_rename): Add omitted "}".
14041
14042 2010-11-17  Jim Meyering  <meyering@redhat.com>
14043
14044         maint.mk: add a URL discussing the no-@acronym policy
14045         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14046
14047 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         ftoastr: depend on snprintf, improve comments
14050         * lib/ftoastr.c: Also mention Loitsch's draft.
14051         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14052         needed in the current implementation, but it might simplify
14053         speeding up the code later.
14054         * modules/ftoastr: Depend on snprintf; this improves portability.
14055         Suggested by Bruno Haible in the same email.
14056
14057         ftoastr: port to hosts lacking strtof and strtold
14058         Problem reported by Bruno Haible in
14059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14060         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14061         environment and strtold (and presumably strtof) are not available.
14062         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14063         (configure.ac): Require gl_C99_STRTOLD.
14064
14065 2010-11-18  Bruno Haible  <bruno@clisp.org>
14066
14067         c-strtold: Avoid link error on AIX 7.
14068         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14069         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14070         (gl_C_STRTOLD): Test whether strtold_l exists.
14071         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14072
14073 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14074
14075         intprops: new macro INT_BITS_STRLEN_BOUND
14076         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14077         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14078         not exposed.  Also, it uses a slightly tighter bound than before;
14079         though this makes no practical difference, we might as well be as
14080         tight as we easily can.
14081
14082         ftoastr: new module, for lossless conversion of floats to short strings
14083         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14084         * modules/ftoastr: New files.
14085
14086 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14087
14088         bootstrap: port to Solaris sed
14089         * build-aux/bootstrap (get_version): Port to Solaris sed.
14090         See Ralf Wildenhues's note in
14091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14092
14093 2010-11-14  Jim Meyering  <meyering@redhat.com>
14094
14095         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14096         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14097         and move definition closer to sole use.
14098
14099 2010-11-13  Jim Meyering  <meyering@redhat.com>
14100
14101         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14102         Now we require at least autoconf-2.59, which means the work-around
14103         is no longer needed.
14104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14105         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14109
14110 2010-11-13  Bruno Haible  <bruno@clisp.org>
14111
14112         rename, renameat: Avoid test failures at NFS mounted locations.
14113         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14114         functions.
14115         (test_rename): Use assert_nonexistent.
14116         * tests/test-rename.c: Include <dirent.h>.
14117         * tests/test-renameat.c: Likewise.
14118         Reported by Gary V. Vaughan <gary@gnu.org>.
14119
14120         rename, renameat: Document Linux bug with NFS
14121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14122         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14123         * doc/posix-functions/renameat.texi: Likewise.
14124         Suggested by Eric Blake.
14125
14126 2010-11-13  Bruno Haible  <bruno@clisp.org>
14127
14128         rename test: Add comments.
14129         * tests/test-rename.h (test_rename): Add structure and comments.
14130
14131 2010-11-13  Eric Blake  <eblake@redhat.com>
14132
14133         maintainer-makefile: cover a few more files
14134         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14135         scripts generated within C files, for libvirt.
14136
14137 2010-11-13  Bruno Haible  <bruno@clisp.org>
14138
14139         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14140         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14141         character, return the number of bytes that belong together, not always
14142         1.
14143         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14144         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14145         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14146         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14147         number of bytes of an invalid character.
14148         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14149         (main): Invoke it.
14150         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14151         results.
14152         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14153         malformed byte sequences.
14154         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14155         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14156         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14157         Reported by Ben Pfaff and Paolo Bonzini.
14158
14159 2010-11-13  Bruno Haible  <bruno@clisp.org>
14160
14161         openat: Work around glibc bug with fchownat() and empty file names.
14162         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14163         (gl_FUNC_FCHOWNAT): Invoke it.
14164         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14165         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14166         Reported by Gary V. Vaughan <gary@gnu.org>.
14167
14168 2010-11-13  Bruno Haible  <bruno@clisp.org>
14169
14170         openat: Ensure autoconf macro ordering.
14171         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14172         gl_USE_SYSTEM_EXTENSIONS.
14173         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14174
14175 2010-11-13  Bruno Haible  <bruno@clisp.org>
14176
14177         Update comments.
14178         * lib/unistr/u8-check.c: Update file name in comments.
14179         * lib/unistr/u8-mblen.c: Likewise.
14180         * lib/unistr/u8-prev.c: Likewise.
14181         * lib/unistr/u8-strmblen.c: Likewise.
14182         * lib/unistr/u8-strmbtouc.c: Likewise.
14183
14184 2010-11-13  Jim Meyering  <meyering@redhat.com>
14185
14186         tests: avoid test failure on Solaris 10 due to lack of PATH export
14187         * tests/test-update-copyright.sh: Don't forget to export PATH.
14188
14189         init.sh: ensure that IFS is defined, just in case...
14190         * tests/init.sh (setup_): Ensure that IFS is defined,
14191         so that saving and restoring it works as expected.  This
14192         appears to be useful at least for an old version of dash
14193         from a long time ago (RH 6).  See here for details:
14194         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14195
14196         maint.mk: tighten "test a == b" check
14197         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14198         test to files that contain something like #!/bin/sh.
14199         Without this, coreutils would get two false positives in
14200         the comments of C source files.
14201
14202 2010-11-12  Eric Blake  <eblake@redhat.com>
14203
14204         bootstrap: fix typo in previous attempt
14205         * build-aux/bootstrap (buildreq): Correct the grouping.
14206         Reported by Paul Eggert.
14207
14208         maintainer-makefile: prohibit test x == x
14209         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14210         Based on a report by Matthias Bolte.
14211
14212         bootstrap: allow FreeBSD gzip
14213         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14214         which has no '.' and goes to stderr.
14215         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14216         Reported by Matthias Bolte.
14217
14218         maintainer-makefile: check for i18n setup
14219         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14220         will likely work.
14221
14222 2010-11-12  Bruno Haible  <bruno@clisp.org>
14223
14224         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14225         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14226         * lib/nanosleep.c (nanosleep): Likewise.
14227
14228 2010-11-11  Bruno Haible  <bruno@clisp.org>
14229
14230         fcntl-h: Fix for use of C++ on glibc systems.
14231         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14232         also on glibc systems in C++ mode.
14233         Reported by Gary V. Vaughan <gary@gnu.org>.
14234
14235 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14236
14237         mknod: avoid false failure with dash
14238         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14239
14240 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14241
14242         unlink: Fix "is it should" typo in diagnostic.
14243         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14245
14246 2010-11-11  Bruno Haible  <bruno@clisp.org>
14247
14248         Tests for module 'strerror_r-posix'.
14249         * modules/strerror_r-posix-tests: New file.
14250         * tests/test-strerror_r.c: New file.
14251         * tests/test-string-c++.cc: Check the signature of strerror_r.
14252
14253         New module 'strerror_r-posix'.
14254         * lib/string.in.h (strerror_r): New declaration.
14255         * lib/strerror_r.c: New file.
14256         * m4/strerror_r.m4: New file.
14257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14258         of strerror_r.
14259         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14260         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14261         * modules/strerror_r-posix: New file.
14262         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14263         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14264         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14265         portability problems.
14266
14267 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14268
14269         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14270         line is also considered for output. Quoted function name in shell
14271         command, so temporary files for functions like MyClass::operator()
14272         are removed correctly without errors.
14273
14274 2010-11-09  Bruno Haible  <bruno@clisp.org>
14275
14276         * doc/posix-functions/strerror.texi: List more failing platforms.
14277
14278         * doc/posix-functions/strerror.texi: Add a comment.
14279
14280 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14281
14282         fdopendir: fix bug on MacOS X when low on file descriptors
14283
14284         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14285         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14286         All callers changed.
14287         (fdopendir): Invoke save_cwd at the top level, not after using
14288         multiple dup() calls to use up file descriptors.  Then retry
14289         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14290         less than the maximum number of open file descriptors, because
14291         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14292         on Mac OS X 10.6.4 for tar 1.24
14293         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14294         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14295         and for tar 1.25
14296         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14297
14298 2010-11-07  Bruno Haible  <bruno@clisp.org>
14299
14300         vasnprintf: Support I flag on glibc systems.
14301         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14302         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14303         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14304         snprintf function.
14305         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14306         glibc systems.
14307         * tests/test-vasnprintf-posix3.c: New file.
14308         * modules/vasnprintf-posix-tests (Files): Add it.
14309         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14310
14311 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14312
14313         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14314         * MODULES.html.sh: For compiler warnings, use name
14315         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14316
14317 2010-11-05  Eric Blake  <eblake@redhat.com>
14318
14319         ceil, floor: avoid spurious failure with icc
14320         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14321         [denormals-as-zero] when optimizing without -mieee-fp option.
14322         * tests/test-floorf2.c (floorf_reference): Likewise.
14323         * tests/test-ceilf1.c (dummy): New function.
14324         (main): Use it to outsmart icc's optimization.
14325         * tests/test-floorf1.c (dummy, main): Likewise.
14326
14327         tests: require working signbit
14328         * modules/ceilf-tests (Depends-on): Add signbit.
14329         * modules/ceill-tests (Depends-on): Likewise.
14330         * modules/floorf-tests (Depends-on): Likewise.
14331         * modules/floorl-tests (Depends-on): Likewise.
14332         * modules/round-tests (Depends-on): Likewise.
14333         * modules/roundf-tests (Depends-on): Likewise.
14334         * modules/roundl-tests (Depends-on): Likewise.
14335         * modules/trunc-tests (Depends-on): Likewise.
14336         * modules/truncf-tests (Depends-on): Likewise.
14337         * modules/truncl-tests (Depends-on): Likewise.
14338
14339         strtod: work around icc bug
14340         * lib/strtod.c (minus_zero): Define to working value.
14341         (strtod): Use it to avoid icc bug.
14342
14343         copysign: enhance tests
14344         * modules/copysign-tests (Files): Add minus-zero.h.
14345         * tests/test-copysign.c (main): Also test zeros.
14346
14347 2010-11-04  Eric Blake  <eblake@redhat.com>
14348
14349         ceil, floor, round, trunc: enhance tests of -0
14350         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14351         * tests/test-ceill.c (main): Likewise.
14352         * tests/test-floorf1.c (main): Likewise.
14353         * tests/test-floorl.c (main): Likewise.
14354         * tests/test-round1.c (main): Likewise.
14355         * tests/test-roundf1.c (main): Likewise.
14356         * tests/test-roundl.c (main): Likewise.
14357         * tests/test-trunc1.c (main): Likewise.
14358         * tests/test-truncf1.c (main): Likewise.
14359         * tests/test-truncl.c (main): Likewise.
14360
14361 2010-11-04  Eric Blake  <eblake@redhat.com>
14362
14363         frexp, tests: work around ICC bug with -zero
14364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14365         works with more compilers.
14366         * tests/minus-zero.h: New file.
14367         * modules/ceilf-tests (Files): Include it.
14368         * modules/ceill-tests (Files): Likewise.
14369         * modules/floorf-tests (Files): Likewise.
14370         * modules/floorl-tests (Files): Likewise.
14371         * modules/frexp-nolibm-tests (Files): Likewise.
14372         * modules/frexp-tests (Files): Likewise.
14373         * modules/frexpl-nolibm-tests (Files): Likewise.
14374         * modules/frexpl-tests (Files): Likewise.
14375         * modules/isnan-tests (Files): Likewise.
14376         * modules/isnand-nolibm-tests (Files): Likewise.
14377         * modules/isnand-tests (Files): Likewise.
14378         * modules/isnanf-nolibm-tests (Files): Likewise.
14379         * modules/isnanf-tests (Files): Likewise.
14380         * modules/isnanl-nolibm-tests (Files): Likewise.
14381         * modules/isnanl-tests (Files): Likewise.
14382         * modules/round-tests (Files): Likewise.
14383         * modules/roundf-tests (Files): Likewise.
14384         * modules/roundl-tests (Files): Likewise.
14385         * modules/ldexpl-tests (Files): Likewise.
14386         * modules/signbit-tests (Files): Likewise.
14387         * modules/snprintf-posix-tests (Files): Likewise.
14388         * modules/sprintf-posix-tests (Files): Likewise.
14389         * modules/strtod-tests (Files): Likewise.
14390         * modules/trunc-tests (Files): Likewise.
14391         * modules/truncf-tests (Files): Likewise.
14392         * modules/truncl-tests (Files): Likewise.
14393         * modules/vsnprintf-posix-tests (Files): Likewise.
14394         * modules/vsprintf-posix-tests (Files): Likewise.
14395         * modules/vasnprintf-posix-tests (Files): Likewise.
14396         * modules/vasprintf-posix-tests (Files): Likewise.
14397         * tests/test-ceilf1.c (main): Use it.
14398         * tests/test-ceill.c (main): Likewise.
14399         * tests/test-floorf1.c (main): Likewise.
14400         * tests/test-floorl.c (main): Likewise.
14401         * tests/test-frexp.c (main): Likewise.
14402         * tests/test-frexpl.c (main): Likewise.
14403         * tests/test-isnan.c (main): Likewise.
14404         * tests/test-isnand.h (main): Likewise.
14405         * tests/test-isnanf.h (main): Likewise.
14406         * tests/test-isnanl.h (main): Likewise.
14407         * tests/test-ldexpl.c (main): Likewise.
14408         * tests/test-round.c (main): Likewise.
14409         * tests/test-roundf.c (main): Likewise.
14410         * tests/test-roundl.c (main): Likewise.
14411         * tests/test-signbit.c (test_signbitf, test_signbitd)
14412         (test_signbitl): Likewise.
14413         * tests/test-snprintf-posix.h (test_function): Likewise.
14414         * tests/test-sprintf-posix.h (test_function): Likewise.
14415         * tests/test-strtod.c (main): Likewise.
14416         * tests/test-trunc1.c (main): Likewise.
14417         * tests/test-truncf1.c (main): Likewise.
14418         * tests/test-truncl.c (main): Likewise.
14419
14420         isnanl: work around icc bug
14421         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14422
14423 2010-11-03  Eric Blake  <eblake@redhat.com>
14424
14425         tests: fix compiler warnings
14426         * tests/test-getopt.h (test_getopt): Fix condition.
14427         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14428         * tests/test-pipe2.c (main): Likewise.
14429         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14430
14431         utimens: fix broken m4 test
14432         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14433
14434 2010-10-28  Bruno Haible  <bruno@clisp.org>
14435
14436         posix_spawn*, getdtablesize: Relax license.
14437         * modules/posix_spawn (License): Change to LGPLv2+.
14438         * modules/posix_spawnp (License): Likewise.
14439         * modules/posix_spawn-internal (License): Likewise.
14440         * modules/posix_spawnattr_init (License): Likewise.
14441         * modules/posix_spawnattr_getflags (License): Likewise.
14442         * modules/posix_spawnattr_setflags (License): Likewise.
14443         * modules/posix_spawnattr_getpgroup (License): Likewise.
14444         * modules/posix_spawnattr_setpgroup (License): Likewise.
14445         * modules/posix_spawnattr_getschedparam (License): Likewise.
14446         * modules/posix_spawnattr_setschedparam (License): Likewise.
14447         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14448         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14449         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14450         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14451         * modules/posix_spawnattr_getsigmask (License): Likewise.
14452         * modules/posix_spawnattr_setsigmask (License): Likewise.
14453         * modules/posix_spawnattr_destroy (License): Likewise.
14454         * modules/posix_spawn_file_actions_init (License): Likewise.
14455         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14456         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14457         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14458         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14459         * modules/getdtablesize (License): Likewise.
14460         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14461
14462 2010-10-26  Bruno Haible  <bruno@clisp.org>
14463
14464         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14465         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14466         Cygwin and mingw.
14467         Suggested by Eric Blake.
14468
14469 2010-10-26  Bruno Haible  <bruno@clisp.org>
14470
14471         stdio: Work around compilation error due to renameat() on Solaris 10.
14472         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14473         * lib/renameat.c: Don't include <unistd.h> here.
14474         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14475         Reported by Paul Eggert and Eric Blake.
14476
14477 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         renameat: port to Solaris 10, which declares renameat in unistd.h
14480
14481         * lib/renameat.c: Include unistd.h before stdio.h, because
14482         Solaris 10 declares renameat in unistd.h.  Problem encountered
14483         when building GNU tar 1.24 on Solaris 10.
14484
14485 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14486
14487         fdopendir: fix C89 compilation
14488         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14489         compilers.
14490
14491 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14492
14493         inttostr: simplify by removing unnecessary redundancy
14494         * lib/anytostr.c: Don't include verify.h.
14495         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14496         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14497         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14498         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14499         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14500         Likewise.
14501         * modules/inttostr (Depends-on): Remove 'verify'.
14502
14503 2010-10-23  Bruno Haible  <bruno@clisp.org>
14504
14505         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14506         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14507         Reported by Eric Blake.
14508
14509 2010-10-23  Bruno Haible  <bruno@clisp.org>
14510
14511         Tests: Fix LOCALE_JA on MirBSD 10.
14512         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14513         to an UTF-8 locale.
14514         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14515         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14516         Reported by Eric Blake.
14517
14518 2010-10-21  Bruno Haible  <bruno@clisp.org>
14519
14520         nl_langinfo test: Avoid test failure on NetBSD 5.
14521         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14522         Reported by Eric Blake.
14523
14524 2010-10-21  Eric Blake  <eblake@redhat.com>
14525
14526         c-stack: work around libsigsegv 2.8 bug
14527         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14528         overflow on at least PowerPC64.
14529
14530 2010-10-17  Bruno Haible  <bruno@clisp.org>
14531
14532         userspec: Drop redundant file.
14533         * modules/userspec (Files): Remove lib/inttostr.h.
14534
14535 2010-10-17  Bruno Haible  <bruno@clisp.org>
14536
14537         nl_langinfo tests: Silence some warnings.
14538         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14539         Reported by Jim Meyering.
14540
14541 2010-10-17  Bruno Haible  <bruno@clisp.org>
14542
14543         Make use of GCC's attribute __alloc_size__.
14544         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14545         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14546         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14547         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14548         __alloc_size__.
14549         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14550         Suggested by Jim Meyering.
14551
14552 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14553
14554         bootstrap: anchor .gitignore entries.
14555         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14556         with...
14557         (insert_vc_ignore): ... this new function, which prepends `/' to
14558         all .gitignore entries before passing them to
14559         insert_sorted_if_absent.
14560
14561 2010-10-16  Bruno Haible  <bruno@clisp.org>
14562
14563         nextafter: Fix configure check.
14564         * modules/nextafter (configure.ac): Correct expected prototype.
14565
14566 2010-10-16  Bruno Haible  <bruno@clisp.org>
14567
14568         termios: Update documentation.
14569         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14570
14571 2010-10-16  Bruno Haible  <bruno@clisp.org>
14572
14573         tests: Make them compile with TinyCC.
14574         * tests/test-strstr.c (main): Remove parentheses around array
14575         initializer.
14576
14577 2010-10-15  Eric Blake  <eblake@redhat.com>
14578
14579         ignore-value: make header idempotent
14580         * lib/ignore-value.h: Add double-inclusion guards.
14581         Reported by Stefan Berger.
14582
14583 2010-10-15  Jim Meyering  <meyering@redhat.com>
14584
14585         GNUmakefile: handle "stable" target, not "major"
14586         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14587         lists in maint.mk and announce-gen.  Without this, "make stable"
14588         would fail to ensure that $(VERSION) is up to date.
14589
14590 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14591
14592         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14593         & co.
14594
14595 2010-10-14  Bruno Haible  <bruno@clisp.org>
14596
14597         vasnprintf: Don't set errno to 0.
14598         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14599         block that sets it to 0.
14600         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14601
14602 2010-10-14  Bruno Haible  <bruno@clisp.org>
14603
14604         socketlib: Fix.
14605         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14606         gl_PREREQ_SYS_H_WINSOCK2.
14607         Reported by Ian Beckwith <ianb@erislabs.net>.
14608
14609 2010-10-13  Jim Meyering  <meyering@redhat.com>
14610
14611         test-select-stdin.c: avoid warn_unused_result warnings
14612         * tests/test-select-stdin.c: Include "macros.h".
14613         ASSERT that read and fflush succeed.
14614
14615 2010-10-13  Jim Meyering  <meyering@redhat.com>
14616
14617         git-version-gen: do require git-VC'd files in cwd
14618         * build-aux/git-version-gen: Reject a git version string
14619         if there are no commits associated with the current directory.
14620         This avoids an unlikely false-positive (unrelated dir whose parent
14621         repository also contains a tag matching v*), as pointed out
14622         by Giuseppe Scrivano in
14623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14624
14625 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14626
14627         argv-iter: omit nonconforming declaration
14628         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14629         enum arg_iter_err declaration, which doesn't conform to C99.
14630         Solaris 10 cc warns about this.
14631
14632 2010-10-13  Eric Blake  <eblake@redhat.com>
14633
14634         termios: fix compilation on mingw
14635         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14636         (gl_TERMIOS_H): Adjust it on mingw.
14637         * modules/termios (Makefile.am): Substitute new key.
14638         * lib/termios.in.h (includes): Make include_next conditional.
14639         * doc/posix-headers/termios.texi (termios.h): Update
14640         documentation.
14641         Reported by Daniel P. Berrange.
14642
14643 2010-10-13  Jim Meyering  <meyering@redhat.com>
14644
14645         git-version-gen: don't require that .git/ be in the current dir
14646         * build-aux/git-version-gen: Adjust this script so that it works
14647         when run from any working directory beneath the top-level .git/-
14648         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14649         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14650
14651         test-select: avoid warn_unused_result warnings
14652         * tests/test-select.c: Include "macros.h".
14653         ASSERT that each call to read, write, and pipe succeeds.
14654         While not technically required, also check each "close".
14655         * modules/select-tests (Files): Add tests/macros.h.
14656
14657         test-symlinkat: remove declaration of unused local
14658         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14659
14660         test-inttostr: avoid shadowing warnings
14661         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14662         and use malloc rather than the stack for the same reason as
14663         mentioned in the comment justifying the other allocation.
14664
14665 2010-10-11  Bruno Haible  <bruno@clisp.org>
14666
14667         stdlib: Allow multiple gnulib generated replacements to coexist.
14668         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14669         Reported by Sam Steingold <sds@gnu.org>.
14670
14671 2010-10-11  Jim Meyering  <meyering@redhat.com>
14672
14673         fix a documentation typo
14674         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14675
14676 2010-10-11  Eric Blake  <eblake@redhat.com>
14677
14678         futimens: work around Solaris 11 bug
14679         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14680         * tests/test-futimens.h (test_futimens): Enhance, rather than
14681         weaken test.
14682         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14683
14684 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         Indentation.
14687         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14688         higher-level operators more to the left.
14689
14690 2010-10-11  Jim Meyering  <meyering@redhat.com>
14691
14692         test-futimens: avoid unwarranted test failure on Solaris 5.11
14693         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14694         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14695         because it tries to dereference the NULL name argument.
14696
14697 2010-10-11  Bruno Haible  <bruno@clisp.org>
14698
14699         Indentation.
14700         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14701         indentation.
14702
14703 2010-10-11  Jim Meyering  <meyering@redhat.com>
14704
14705         spawn.in.h: make indentation consistent with parentheses
14706         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14707         Make indentation consistent with parentheses.
14708
14709 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14710
14711         Fix mismatched parens in previous commit
14712         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14713         parens.
14714
14715 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14716
14717         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14718
14719         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14720         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14721         * lib/malloca.c: Include "verify.h".
14722         (verify1): Remove, replacing with a verify call.
14723         * lib/relocwrapper.c (verify1): Likewise.
14724         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14725         Likewise.
14726         * modules/malloca (Depends-on): Add 'verify'.
14727         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14728         * modules/vasnprintf (Depends-on): Add 'verify'.
14729         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14730         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14731         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14732         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14733         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14734         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14735         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14736
14737         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14738
14739         Formerly the style was sometimes 2*X - 1, because the C standard
14740         was wrongly thought to disallow ?: in integral constant expressions.
14741         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14742         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14743         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14744         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14745         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14746         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14747         verify that time_t cannot be floating.
14748
14749 2010-10-08  Eric Blake  <eblake@redhat.com>
14750
14751         time: enforce recent POSIX ruling that time_t is integral
14752         * lib/time.in.h (__time_t_must_be_integral): Detect any
14753         problematic systems, allowing the rest of gnulib to assume POSIX.
14754
14755 2010-10-08  Jim Meyering  <meyering@redhat.com>
14756
14757         fdopendir: fix a bug on systems lacking openat and /proc support
14758         OpenBSD 4.7 is one such system.  The most noticeable effect was
14759         failure of any application making nontrivial use of fts: rm, du,
14760         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14761           ./rm: traversal failed: `a': Bad file descriptor
14762         Debugging that, you see that even though FD 6 was closed just
14763         prior to the opendir call in fd_clone_opendir, its resulting
14764         dir->dd_fd was 8, rather than the expected value of 6:
14765
14766         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14767         93                close (fd);
14768         (gdb) n
14769         94                dir = fd_clone_opendir (dupfd);
14770         (gdb) n
14771         95                saved_errno = errno;
14772         (gdb) p dir->dd_fd
14773         $11 = 8
14774
14775         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14776         The problem is that on OpenBSD, fd_clone_opendir has to resort
14777         to using the old-style save/restore CWD mechanism, due to its
14778         lack of openat/proc support, and *that* would steal the FD (6)
14779         that opendir was supposed to use.
14780
14781         The fix is to squirrel away the desired FD so that save_cwd uses a
14782         different one, and then free the dest FD right before calling opendir.
14783         That guarantees opendir will use the required file descriptor.
14784
14785         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14786
14787 2010-10-08  Bruno Haible  <bruno@clisp.org>
14788
14789         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14790         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14791
14792 2010-10-08  Bruno Haible  <bruno@clisp.org>
14793
14794         nanosleep: Make replacement POSIX compliant.
14795         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14796         is out of range.
14797         Reported by Jim Meyering.
14798
14799 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14800
14801         bootstrap: add hook for altering gnulib.mk, for Bison
14802         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14803         the Bison bootstrapping process can rewrite file names and variables
14804         in this file before later parts of 'bootstrap' use the file.
14805         Bison wants to include lib/gnulib.mk from the top-level makefile,
14806         so it needs the file names in this file to be relative to the top
14807         level, not relative to lib; plus it needs variable names to be
14808         rewritten.
14809         (slurp): Use the new function.
14810
14811         bootstrap: reformat for readability
14812         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14813
14814 2010-10-08  Eric Blake  <eblake@redhat.com>
14815
14816         docs: update cygwin progress
14817         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14818         1.7.7.
14819         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14820         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14821         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14822         * doc/posix-functions/carg.texi (carg): Likewise.
14823         * doc/posix-functions/cargf.texi (cargf): Likewise.
14824         * doc/posix-functions/casin.texi (casin): Likewise.
14825         * doc/posix-functions/casinf.texi (casinf): Likewise.
14826         * doc/posix-functions/casinh.texi (casinh): Likewise.
14827         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14828         * doc/posix-functions/catan.texi (catan): Likewise.
14829         * doc/posix-functions/catanf.texi (catanf): Likewise.
14830         * doc/posix-functions/catanh.texi (catanh): Likewise.
14831         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14832         * doc/posix-functions/ccos.texi (ccos): Likewise.
14833         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14834         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14835         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14836         * doc/posix-functions/cexp.texi (cexp): Likewise.
14837         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14838         * doc/posix-functions/cimag.texi (cimag): Likewise.
14839         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14840         * doc/posix-functions/clog.texi (clog): Likewise.
14841         * doc/posix-functions/clogf.texi (clogf): Likewise.
14842         * doc/posix-functions/conj.texi (conj): Likewise.
14843         * doc/posix-functions/conjf.texi (conjf): Likewise.
14844         * doc/posix-functions/cpow.texi (cpow): Likewise.
14845         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14846         * doc/posix-functions/cproj.texi (cproj): Likewise.
14847         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14848         * doc/posix-functions/creal.texi (creal): Likewise.
14849         * doc/posix-functions/crealf.texi (crealf): Likewise.
14850         * doc/posix-functions/csin.texi (csin): Likewise.
14851         * doc/posix-functions/csinf.texi (csinf): Likewise.
14852         * doc/posix-functions/csinh.texi (csinh): Likewise.
14853         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14854         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14855         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14856         * doc/posix-functions/ctan.texi (ctan): Likewise.
14857         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14858         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14859         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14860         * doc/posix-headers/complex.texi (complex.h): Likewise.
14861
14862 2010-10-07  Jim Meyering  <meyering@redhat.com>
14863
14864         parse-datetime: avoid compilation failure on OpenBSD 4.7
14865         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14866         This works around a compilation failure on OpenBSD 4.7:
14867         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14868
14869 2010-10-07  Eric Blake  <eblake@redhat.com>
14870
14871         docs: update cygwin progress
14872         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14873         1.7.6.
14874         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14875         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14876         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14877         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14878         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14879         Likewise.
14880         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14881         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14882         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14883         Likewise.
14884         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14885         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14886         Likewise.
14887         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14888         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14889         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14890         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14891         Likewise.
14892         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14893         Likewise.
14894         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14895
14896         docs: update parse-datetime history
14897         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14898         documentation of this function's history and alternatives.
14899
14900         cygwin: use more robust version check
14901         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14902         exclude an eventual cygwin 1.9.1.
14903         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14905         (gl_FUNC_STRCASESTR): Likewise.
14906         Reported by Bruno Haible.
14907
14908 2010-10-06  Bruno Haible  <bruno@clisp.org>
14909
14910         string, sys_select: Avoid #including large headers unless necessary.
14911         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14912         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14913         OSF/1, BeOS, Haiku.
14914         Reported by Jim Meyering.
14915
14916 2010-10-05  Eric Blake  <eblake@redhat.com>
14917
14918         memmem, strstr, strcasestr: fix bug with long periodic needle
14919         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14920         periodic needle having false positive.
14921         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14922         and cygwin 1.7.7.
14923         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14925         (gl_FUNC_STRCASESTR): Likewise.
14926         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14927         * tests/test-memmem.c (main): Expose the bug.
14928         * tests/test-strcasestr.c (main): Likewise.
14929         * tests/test-strstr.c (main): Likewise.
14930         * tests/test-c-strcasestr.c (main): Likewise.
14931         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14932         * doc/posix-functions/strstr.texi (strstr): Likewise.
14933         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14934         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14935
14936 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         parse-datetime: do some more renaming
14939         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14940         parse_datetime, not get_date.  Mention the renaming.
14941         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14942         in comments.
14943         * m4/bison.m4: Likewise.
14944
14945 2010-10-05  Eric Blake  <eblake@redhat.com>
14946
14947         parse-datetime: better name than get_date
14948         * NEWS: Reword the deprecation notice.
14949         * modules/get_date: Rename to modules/parse-datetime.
14950         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14951         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14952         * lib/get_date.y: Rename to lib/parse-datetime.y.
14953         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14954         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14955         * doc/getdate.texi: Provide fallback wrapper.
14956         * lib/getdate.h: Move guts, and wrap...
14957         * lib/parse-datetime.h: ...new file.
14958         * lib/parse-datetime.y (get_date): Rename...
14959         (parse_datetime): ...to this.
14960         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14961         (gl_PARSE_DATETIME): ...to this.
14962         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14963         documentation.
14964         * modules/getdate (Files): Provide fallback docs and header.
14965         (Notice, Depends-on): Update references.
14966         * tests/test-parse-datetime.c: Likewise.
14967         * DEPENDENCIES: Likewise.
14968         * MODULES.html.sh (Date and time <time.h>): Likewise.
14969         * doc/parse-datetime.texi (Date input formats)
14970         (Authors of parse_datetime): Likewise.
14971         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14972         (Include): Likewise.
14973         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14974         * gnulib-tool: Likewise.
14975         * m4/bison.m4 (gl_BISON): Likewise.
14976         Suggested by Bruno Haible.
14977
14978 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         more ports to Solaris tr, which needs [] around ranges
14981         * gnulib-tool: Solaris tr needs [] around ranges.
14982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14983         * tests/test-pipe-filter-gi1.c (main): Likewise.
14984         * tests/test-pipe-filter-ii1.c (main): Likewise.
14985
14986 2010-10-05  Eric Blake  <eblake@redhat.com>
14987
14988         bootstrap: fix Solaris regression
14989         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14990         around ranges.
14991         Reported by Pádraig Brady.
14992
14993         bootstrap: work with pkg-config
14994         * build-aux/bootstrap (check_versions): Also transliterate - in
14995         prerequisite name.
14996         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14997         prerequisites that were already found, to avoid confusion.
14998         Reported by Justin Clift.
14999
15000         faccessat: remove unused wrappers
15001         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15002         presence of these wrappers dragged in -lgen on Solaris.
15003         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15004
15005 2010-10-05  Jim Meyering  <meyering@redhat.com>
15006
15007         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15008         * Makefile (sc_pragma_columns): New syntax-check rule.
15009
15010 2010-10-04  Bruno Haible  <bruno@clisp.org>
15011
15012         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15013         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15014         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15015         Reported by Bruce Korb and Eric Blake.
15016
15017 2010-10-04  Bruno Haible  <bruno@clisp.org>
15018
15019         threadlib: Make option --with-libpth-prefix work.
15020         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15021         use $LIBPTH, not just -lpth.
15022
15023 2010-10-04  Bruno Haible  <bruno@clisp.org>
15024
15025         Avoid line length limitation from HP NonStop system header files.
15026         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15027         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15028         * lib/ctype.in.h: Likewise.
15029         * lib/dirent.in.h: Likewise.
15030         * lib/errno.in.h: Likewise.
15031         * lib/fcntl.in.h: Likewise.
15032         * lib/float.in.h: Likewise.
15033         * lib/getopt.in.h: Likewise.
15034         * lib/iconv.in.h: Likewise.
15035         * lib/inttypes.in.h: Likewise.
15036         * lib/langinfo.in.h: Likewise.
15037         * lib/locale.in.h: Likewise.
15038         * lib/math.in.h: Likewise.
15039         * lib/netdb.in.h: Likewise.
15040         * lib/netinet_in.in.h: Likewise.
15041         * lib/poll.in.h: Likewise.
15042         * lib/pthread.in.h: Likewise.
15043         * lib/pty.in.h: Likewise.
15044         * lib/sched.in.h: Likewise.
15045         * lib/se-selinux.in.h: Likewise.
15046         * lib/search.in.h: Likewise.
15047         * lib/signal.in.h: Likewise.
15048         * lib/spawn.in.h: Likewise.
15049         * lib/stdarg.in.h: Likewise.
15050         * lib/stddef.in.h: Likewise.
15051         * lib/stdint.in.h: Likewise.
15052         * lib/stdio.in.h: Likewise.
15053         * lib/stdlib.in.h: Likewise.
15054         * lib/string.in.h: Likewise.
15055         * lib/strings.in.h: Likewise.
15056         * lib/sys_file.in.h: Likewise.
15057         * lib/sys_ioctl.in.h: Likewise.
15058         * lib/sys_select.in.h: Likewise.
15059         * lib/sys_socket.in.h: Likewise.
15060         * lib/sys_stat.in.h: Likewise.
15061         * lib/sys_time.in.h: Likewise.
15062         * lib/sys_times.in.h: Likewise.
15063         * lib/sys_utsname.in.h: Likewise.
15064         * lib/sys_wait.in.h: Likewise.
15065         * lib/sysexits.in.h: Likewise.
15066         * lib/termios.in.h: Likewise.
15067         * lib/time.in.h: Likewise.
15068         * lib/unistd.in.h: Likewise.
15069         * lib/wchar.in.h: Likewise.
15070         * lib/wctype.in.h: Likewise.
15071         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15072         * modules/ctype (Makefile.am): Likewise.
15073         * modules/dirent (Makefile.am): Likewise.
15074         * modules/errno (Makefile.am): Likewise.
15075         * modules/fcntl-h (Makefile.am): Likewise.
15076         * modules/float (Makefile.am): Likewise.
15077         * modules/getopt-posix (Makefile.am): Likewise.
15078         * modules/iconv-h (Makefile.am): Likewise.
15079         * modules/inttypes (Makefile.am): Likewise.
15080         * modules/langinfo (Makefile.am): Likewise.
15081         * modules/locale (Makefile.am): Likewise.
15082         * modules/math (Makefile.am): Likewise.
15083         * modules/netdb (Makefile.am): Likewise.
15084         * modules/netinet_in (Makefile.am): Likewise.
15085         * modules/poll-h (Makefile.am): Likewise.
15086         * modules/pthread (Makefile.am): Likewise.
15087         * modules/pty (Makefile.am): Likewise.
15088         * modules/sched (Makefile.am): Likewise.
15089         * modules/search (Makefile.am): Likewise.
15090         * modules/selinux-h (Makefile.am): Likewise.
15091         * modules/signal (Makefile.am): Likewise.
15092         * modules/spawn (Makefile.am): Likewise.
15093         * modules/stdarg (Makefile.am): Likewise.
15094         * modules/stddef (Makefile.am): Likewise.
15095         * modules/stdint (Makefile.am): Likewise.
15096         * modules/stdio (Makefile.am): Likewise.
15097         * modules/stdlib (Makefile.am): Likewise.
15098         * modules/string (Makefile.am): Likewise.
15099         * modules/strings (Makefile.am): Likewise.
15100         * modules/sys_file (Makefile.am): Likewise.
15101         * modules/sys_ioctl (Makefile.am): Likewise.
15102         * modules/sys_select (Makefile.am): Likewise.
15103         * modules/sys_socket (Makefile.am): Likewise.
15104         * modules/sys_stat (Makefile.am): Likewise.
15105         * modules/sys_time (Makefile.am): Likewise.
15106         * modules/sys_times (Makefile.am): Likewise.
15107         * modules/sys_utsname (Makefile.am): Likewise.
15108         * modules/sys_wait (Makefile.am): Likewise.
15109         * modules/sysexits (Makefile.am): Likewise.
15110         * modules/termios (Makefile.am): Likewise.
15111         * modules/time (Makefile.am): Likewise.
15112         * modules/unistd (Makefile.am): Likewise.
15113         * modules/wchar (Makefile.am): Likewise.
15114         * modules/wctype (Makefile.am): Likewise.
15115
15116 2010-10-04  Bruno Haible  <bruno@clisp.org>
15117
15118         read-file tests: Avoid a test failure on NonStop Kernel.
15119         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15120         a regular file.
15121         Reported by Joachim Schmitz <schmitz@hp.com>.
15122
15123 2010-10-03  Bruno Haible  <bruno@clisp.org>
15124
15125         gnulib-tool: Fixes for --create-testdir with --libtool.
15126         * gnulib-tool (func_get_automake_snippet): Don't augment
15127         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15128         an executable.
15129         (func_create_testdir): Handle module 'alloca' like func_import.
15130         Reported by Bruce Korb <bruce.korb@gmail.com>.
15131
15132 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15133
15134         Avoid some lines longer than 80 characters.
15135         * lib/stdint.in.h: Break long comment lines.
15136         * lib/math.in.h: Likewise.
15137         (_GL_NUM_UINT_WORDS): New macro, for readability.
15138         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15139         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15140         * lib/stdlib.in.h: Likewise.
15141         * lib/spawn.in.h: Likewise.
15142         * lib/sys_socket.in.h: Update an URL.
15143         * lib/sys_stat.in.h: Break long line.
15144
15145 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15146
15147         Improve pmccabe2html.
15148         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15149         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15150         when the sources change. Remove the line in the HTML about "Used
15151         ranges" (which implied that there might be other unused ranges),
15152         rename "Resume" to "Summary" (easier to understand for more users).
15153         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15154         styles, and some unnecessary blank lines.
15155
15156 2010-10-03  Bruno Haible  <bruno@clisp.org>
15157             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15158
15159         acl: Add support for ACLs on NonStop Kernel.
15160         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15161         Check whether the function aclsort() exists.
15162         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15163         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15164         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15165         (acl_nontrivial [HAVE_ACLSORT]: New function.
15166         (file_has_acl): Implement for NonStop Kernel.
15167         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15168         (qset_acl): Implement for NonStop Kernel.
15169         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15170         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15171         (main): Implement for NonStop Kernel.
15172         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15173         Kernel. Handle this flavor.
15174         * tests/test-set-mode-acl.sh: Likewise.
15175         * tests/test-copy-acl.sh: Likewise.
15176         * tests/test-copy-file.sh: Likewise.
15177
15178 2010-10-03  Bruno Haible  <bruno@clisp.org>
15179
15180         Info about ACLs on NonStop Kernel.
15181         * doc/acl-resources.txt: Add info about NonStop Kernel.
15182         References by Joachim Schmitz <schmitz@hp.com>.
15183
15184 2010-10-02  Bruno Haible  <bruno@clisp.org>
15185
15186         Define missing EDQUOT on NonStop Kernel.
15187         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15188         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15190         missing.
15191         * doc/posix-headers/errno.texi: Mention the NSK bug.
15192         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15193         Reported by Joachim Schmitz <schmitz@hp.com>.
15194
15195 2010-10-02  Bruno Haible  <bruno@clisp.org>
15196
15197         Update doc for POSIX:2008.
15198         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15199         Update URL of POSIX specification.
15200
15201 2010-10-02  Bruno Haible  <bruno@clisp.org>
15202
15203         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15204         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15205         from gnulib, not from Automake.
15206
15207 2010-10-02  Bruno Haible  <bruno@clisp.org>
15208
15209         New module 'system-posix'.
15210         * modules/system-posix: New file.
15211         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15212         module is present.
15213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15214         GNULIB_SYSTEM_POSIX.
15215         * modules/stdlib (Depends-on): Remove sys_wait.
15216         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15217         * doc/posix-functions/system.texi: Mention the new module.
15218         * doc/posix-headers/stdlib.texi: Likewise.
15219         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15220         define test_sys_wait_macros to a no-op.
15221         Reported by Sam Steingold <sds@gnu.org>.
15222
15223 2010-09-30  Bruno Haible  <bruno@clisp.org>
15224
15225         More renaming from 'getdate' to 'get_date'.
15226         * doc/get_date.texi: Renamed from doc/getdate.texi.
15227         * modules/get_date (Files): Update.
15228         * MODULES.html.sh (Date and time <time.h>): Update.
15229         * DEPENDENCIES: Update.
15230         * gnulib-tool: Update comment.
15231         * m4/bison.m4 (gl_BISON): Likewise.
15232         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15233
15234 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15235
15236         bootstrap: support ACLOCAL_FLAGS during aclocal
15237         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15238         can add additional -I dir for third-party .m4 files.
15239
15240 2010-09-30  Eric Blake  <eblake@redhat.com>
15241
15242         bootstrap: use glibtoolize on MacOS
15243         * build-aux/bootstrap (check_versions): Convert libtool into
15244         libtoolize.
15245         (tool search): Move libtool check earlier, and look for
15246         glibtoolize for MacOS.
15247         (gnulib_tool_options): Auto-add --libtool when appropriate.
15248         Reported by Justin Clift.
15249
15250         poll: fix typo that broke test on MacOS
15251         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15252         Reported by Justin Clift.
15253
15254         getdate: rename to get_date
15255         Note: getdate.h is not renamed, to minimize client impact.
15256         * modules/getdate: Mark obsolete.  Move old contents...
15257         * modules/get_date: ...to new module name.
15258         * modules/getdate-tests: Move...
15259         * modules/get_date-tests: ...here.
15260         * m4/getdate.m4: Move...
15261         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15262         * lib/getdate.y: Move...
15263         * lib/get_date.y: ...here.
15264         * tests/test-getdate.c: Move...
15265         * tests/test-get_date.c: ...here.
15266         * doc/posix-functions/getdate.texi (getdate): Update name.
15267         * NEWS: Mention the change.
15268
15269 2010-09-29  Bruno Haible  <bruno@clisp.org>
15270
15271         Separate the module 'waitpid' from the module 'sys_wait'.
15272         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15273         present.
15274         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15275         gl_MODULE_INDICATOR_FOR_TESTS.
15276         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15277         * modules/sys_wait (Depends-on): Remove waitpid.
15278         (Makefile.am): Substitute GNULIB_WAITPID.
15279         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15280         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15281         signature only if the 'waitpid' module is present.
15282         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15283         * NEWS: Mention the change.
15284         * modules/grantpt (Depends-on): Add waitpid.
15285         * modules/wait-process (Depends-on): Likewise.
15286
15287 2010-09-29  Bruno Haible  <bruno@clisp.org>
15288
15289         More tests for module 'sys_wait'.
15290         * modules/sys_wait-c++-tests: New file.
15291         * tests/test-sys_wait-c++.cc: New file.
15292         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15293         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15294
15295 2010-09-29  Bruno Haible  <bruno@clisp.org>
15296
15297         New module 'waitpid'.
15298         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15299         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15300         Don't include <process.h>.
15301         (waitpid): Declare only, using modern idiom.
15302         * m4/waitpid.m4: New file.
15303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15304         * modules/waitpid: New file.
15305         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15306         (Makefile.am): Update.
15307         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15308
15309 2010-09-28  Bruno Haible  <bruno@clisp.org>
15310
15311         poll: Assume ANSI C.
15312         * lib/poll.c (poll): Use an ANSI C declaration.
15313
15314 2010-09-28  Bruno Haible  <bruno@clisp.org>
15315
15316         poll-h: Create poll.h on all platforms.
15317         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15318         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15319         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15320         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15321         (gl_REPLACE_POLL_H): Don't set POLL_H.
15322         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15323         * modules/poll-h (Depends-on): Add include_next.
15324         (Makefile.am): Create poll.h unconditionally. Substitute also
15325         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15326
15327 2010-09-28  Bruno Haible  <bruno@clisp.org>
15328
15329         Tests for module 'poll-h'.
15330         * modules/poll-h-c++-tests: New file.
15331         * tests/test-poll-h-c++.cc: New file.
15332
15333         Tests for module 'poll-h'.
15334         * modules/poll-h-tests: New file.
15335         * tests/test-poll-h.c: New file.
15336
15337 2010-09-28  Bruno Haible  <bruno@clisp.org>
15338
15339         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15340         * modules/poll-h (Depends-on): Add 'extensions'.
15341
15342 2010-09-28  Bruno Haible  <bruno@clisp.org>
15343
15344         New module 'poll-h'.
15345         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15346         (poll): Use modern idiom.
15347         * modules/poll-h: New file.
15348         * modules/poll (Files): Remove lib/poll.in.h.
15349         (Depends-on): Add poll-h.
15350         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15351         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15352         * m4/poll_h.m4: New file.
15353         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15354         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15355         and invoke gl_REPLACE_POLL_H.
15356         * lib/poll.c: Use common idiom.
15357         * tests/test-poll.c: Likewise.
15358         * doc/posix-headers/poll.texi: Mention the poll-h module.
15359         Suggested by Eric Blake.
15360
15361 2010-09-26  Bruno Haible  <bruno@clisp.org>
15362
15363         sys_wait: Implement WSTOPSIG.
15364         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15365         Reported by Simon Josefsson.
15366
15367 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15368
15369         stdlib, sys_wait: Avoid compilation error on mingw.
15370         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15371
15372 2010-09-26  Bruno Haible  <bruno@clisp.org>
15373
15374         stdlib tests: Avoid code duplication.
15375         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15376         * modules/sys_wait-tests (Files): Likewise.
15377         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15378         * tests/test-stdlib.c: Include test-sys_wait.h.
15379         (main): Invoke test_sys_wait_macros.
15380         * tests/test-sys_wait.c: Include test-sys_wait.h.
15381         (main): Invoke test_sys_wait_macros.
15382
15383 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15384
15385         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15386         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15387         sure Windows sockets are working before calling getaddrinfo.
15388         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15389         * doc/gnulib.texi (Windows sockets): Fix typo.
15390
15391 2010-09-25  Bruno Haible  <bruno@clisp.org>
15392
15393         Tests for module 'regex-quote'.
15394         * modules/regex-quote-tests: New file.
15395         * tests/test-regex-quote.c: New file.
15396
15397         New module 'regex-quote'.
15398         * lib/regex-quote.h: New file.
15399         * lib/regex-quote.c: New file.
15400         * modules/regex-quote: New file.
15401         Suggested by Reuben Thomas <rrt@sc3d.org>.
15402
15403 2010-09-24  Bruno Haible  <bruno@clisp.org>
15404
15405         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15406         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15407
15408 2010-09-23  Bruno Haible  <bruno@clisp.org>
15409
15410         setenv: Relax license.
15411         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15412         Blake.
15413         Requested by Eric Blake.
15414
15415 2010-09-22  Bruno Haible  <bruno@clisp.org>
15416
15417         termios: Relax license.
15418         * modules/termios (License): Change to LGPLv2+.
15419         Requested by Eric Blake.
15420
15421 2010-09-22  Bruno Haible  <bruno@clisp.org>
15422
15423         threadlib: Allow the package to change the default to 'no'.
15424         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15425         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15426         Reported by Paul Eggert.
15427
15428 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15429             Bruno Haible  <bruno@clisp.org>
15430
15431         Fix endless loop in mbmemcasecoll.
15432         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15433         byte.
15434         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15435
15436 2010-09-22  Bruno Haible  <bruno@clisp.org>
15437
15438         Tests for module 'memcoll'.
15439         * modules/memcoll-tests: New file.
15440         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15441
15442         memcoll, xmemcoll: Clarify size vs. length.
15443         * modules/memcoll.c (memcoll0): Clarify specification.
15444         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15445         passed to collate_error.
15446
15447 2010-09-22  Bruno Haible  <bruno@clisp.org>
15448
15449         Tests for module 'memcasecmp'.
15450         * modules/memcasecmp-tests: New file.
15451         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15452
15453 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15454
15455         * lib/pthread.in.h: Add split double-inclusion guard, and include
15456         system <pthread.h> if there is one.  Use @@-style as in other
15457         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15458         pthread.h doesn't.
15459         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15460         (pthread_mutexattr_settype, pthread_mutex_trylock):
15461         New static inline functions, if there's no system <pthread.h>.
15462         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15463         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15464         Approximate with mutexes if the system lacks spinlocks, as in
15465         MacOS.
15466         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15467         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15468         @@-style.  Check for spinlocks separately.
15469         (gl_PTHREAD_DEFAULTS): New macro.
15470         * modules/pthread: Redo to use a more typical style for in.h files.
15471
15472 2010-09-21  Eric Blake  <eblake@redhat.com>
15473
15474         net_if: enhance tests
15475         * tests/test-net_if.c (main): Move signature checks earlier.
15476         Print failures to stderr.
15477         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15478         Document the bug that we do not yet fix.
15479
15480 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15481
15482         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15483         about gnulib, not GSS.
15484
15485 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15486
15487         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15488         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15489         for Emacs.
15490         * build-aux/pmccabe2html: Make Makefile.am example code more
15491         cut-and-paste friendly.
15492
15493 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15494
15495         * tests/test-net_if.c: New file.
15496         * modules/net_if-tests: New file.
15497
15498 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         pthread: add pthread_spin_destroy
15501         * lib/pthread.in.h (pthread_spin_destroy): New function.
15502
15503 2010-09-19  Bruno Haible  <bruno@clisp.org>
15504
15505         gnulib-tool: Fix --help output.
15506         * gnulib-tool (func_usage): Fix help message.
15507         Reported by Reuben Thomas <rrt@sc3d.org>.
15508
15509 2010-09-18  Jim Meyering  <meyering@redhat.com>
15510
15511         maint.mk: avoid unexpanded \n in two diagnostics
15512         * top/maint.mk (sc_prohibit_always_true_header_tests):
15513         Don't use a literal \n in a halt=... assignment.  It would not be
15514         expanded, and the two \n bytes would appear in the diagnostic output
15515         rather than the desired newline.  Use halt=$$(printf ... instead.
15516         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15517
15518 2010-09-18  Bruno Haible  <bruno@clisp.org>
15519
15520         netinet_in: Doc tweak.
15521         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15522         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15523
15524 2010-09-18  Jim Meyering  <meyering@redhat.com>
15525
15526         init.sh: correct an outdated comment
15527         * tests/init.sh (create_exe_shims_):  s/function/alias/
15528
15529         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15530         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15531         a file named "*.exe" is removed between the glob expansion and the
15532         processing of that oddly named file.
15533
15534 2010-09-17  Eric Blake  <eblake@redhat.com>
15535
15536         mirbsd: add some more support
15537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15538         in BSD family.
15539         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15540         devices as OpenBSD.
15541         * m4/host-os.m4 (mirbsd): Add MirBSD.
15542
15543         tests: fix unportable assumption on sys/wait.h
15544         * tests/test-sys_wait.c (main): Relax test.
15545         * tests/test-stdlib.c (main): Likewise.
15546
15547         init.sh: accomodate directory with no .exes
15548         * tests/init.sh: Accomodate directory containing only scripts.
15549
15550         tests: avoid compiler warning
15551         * tests/test-stdlib.c (main): Use the variable.
15552
15553         fdutimens, fdutimensat: update signature, again
15554         * lib/utimens.h (gl_futimens): Delete, and move signature...
15555         (fdutimens): ...here.
15556         (fdutimensat): Rearrange signature.
15557         (lutimensat): Rename variable for clarity.
15558         * lib/fdutimensat.c (fdutimensat): Update signature.
15559         * lib/utimens.c (fdutimens): Likewise.
15560         (gl_futimens): Delete.
15561         (utimens, lutimens): Update callers.
15562         * lib/futimens.c (futimens): Likewise.
15563         * tests/test-fdutimensat.c: Likewise.
15564         * tests/test-utimens.c: Likewise.
15565         * tests/test-futimens.h: Update comment.
15566         * NEWS: Mention this.
15567         Suggested by Paul Eggert.
15568
15569 2010-09-17  Bruno Haible  <bruno@clisp.org>
15570
15571         Take over the maintenance of some older macros from Autoconf.
15572         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15573         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15574         GNU Autoconf.
15575         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15576         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15577
15578 2010-09-17  Eric Blake  <eblake@redhat.com>
15579
15580         fdutimensat: drop atflag validation
15581         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15582         with valid fd, to close a race scenario where futimens is
15583         unsupported and FILE was replaced by a symlink.
15584         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15585         accordingly.
15586         Suggested by Paul Eggert.
15587
15588 2010-09-16  Bruno Haible  <bruno@clisp.org>
15589
15590         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15591         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15592
15593 2010-09-16  Bruno Haible  <bruno@clisp.org>
15594
15595         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15596         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15597         login_tty exists.
15598         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15599
15600 2010-09-16  Bruno Haible  <bruno@clisp.org>
15601
15602         login_tty: Make the replacement code work on BSD systems.
15603         * lib/login_tty.c: Include <sys/ioctl.h>.
15604         (login_tty): Use ioctl TIOCSCTTY when available.
15605         * modules/login_tty (Depends-on): Add sys_ioctl.
15606         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15607
15608 2010-09-16  Bruno Haible  <bruno@clisp.org>
15609
15610         login_tty: Stricter unit test.
15611         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15612         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15613         and tcgetsid() after login_tty.
15614         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15615
15616 2010-09-16  Bruno Haible  <bruno@clisp.org>
15617
15618         New module 'tcgetsid'.
15619         * lib/tcgetsid.c: New file.
15620         * m4/tcgetsid.m4: New file.
15621         * modules/tcgetsid: New file.
15622         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15623         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15624         GNULIB_TCGETSID, HAVE_TCGETSID.
15625         * lib/termios.in.h: Include <sys/types.h>.
15626         (tcgetsid): New declaration.
15627         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15628         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15629         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15630         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15631
15632 2010-09-16  Bruno Haible  <bruno@clisp.org>
15633
15634         Tests for module 'termios'.
15635         * modules/termios-c++-tests: New file.
15636         * modules/termios-tests: New file.
15637         * tests/test-termios-c++.cc: New file.
15638         * tests/test-termios.c: New file.
15639
15640         New module 'termios'.
15641         * modules/termios: New file.
15642         * lib/termios.in.h: New file.
15643         * m4/termios_h.m4: New file.
15644         * doc/posix-headers/termios.texi: Mention the new module.
15645
15646 2010-09-16  Eric Blake  <eblake@redhat.com>
15647
15648         fdutimensat: add an atflag parameter
15649         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15650         * lib/utimens.h (fdutimensat): Update prototype.
15651         * tests/test-fdutimensat.c: Adjust test to match.
15652         * NEWS: Document the change.
15653         Suggested by Paul Eggert.
15654
15655 2010-09-16  Bruno Haible  <bruno@clisp.org>
15656
15657         Fix typos in comments.
15658         * lib/striconveh.h: Fix typo in comment.
15659         * lib/login_tty.c (login_tty): Likewise.
15660
15661 2010-09-15  Bruno Haible  <bruno@clisp.org>
15662
15663         stdlib: clarify MirBSD WEXITSTATUS bug
15664         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15665         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15666
15667 2010-09-15  Eric Blake  <eblake@redhat.com>
15668
15669         stdlib: work around MirBSD WEXITSTATUS bug
15670         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15671         * modules/stdlib (Depends-on): Add sys_wait.
15672         * tests/test-sys_wait.c (main): Enhance test.
15673         * tests/test-stdlib.c (main): Likewise.
15674         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15675
15676         docs: mention MacOS issue with WEXITSTATUS(constant)
15677         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15678         issue.
15679         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15680
15681         strnlen: add tests
15682         * modules/strnlen-tests: New file.
15683         * tests/test-strnlen.c: Likewise.
15684
15685 2010-09-14  Bruno Haible  <bruno@clisp.org>
15686
15687         unistr/base: Avoid link errors when module 'libunistring' is also used.
15688         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15689         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15690         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15691         Declare also when HAVE_LIBUNISTRING is set.
15692         Reported by Pádraig Brady <P@draigbrady.com>.
15693
15694 2010-09-14  Eric Blake  <eblake@redhat.com>
15695
15696         test-rawmemchr: make more robust
15697         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15698         (Depends-on, configure.ac): Add needed prerequisites to use it.
15699         * modules/memchr-tests (Files, Depends-on, configure.ac):
15700         Likewise, to avoid implicit reliance on memchr module prereqs.
15701         * tests/test-memchr.c (main): Ensure proper masking.
15702         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15703         reads.
15704
15705         memchr: detect glibc Alpha bug
15706         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15707         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15708         Alpha.
15709         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15710         * tests/test-memchr.c (main): Enhance test.
15711         Reported by Nelson H. F. Beebe.
15712
15713 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15714
15715         fts, getcwd, glob: audit for dirfd returning -1
15716         * lib/fts.c (opendir): Remove #define; no longer used.
15717         (opendirat): New arg PDIR_FD.  All callers changed.
15718         (fts_build, _opendir2): Use new opendirat to avoid the need for
15719         dirfd, or for checking whether dirfd returns a negative value.
15720         Don't use opendir; always use openat followed by fdopendir.
15721         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15722         it.
15723         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15724         returns -1 here.
15725         * modules/fts (Depends-on): Remove dirfd.
15726         * modules/getcwd (Depends-on): Likewise.
15727
15728 2010-09-13  Eric Blake  <eblake@redhat.com>
15729
15730         float: fix broken MirBSD header
15731         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15732         * doc/posix-headers/float.texi (float.h): Document it.
15733
15734 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15735
15736         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15737         * lib/fts.c (opendirat): New arg extra_flags.
15738         (__opendir2): Use it to avoid following symlinks when opening
15739         a directory, if symlinks are not supposed to be followed.  See
15740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15741
15742         fdopendir: preserve argument fd before returning
15743         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15744         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15745         (fdopendir): Use them, arranging for FD to be open to the same
15746         directory that it was when it started.  (It might be temporarily
15747         closed while fdopendir is running, so this not thread- or
15748         signal-safe.)  Be careful to do the right thing even when file
15749         descriptors are scarce and dup fails with errno == EMFILE.  See
15750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15751
15752 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15753
15754         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15755         * NEWS: Document change.
15756         * m4/regex.m4: Disable test for regoff_t size.
15757
15758 2010-09-13  Jim Meyering  <meyering@redhat.com>
15759
15760         fts: don't operate on an invalid file descriptor after failed dup
15761         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15762         negative file descriptor.
15763
15764 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15765
15766         savedir: add streamsavedir, deprecate fdsavedir
15767         * NEWS: Mention deprecation of fdsavedir.
15768         * lib/savedir.c (streamsavedir): New extern function, whose name
15769         ends in "savedir" to be consistent with the others.  This differs
15770         from savedirstream in that it doesn't close its argument.  The
15771         next version of GNU tar will use this instead of fdsavedir, to
15772         avoid some race conditions and conserve file descriptors.
15773         (savedirstream): Reimplement as a wrapper around streamsavedir.
15774         (fdsavedir): Add a comment deprecating this function.  As far as
15775         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15776         * lib/savedir.h (streamsavedir): New decl.
15777         (fdsavedir): Add a comment deprecating this.
15778
15779 2010-09-10  Bruno Haible  <bruno@clisp.org>
15780
15781         langinfo: Fix last commit.
15782         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15783         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15785
15786 2010-09-10  Bruno Haible  <bruno@clisp.org>
15787
15788         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15789         * lib/progreloc.c (O_EXEC): Define fallback.
15790
15791 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15794         * NEWS: Document recent changes to fcntl-h.
15795         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15796         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15797         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15798         Similarly for O_SEARCH; this last was already true, but not documented.
15799         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15800         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15801         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15802         Likewise.
15803         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15804         is zero, not whether it is defined.
15805         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15806         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15807         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15808
15809 2010-09-10  Bruno Haible  <bruno@clisp.org>
15810
15811         langinfo, nl_langinfo: Fix for IRIX 5.3.
15812         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15813         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15814         HAVE_LANGINFO_YESEXPR.
15815         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15816         HAVE_LANGINFO_YESEXPR.
15817         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15818         HAVE_LANGINFO_T_FMT_AMPM is 0.
15819         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15820         HAVE_LANGINFO_YESEXPR is 0.
15821         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15822         NOEXPR.
15823         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15824         * doc/posix-functions/nl_langinfo.texi: Likewise.
15825         Reported by Eric Blake.
15826
15827 2010-09-10  Bruno Haible  <bruno@clisp.org>
15828
15829         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15830         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15831         on FreeBSD 8.0 and OpenBSD 4.6.
15832         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15833         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15834         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15835         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15836         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15837         ac_includes_default.
15838         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15839
15840 2010-09-09  Eric Blake  <eblake@redhat.com>
15841
15842         strsignal: work around NetBSD bug
15843         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15844         * lib/string.in.h (includes): Likewise.
15845         * doc/posix-functions/strsignal.texi (strsignal): Document the
15846         bug.
15847         Reported by Nelson H. F. Beebe.
15848
15849         gnulib-tool: work with NetBSD /bin/sh
15850         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15851         (func_get_description, func_get_comment, func_get_status)
15852         (func_get_notice, func_get_applicability, func_get_filelist)
15853         (func_get_dependencies, func_get_autoconf_early_snippet)
15854         (func_get_autoconf_snippet, func_get_automake_snippet)
15855         (func_get_include_directive, func_get_link_directive)
15856         (func_get_license, func_get_maintainer, func_import): Avoid
15857         shell syntax errors from parsing syntax extensions.
15858
15859 2010-09-09  Bruno Haible  <bruno@clisp.org>
15860
15861         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15862         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15863         a reliable way to determine whether the 'alias' command works.
15864
15865 2010-09-08  Jim Meyering  <meyering@redhat.com>
15866
15867         init.sh: penalize a set-x-impaired shell; don't disqualify it
15868         * tests/init.sh: Too many shells corrupt application stderr when
15869         you set -x, so we can't afford to disqualify them, since at least
15870         on Irix-6.5, that would disqualify all bourne shells.
15871         Instead, use a two-pass approach.
15872         On the first pass, try to find a shell that meets the stricter
15873         condition that set -x does not corrupt stderr.
15874         If no shell meets the stricter condition, retest each candidate
15875         shell, but without that extra condition.  Finally, when
15876         VERBOSE=yes is requested and set -x might cause trouble, simply
15877         issue a warning and refrain from enabling debug output.
15878
15879 2010-09-08  Eric Blake  <eblake@redhat.com>
15880
15881         unsetenv: fix OpenBSD bug
15882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15883         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15884         documentation.
15885         Reported by Jim Meyering.
15886
15887         strtod: work around IRIX 6.5 bug
15888         * lib/strtod.c (strtod): Reparse number on shorter string if
15889         exponent parse was invalid.
15890         * tests/test-strtod.c (main): Add check for "0x1p 2".
15891         Reported by Tom G. Christensen.
15892
15893         getopt: optimize previous patch
15894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15895         empty variable.  Speed up awk script.
15896         Reported by Paolo Bonzini.
15897
15898 2010-09-08  Jim Meyering  <meyering@redhat.com>
15899
15900         test.sh: disqualify shells for which set -x corrupts stderr
15901         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15902         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15903         appear in stderr output.  For example, this command:
15904             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15905         prints "P=1" on those two systems:
15906
15907 2010-09-08  Bruno Haible  <bruno@clisp.org>
15908
15909         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15910         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15911         commands, because some shells ignore redirections when there is an
15912         error in the command lookup.
15913         Reported by Eric Blake.
15914
15915 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15916
15917         * lib/regex.h: Fix a mention of `regex_compile' (should be
15918         `re_compile_pattern').
15919         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15920         (re_set_registers): Correct name of parameter in comment.
15921
15922         * doc/regex.texi: Add documentation for missing syntax flags.
15923         Remove commented-out documentation of defunct syntax option
15924         RE_NO_EMPTY_ALTS.
15925         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15926         Add documentation of re_set_registers.
15927         Document trick to re-use a pattern buffer by setting fastmap manually.
15928         Update documentation of struct re_pattern_buffer per public members.
15929         Uncomment documentation of equivalence class operators and
15930         collating symbol operators, since they are now implemented,
15931         Explain leftmost-longest matching in relation to alternatives.
15932         Tidy documentation of substring matching.
15933         Remove POSIX documentation, which is done better in
15934         glibc, and refer the reader there. Keep BSD API documentation, as
15935         that is not readily available elsewhere.
15936
15937 2010-09-07  Eric Blake  <eblake@redhat.com>
15938
15939         getopt: handle POSIXLY_CORRECT set but not exported
15940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15941         export state of POSIXLY_CORRECT, due to bash set -o posix.
15942         Reported by Dustin J. Mitchell.
15943
15944 2010-09-05  Bruno Haible  <bruno@clisp.org>
15945
15946         gnulib-tool: Highlight the changed options.
15947         * gnulib-tool (func_usage): Display the --import, --add-import,
15948         --remove-import explanations in bold font.
15949
15950 2010-09-06  Karl Berry  <karl@gnu.org>
15951
15952         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15953
15954 2010-09-05  Bruno Haible  <bruno@clisp.org>
15955
15956         uniwidth/width: Update comment.
15957         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15958         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15959
15960 2010-09-05  Bruno Haible  <bruno@clisp.org>
15961
15962         isinf, isnan: Relax license.
15963         * modules/isinf (License): Change from GPL to LGPL, with consent from
15964         Ben Pfaff.
15965         * modules/isnan (License): Likewise.
15966         Requested by Ludovic Courtès.
15967
15968 2010-09-04  Bruno Haible  <bruno@clisp.org>
15969
15970         gnulib-tool: Help migration from --import to --add-import or --update.
15971         * gnulib-tool: Emit a verbose error message when --import is used
15972         without any module name.
15973
15974 2010-09-04  Bruno Haible  <bruno@clisp.org>
15975
15976         Update doc about gnulib-tool.
15977         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15978         'gnulib-tool --update' in more detail.
15979         Reported by Eric Blake.
15980
15981 2010-09-04  Bruno Haible  <bruno@clisp.org>
15982
15983         gnulib-tool: Change --import. New options --add/remove-import.
15984         * gnulib-tool: New options --add-import, --remove-import.
15985         (func_usage): Document them.
15986         (have_associative): Define always.
15987         (func_import): In import mode, don't merge the specified settings with
15988         the cached settings. Implement remove-import mode.
15989         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15990         Explain when to use them versus --import.
15991         (Simple update): Use --add-import instead of --import.
15992         * NEWS: Mention the change.
15993
15994 2010-09-04  Bruno Haible  <bruno@clisp.org>
15995
15996         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15997         separate gnulib.mk.
15998
15999 2010-09-04  Bruno Haible  <bruno@clisp.org>
16000
16001         gnulib-tool: Don't talk about CVS any more.
16002         * gnulib-tool (func_usage, func_import): Write "version control"
16003         instead of CVS.
16004
16005 2010-09-04  Jim Meyering  <meyering@redhat.com>
16006
16007         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16008         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16009         false positives (whose names may be ill-chosen) when searching
16010         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16011         would cause a false-positive.
16012
16013         avoid coreutils "make distcheck" failure
16014         Coreutils tests with an absolute build directory name that contains
16015         a space.  Not quoting this directory name caused a failure.
16016         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16017         * tests/test-vc-list-files-cvs.sh: Likewise.
16018
16019 2010-09-04  Bruno Haible  <bruno@clisp.org>
16020
16021         gnulib-tool: Avoid error when run in a package without Makefile.am.
16022         * gnulib-tool: When collecting the m4dirs in a package that does not
16023         have a Makefile.am, eliminate those directories that contain no
16024         gnulib-cache.m4. Fix expression that counts these directories.
16025
16026 2010-09-04  Bruno Haible  <bruno@clisp.org>
16027
16028         update-copyright test: Improve output when perl is missing or too old.
16029         * tests/test-update-copyright.sh: Move test of Perl version down after
16030         the test whether Perl exists. Provide an explanation relating Perl's
16031         error message to Automake's SKIP: message.
16032
16033 2010-09-04  Bruno Haible  <bruno@clisp.org>
16034
16035         Don't augment PATH in TESTS_ENVIRONMENT.
16036         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16037         set abs_aux_dir instead of augmenting PATH.
16038         * modules/vc-list-files-tests (Makefile.am): Likewise.
16039         * tests/test-update-copyright.sh: Augment PATH here.
16040         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16041         path_prepend_.
16042         * tests/test-vc-list-files-git.sh: Likewise.
16043
16044 2010-09-04  Jim Meyering  <meyering@redhat.com>
16045
16046         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16047         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16048
16049 2010-09-04  Bruno Haible  <bruno@clisp.org>
16050
16051         strdup: Fix compilation error in C++ mode.
16052         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16053         the macro.
16054
16055 2010-09-04  Bruno Haible  <bruno@clisp.org>
16056
16057         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16058         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16059         macro into a function.
16060         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16061
16062 2010-09-04  Bruno Haible  <bruno@clisp.org>
16063
16064         Set PATH_SEPARATOR the same way autoconf does.
16065         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16066         the value of PATH_SEPARATOR the same way autoconf-generated configure
16067         scripts do.
16068         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16069         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16070
16071 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16072
16073         Set PATH_SEPARATOR the same way autoconf does.
16074         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16075         the same way autoconf-generated configure scripts do.
16076         * posix-modules: Likewise.
16077
16078 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16079
16080         hash: fix safe_hasher const typo
16081         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16082         const; otherwise, there is a type error later.
16083
16084 2010-09-02  Jim Meyering  <meyering@redhat.com>
16085
16086         test-update-copyright.sh: require perl 5.8.0
16087         * tests/test-update-copyright.sh: Require 5.8.0,
16088         which Tom G. Christensen has confirmed is adequate,
16089         while 5.6.1 is not.
16090
16091 2010-09-02  Eric Blake  <eblake@redhat.com>
16092
16093         tests: init.sh improvements for re-exec'ing with zsh
16094         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16095         -vx through shell re-exec.
16096         Reported by Tom G. Christensen.
16097
16098         wctype: fix typo in previous commit
16099         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16100         Reported by Ludovic Courtès.
16101
16102 2010-09-02  Jim Meyering  <meyering@redhat.com>
16103
16104         test-update-copyright.sh: skip test if Perl is too old
16105         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16106         Reported by Tom G. Christensen.
16107
16108 2010-09-02  Bruno Haible  <bruno@clisp.org>
16109
16110         wctype: Avoid compilation error on IRIX 6.5.30.
16111         * lib/wctype.in.h (iswblank): Declare with a replacement if
16112         REPLACE_ISWBLANK is set.
16113         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16114         declared. Set REPLACE_ISWBLANK.
16115         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16116         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16117         * doc/posix-headers/wctype.texi: Likewise.
16118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16119
16120 2010-09-01  Bruno Haible  <bruno@clisp.org>
16121
16122         New module 'socketlib'.
16123         * modules/socketlib: New file.
16124         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16125         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16126         * modules/sockets (Depends-on): Add socketlib.
16127         Suggested by Sam Steingold <sds@gnu.org>.
16128
16129 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16130
16131         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16132
16133         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16134         when one needs search access to a directory but not read access.
16135         On systems where it is available, it works in some cases where
16136         O_RDONLY does not, namely on directories that are searchable but
16137         not readable, and which need only to be searchable.  If O_SEARCH
16138         is not available, fall back to the traditional method of using
16139         O_RDONLY.
16140
16141         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16142         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16143         when opening a directory that needs only to be searchable.
16144         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16145         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16146         * lib/openat-proc.c (openat_proc_name): Likewise.
16147         * lib/openat.c (openat_needs_fchdir): Likewise.
16148         * lib/save-cwd.c (save_cwd): Likewise.
16149         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16150
16151 2010-08-28  Bruno Haible  <bruno@clisp.org>
16152
16153         New module 'host-cpu-c-abi'.
16154         * modules/host-cpu-c-abi: New file.
16155         * m4/host-cpu-c-abi.m4: New file, based on part of
16156         clisp/src/m4/general.m4.
16157         Requested by Sam Steingold <sds@gnu.org>.
16158
16159 2010-08-31  Eric Blake  <eblake@redhat.com>
16160         and Jim Meyering  <meyering@redhat.com>
16161
16162         hash: factor, and guard against misbehaving hasher function
16163         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16164         of table->hasher's return value.  Also protect against a hash value
16165         so large that adding it to table->bucket results in a NULL pointer.
16166         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16167         Use it in place of open-coded check-and-abort.
16168
16169 2010-08-30  Bruno Haible  <bruno@clisp.org>
16170
16171         hash: silence spurious clang warning
16172         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16173         Reported by Eric Blake.
16174
16175 2010-08-30  Eric Blake  <eblake@redhat.com>
16176
16177         strstr, memmem, strcasestr: avoid leaked shell message
16178         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16179         FreeBSD.
16180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16182
16183         tests: silence clang warning
16184         * tests/test-malloca.c (do_allocation): Avoid dead store.
16185
16186 2010-08-29  Bruno Haible  <bruno@clisp.org>
16187
16188         gettext: Fix recent mistake.
16189         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16190
16191 2010-08-29  Bruno Haible  <bruno@clisp.org>
16192
16193         selinux-h: Offer a --without-selinux option.
16194         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16195         --without-selinux was specified, skip all tests and define
16196         HAVE_SELINUX_SELINUX_H to 0.
16197         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16198         set LIB_SELINUX to empty.
16199         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16200         gl_LIBSELINUX. If --without-selinux was specified, replace
16201         selinux/context.h.
16202         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16203
16204 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16205             Bruno Haible  <bruno@clisp.org>
16206
16207         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16208         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16209         of HAVE_REALLOC.
16210         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16211         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16212         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16213         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16214
16215 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16216             Bruno Haible  <bruno@clisp.org>
16217
16218         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16219         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16220         HAVE_CALLOC.
16221         * lib/xmalloc.c: Update accordingly.
16222         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16223         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16224         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16225
16226 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16227             Bruno Haible  <bruno@clisp.org>
16228
16229         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16230         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16231         HAVE_MALLOC.
16232         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16233         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16234         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16235
16236 2010-08-29  Bruno Haible  <bruno@clisp.org>
16237
16238         Update modules list.
16239         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16240         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16241         (String handling <string.h>): Add astrxfrm.
16242         (File system functions): Add readlinkat.
16243
16244 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16245
16246         Tests for module 'realloc-gnu'.
16247         * modules/realloc-gnu-tests: New file.
16248         * tests/test-realloc-gnu.c: New file.
16249
16250         Tests for module 'calloc-gnu'.
16251         * modules/calloc-gnu-tests: New file.
16252         * tests/test-calloc-gnu.c: New file.
16253
16254         Tests for module 'malloc-gnu'.
16255         * modules/malloc-gnu-tests: New file.
16256         * tests/test-malloc-gnu.c: New file.
16257
16258 2010-08-28  Bruno Haible  <bruno@clisp.org>
16259
16260         Rename module 'realloc' -> 'realloc-gnu'.
16261         * modules/realloc-gnu: New file, copied from modules/realloc.
16262         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16263         obsolete.
16264         * modules/mgetgroups (Depends-on): Update.
16265         * doc/posix-functions/realloc.texi: Update.
16266         * NEWS: Mention the change.
16267
16268         Rename module 'calloc' -> 'calloc-gnu'.
16269         * modules/calloc-gnu: New file, copied from modules/calloc.
16270         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16271         obsolete.
16272         * doc/posix-functions/calloc.texi: Update.
16273         * NEWS: Mention the change.
16274
16275         Rename module 'malloc' -> 'malloc-gnu'.
16276         * modules/malloc-gnu: New file, copied from modules/malloc.
16277         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16278         obsolete.
16279         * modules/argp (Depends-on): Update.
16280         * modules/regex (Depends-on): Update.
16281         * doc/posix-functions/malloc.texi: Update.
16282         * NEWS: Mention the change.
16283
16284 2010-08-28  Eric Blake  <eblake@redhat.com>
16285
16286         pread, pwrite: add missing dependency
16287         * modules/pread (Depends-on): Add extensions.
16288         * modules/pwrite (Depends-on): Likewise.
16289
16290 2010-08-28  Bruno Haible  <bruno@clisp.org>
16291
16292         unistr/u*-strchr: Fix tests dependencies.
16293         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16294         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16295         Reported by Ian Beckwith <ianb@erislabs.net>.
16296
16297 2010-08-28  Bruno Haible  <bruno@clisp.org>
16298
16299         read-file: Don't occupy too much unused memory.
16300         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16301
16302 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16303             Eric Blake  <eblake@redhat.com>
16304             Bruno Haible  <bruno@clisp.org>
16305
16306         read-file: Avoid memory reallocations with regular files.
16307         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16308         (fread_file): With regular files, use the remaining length as the
16309         initial buffer size.  Check against overflow.
16310         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16311         sys_stat.
16312
16313 2010-08-28  Bruno Haible  <bruno@clisp.org>
16314
16315         ftello: Relax license.
16316         * modules/ftello (License): Relax to LGPLv2+.
16317         Reported by Eric Blake.
16318
16319 2010-08-28  Bruno Haible  <bruno@clisp.org>
16320
16321         Avoid relocwrapper link errors due to gnulib replacement functions.
16322         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16323         function.
16324         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16325
16326 2010-08-28  Bruno Haible  <bruno@clisp.org>
16327
16328         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16329         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16330         defined.
16331         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16332         Suggested by Eric Blake.
16333
16334 2010-08-28  Bruno Haible  <bruno@clisp.org>
16335
16336         sys_socket, netdb: Ensure socklen_t gets defined.
16337         * modules/sys_socket (Depends-on): Add socklen.
16338         * modules/netdb (Depends-on): Likewise.
16339         * modules/getaddrinfo (Depends-on): Remove socklen.
16340         * modules/getsockopt (Depends-on): Likewise.
16341         * modules/setsockopt (Depends-on): Likewise.
16342         * tests/test-sys_socket.c: Check that socklen_t is defined.
16343         * tests/test-netdb.c: Likewise.
16344         * m4/socklen.m4: Update comments.
16345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16346
16347 2010-08-27  Eric Blake  <eblake@redhat.com>
16348
16349         login_tty: add missing dependency
16350         * modules/login_tty (Depends-on): Add pty.
16351
16352 2010-08-26  Eric Blake  <eblake@redhat.com>
16353
16354         lib-symbol-versions: fix m4 quoting
16355         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16356         format for AC_LINK_IFELSE.
16357
16358         glob: fix compile test
16359         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16360
16361         btowc: fix missing file
16362         * modules/btowc (Files): Also ship locale-fr.m4.
16363
16364         lseek: fix link test
16365         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16366         AC_LINK_IFELSE.
16367
16368         include_next: silence autoconf 2.68 warning
16369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16370         AC_COMPILE_IFELSE as special.
16371         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16372         autoconf < 2.68.
16373
16374         acl: fix compilation test
16375         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16376         AC_COMPILE_IFELSE.
16377
16378 2010-08-26  Bruno Haible  <bruno@clisp.org>
16379
16380         Modernize AC_TRY_RUN invocations.
16381         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16382         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16383         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16384         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16385         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16386         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16389         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16390         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16391         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16392         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16393         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16396         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16397         gl_MBRLEN_NUL_RETVAL): Likewise.
16398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16399         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16400         Likewise.
16401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16402         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16403         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16404         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16405         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16406         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16407         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16408         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16409         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16410         Likewise.
16411         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16412         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16414         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16417         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16418         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16419         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16421
16422 2010-08-26  Bruno Haible  <bruno@clisp.org>
16423
16424         Modernize AC_TRY_LINK invocations.
16425         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16426         AC_TRY_LINK.
16427         * m4/argp.m4 (gl_ARGP): Likewise.
16428         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16429         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16430         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16431         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16433         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16434         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16435         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16436         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16437         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16438         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16439         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16440         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16441         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16442         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16443         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16444         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16445         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16446         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16447         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16448         Likewise.
16449         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16450         Likewise.
16451         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16452         Likewise.
16453         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16455         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16456         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16457         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16458         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16459         * m4/servent.m4 (gl_SERVENT): Likewise.
16460         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16461         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16462         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16463         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16464         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16465         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16466         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16467         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16468         * modules/tsearch-tests (configure.ac): Likewise.
16469
16470 2010-08-26  Bruno Haible  <bruno@clisp.org>
16471
16472         Modernize AC_TRY_COMPILE invocations.
16473         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16474         AC_TRY_COMPILE.
16475         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16476         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16477         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16478         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16479         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16480         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16481         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16482         * m4/lock.m4 (gl_LOCK): Likewise.
16483         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16484         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16485         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16487         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16488         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16489         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16491         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16492         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16493         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16494         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16495         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16496         extraneous semicolon.
16497
16498 2010-08-26  Jim Meyering  <meyering@redhat.com>
16499
16500         stat-time: relax license LGPL
16501         * modules/stat-time (License): Change from GPL to LGPL,
16502         with consent from all contributors, for use in libguile.
16503         Requested by Ludovic Courtès.
16504
16505 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16506
16507         poll: return immediately on POLLHUP.
16508         * lib/poll.c (poll): Always set timeout before wait_timeout is
16509         computed.
16510
16511 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16512
16513         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16514         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16515         rmdir ("dir/.//"), unlinkat.
16516
16517 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16518
16519         stdbool: avoid spurious failure with modern xlc
16520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16521
16522 2010-08-24  Bruno Haible  <bruno@clisp.org>
16523
16524         getloadavg: simplify code
16525         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16526         gl_have_func. Update comments.
16527
16528 2010-08-24  Eric Blake  <eblake@redhat.com>
16529
16530         getloadavg: don't define SVR4 on cygwin
16531         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16532         only define SVR4 when -lkvm is required.
16533         Reported by Yaakov Selkowitz.
16534
16535 2010-08-24  Bruno Haible  <bruno@clisp.org>
16536
16537         priv-set: fix comment
16538         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16539
16540 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16541
16542         priv-set: fix comments
16543         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16544         to match code, as suggested by David Bartley in:
16545         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16546
16547 2010-08-23  Eric Blake  <eblake@redhat.com>
16548
16549         stdbool: avoid rejecting clang
16550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16551         * tests/test-stdbool.c: Enable more tests if using the system
16552         <stdbool.h> instead of the gnulib replacement.
16553         (main): Move xlc bug test to a runtime test for all compilers.
16554         Reported by Anders Kaseorg.
16555
16556         argz: fix shell quoting issue
16557         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16558         Reported by Charles Wilson.
16559
16560 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16561             Erik Faye-Lund <kusmabite@gmail.com>
16562
16563         poll, select: handle ERROR_BROKEN_PIPE.
16564         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16565         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16566         * lib/select.c (win32_compute_revents): Do not mark a pipe
16567         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16568
16569 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16570
16571         fts: allow compilation with C++
16572         * lib/fts_.h: Specify extern "C" linkage with C++.
16573
16574 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16575
16576         Fix gnulib-tool sed script de-commentation for AIX sed.
16577         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16578         sed.
16579
16580 2010-08-17  Eric Blake  <eblake@redhat.com>
16581
16582         test-stddef: test for (some) offsetof bugs
16583         * tests/test-stddef.c: Enhance test to ensure correct type of
16584         offsetof.
16585         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16586         that we are not fixing at this time.
16587
16588 2010-08-15  Bruno Haible  <bruno@clisp.org>
16589
16590         stpncpy: Allow stpncpy to be defined as a macro.
16591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16592         if it's already correctly declared.
16593         * lib/string.in.h (stpncpy): Undefine before redefining.
16594         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16595
16596 2010-08-14  Bruno Haible  <bruno@clisp.org>
16597
16598         Rename module 'memxfrm' to 'amemxfrm'.
16599         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16600         (amemxfrm): Renamed from memxfrm.
16601         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16602         (amemxfrm): Renamed from memxfrm.
16603         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16604         * NEWS: Mention the change.
16605         * MODULES.html.sh (String handling <string.h>): Update.
16606         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16607         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16608         * lib/unicase/u16-casexfrm.c: Likewise.
16609         * lib/unicase/u32-casexfrm.c: Likewise.
16610         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16611         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16612         * lib/uninorm/u16-normxfrm.c: Likewise.
16613         * lib/uninorm/u32-normxfrm.c: Likewise.
16614         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16615         memxfrm.
16616         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16617         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16618         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16619         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16620         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16621         Suggested by Paul Eggert.
16622
16623 2010-08-14  Bruno Haible  <bruno@clisp.org>
16624
16625         Tests for module 'astrxfrm'.
16626         * modules/astrxfrm-tests: New file.
16627         * tests/test-astrxfrm.c: New file.
16628
16629         New module 'astrxfrm'.
16630         * lib/astrxfrm.h: New file.
16631         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16632         * modules/astrxfrm: New file.
16633
16634 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16635
16636         regex: Tweak doc.
16637         * doc/regex.texi (Overview): Don't mention regex.c.
16638         (GNU Regular Expression Compiling): Likewise.
16639         (Match-end-of-line Operator): Mention 'not_eol'.
16640
16641 2010-08-14  Brian Gough  <bjg@gnu.org>
16642             Bruno Haible  <bruno@clisp.org>
16643
16644         git-merge-changelog: add doc relating to use with bzr and hg.
16645         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16646
16647 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16648
16649         pthread: fix pthread.h creation for srcdir != builddir
16650         * modules/pthread (Makefile.am): Fix the rule to work also in a
16651         non-srcdir build.
16652
16653 2010-08-13  Karl Berry  <karl@gnu.org>
16654
16655         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16656         * doc/posix-*/*: force line break before @url of POSIX
16657         specifications.
16658         Suggested by Werner Lemberg.
16659
16660 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16661
16662         strtod: fix const diagnostic
16663         * lib/strtod.c (strtod): Don't assign const char * to char *,
16664         as this elicits a warning from GCC when warnings are enabled.
16665
16666 2010-08-10  Pádraig Brady <P@draigbrady.com>
16667         and Eric Blake  <eblake@redhat.com>
16668
16669         copy-acl: ignore ENOTSUP on HP-UX
16670         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16671         so that it is available for HP-UX.
16672         * lib/copy-acl.c (qcopy_acl): Use it.
16673         Reported by Patrick M. Callahan.
16674
16675 2010-08-10  Eric Blake  <eblake@redhat.com>
16676
16677         open, chown: relax license
16678         * modules/open (License): Change to LGPLv2+, with consent by all
16679         authors, for use in augeas.
16680         * modules/chown (License): Likewise.
16681         * modules/lchown (Likewise): Likewise.
16682         Requested by Adam Stokes.
16683
16684 2010-08-09  Karl Berry  <karl@gnu.org>
16685
16686         * build-aux/ar-lib: new file, import from Automake.
16687         * config/srclist.txt: autocheck for updates.
16688
16689 2010-08-09  Eric Blake  <eblake@redhat.com>
16690
16691         readlinkat: adjust client modules
16692         * modules/areadlinkat (Depends-on): Use readlinkat, not
16693         symlinkat.
16694         * modules/areadlinkat-with-size (Depends-on): Likewise.
16695
16696         mknod: be more vocal about danger of running tests as root
16697         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16698         root, since that is just asking for problems.
16699         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16700
16701         readlinkat: split into its own module
16702         * modules/symlinkat: Split readlinkat...
16703         * modules/readlinkat: ...into separate module.
16704         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16705         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16706         * lib/symlinkat.c (readlinkat): Move...
16707         * lib/readlinkat.c: ...into new file.
16708         * modules/symlinkat-tests: Split readlinkat test...
16709         * modules/readlinkat-tests: ...into separate module.
16710         * tests/test-symlinkat.c: Split...
16711         * tests/test-readlinkat.c: ...into new file.
16712         * NEWS: Document the split.
16713         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16714         * lib/unistd.in.h (readlinkat): Likewise.
16715         Suggested by Bruno Haible.
16716
16717 2010-08-08  Bruno Haible  <bruno@clisp.org>
16718
16719         memxfrm: Speed up.
16720         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16721         that usually only one call to strxfrm is necessary for each string
16722         part.
16723         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16724
16725 2010-08-07  Karl Berry  <karl@gnu.org>
16726
16727         * doc/posix-headers/limits.texi,
16728         * doc/posix-functions/malloc.texi,
16729         * doc/posix-functions/strsignal.texi: missing @item.
16730         * doc/ld-version-script.texi: spurious leading i.
16731         * doc/regex.texi (Interval Operators): no commas inside @var.
16732
16733 2010-08-01  Bruno Haible  <bruno@clisp.org>
16734
16735         Integrate the regex documentation.
16736         * doc/gnulib.texi: Define 'cn' index.
16737         (Regular expressions): New a chapter that includes regex.texi and
16738         regexprops-generic.texi.
16739         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16740         syntax.
16741
16742         Whitespace cleanup.
16743         * doc/regex.texi: Remove trailing spaces.
16744
16745         Add regex documentation.
16746         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16747         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16748         Written by Kathy A. Hargreaves and Karl Berry.
16749
16750 2010-08-01  Bruno Haible  <bruno@clisp.org>
16751
16752         link: Update documentation.
16753         * doc/posix-functions/link.texi: Update regarding Solaris.
16754
16755 2010-07-31  Bruno Haible  <bruno@clisp.org>
16756
16757         Update modules list.
16758         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16759         (String handling <string.h>): Add memcmp2, memxfrm.
16760         (Container data structures): Add xlist, xsublist, xoset.
16761         (Core language properties): Add alignof, unused-parameter.
16762         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16763         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16764         (Unibyte characters <ctype.h>): New section.
16765         (String handling <string.h>): New section.
16766         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16767         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16768         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16769         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16770         tan, tanh, tanl, y0, y1, yn.
16771         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16772         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16773         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16774         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16775         unlockpt, vdprintf, vdprintf-posix.
16776         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16777         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16778         xconcat-filename.
16779         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16780         getdtablesize, pipe2, pipe2-safer.
16781         (Security): New section.
16782         (Networking functions): Add accept4.
16783         (Signal handling): Add sigpipe.
16784         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16785         mbmemcasecoll.
16786         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16787         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16788         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16789         pipe-filter-ii.
16790         (Misc): Add argp-version-etc, login_tty, parse-duration.
16791
16792 2010-07-31  Bruno Haible  <bruno@clisp.org>
16793
16794         Improve doc in MODULES.html.
16795         * modules/linkat (Description): Add the word "function".
16796         * modules/mkfifo (Description): Likewise.
16797         * modules/mknod (Description): Likewise.
16798         * modules/remove (Description): Likewise.
16799         * modules/renameat (Description): Likewise.
16800         * modules/stat (Description): Likewise.
16801         * modules/symlink (Description): Likewise.
16802         * modules/unlink (Description): Likewise.
16803
16804 2010-07-31  Bruno Haible  <bruno@clisp.org>
16805
16806         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16807         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16808         option --enable/disable-c++ instead of --enable/disable-cxx.
16809         * NEWS: Mention the change.
16810
16811 2010-07-31  Bruno Haible  <bruno@clisp.org>
16812
16813         readlink, areadlink: Relax test a bit.
16814         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16815         alternative to ENOTDIR.
16816         * tests/test-areadlink.h (test_areadlink): Likewise.
16817         Reported by Rainer Tammer.
16818
16819 2010-07-31  Bruno Haible  <bruno@clisp.org>
16820
16821         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16822         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16823         character, perform the search using U_STRCHR.
16824         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16825         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16826         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16827         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16828         Suggested by Paolo Bonzini.
16829
16830 2010-07-31  Bruno Haible  <bruno@clisp.org>
16831
16832         unistr/u*-strstr: Fix dependencies.
16833         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16834         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16835         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16836
16837 2010-07-31  Bruno Haible  <bruno@clisp.org>
16838
16839         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16840         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16841         the beginning of the loop.
16842         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16843         cases in 'switch' statement.
16844
16845         unistr/u8-strchr: Fix several bugs.
16846         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16847         the string. When not found, return NULL, not a pointer near the end.
16848
16849         More tests for unistr/u8-strchr.
16850         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16851         that the function does not read past the first occurrence of the byte
16852         being searched.
16853         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16854         * tests/unistr/test-u16-strchr.c (main): New function.
16855         * tests/unistr/test-u32-strchr.c (main): New function.
16856
16857 2010-07-31  Bruno Haible  <bruno@clisp.org>
16858
16859         posix-modules: Ignore backup files of documentation files.
16860         * posix-modules: grep only through files named *.texi.
16861
16862 2010-07-31  Bruno Haible  <bruno@clisp.org>
16863
16864         symlinkat: Fix documentation.
16865         * doc/posix-functions/readlinkat.texi: Fix module name.
16866
16867 2010-07-31  Bruno Haible  <bruno@clisp.org>
16868
16869         fchownat: Replace also when chown has the trailing slash bug.
16870         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16871         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16872         introduced on 2010-04-10.
16873         Reported by Rainer Tammer.
16874
16875 2010-07-31  Bruno Haible  <bruno@clisp.org>
16876
16877         linkat: Work around AIX 7.1 bug.
16878         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16879         whether linkat handles trailing slash correctly. If not, replace linkat
16880         and define LINKAT_TRAILING_SLASH_BUG.
16881         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16882         check whether (fd1,file1) points to a directory if file1 or file2 ends
16883         in a slash. Code taken from lib/link.c.
16884         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16885         Reported by Rainer Tammer.
16886
16887 2010-07-31  Bruno Haible  <bruno@clisp.org>
16888
16889         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16890         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16891         This disables an xlc optimization that was causing wrong test results.
16892         Reported by Rainer Tammer.
16893
16894 2010-07-31  Bruno Haible  <bruno@clisp.org>
16895
16896         iconv: Work around AIX 6.1..7.1 bug.
16897         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16898         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16899         cross-compiling, guess no on all versions of AIX.
16900         Reported by Rainer Tammer.
16901
16902 2010-07-31  Bruno Haible  <bruno@clisp.org>
16903
16904         readlink: Relax test a bit.
16905         * tests/test-readlink.h (test_readlink): Allow different errno value
16906         when readlink is called with a file name that ends in / and refers to
16907         a file.
16908         Suggested by Eric Blake.
16909         Reported by Rainer Tammer.
16910
16911 2010-07-31  Bruno Haible  <bruno@clisp.org>
16912
16913         copysign: Does not require -lm on glibc systems.
16914         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16915         gl_COMMON_DOUBLE_MATHFUNC.
16916         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16917
16918 2010-07-31  Bruno Haible  <bruno@clisp.org>
16919
16920         duplocale: Work around AIX 7.1 bug.
16921         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16922         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16923         * lib/duplocale.c (rpl_duplocale): Update comment.
16924         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16925         Reported by Rainer Tammer.
16926
16927 2010-07-30  Bruno Haible  <bruno@clisp.org>
16928
16929         dirfd: Avoid link error on AIX 7.1.
16930         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16931         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16932         exist, set REPLACE_DIRFD.
16933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16934         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16935         * doc/posix-functions/dirfd.texi: Update.
16936         Reported by Rainer Tammer.
16937
16938 2010-07-30  Eric Blake  <eblake@redhat.com>
16939
16940         strtod: next round of AIX fixes
16941         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16942         exponent.
16943         * tests/test-strtod.c (main): Enhance tests.
16944         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16945         Reported by Rainer Tammer.
16946
16947         futimens: fix configure check
16948         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16949         Reported by Bruno Haible.
16950
16951 2010-07-30  Bruno Haible  <bruno@clisp.org>
16952
16953         getline: Update regarding AIX.
16954         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16955         Reported by Rainer Tammer.
16956
16957 2010-07-30  Bruno Haible  <bruno@clisp.org>
16958
16959         wcwidth: Drop replacement on AIX 7.
16960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16961         AIX 7.
16962         Reported by Rainer Tammer.
16963
16964 2010-07-30  Bruno Haible  <bruno@clisp.org>
16965
16966         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16968         a 'char *'.
16969         Reported by Rainer Tammer.
16970
16971 2010-07-30  Bruno Haible  <bruno@clisp.org>
16972
16973         unlink: Update regarding AIX.
16974         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16975         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16976         Reported by Rainer Tammer.
16977
16978 2010-07-30  Bruno Haible  <bruno@clisp.org>
16979
16980         symlink: Update regarding AIX.
16981         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16982         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16983         Reported by Rainer Tammer.
16984
16985 2010-07-30  Bruno Haible  <bruno@clisp.org>
16986
16987         strndup: Update regarding AIX.
16988         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16989         AIX 7.
16990         Reported by Rainer Tammer.
16991
16992 2010-07-30  Bruno Haible  <bruno@clisp.org>
16993
16994         stat: Update regarding AIX.
16995         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16996         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16997         Reported by Rainer Tammer.
16998
16999 2010-07-30  Bruno Haible  <bruno@clisp.org>
17000
17001         truncl: Fix autoconf test.
17002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17003         whether truncl works.
17004         Reported by Rainer Tammer.
17005
17006 2010-07-30  Bruno Haible  <bruno@clisp.org>
17007
17008         round: Update regarding AIX.
17009         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17010         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17011         Reported by Rainer Tammer.
17012
17013 2010-07-30  Bruno Haible  <bruno@clisp.org>
17014
17015         rename: Update regarding AIX.
17016         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17017         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17018         Reported by Rainer Tammer.
17019
17020 2010-07-30  Bruno Haible  <bruno@clisp.org>
17021
17022         printf.m4: Update regarding AIX.
17023         * m4/printf.m4: Update comments regarding AIX.
17024         Reported by Rainer Tammer.
17025
17026 2010-07-30  Bruno Haible  <bruno@clisp.org>
17027
17028         iconv: Update regarding AIX.
17029         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17030         AIX 7.
17031         Reported by Rainer Tammer.
17032
17033 2010-07-30  Bruno Haible  <bruno@clisp.org>
17034
17035         getopt: Update regarding AIX.
17036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17037         no on AIX.
17038         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17039         Reported by Rainer Tammer.
17040
17041 2010-07-30  Bruno Haible  <bruno@clisp.org>
17042
17043         ldexpl; Update regarding AIX.
17044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17045         on AIX 7.
17046         Reported by Rainer Tammer.
17047
17048 2010-07-30  Bruno Haible  <bruno@clisp.org>
17049
17050         frexpl: Update regarding AIX.
17051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17052         on AIX 7.
17053         Reported by Rainer Tammer.
17054
17055 2010-07-30  Bruno Haible  <bruno@clisp.org>
17056
17057         open, fopen: Update regarding AIX.
17058         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17059         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17060         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17061         * doc/posix-functions/fopen.texi: Likewise.
17062         Reported by Rainer Tammer.
17063
17064 2010-07-30  Bruno Haible  <bruno@clisp.org>
17065
17066         chown: Update doc regarding AIX.
17067         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17068         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17069         Reported by Rainer Tammer.
17070
17071 2010-07-30  Eric Blake  <eblake@redhat.com>
17072
17073         strtod: fix bug in replacement function on AIX
17074         * lib/strtod.c (strtod): Special case broken "0x" parse in
17075         underlying strtod.
17076         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17077         * doc/posix-functions/strtod.texi (strtod): Likewise.
17078         Reported by Rainer Tammer.
17079
17080 2010-07-30  Bruno Haible  <bruno@clisp.org>
17081
17082         mbrlen: Fix cross-compilation guess for AIX.
17083         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17084         guess. Leftover from 2008-12-22.
17085
17086 2010-07-30  Bruno Haible  <bruno@clisp.org>
17087
17088         mbrtowc: Fix cross-compilation guess for AIX.
17089         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17090         guess. Leftover from 2008-12-21.
17091
17092 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17093
17094         init.sh: work around trap limitation of some shells
17095         * tests/init.sh (setup_): Move exit trap outside of shell function.
17096
17097 2010-07-29  Eric Blake  <eblake@redhat.com>
17098
17099         strtod: aid debugging
17100         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17101         understanding why strtod is rejected.
17102
17103 2010-07-28  Bruno Haible  <bruno@clisp.org>
17104
17105         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17106         * lib/unistr/u8-chr.c: Include <string.h>.
17107         * tests/unistr/test-u8-chr.c: Likewise.
17108         * tests/unistr/test-u16-chr.c: Likewise.
17109         * tests/unistr/test-u32-chr.c: Likewise.
17110         * tests/unistr/test-u8-strchr.c: Likewise.
17111         * tests/unistr/test-u16-strchr.c: Likewise.
17112         * tests/unistr/test-u32-strchr.c: Likewise.
17113         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17114         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17115         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17116         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17117
17118 2010-07-28  Bruno Haible  <bruno@clisp.org>
17119
17120         Use spaces for indentation, not tabs.
17121         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17122
17123 2010-07-27  Bruno Haible  <bruno@clisp.org>
17124
17125         mbspcasecmp: Fix function specification.
17126         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17127         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17128         Reported by Eric Blake <eblake@redhat.com>.
17129
17130 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17131
17132         timespec: use cast and not conditional, as truncation isn't possible
17133         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17134         instead of a conditional.  Comment about the situation in more detail.
17135         This undoes most of the 2009-10-29 patch.
17136
17137 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17138
17139         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17140         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17141         * lib/unistr/u8-strchr.c: Likewise.
17142         * modules/unistr/u8-chr: Depend on memchr.
17143
17144         unistr/u*-strchr: add tests
17145         * modules/unistr/u8-strchr-tests: New file.
17146         * modules/unistr/u16-strchr-tests: New file.
17147         * modules/unistr/u32-strchr-tests: New file.
17148         * tests/unistr/test-strchr.h: New file.
17149         * tests/unistr/test-u8-strchr.c: New file.
17150         * tests/unistr/test-u16-strchr.c: New file.
17151         * tests/unistr/test-u32-strchr.c: New file.
17152
17153         unistr/u*-chr: test multibyte sequences more
17154         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17155         test vector.
17156         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17157         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17158         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17159
17160         unistr/u*-chr: test multibyte sequences
17161         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17162
17163         unistr/u*-chr: prepare for multibyte tests
17164         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17165         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17166         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17167         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17168         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17169         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17170
17171 2010-07-18  Bruno Haible  <bruno@clisp.org>
17172
17173         unistr/u8-strchr: Optimize non-ASCII argument case.
17174         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17175         because the first byte often matches anyway.
17176         Reported by Pádraig Brady <P@draigbrady.com>.
17177
17178 2010-07-15  Karl Berry  <karl@gnu.org>
17179
17180         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17181
17182 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17183
17184         getcwd: on Solaris, work better if ancestors are inaccessible
17185         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17186         buffer and size, try again with a large buffer.  This works better
17187         on Solaris, since its getcwd succeeds even if the path to the root
17188         is inaccessible, and this is helpful in common cases such as .zfs
17189         hidden directories.  Problem reported by J Chapman Flack in
17190         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17191         Use system getcwd if it's declared, not merely if it's partly
17192         working; use the partly-working test only to avoid needless effort
17193         if the system getcwd fails.
17194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17195         comment that was already obsolete and is now even more obsolete.
17196         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17197         now might call strdup.
17198
17199 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17200
17201         pthread: Add enough so that coreutils/src/sort.c compiles.
17202         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17203         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17204         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17205         Include <sys/types.h>, in case it defines pthread_t.
17206         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17207         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17208         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17209         (pthread_rwlockattr_t, pthread_spinlock_t):
17210         New typedefs, if HAVE_PTHREAD_T is not defined.
17211         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17212         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17213         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17214         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17215         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17216         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17217         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17218         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17219         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17220         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17221         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17222         New macros.
17223         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17224         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17225         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17226         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17227         (pthread_spin_unlock): New dummy functions.
17228         (pthread_create): Return EAGAIN; don't set errno.
17229         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17230         require AC_C_INLINE.
17231         * modules/pthread (Depends-on): Add sched, time.
17232         (pthread.h): Use AM_V_GEN.
17233
17234 2010-07-13  Bruno Haible  <bruno@clisp.org>
17235
17236         striconveh: Don't malloc memory if the result buffer is sufficient.
17237         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17238         buffer if its size is sufficient.
17239         Reported by Ludovic Courtès <ludo@gnu.org>.
17240
17241 2010-07-13  Bruno Haible  <bruno@clisp.org>
17242
17243         strtod: Add safety check.
17244         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17245
17246 2010-07-12  Bruno Haible  <bruno@clisp.org>
17247
17248         Unify tests that set gl_cv_func_ldexpl_no_libm.
17249         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17250         gl_FUNC_LDEXPL.
17251         (gl_FUNC_LDEXPL): 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_ldexp_no_libm.
17257         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17258         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17259         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17260         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17261         * modules/strtod (Files): Add m4/ldexp.m4.
17262
17263 2010-07-12  Bruno Haible  <bruno@clisp.org>
17264
17265         Unify tests that set gl_cv_func_frexpl_no_libm.
17266         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17267         gl_FUNC_FREXPL_NO_LIBM.
17268         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17270
17271 2010-07-12  Bruno Haible  <bruno@clisp.org>
17272
17273         Unify tests that set gl_cv_func_frexp_no_libm.
17274         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17275         gl_FUNC_FREXP_NO_LIBM.
17276         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17277         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17278
17279 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17280
17281         memcoll: clarify sizes versus lengths, document better, and tweak perf
17282         * lib/memcoll.c (strcoll_loop, memcoll0):
17283         Improve quality of descriptive comments.  Name variables
17284         consistently as to whether they are lengths (which do not include
17285         terminating null) versus sizes (which do).
17286         * lib/xmemcoll.c (xmemcoll0): Likewise.
17287         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17288         returned when s1size == 0; this is easier to compile and saves
17289         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17290
17291 2010-07-12  Bruno Haible  <bruno@clisp.org>
17292
17293         Tests for module '_Exit'.
17294         * modules/_Exit-tests: New file.
17295         * tests/test-_Exit.sh: New file.
17296         * tests/test-_Exit.c: New file.
17297
17298         New module '_Exit'.
17299         * lib/stdlib.in.h (__attribute__): New macro.
17300         (_Exit): New declaration.
17301         * lib/_Exit.c: New file.
17302         * m4/_Exit.m4: New file.
17303         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17304         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17305         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17306         * modules/_Exit: New file.
17307         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17308         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17309
17310 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17311
17312         strtod: make it more-accurate typically, and don't require libm
17313         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17314         Include limits.h.  Don't include string.h.
17315         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17316         (locale_isspace): New function, so that no casts are needed to
17317         check whether *s is a space.
17318         (ldexp): Provide an unused dummy if not available.
17319         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17320         (strtod): Use them.  This implementation prefers to use the
17321         underlying strtod if available, falling back on our own code
17322         only to fix known bugs.  This is more likely to produce an
17323         accurate result.  Also, it avoids the use of libm functions.
17324         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17325         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17326         was absent, but it caused a test failure with coreutils.
17327         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17328         with libm.
17329         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17330         * modules/strtod-tests (Makefile.am): Likewise.
17331
17332 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17333             Bruno Haible  <bruno@clisp.org>
17334
17335         unistr/u8-strchr: Optimize ASCII argument case.
17336         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17337
17338 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17339
17340         (x)memcoll: minor tweaks
17341         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17342         is after the type that it qualifies.
17343         (memcoll0): Likewise.
17344         * lib/memcoll.h (memcoll0): Likewise.
17345         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17346         * lib/xmemcoll.h (xmemcoll0): Likewise.
17347         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17348         differs from memcoll in that the NUL byte is part of the argument.
17349         Omit the abort-checks, as performance is a real issue here.  Plus,
17350         the checks were wrong anyway (an off-by-one error).  Omit local
17351         variable 'diff', as it's a bit clearer that way.
17352         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17353         no longer needed.
17354
17355 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17356
17357         (x)memcoll: speedup when input is known to be NUL delimited
17358         * lib/memcoll.c: Include stdlib.
17359         (memcoll0): New function.
17360         (strcoll_loop): New function, refactored for use in both memcoll
17361         and memcoll0.
17362         * lib/memcoll.h (memcoll0): Add prototype.
17363         * lib/xmemcoll.c (xmemcoll0): New function.
17364         (collate_error): New function, refactored for use in both xmemcoll
17365         and xmemcoll0.
17366         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17367         * m4/memcoll.m4: add inline invocation.
17368
17369 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17370
17371         * build-aux/bootstrap: Remove any local translations
17372         from the translation project synchronization directory,
17373         so that local only translations are not distributed.
17374
17375 2010-07-04  Bruno Haible  <bruno@clisp.org>
17376
17377         fsusage: Clarify which code applies to which platforms.
17378         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17379         platform.
17380         * lib/fsusage.c (get_fs_usage): Likewise.
17381
17382 2010-07-04  Bruno Haible  <bruno@clisp.org>
17383
17384         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17385         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17386         Reported by Martin Lambers <marlam@marlam.de>.
17387
17388 2010-07-04  Jim Meyering  <meyering@redhat.com>
17389
17390         hash: once again explicitly disallow insertion of NULL
17391         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17392         inserting a NULL pointer cannot work with these functions.
17393         Add a comment with details.
17394         This reverts part of the 2010-07-01 commit, 5bef1a35
17395         "hash: extend module to deal with non-pointer keys".
17396
17397 2010-07-01  Bruno Haible  <bruno@clisp.org>
17398
17399         stdbool: Update doc.
17400         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17401         Info from Christian Weisgerber <naddy@mips.inka.de>.
17402
17403 2010-07-01  Jim Meyering  <meyering@redhat.com>
17404
17405         hash: extend module to deal with non-pointer keys
17406         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17407         but that allows insertion of non-pointer entries.
17408         Do not disallow an ENTRY value of NULL.
17409         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17410         * lib/hash.h (hash_insert0): Declare.
17411
17412 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17413
17414         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17415         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17416         not present (i.e. with autoconf 2.59 and when using gettextize, not
17417         gnulib), require AC_GNU_SOURCE instead.
17418
17419 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17420
17421         idpriv-drop: Fix tests.
17422         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17423         not to the test-idpriv-droptemp program.
17424
17425 2010-06-29  Bruno Haible  <bruno@clisp.org>
17426
17427         string: Fix syntax error with g++ 2.96.
17428         * lib/string.in.h (__pure__): Remove definition.
17429         (_GL_ATTRIBUTE_PURE): New macro.
17430         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17431         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17432         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17433
17434 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17435
17436         unitypes: Fix bug introduced on 2010-05-18.
17437         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17438
17439 2010-06-22  Eric Blake  <eblake@redhat.com>
17440
17441         memmem: slight optimization
17442         * lib/str-two-way.h (critical_factorization): Update comments.
17443         Reduce work during factorization phase.
17444         Reported by Carlos Bueno <carlos@bueno.org>.
17445
17446 2010-06-21  Bruno Haible  <bruno@clisp.org>
17447
17448         Fix HAVE_CALLOC_POSIX misnomer.
17449         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17450         !HAVE_CALLOC_POSIX.
17451         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17452         HAVE_CALLOC_POSIX.
17453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17454         instead of HAVE_CALLOC_POSIX.
17455         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17456         HAVE_CALLOC_POSIX.
17457
17458         Use modern idiom for calloc() replacement.
17459         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17460         AC_FUNC_CALLOC.
17461         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17462         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17463         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17464         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17465         (gl_REPLACE_CALLOC): New macro.
17466
17467 2010-06-21  Bruno Haible  <bruno@clisp.org>
17468
17469         Fix HAVE_REALLOC_POSIX misnomer.
17470         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17471         !HAVE_REALLOC_POSIX.
17472         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17473         HAVE_REALLOC_POSIX.
17474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17475         instead of HAVE_REALLOC_POSIX.
17476         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17477         HAVE_REALLOC_POSIX.
17478
17479         Use modern idiom for realloc() replacement.
17480         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17481         AC_FUNC_REALLOC.
17482         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17483         Autoconf's AC_FUNC_REALLOC.
17484         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17485         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17486         (gl_REPLACE_REALLOC): New macro.
17487         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17488
17489 2010-06-21  Bruno Haible  <bruno@clisp.org>
17490
17491         Fix HAVE_MALLOC_POSIX misnomer.
17492         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17493         !HAVE_MALLOC_POSIX.
17494         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17495         HAVE_MALLOC_POSIX.
17496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17497         instead of HAVE_MALLOC_POSIX.
17498         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17499         HAVE_MALLOC_POSIX.
17500
17501         Use modern idiom for malloc() replacement.
17502         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17503         AC_FUNC_MALLOC.
17504         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17505         Autoconf's AC_FUNC_MALLOC.
17506         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17507         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17508         (gl_REPLACE_MALLOC): New macro.
17509         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17510
17511 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17512
17513         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17514         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17515         This macro takes 3 arguments, not 4.
17516
17517 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17518
17519         ipv6: fix detection under mingw
17520         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17521         in6_addr.
17522
17523 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17524
17525         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17526         that strtod() works when cross-compiling to a glibc version known
17527         to work.
17528
17529 2010-06-15  Bruno Haible  <bruno@clisp.org>
17530
17531         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17532
17533 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17534
17535         select: Correct timeout.
17536         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17537
17538 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17539
17540         git-version-gen: init shell var to avoid env var influence
17541         * build-aux/git-version-gen (v): Init shell var to empty.
17542
17543 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17544
17545         priv-set: Don't assume that priv.h exists merely because getppriv does.
17546         See Jan Andersen's bug report about AIX 5L in
17547         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17548         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17549         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17550         * lib/priv-set.h: Likewise.
17551         * tests/test-priv-set.c: Likewise.
17552
17553 2010-06-13  Bruno Haible  <bruno@clisp.org>
17554
17555         relocatable: Make it easier to test whether to install wrappers.
17556         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17557         RELOCATABLE_VIA_WRAPPER.
17558
17559 2010-06-13  Bruno Haible  <bruno@clisp.org>
17560
17561         gnulib-tool: Display specified modules and dependencies differently.
17562         * gnulib-tool (func_show_module_list): New function.
17563         (func_import, func_create_testdir): Invoke it.
17564         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17565
17566 2010-06-13  Bruno Haible  <bruno@clisp.org>
17567
17568         gnulib-tool: Align code of func_import and func_create_testdir.
17569         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17570         specified_modules.
17571
17572 2010-06-12  Jim Meyering  <meyering@redhat.com>
17573
17574         test-inttostr: avoid spurious failure on Solaris 9
17575         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17576         to accept "%ju".  Reported by Bruno Haible.
17577
17578 2010-06-11  Jim Meyering  <meyering@redhat.com>
17579
17580         test-sys_socket: mark variables as used more readably
17581         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17582         as "used" explicitly via (void) statement casts.  This is more
17583         readable than using them in an artificial return expression.
17584         Suggestion from Bruno Haible.
17585
17586 2010-06-11  Bruno Haible  <bruno@clisp.org>
17587
17588         Avoid some more warnings from "gcc -Wwrite-strings".
17589         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17590         to 'const char *'.
17591         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17592         * tests/test-c-strcasestr.c (main): Likewise.
17593         * tests/test-mbscasestr1.c (main): Likewise.
17594         * tests/test-mbscasestr2.c (main): Likewise.
17595         * tests/test-memmem.c (main): Likewise.
17596         * tests/test-strstr.c (main): Likewise.
17597         * tests/test-strcasestr.c (main): Likewise.
17598
17599 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17600
17601         init.sh: change framework_failure_ to fail with status 99, not 1
17602         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17603         automake's parallel-tests rule that this is an unexpected failure,
17604         even if the test is listed in XFAIL_TESTS.
17605
17606 2010-06-11  Jim Meyering  <meyering@redhat.com>
17607
17608         test-inttostr: avoid warnings about 4-6KB literal strings
17609         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17610         Include "macros.h", for its definition of ASSERT.
17611         (CK): s/assert/ASSERT/
17612         * modules/inttostr-tests (Files): Add macros.h.
17613
17614         init.sh: don't use $ME_ or skip_ before they are defined
17615         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17616         their first uses.  Also hoist their companions: warn_, fail_,
17617         framework_failure_, $stderr_fileno.  Prompted by a patch from
17618         Stefano Lattarini.
17619
17620         test-sys_socket: avoid set-but-not-used warnings from gcc
17621         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17622         avoid warning about set-but-not-used variables.
17623
17624         test-xvasprintf: avoid 'const' discard warnings
17625         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17626         "const" when assigning from literal strings.
17627         (test_xasprintf): Add "void" in function argument list to placate
17628         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17629
17630         tests: avoid compilation warnings in argmatch and exclude tests...
17631         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17632         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17633         Since it always exits, declare with the "noreturn" attribute.
17634         * tests/test-argmatch.c: Likewise.
17635
17636         tests: avoid 'const' discard warnings in mbsstr tests
17637         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17638         * tests/test-mbsstr2.c (main): Likewise.
17639
17640         test-verify: avoid warning from gcc's -Wmissing-declarations
17641         * tests/test-verify.c (function): Declare to be static.
17642
17643         test-inttostr.c: include <string.h> for use of strcmp
17644         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17645
17646         test-linkat: avoid failed assertion on "other" architectures
17647         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17648         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17649         sparc: https://bugs.launchpad.net/bugs/591968
17650
17651 2010-06-11  Jim Meyering  <meyering@redhat.com>
17652
17653         printf.m4: avoid autoconf's "Expanded Before Required" warning
17654         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17655         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17656         autoconf warning.
17657
17658 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17659
17660         Replacement header templates are now named with ".in", not "_".
17661         * doc/gnulib-intro.texi: Correct.
17662
17663 2010-06-10  Jim Meyering  <meyering@redhat.com>
17664
17665         inttostr-tests: depend on snprintf, not snprintf-posix
17666         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17667         snprintf-posix, to avoid this aclocal failure:
17668           missing file gnulib-tests/vasnprintf.c
17669           configure.ac:45: error: expected source file, required through \
17670           AC_LIBSOURCES, not found
17671
17672 2010-06-10  Jim Meyering  <meyering@redhat.com>
17673
17674         inttostr: add a new function, inttostr, and tests
17675         The namesake function was not available.  The existence of the
17676         template file, inttostr.c makes its addition nontrivial.
17677         * lib/anytostr.c: Rename from inttostr.c.
17678         (anytostr): Rename from inttostr.
17679         * lib/inttostr.c: New file.
17680         * modules/inttostr (Files): Add anytostr.c.
17681         (Makefile.am): Set lib_SOURCES instead of ...
17682         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17683         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17684         * lib/offtostr.c: Likewise.
17685         * lib/uinttostr.c: Likewise.
17686         * lib/umaxtostr.c: Likewise.
17687         * modules/inttostr-tests: New file.
17688         * tests/test-inttostr.c: New file.  Test these functions.
17689
17690 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17691             Bruno Haible  <bruno@clisp.org>
17692
17693         Add "Extending Gnulib" chapter to manual.
17694         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17695         chapter.
17696         (Extending Gnulib): New chapter.
17697         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17698         chapter.
17699
17700 2010-06-09  Bruno Haible  <bruno@clisp.org>
17701
17702         Avoid relocwrapper link errors due to gnulib replacement functions.
17703         * lib/areadlink.c: Use the system's malloc, realloc functions.
17704         (areadlink): Set errno to ENOMEM explicitly.
17705         * modules/areadlink (Depends-on): Remove malloc-posix.
17706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17707
17708 2010-06-09  Bruno Haible  <bruno@clisp.org>
17709
17710         Avoid relocwrapper link errors due to gnulib replacement functions.
17711         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17712         * lib/malloca.c: Likewise.
17713         * lib/relocatable.c: Likewise.
17714         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17715         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17716         * lib/setenv.c: Use the system's malloc, realloc functions.
17717         * lib/strerror.c: Use the system's sprintf function.
17718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17719
17720 2010-06-04  Bruno Haible  <bruno@clisp.org>
17721
17722         Prefer documented low-level autoconf macro names.
17723         * m4/lib-link.m4: Use m4_translit instead of translit.
17724         * m4/environ.m4: Likewise.
17725         * m4/mathfunc.m4: Likewise.
17726         * m4/onceonly.m4: Likewise.
17727         * m4/stdint.m4: Likewise.
17728         Suggested by Eric Blake.
17729
17730 2010-06-04  Martin Lambers  <marlam@marlam.de>
17731             Bruno Haible  <bruno@clisp.org>
17732
17733         havelib: Allow library names with '+' characters.
17734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17735         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17736
17737 2010-06-09  Bruno Haible  <bruno@clisp.org>
17738
17739         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17740         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17741         realloc failed.
17742
17743 2010-06-08  Peter Simons  <simons@cryp.to>
17744
17745         maint.mk: make the news-check rule more configurable
17746         * top/maint.mk (news-check-lines-spec): New variable.
17747         (news-check): Use "sed -n 1,10p" in place of "head".
17748
17749 2010-06-07  Jim Meyering  <meyering@redhat.com>
17750
17751         do-release-commit-and-tag: fix typo in --help
17752         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17753
17754         regex: avoid new dead-code warning with gcc-4.6.0
17755         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17756         if-block containing a while-loop.  It's been unused for at least
17757         5 years.
17758
17759 2010-06-05  Bruno Haible  <bruno@clisp.org>
17760
17761         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17762         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17763
17764 2010-06-04  Bruno Haible  <bruno@clisp.org>
17765
17766         Update to GNU gettext 0.18.1.
17767         * modules/gettext (configure.ac): Require gettext infrastructure from
17768         version 0.18.1.
17769
17770 2010-06-03  Bruno Haible  <bruno@clisp.org>
17771
17772         Don't use AC_LIBOBJ with file names in subdirectories.
17773         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17774         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17775         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17776         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17777         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17778         gl_LIBUNISTRING_LIBSOURCE.
17779         (Makefile.am): Augment lib_SOURCES here, conditionally.
17780         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17781
17782 2010-06-03  Bruno Haible  <bruno@clisp.org>
17783
17784         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17785         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17786         expansion does not end with a newline.
17787         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17788         unnecessary newline.
17789
17790 2010-06-03  Bruno Haible  <bruno@clisp.org>
17791
17792         Reduce dependencies.
17793         * tests/test-quotearg.h: New file, extracted from
17794         tests/test-quotearg.c.
17795         * tests/test-quotearg-simple.c: New file, extracted from
17796         tests/test-quotearg.c.
17797         * tests/test-quotearg.c: Don't include <ctype.h>.
17798         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17799         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17800         use_quote_double_quotes, use_quotearg_colon): Moved to
17801         tests/test-quotearg.h.
17802         (results_g, flag_results, custom_quotes, custom_results): Moved
17803         to tests/test-quotearg-simple.c.
17804         (main): Moved the part that does not depend on gettext to
17805         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17806         performed.
17807         * modules/quotearg-simple: New file.
17808         * modules/quotearg-simple-tests: New file.
17809         * modules/quotearg (Depends-on): Add quotearg-simple.
17810         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17811         (Files): Add tests/test-quotearg.h.
17812         Reported by Paolo Bonzini.
17813
17814 2010-06-03  Bruno Haible  <bruno@clisp.org>
17815
17816         Reduce dependencies.
17817         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17818
17819 2010-06-03  Bruno Haible  <bruno@clisp.org>
17820
17821         time: Undefine more broken macros.
17822         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17823         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17824         Reported by Eric Blake.
17825
17826 2010-06-03  Bruno Haible  <bruno@clisp.org>
17827
17828         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17829         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17830         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17831         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17832         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17833         Reported by Ludovic Courtès <ludo@gnu.org>.
17834
17835 2010-06-02  Eric Blake  <eblake@redhat.com>
17836
17837         time: work with mingw + pthreads-win32 library
17838         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17839         if timespec is defined only in pthread.h.
17840         * modules/time (Makefile.am): Substitute it.
17841         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17842         <pthread.h>, when needed.
17843         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17844         from the library.
17845
17846 2010-05-31  Bruno Haible  <bruno@clisp.org>
17847
17848         Avoid expanding two macros in the wrong order.
17849         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17850         gl_LIBUNISTRING if it is defined.
17851         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17852         autoconf >= 2.64.
17853         Reported by Ludovic Courtès <ludo@gnu.org>.
17854
17855 2010-05-27  Jim Meyering  <meyering@redhat.com>
17856
17857         maint.mk: also prohibit "#undef" of always-defined symbols
17858         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17859         Allow more than one space before the symbol name.
17860         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17861         the regexp uses alternation.
17862
17863 2010-05-26  Eric Blake  <eblake@redhat.com>
17864
17865         maint.mk: avoid echo -e
17866         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17867         Convert all uses of echo -* to printf.
17868         Reported by Matthias Bolte.
17869
17870 2010-05-25  Bruno Haible  <bruno@clisp.org>
17871
17872         Update to GNU gettext 0.18, part 2.
17873         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17874         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17875
17876 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17877
17878         Add missing include in test-pwrite.c.
17879         * tests/test-pwrite.c: Include string.h, for strcmp.
17880
17881 2010-05-24  Bruno Haible  <bruno@clisp.org>
17882
17883         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17884
17885 2010-05-24  Bruno Haible  <bruno@clisp.org>
17886
17887         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17888         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17889         iconveh_error argument.
17890         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17891         U_STRCONV_TO_LOCALE.
17892         * lib/unistr/u16-strcoll.c: Likewise.
17893         * lib/unistr/u32-strcoll.c: Likewise.
17894         * modules/unistr/u8-strcoll (Depends-on): Add
17895         uniconv/u8-strconv-to-enc, localcharset. Remove
17896         uniconv/u8-strconv-to-locale.
17897         (configure.ac): Bump version number.
17898         * modules/unistr/u16-strcoll (Depends-on): Add
17899         uniconv/u16-strconv-to-enc, localcharset. Remove
17900         uniconv/u16-strconv-to-locale.
17901         (configure.ac): Bump version number.
17902         * modules/unistr/u32-strcoll (Depends-on): Add
17903         uniconv/u32-strconv-to-enc, localcharset. Remove
17904         uniconv/u32-strconv-to-locale.
17905         (configure.ac): Bump version number.
17906
17907 2010-05-24  Bruno Haible  <bruno@clisp.org>
17908
17909         Avoid a test failure on NetBSD 5.0.
17910         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17911         an iconv() bug.
17912
17913 2010-05-24  Bruno Haible  <bruno@clisp.org>
17914
17915         Adjust #include directive style.
17916         * modules/regex (Includes): Recommend to write <regex.h>.
17917
17918 2010-05-24  Bruno Haible  <bruno@clisp.org>
17919
17920         regex: Don't require alloca.
17921         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17922         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17923         only inside if (0).
17924
17925 2010-05-23  Jim Meyering  <meyering@redhat.com>
17926
17927         test-renameat.c: include <sys/stat.h>
17928         * tests/test-renameat.c: Include <sys/stat.h>; required for
17929         definition of S_IS* macros.
17930
17931 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17932
17933         Update maintainer documentation for 'relocatable-prog' module.
17934         * doc/relocatable-maint.texi: Update.
17935         Comments by Bruno Haible.
17936
17937 2010-05-23  Bruno Haible  <bruno@clisp.org>
17938
17939         git-merge-changelog: Enable --split-merged-entry by default.
17940         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17941         (usage): Don't mention this option any more.
17942         Reported by Ralf Wildenhues.
17943
17944 2010-05-23  Jim Meyering  <meyering@redhat.com>
17945
17946         test-pwrite: do not leave behind a test file named "out"
17947         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17948         The trivial-looking use of init.sh is really necessary.
17949         It ensures that the temporary file, "out", is created in
17950         a temporary directory, and removed upon termination.
17951         * tests/test-pwrite.sh: Re-add file.
17952         * modules/pwrite-tests: Reference it.
17953
17954 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17955
17956         Fix output redirection buglet in init.sh.
17957         * tests/init.sh: Fix redirection of stderr.
17958
17959 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17960
17961         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17962
17963 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17964
17965         * modules/valgrind-tests: New file.
17966         * m4/valgrind-tests.m4: New file.
17967         * doc/valgrind-tests.texi: New file.
17968         * doc/gnulib.texi (Running self-tests under valgrind): New
17969         section.
17970
17971 2010-05-19  Bruno Haible  <bruno@clisp.org>
17972
17973         Clean up dead code in recent commit.
17974         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17975         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17976         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17977         Suggested by Paolo Bonzini.
17978
17979 2010-05-19  Bruno Haible  <bruno@clisp.org>
17980
17981         Avoid valgrind error reports from libunistring.
17982         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17983         * modules/libunistring (Files): Add it.
17984         * modules/libunistring-optional (Files): Likewise.
17985
17986 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17987             Bruno Haible  <bruno@clisp.org>
17988
17989         New module 'libunistring-optional'.
17990         * modules/libunistring-optional: New file.
17991         * m4/libunistring-base.m4: New file.
17992         * m4/libunistring-optional.m4: New file.
17993         * lib/unicase.in.h: Renamed from lib/unicase.h.
17994         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17995         * lib/unictype.in.h: Renamed from lib/unictype.h.
17996         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17997         * lib/uniname.in.h: Renamed from lib/uniname.h.
17998         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17999         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18000         * lib/unistr.in.h: Renamed from lib/unistr.h.
18001         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18002         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18003         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18004         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18005         gl_LIBUNISTRING. If the library was found, determine the installed
18006         version and set LIBUNISTRING_VERSION.
18007         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18008         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18009         handle a configuration option --with-included-libunistring.
18010         * modules/libunistring (Files): Add m4/absolute-header.m4.
18011         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18012         Add m4/libunistring-base.m4.
18013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18014         (Makefile.am): Build unicase.h from unicase.in.h.
18015         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18016         Add m4/libunistring-base.m4.
18017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18018         (Makefile.am): Build uniconv.h from uniconv.in.h.
18019         * modules/unictype/base (Files): Use unictype.in.h instead of
18020         unictype.h. Add m4/libunistring-base.m4.
18021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18022         (Makefile.am): Build unictype.h from unictype.in.h.
18023         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18024         Add m4/libunistring-base.m4.
18025         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18026         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18027         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18028         Add m4/libunistring-base.m4.
18029         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18030         (Makefile.am): Build uniname.h from uniname.in.h.
18031         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18032         Add m4/libunistring-base.m4.
18033         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18034         (Makefile.am): Build uninorm.h from uninorm.in.h.
18035         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18036         unistdio.h. Add m4/libunistring-base.m4.
18037         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18038         (Makefile.am): Build unistdio.h from unistdio.in.h.
18039         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18040         Add m4/libunistring-base.m4.
18041         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18042         (Makefile.am): Build unistr.h from unistr.in.h.
18043         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18044         Add m4/libunistring-base.m4.
18045         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18046         (Makefile.am): Build unitypes.h from unitypes.in.h.
18047         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18048         Add m4/libunistring-base.m4.
18049         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18050         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18051         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18052         uniwidth.h. Add m4/libunistring-base.m4.
18053         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18054         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18055         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18056         instead of augmenting lib_SOURCES.
18057         * modules/unicase/empty-suffix-context: Likewise.
18058         * modules/unicase/locale-language: Likewise.
18059         * modules/unicase/tolower: Likewise.
18060         * modules/unicase/totitle: Likewise.
18061         * modules/unicase/toupper: Likewise.
18062         * modules/unicase/u8-casecmp: Likewise.
18063         * modules/unicase/u8-casecoll: Likewise.
18064         * modules/unicase/u8-casefold: Likewise.
18065         * modules/unicase/u8-casexfrm: Likewise.
18066         * modules/unicase/u8-ct-casefold: Likewise.
18067         * modules/unicase/u8-ct-tolower: Likewise.
18068         * modules/unicase/u8-ct-totitle: Likewise.
18069         * modules/unicase/u8-ct-toupper: Likewise.
18070         * modules/unicase/u8-is-cased: Likewise.
18071         * modules/unicase/u8-is-casefolded: Likewise.
18072         * modules/unicase/u8-is-lowercase: Likewise.
18073         * modules/unicase/u8-is-titlecase: Likewise.
18074         * modules/unicase/u8-is-uppercase: Likewise.
18075         * modules/unicase/u8-prefix-context: Likewise.
18076         * modules/unicase/u8-suffix-context: Likewise.
18077         * modules/unicase/u8-tolower: Likewise.
18078         * modules/unicase/u8-totitle: Likewise.
18079         * modules/unicase/u8-toupper: Likewise.
18080         * modules/unicase/u16-casecmp: Likewise.
18081         * modules/unicase/u16-casecoll: Likewise.
18082         * modules/unicase/u16-casefold: Likewise.
18083         * modules/unicase/u16-casexfrm: Likewise.
18084         * modules/unicase/u16-ct-casefold: Likewise.
18085         * modules/unicase/u16-ct-tolower: Likewise.
18086         * modules/unicase/u16-ct-totitle: Likewise.
18087         * modules/unicase/u16-ct-toupper: Likewise.
18088         * modules/unicase/u16-is-cased: Likewise.
18089         * modules/unicase/u16-is-casefolded: Likewise.
18090         * modules/unicase/u16-is-lowercase: Likewise.
18091         * modules/unicase/u16-is-titlecase: Likewise.
18092         * modules/unicase/u16-is-uppercase: Likewise.
18093         * modules/unicase/u16-prefix-context: Likewise.
18094         * modules/unicase/u16-suffix-context: Likewise.
18095         * modules/unicase/u16-tolower: Likewise.
18096         * modules/unicase/u16-totitle: Likewise.
18097         * modules/unicase/u16-toupper: Likewise.
18098         * modules/unicase/u32-casecmp: Likewise.
18099         * modules/unicase/u32-casecoll: Likewise.
18100         * modules/unicase/u32-casefold: Likewise.
18101         * modules/unicase/u32-casexfrm: Likewise.
18102         * modules/unicase/u32-ct-casefold: Likewise.
18103         * modules/unicase/u32-ct-tolower: Likewise.
18104         * modules/unicase/u32-ct-totitle: Likewise.
18105         * modules/unicase/u32-ct-toupper: Likewise.
18106         * modules/unicase/u32-is-cased: Likewise.
18107         * modules/unicase/u32-is-casefolded: Likewise.
18108         * modules/unicase/u32-is-lowercase: Likewise.
18109         * modules/unicase/u32-is-titlecase: Likewise.
18110         * modules/unicase/u32-is-uppercase: Likewise.
18111         * modules/unicase/u32-prefix-context: Likewise.
18112         * modules/unicase/u32-suffix-context: Likewise.
18113         * modules/unicase/u32-tolower: Likewise.
18114         * modules/unicase/u32-totitle: Likewise.
18115         * modules/unicase/u32-toupper: Likewise.
18116         * modules/unicase/ulc-casecmp: Likewise.
18117         * modules/unicase/ulc-casecoll: Likewise.
18118         * modules/unicase/ulc-casexfrm: Likewise.
18119         * modules/uniconv/u8-conv-from-enc: Likewise.
18120         * modules/uniconv/u8-conv-to-enc: Likewise.
18121         * modules/uniconv/u8-strconv-from-enc: Likewise.
18122         * modules/uniconv/u8-strconv-from-locale: Likewise.
18123         * modules/uniconv/u8-strconv-to-enc: Likewise.
18124         * modules/uniconv/u8-strconv-to-locale: Likewise.
18125         * modules/uniconv/u16-conv-from-enc: Likewise.
18126         * modules/uniconv/u16-conv-to-enc: Likewise.
18127         * modules/uniconv/u16-strconv-from-enc: Likewise.
18128         * modules/uniconv/u16-strconv-from-locale: Likewise.
18129         * modules/uniconv/u16-strconv-to-enc: Likewise.
18130         * modules/uniconv/u16-strconv-to-locale: Likewise.
18131         * modules/uniconv/u32-conv-from-enc: Likewise.
18132         * modules/uniconv/u32-conv-to-enc: Likewise.
18133         * modules/uniconv/u32-strconv-from-enc: Likewise.
18134         * modules/uniconv/u32-strconv-from-locale: Likewise.
18135         * modules/uniconv/u32-strconv-to-enc: Likewise.
18136         * modules/uniconv/u32-strconv-to-locale: Likewise.
18137         * modules/unictype/bidicategory-byname: Likewise.
18138         * modules/unictype/bidicategory-name: Likewise.
18139         * modules/unictype/bidicategory-of: Likewise.
18140         * modules/unictype/bidicategory-test: Likewise.
18141         * modules/unictype/block-list: Likewise.
18142         * modules/unictype/block-test: Likewise.
18143         * modules/unictype/category-C: Likewise.
18144         * modules/unictype/category-Cc: Likewise.
18145         * modules/unictype/category-Cf: Likewise.
18146         * modules/unictype/category-Cn: Likewise.
18147         * modules/unictype/category-Co: Likewise.
18148         * modules/unictype/category-Cs: Likewise.
18149         * modules/unictype/category-L: Likewise.
18150         * modules/unictype/category-Ll: Likewise.
18151         * modules/unictype/category-Lm: Likewise.
18152         * modules/unictype/category-Lo: Likewise.
18153         * modules/unictype/category-Lt: Likewise.
18154         * modules/unictype/category-Lu: Likewise.
18155         * modules/unictype/category-M: Likewise.
18156         * modules/unictype/category-Mc: Likewise.
18157         * modules/unictype/category-Me: Likewise.
18158         * modules/unictype/category-Mn: Likewise.
18159         * modules/unictype/category-N: Likewise.
18160         * modules/unictype/category-Nd: Likewise.
18161         * modules/unictype/category-Nl: Likewise.
18162         * modules/unictype/category-No: Likewise.
18163         * modules/unictype/category-P: Likewise.
18164         * modules/unictype/category-Pc: Likewise.
18165         * modules/unictype/category-Pd: Likewise.
18166         * modules/unictype/category-Pe: Likewise.
18167         * modules/unictype/category-Pf: Likewise.
18168         * modules/unictype/category-Pi: Likewise.
18169         * modules/unictype/category-Po: Likewise.
18170         * modules/unictype/category-Ps: Likewise.
18171         * modules/unictype/category-S: Likewise.
18172         * modules/unictype/category-Sc: Likewise.
18173         * modules/unictype/category-Sk: Likewise.
18174         * modules/unictype/category-Sm: Likewise.
18175         * modules/unictype/category-So: Likewise.
18176         * modules/unictype/category-Z: Likewise.
18177         * modules/unictype/category-Zl: Likewise.
18178         * modules/unictype/category-Zp: Likewise.
18179         * modules/unictype/category-Zs: Likewise.
18180         * modules/unictype/category-and: Likewise.
18181         * modules/unictype/category-and-not: Likewise.
18182         * modules/unictype/category-byname: Likewise.
18183         * modules/unictype/category-name: Likewise.
18184         * modules/unictype/category-none: Likewise.
18185         * modules/unictype/category-of: Likewise.
18186         * modules/unictype/category-or: Likewise.
18187         * modules/unictype/category-test: Likewise.
18188         * modules/unictype/combining-class: Likewise.
18189         * modules/unictype/ctype-alnum: Likewise.
18190         * modules/unictype/ctype-alpha: Likewise.
18191         * modules/unictype/ctype-blank: Likewise.
18192         * modules/unictype/ctype-cntrl: Likewise.
18193         * modules/unictype/ctype-digit: Likewise.
18194         * modules/unictype/ctype-graph: Likewise.
18195         * modules/unictype/ctype-lower: Likewise.
18196         * modules/unictype/ctype-print: Likewise.
18197         * modules/unictype/ctype-punct: Likewise.
18198         * modules/unictype/ctype-space: Likewise.
18199         * modules/unictype/ctype-upper: Likewise.
18200         * modules/unictype/ctype-xdigit: Likewise.
18201         * modules/unictype/decimal-digit: Likewise.
18202         * modules/unictype/digit: Likewise.
18203         * modules/unictype/mirror: Likewise.
18204         * modules/unictype/numeric: Likewise.
18205         * modules/unictype/property-alphabetic: Likewise.
18206         * modules/unictype/property-ascii-hex-digit: Likewise.
18207         * modules/unictype/property-bidi-arabic-digit: Likewise.
18208         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18209         * modules/unictype/property-bidi-block-separator: Likewise.
18210         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18211         * modules/unictype/property-bidi-common-separator: Likewise.
18212         * modules/unictype/property-bidi-control: Likewise.
18213         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18214         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18215         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18216         * modules/unictype/property-bidi-european-digit: Likewise.
18217         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18218         * modules/unictype/property-bidi-left-to-right: Likewise.
18219         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18220         * modules/unictype/property-bidi-other-neutral: Likewise.
18221         * modules/unictype/property-bidi-pdf: Likewise.
18222         * modules/unictype/property-bidi-segment-separator: Likewise.
18223         * modules/unictype/property-bidi-whitespace: Likewise.
18224         * modules/unictype/property-byname: Likewise.
18225         * modules/unictype/property-combining: Likewise.
18226         * modules/unictype/property-composite: Likewise.
18227         * modules/unictype/property-currency-symbol: Likewise.
18228         * modules/unictype/property-dash: Likewise.
18229         * modules/unictype/property-decimal-digit: Likewise.
18230         * modules/unictype/property-default-ignorable-code-point: Likewise.
18231         * modules/unictype/property-deprecated: Likewise.
18232         * modules/unictype/property-diacritic: Likewise.
18233         * modules/unictype/property-extender: Likewise.
18234         * modules/unictype/property-format-control: Likewise.
18235         * modules/unictype/property-grapheme-base: Likewise.
18236         * modules/unictype/property-grapheme-extend: Likewise.
18237         * modules/unictype/property-grapheme-link: Likewise.
18238         * modules/unictype/property-hex-digit: Likewise.
18239         * modules/unictype/property-hyphen: Likewise.
18240         * modules/unictype/property-id-continue: Likewise.
18241         * modules/unictype/property-id-start: Likewise.
18242         * modules/unictype/property-ideographic: Likewise.
18243         * modules/unictype/property-ids-binary-operator: Likewise.
18244         * modules/unictype/property-ids-trinary-operator: Likewise.
18245         * modules/unictype/property-ignorable-control: Likewise.
18246         * modules/unictype/property-iso-control: Likewise.
18247         * modules/unictype/property-join-control: Likewise.
18248         * modules/unictype/property-left-of-pair: Likewise.
18249         * modules/unictype/property-line-separator: Likewise.
18250         * modules/unictype/property-logical-order-exception: Likewise.
18251         * modules/unictype/property-lowercase: Likewise.
18252         * modules/unictype/property-math: Likewise.
18253         * modules/unictype/property-non-break: Likewise.
18254         * modules/unictype/property-not-a-character: Likewise.
18255         * modules/unictype/property-numeric: Likewise.
18256         * modules/unictype/property-other-alphabetic: Likewise.
18257         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18258         * modules/unictype/property-other-grapheme-extend: Likewise.
18259         * modules/unictype/property-other-id-continue: Likewise.
18260         * modules/unictype/property-other-id-start: Likewise.
18261         * modules/unictype/property-other-lowercase: Likewise.
18262         * modules/unictype/property-other-math: Likewise.
18263         * modules/unictype/property-other-uppercase: Likewise.
18264         * modules/unictype/property-paired-punctuation: Likewise.
18265         * modules/unictype/property-paragraph-separator: Likewise.
18266         * modules/unictype/property-pattern-syntax: Likewise.
18267         * modules/unictype/property-pattern-white-space: Likewise.
18268         * modules/unictype/property-private-use: Likewise.
18269         * modules/unictype/property-punctuation: Likewise.
18270         * modules/unictype/property-quotation-mark: Likewise.
18271         * modules/unictype/property-radical: Likewise.
18272         * modules/unictype/property-sentence-terminal: Likewise.
18273         * modules/unictype/property-soft-dotted: Likewise.
18274         * modules/unictype/property-space: Likewise.
18275         * modules/unictype/property-terminal-punctuation: Likewise.
18276         * modules/unictype/property-test: Likewise.
18277         * modules/unictype/property-titlecase: Likewise.
18278         * modules/unictype/property-unassigned-code-value: Likewise.
18279         * modules/unictype/property-unified-ideograph: Likewise.
18280         * modules/unictype/property-uppercase: Likewise.
18281         * modules/unictype/property-variation-selector: Likewise.
18282         * modules/unictype/property-white-space: Likewise.
18283         * modules/unictype/property-xid-continue: Likewise.
18284         * modules/unictype/property-xid-start: Likewise.
18285         * modules/unictype/property-zero-width: Likewise.
18286         * modules/unictype/scripts: Likewise.
18287         * modules/unictype/syntax-c-ident: Likewise.
18288         * modules/unictype/syntax-c-whitespace: Likewise.
18289         * modules/unictype/syntax-java-ident: Likewise.
18290         * modules/unictype/syntax-java-whitespace: Likewise.
18291         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18292         * modules/unilbrk/u8-width-linebreaks: Likewise.
18293         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18294         * modules/unilbrk/u16-width-linebreaks: Likewise.
18295         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18296         * modules/unilbrk/u32-width-linebreaks: Likewise.
18297         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18298         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18299         * modules/uniname/uniname: Likewise.
18300         * modules/uninorm/canonical-decomposition: Likewise.
18301         * modules/uninorm/composition: Likewise.
18302         * modules/uninorm/decomposing-form: Likewise.
18303         * modules/uninorm/decomposition: Likewise.
18304         * modules/uninorm/filter: Likewise.
18305         * modules/uninorm/nfc: Likewise.
18306         * modules/uninorm/nfd: Likewise.
18307         * modules/uninorm/nfkc: Likewise.
18308         * modules/uninorm/nfkd: Likewise.
18309         * modules/uninorm/u8-normalize: Likewise.
18310         * modules/uninorm/u8-normcmp: Likewise.
18311         * modules/uninorm/u8-normcoll: Likewise.
18312         * modules/uninorm/u8-normxfrm: Likewise.
18313         * modules/uninorm/u16-normalize: Likewise.
18314         * modules/uninorm/u16-normcmp: Likewise.
18315         * modules/uninorm/u16-normcoll: Likewise.
18316         * modules/uninorm/u16-normxfrm: Likewise.
18317         * modules/uninorm/u32-normalize: Likewise.
18318         * modules/uninorm/u32-normcmp: Likewise.
18319         * modules/uninorm/u32-normcoll: Likewise.
18320         * modules/uninorm/u32-normxfrm: Likewise.
18321         * modules/unistdio/u8-asnprintf: Likewise.
18322         * modules/unistdio/u8-asprintf: Likewise.
18323         * modules/unistdio/u8-snprintf: Likewise.
18324         * modules/unistdio/u8-sprintf: Likewise.
18325         * modules/unistdio/u8-u8-asnprintf: Likewise.
18326         * modules/unistdio/u8-u8-asprintf: Likewise.
18327         * modules/unistdio/u8-u8-snprintf: Likewise.
18328         * modules/unistdio/u8-u8-sprintf: Likewise.
18329         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18330         * modules/unistdio/u8-u8-vasprintf: Likewise.
18331         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18332         * modules/unistdio/u8-u8-vsprintf: Likewise.
18333         * modules/unistdio/u8-vasnprintf: Likewise.
18334         * modules/unistdio/u8-vasprintf: Likewise.
18335         * modules/unistdio/u8-vsnprintf: Likewise.
18336         * modules/unistdio/u8-vsprintf: Likewise.
18337         * modules/unistdio/u16-asnprintf: Likewise.
18338         * modules/unistdio/u16-asprintf: Likewise.
18339         * modules/unistdio/u16-snprintf: Likewise.
18340         * modules/unistdio/u16-sprintf: Likewise.
18341         * modules/unistdio/u16-u16-asnprintf: Likewise.
18342         * modules/unistdio/u16-u16-asprintf: Likewise.
18343         * modules/unistdio/u16-u16-snprintf: Likewise.
18344         * modules/unistdio/u16-u16-sprintf: Likewise.
18345         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18346         * modules/unistdio/u16-u16-vasprintf: Likewise.
18347         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18348         * modules/unistdio/u16-u16-vsprintf: Likewise.
18349         * modules/unistdio/u16-vasnprintf: Likewise.
18350         * modules/unistdio/u16-vasprintf: Likewise.
18351         * modules/unistdio/u16-vsnprintf: Likewise.
18352         * modules/unistdio/u16-vsprintf: Likewise.
18353         * modules/unistdio/u32-asnprintf: Likewise.
18354         * modules/unistdio/u32-asprintf: Likewise.
18355         * modules/unistdio/u32-snprintf: Likewise.
18356         * modules/unistdio/u32-sprintf: Likewise.
18357         * modules/unistdio/u32-u32-asnprintf: Likewise.
18358         * modules/unistdio/u32-u32-asprintf: Likewise.
18359         * modules/unistdio/u32-u32-snprintf: Likewise.
18360         * modules/unistdio/u32-u32-sprintf: Likewise.
18361         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18362         * modules/unistdio/u32-u32-vasprintf: Likewise.
18363         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18364         * modules/unistdio/u32-u32-vsprintf: Likewise.
18365         * modules/unistdio/u32-vasnprintf: Likewise.
18366         * modules/unistdio/u32-vasprintf: Likewise.
18367         * modules/unistdio/u32-vsnprintf: Likewise.
18368         * modules/unistdio/u32-vsprintf: Likewise.
18369         * modules/unistdio/ulc-asnprintf: Likewise.
18370         * modules/unistdio/ulc-asprintf: Likewise.
18371         * modules/unistdio/ulc-fprintf: Likewise.
18372         * modules/unistdio/ulc-snprintf: Likewise.
18373         * modules/unistdio/ulc-sprintf: Likewise.
18374         * modules/unistdio/ulc-vasnprintf: Likewise.
18375         * modules/unistdio/ulc-vasprintf: Likewise.
18376         * modules/unistdio/ulc-vfprintf: Likewise.
18377         * modules/unistdio/ulc-vsnprintf: Likewise.
18378         * modules/unistdio/ulc-vsprintf: Likewise.
18379         * modules/unistr/u8-check: Likewise.
18380         * modules/unistr/u8-chr: Likewise.
18381         * modules/unistr/u8-cmp: Likewise.
18382         * modules/unistr/u8-cmp2: Likewise.
18383         * modules/unistr/u8-cpy: Likewise.
18384         * modules/unistr/u8-cpy-alloc: Likewise.
18385         * modules/unistr/u8-endswith: Likewise.
18386         * modules/unistr/u8-mblen: Likewise.
18387         * modules/unistr/u8-mbsnlen: Likewise.
18388         * modules/unistr/u8-mbtouc: Likewise.
18389         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18390         * modules/unistr/u8-mbtoucr: Likewise.
18391         * modules/unistr/u8-move: Likewise.
18392         * modules/unistr/u8-next: Likewise.
18393         * modules/unistr/u8-prev: Likewise.
18394         * modules/unistr/u8-set: Likewise.
18395         * modules/unistr/u8-startswith: Likewise.
18396         * modules/unistr/u8-stpcpy: Likewise.
18397         * modules/unistr/u8-stpncpy: Likewise.
18398         * modules/unistr/u8-strcat: Likewise.
18399         * modules/unistr/u8-strchr: Likewise.
18400         * modules/unistr/u8-strcmp: Likewise.
18401         * modules/unistr/u8-strcoll: Likewise.
18402         * modules/unistr/u8-strcpy: Likewise.
18403         * modules/unistr/u8-strcspn: Likewise.
18404         * modules/unistr/u8-strdup: Likewise.
18405         * modules/unistr/u8-strlen: Likewise.
18406         * modules/unistr/u8-strmblen: Likewise.
18407         * modules/unistr/u8-strmbtouc: Likewise.
18408         * modules/unistr/u8-strncat: Likewise.
18409         * modules/unistr/u8-strncmp: Likewise.
18410         * modules/unistr/u8-strncpy: Likewise.
18411         * modules/unistr/u8-strnlen: Likewise.
18412         * modules/unistr/u8-strpbrk: Likewise.
18413         * modules/unistr/u8-strrchr: Likewise.
18414         * modules/unistr/u8-strspn: Likewise.
18415         * modules/unistr/u8-strstr: Likewise.
18416         * modules/unistr/u8-strtok: Likewise.
18417         * modules/unistr/u8-to-u16: Likewise.
18418         * modules/unistr/u8-to-u32: Likewise.
18419         * modules/unistr/u8-uctomb: Likewise.
18420         * modules/unistr/u16-check: Likewise.
18421         * modules/unistr/u16-chr: Likewise.
18422         * modules/unistr/u16-cmp: Likewise.
18423         * modules/unistr/u16-cmp2: Likewise.
18424         * modules/unistr/u16-cpy: Likewise.
18425         * modules/unistr/u16-cpy-alloc: Likewise.
18426         * modules/unistr/u16-endswith: Likewise.
18427         * modules/unistr/u16-mblen: Likewise.
18428         * modules/unistr/u16-mbsnlen: Likewise.
18429         * modules/unistr/u16-mbtouc: Likewise.
18430         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18431         * modules/unistr/u16-mbtoucr: Likewise.
18432         * modules/unistr/u16-move: Likewise.
18433         * modules/unistr/u16-next: Likewise.
18434         * modules/unistr/u16-prev: Likewise.
18435         * modules/unistr/u16-set: Likewise.
18436         * modules/unistr/u16-startswith: Likewise.
18437         * modules/unistr/u16-stpcpy: Likewise.
18438         * modules/unistr/u16-stpncpy: Likewise.
18439         * modules/unistr/u16-strcat: Likewise.
18440         * modules/unistr/u16-strchr: Likewise.
18441         * modules/unistr/u16-strcmp: Likewise.
18442         * modules/unistr/u16-strcoll: Likewise.
18443         * modules/unistr/u16-strcpy: Likewise.
18444         * modules/unistr/u16-strcspn: Likewise.
18445         * modules/unistr/u16-strdup: Likewise.
18446         * modules/unistr/u16-strlen: Likewise.
18447         * modules/unistr/u16-strmblen: Likewise.
18448         * modules/unistr/u16-strmbtouc: Likewise.
18449         * modules/unistr/u16-strncat: Likewise.
18450         * modules/unistr/u16-strncmp: Likewise.
18451         * modules/unistr/u16-strncpy: Likewise.
18452         * modules/unistr/u16-strnlen: Likewise.
18453         * modules/unistr/u16-strpbrk: Likewise.
18454         * modules/unistr/u16-strrchr: Likewise.
18455         * modules/unistr/u16-strspn: Likewise.
18456         * modules/unistr/u16-strstr: Likewise.
18457         * modules/unistr/u16-strtok: Likewise.
18458         * modules/unistr/u16-to-u32: Likewise.
18459         * modules/unistr/u16-to-u8: Likewise.
18460         * modules/unistr/u16-uctomb: Likewise.
18461         * modules/unistr/u32-check: Likewise.
18462         * modules/unistr/u32-chr: Likewise.
18463         * modules/unistr/u32-cmp: Likewise.
18464         * modules/unistr/u32-cmp2: Likewise.
18465         * modules/unistr/u32-cpy: Likewise.
18466         * modules/unistr/u32-cpy-alloc: Likewise.
18467         * modules/unistr/u32-endswith: Likewise.
18468         * modules/unistr/u32-mblen: Likewise.
18469         * modules/unistr/u32-mbsnlen: Likewise.
18470         * modules/unistr/u32-mbtouc: Likewise.
18471         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18472         * modules/unistr/u32-mbtoucr: Likewise.
18473         * modules/unistr/u32-move: Likewise.
18474         * modules/unistr/u32-next: Likewise.
18475         * modules/unistr/u32-prev: Likewise.
18476         * modules/unistr/u32-set: Likewise.
18477         * modules/unistr/u32-startswith: Likewise.
18478         * modules/unistr/u32-stpcpy: Likewise.
18479         * modules/unistr/u32-stpncpy: Likewise.
18480         * modules/unistr/u32-strcat: Likewise.
18481         * modules/unistr/u32-strchr: Likewise.
18482         * modules/unistr/u32-strcmp: Likewise.
18483         * modules/unistr/u32-strcoll: Likewise.
18484         * modules/unistr/u32-strcpy: Likewise.
18485         * modules/unistr/u32-strcspn: Likewise.
18486         * modules/unistr/u32-strdup: Likewise.
18487         * modules/unistr/u32-strlen: Likewise.
18488         * modules/unistr/u32-strmblen: Likewise.
18489         * modules/unistr/u32-strmbtouc: Likewise.
18490         * modules/unistr/u32-strncat: Likewise.
18491         * modules/unistr/u32-strncmp: Likewise.
18492         * modules/unistr/u32-strncpy: Likewise.
18493         * modules/unistr/u32-strnlen: Likewise.
18494         * modules/unistr/u32-strpbrk: Likewise.
18495         * modules/unistr/u32-strrchr: Likewise.
18496         * modules/unistr/u32-strspn: Likewise.
18497         * modules/unistr/u32-strstr: Likewise.
18498         * modules/unistr/u32-strtok: Likewise.
18499         * modules/unistr/u32-to-u16: Likewise.
18500         * modules/unistr/u32-to-u8: Likewise.
18501         * modules/unistr/u32-uctomb: Likewise.
18502         * modules/uniwbrk/u8-wordbreaks: Likewise.
18503         * modules/uniwbrk/u16-wordbreaks: Likewise.
18504         * modules/uniwbrk/u32-wordbreaks: Likewise.
18505         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18506         * modules/uniwbrk/wordbreak-property: Likewise.
18507         * modules/uniwidth/u8-strwidth: Likewise.
18508         * modules/uniwidth/u8-width: Likewise.
18509         * modules/uniwidth/u16-strwidth: Likewise.
18510         * modules/uniwidth/u16-width: Likewise.
18511         * modules/uniwidth/u32-strwidth: Likewise.
18512         * modules/uniwidth/u32-width: Likewise.
18513         * modules/uniwidth/width: Likewise.
18514         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18515         with $(LIBUNISTRING).
18516         * modules/unicase/ignorable-tests: Likewise.
18517         * modules/unicase/locale-language-tests: Likewise.
18518         * modules/unicase/tolower-tests: Likewise.
18519         * modules/unicase/totitle-tests: Likewise.
18520         * modules/unicase/toupper-tests: Likewise.
18521         * modules/unicase/u8-casecmp-tests: Likewise.
18522         * modules/unicase/u8-casecoll-tests: Likewise.
18523         * modules/unicase/u8-casefold-tests: Likewise.
18524         * modules/unicase/u8-is-cased-tests: Likewise.
18525         * modules/unicase/u8-is-casefolded-tests: Likewise.
18526         * modules/unicase/u8-is-lowercase-tests: Likewise.
18527         * modules/unicase/u8-is-titlecase-tests: Likewise.
18528         * modules/unicase/u8-is-uppercase-tests: Likewise.
18529         * modules/unicase/u8-tolower-tests: Likewise.
18530         * modules/unicase/u8-totitle-tests: Likewise.
18531         * modules/unicase/u8-toupper-tests: Likewise.
18532         * modules/unicase/u16-casecmp-tests: Likewise.
18533         * modules/unicase/u16-casecoll-tests: Likewise.
18534         * modules/unicase/u16-casefold-tests: Likewise.
18535         * modules/unicase/u16-is-cased-tests: Likewise.
18536         * modules/unicase/u16-is-casefolded-tests: Likewise.
18537         * modules/unicase/u16-is-lowercase-tests: Likewise.
18538         * modules/unicase/u16-is-titlecase-tests: Likewise.
18539         * modules/unicase/u16-is-uppercase-tests: Likewise.
18540         * modules/unicase/u16-tolower-tests: Likewise.
18541         * modules/unicase/u16-totitle-tests: Likewise.
18542         * modules/unicase/u16-toupper-tests: Likewise.
18543         * modules/unicase/u32-casecmp-tests: Likewise.
18544         * modules/unicase/u32-casecoll-tests: Likewise.
18545         * modules/unicase/u32-casefold-tests: Likewise.
18546         * modules/unicase/u32-is-cased-tests: Likewise.
18547         * modules/unicase/u32-is-casefolded-tests: Likewise.
18548         * modules/unicase/u32-is-lowercase-tests: Likewise.
18549         * modules/unicase/u32-is-titlecase-tests: Likewise.
18550         * modules/unicase/u32-is-uppercase-tests: Likewise.
18551         * modules/unicase/u32-tolower-tests: Likewise.
18552         * modules/unicase/u32-totitle-tests: Likewise.
18553         * modules/unicase/u32-toupper-tests: Likewise.
18554         * modules/unicase/ulc-casecmp-tests: Likewise.
18555         * modules/unicase/ulc-casecoll-tests: Likewise.
18556         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18557         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18558         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18559         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18560         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18561         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18562         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18563         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18564         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18565         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18566         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18567         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18568         * modules/unictype/bidicategory-byname-tests: Likewise.
18569         * modules/unictype/bidicategory-name-tests: Likewise.
18570         * modules/unictype/bidicategory-of-tests: Likewise.
18571         * modules/unictype/bidicategory-test-tests: Likewise.
18572         * modules/unictype/block-list-tests: Likewise.
18573         * modules/unictype/block-of-tests: Likewise.
18574         * modules/unictype/block-test-tests: Likewise.
18575         * modules/unictype/category-C-tests: Likewise.
18576         * modules/unictype/category-Cc-tests: Likewise.
18577         * modules/unictype/category-Cf-tests: Likewise.
18578         * modules/unictype/category-Cn-tests: Likewise.
18579         * modules/unictype/category-Co-tests: Likewise.
18580         * modules/unictype/category-Cs-tests: Likewise.
18581         * modules/unictype/category-L-tests: Likewise.
18582         * modules/unictype/category-Ll-tests: Likewise.
18583         * modules/unictype/category-Lm-tests: Likewise.
18584         * modules/unictype/category-Lo-tests: Likewise.
18585         * modules/unictype/category-Lt-tests: Likewise.
18586         * modules/unictype/category-Lu-tests: Likewise.
18587         * modules/unictype/category-M-tests: Likewise.
18588         * modules/unictype/category-Mc-tests: Likewise.
18589         * modules/unictype/category-Me-tests: Likewise.
18590         * modules/unictype/category-Mn-tests: Likewise.
18591         * modules/unictype/category-N-tests: Likewise.
18592         * modules/unictype/category-Nd-tests: Likewise.
18593         * modules/unictype/category-Nl-tests: Likewise.
18594         * modules/unictype/category-No-tests: Likewise.
18595         * modules/unictype/category-P-tests: Likewise.
18596         * modules/unictype/category-Pc-tests: Likewise.
18597         * modules/unictype/category-Pd-tests: Likewise.
18598         * modules/unictype/category-Pe-tests: Likewise.
18599         * modules/unictype/category-Pf-tests: Likewise.
18600         * modules/unictype/category-Pi-tests: Likewise.
18601         * modules/unictype/category-Po-tests: Likewise.
18602         * modules/unictype/category-Ps-tests: Likewise.
18603         * modules/unictype/category-S-tests: Likewise.
18604         * modules/unictype/category-Sc-tests: Likewise.
18605         * modules/unictype/category-Sk-tests: Likewise.
18606         * modules/unictype/category-Sm-tests: Likewise.
18607         * modules/unictype/category-So-tests: Likewise.
18608         * modules/unictype/category-Z-tests: Likewise.
18609         * modules/unictype/category-Zl-tests: Likewise.
18610         * modules/unictype/category-Zp-tests: Likewise.
18611         * modules/unictype/category-Zs-tests: Likewise.
18612         * modules/unictype/category-and-not-tests: Likewise.
18613         * modules/unictype/category-and-tests: Likewise.
18614         * modules/unictype/category-byname-tests: Likewise.
18615         * modules/unictype/category-name-tests: Likewise.
18616         * modules/unictype/category-none-tests: Likewise.
18617         * modules/unictype/category-of-tests: Likewise.
18618         * modules/unictype/category-or-tests: Likewise.
18619         * modules/unictype/category-test-withtable-tests: Likewise.
18620         * modules/unictype/combining-class-tests: Likewise.
18621         * modules/unictype/ctype-alnum-tests: Likewise.
18622         * modules/unictype/ctype-alpha-tests: Likewise.
18623         * modules/unictype/ctype-blank-tests: Likewise.
18624         * modules/unictype/ctype-cntrl-tests: Likewise.
18625         * modules/unictype/ctype-digit-tests: Likewise.
18626         * modules/unictype/ctype-graph-tests: Likewise.
18627         * modules/unictype/ctype-lower-tests: Likewise.
18628         * modules/unictype/ctype-print-tests: Likewise.
18629         * modules/unictype/ctype-punct-tests: Likewise.
18630         * modules/unictype/ctype-space-tests: Likewise.
18631         * modules/unictype/ctype-upper-tests: Likewise.
18632         * modules/unictype/ctype-xdigit-tests: Likewise.
18633         * modules/unictype/decimal-digit-tests: Likewise.
18634         * modules/unictype/digit-tests: Likewise.
18635         * modules/unictype/mirror-tests: Likewise.
18636         * modules/unictype/numeric-tests: Likewise.
18637         * modules/unictype/property-alphabetic-tests: Likewise.
18638         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18639         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18640         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18641         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18642         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18643         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18644         * modules/unictype/property-bidi-control-tests: Likewise.
18645         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18646         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18647         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18648         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18649         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18650         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18651         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18652         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18653         * modules/unictype/property-bidi-pdf-tests: Likewise.
18654         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18655         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18656         * modules/unictype/property-byname-tests: Likewise.
18657         * modules/unictype/property-combining-tests: Likewise.
18658         * modules/unictype/property-composite-tests: Likewise.
18659         * modules/unictype/property-currency-symbol-tests: Likewise.
18660         * modules/unictype/property-dash-tests: Likewise.
18661         * modules/unictype/property-decimal-digit-tests: Likewise.
18662         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18663         * modules/unictype/property-deprecated-tests: Likewise.
18664         * modules/unictype/property-diacritic-tests: Likewise.
18665         * modules/unictype/property-extender-tests: Likewise.
18666         * modules/unictype/property-format-control-tests: Likewise.
18667         * modules/unictype/property-grapheme-base-tests: Likewise.
18668         * modules/unictype/property-grapheme-extend-tests: Likewise.
18669         * modules/unictype/property-grapheme-link-tests: Likewise.
18670         * modules/unictype/property-hex-digit-tests: Likewise.
18671         * modules/unictype/property-hyphen-tests: Likewise.
18672         * modules/unictype/property-id-continue-tests: Likewise.
18673         * modules/unictype/property-id-start-tests: Likewise.
18674         * modules/unictype/property-ideographic-tests: Likewise.
18675         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18676         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18677         * modules/unictype/property-ignorable-control-tests: Likewise.
18678         * modules/unictype/property-iso-control-tests: Likewise.
18679         * modules/unictype/property-join-control-tests: Likewise.
18680         * modules/unictype/property-left-of-pair-tests: Likewise.
18681         * modules/unictype/property-line-separator-tests: Likewise.
18682         * modules/unictype/property-logical-order-exception-tests: Likewise.
18683         * modules/unictype/property-lowercase-tests: Likewise.
18684         * modules/unictype/property-math-tests: Likewise.
18685         * modules/unictype/property-non-break-tests: Likewise.
18686         * modules/unictype/property-not-a-character-tests: Likewise.
18687         * modules/unictype/property-numeric-tests: Likewise.
18688         * modules/unictype/property-other-alphabetic-tests: Likewise.
18689         * modules/unictype/property-other-default-ignorable-code-point-tests:
18690         Likewise.
18691         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18692         * modules/unictype/property-other-id-continue-tests: Likewise.
18693         * modules/unictype/property-other-id-start-tests: Likewise.
18694         * modules/unictype/property-other-lowercase-tests: Likewise.
18695         * modules/unictype/property-other-math-tests: Likewise.
18696         * modules/unictype/property-other-uppercase-tests: Likewise.
18697         * modules/unictype/property-paired-punctuation-tests: Likewise.
18698         * modules/unictype/property-paragraph-separator-tests: Likewise.
18699         * modules/unictype/property-pattern-syntax-tests: Likewise.
18700         * modules/unictype/property-pattern-white-space-tests: Likewise.
18701         * modules/unictype/property-private-use-tests: Likewise.
18702         * modules/unictype/property-punctuation-tests: Likewise.
18703         * modules/unictype/property-quotation-mark-tests: Likewise.
18704         * modules/unictype/property-radical-tests: Likewise.
18705         * modules/unictype/property-sentence-terminal-tests: Likewise.
18706         * modules/unictype/property-soft-dotted-tests: Likewise.
18707         * modules/unictype/property-space-tests: Likewise.
18708         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18709         * modules/unictype/property-test-tests: Likewise.
18710         * modules/unictype/property-titlecase-tests: Likewise.
18711         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18712         * modules/unictype/property-unified-ideograph-tests: Likewise.
18713         * modules/unictype/property-uppercase-tests: Likewise.
18714         * modules/unictype/property-variation-selector-tests: Likewise.
18715         * modules/unictype/property-white-space-tests: Likewise.
18716         * modules/unictype/property-xid-continue-tests: Likewise.
18717         * modules/unictype/property-xid-start-tests: Likewise.
18718         * modules/unictype/property-zero-width-tests: Likewise.
18719         * modules/unictype/scripts-tests: Likewise.
18720         * modules/unictype/syntax-c-ident-tests: Likewise.
18721         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18722         * modules/unictype/syntax-java-ident-tests: Likewise.
18723         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18724         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18725         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18726         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18727         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18728         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18729         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18730         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18731         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18732         * modules/uniname/uniname-tests: Likewise.
18733         * modules/uninorm/canonical-decomposition-tests: Likewise.
18734         * modules/uninorm/compat-decomposition-tests: Likewise.
18735         * modules/uninorm/composition-tests: Likewise.
18736         * modules/uninorm/decomposing-form-tests: Likewise.
18737         * modules/uninorm/decomposition-tests: Likewise.
18738         * modules/uninorm/filter-tests: Likewise.
18739         * modules/uninorm/nfc-tests: Likewise.
18740         * modules/uninorm/nfd-tests: Likewise.
18741         * modules/uninorm/nfkc-tests: Likewise.
18742         * modules/uninorm/nfkd-tests: Likewise.
18743         * modules/uninorm/u8-normcmp-tests: Likewise.
18744         * modules/uninorm/u8-normcoll-tests: Likewise.
18745         * modules/uninorm/u16-normcmp-tests: Likewise.
18746         * modules/uninorm/u16-normcoll-tests: Likewise.
18747         * modules/uninorm/u32-normcmp-tests: Likewise.
18748         * modules/uninorm/u32-normcoll-tests: Likewise.
18749         * modules/unistdio/u8-asnprintf-tests: Likewise.
18750         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18751         * modules/unistdio/u8-vasprintf-tests: Likewise.
18752         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18753         * modules/unistdio/u8-vsprintf-tests: Likewise.
18754         * modules/unistdio/u16-asnprintf-tests: Likewise.
18755         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18756         * modules/unistdio/u16-vasprintf-tests: Likewise.
18757         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18758         * modules/unistdio/u16-vsprintf-tests: Likewise.
18759         * modules/unistdio/u32-asnprintf-tests: Likewise.
18760         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18761         * modules/unistdio/u32-vasprintf-tests: Likewise.
18762         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18763         * modules/unistdio/u32-vsprintf-tests: Likewise.
18764         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18765         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18766         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18767         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18768         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18769         * modules/unistr/u8-check-tests: Likewise.
18770         * modules/unistr/u8-chr-tests: Likewise.
18771         * modules/unistr/u8-cmp-tests: Likewise.
18772         * modules/unistr/u8-cmp2-tests: Likewise.
18773         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18774         * modules/unistr/u8-cpy-tests: Likewise.
18775         * modules/unistr/u8-mblen-tests: Likewise.
18776         * modules/unistr/u8-mbsnlen-tests: Likewise.
18777         * modules/unistr/u8-mbtouc-tests: Likewise.
18778         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18779         * modules/unistr/u8-mbtoucr-tests: Likewise.
18780         * modules/unistr/u8-move-tests: Likewise.
18781         * modules/unistr/u8-next-tests: Likewise.
18782         * modules/unistr/u8-prev-tests: Likewise.
18783         * modules/unistr/u8-set-tests: Likewise.
18784         * modules/unistr/u8-stpcpy-tests: Likewise.
18785         * modules/unistr/u8-stpncpy-tests: Likewise.
18786         * modules/unistr/u8-strcat-tests: Likewise.
18787         * modules/unistr/u8-strcmp-tests: Likewise.
18788         * modules/unistr/u8-strcoll-tests: Likewise.
18789         * modules/unistr/u8-strcpy-tests: Likewise.
18790         * modules/unistr/u8-strdup-tests: Likewise.
18791         * modules/unistr/u8-strlen-tests: Likewise.
18792         * modules/unistr/u8-strmblen-tests: Likewise.
18793         * modules/unistr/u8-strmbtouc-tests: Likewise.
18794         * modules/unistr/u8-strncat-tests: Likewise.
18795         * modules/unistr/u8-strncmp-tests: Likewise.
18796         * modules/unistr/u8-strncpy-tests: Likewise.
18797         * modules/unistr/u8-strnlen-tests: Likewise.
18798         * modules/unistr/u8-to-u16-tests: Likewise.
18799         * modules/unistr/u8-to-u32-tests: Likewise.
18800         * modules/unistr/u8-uctomb-tests: Likewise.
18801         * modules/unistr/u16-check-tests: Likewise.
18802         * modules/unistr/u16-chr-tests: Likewise.
18803         * modules/unistr/u16-cmp-tests: Likewise.
18804         * modules/unistr/u16-cmp2-tests: Likewise.
18805         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18806         * modules/unistr/u16-cpy-tests: Likewise.
18807         * modules/unistr/u16-mblen-tests: Likewise.
18808         * modules/unistr/u16-mbsnlen-tests: Likewise.
18809         * modules/unistr/u16-mbtouc-tests: Likewise.
18810         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18811         * modules/unistr/u16-mbtoucr-tests: Likewise.
18812         * modules/unistr/u16-move-tests: Likewise.
18813         * modules/unistr/u16-next-tests: Likewise.
18814         * modules/unistr/u16-prev-tests: Likewise.
18815         * modules/unistr/u16-set-tests: Likewise.
18816         * modules/unistr/u16-stpcpy-tests: Likewise.
18817         * modules/unistr/u16-stpncpy-tests: Likewise.
18818         * modules/unistr/u16-strcat-tests: Likewise.
18819         * modules/unistr/u16-strcmp-tests: Likewise.
18820         * modules/unistr/u16-strcoll-tests: Likewise.
18821         * modules/unistr/u16-strcpy-tests: Likewise.
18822         * modules/unistr/u16-strdup-tests: Likewise.
18823         * modules/unistr/u16-strlen-tests: Likewise.
18824         * modules/unistr/u16-strmblen-tests: Likewise.
18825         * modules/unistr/u16-strmbtouc-tests: Likewise.
18826         * modules/unistr/u16-strncat-tests: Likewise.
18827         * modules/unistr/u16-strncmp-tests: Likewise.
18828         * modules/unistr/u16-strncpy-tests: Likewise.
18829         * modules/unistr/u16-strnlen-tests: Likewise.
18830         * modules/unistr/u16-to-u32-tests: Likewise.
18831         * modules/unistr/u16-to-u8-tests: Likewise.
18832         * modules/unistr/u16-uctomb-tests: Likewise.
18833         * modules/unistr/u32-check-tests: Likewise.
18834         * modules/unistr/u32-chr-tests: Likewise.
18835         * modules/unistr/u32-cmp-tests: Likewise.
18836         * modules/unistr/u32-cmp2-tests: Likewise.
18837         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18838         * modules/unistr/u32-cpy-tests: Likewise.
18839         * modules/unistr/u32-mblen-tests: Likewise.
18840         * modules/unistr/u32-mbsnlen-tests: Likewise.
18841         * modules/unistr/u32-mbtouc-tests: Likewise.
18842         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18843         * modules/unistr/u32-mbtoucr-tests: Likewise.
18844         * modules/unistr/u32-move-tests: Likewise.
18845         * modules/unistr/u32-next-tests: Likewise.
18846         * modules/unistr/u32-prev-tests: Likewise.
18847         * modules/unistr/u32-set-tests: Likewise.
18848         * modules/unistr/u32-stpcpy-tests: Likewise.
18849         * modules/unistr/u32-stpncpy-tests: Likewise.
18850         * modules/unistr/u32-strcat-tests: Likewise.
18851         * modules/unistr/u32-strcmp-tests: Likewise.
18852         * modules/unistr/u32-strcoll-tests: Likewise.
18853         * modules/unistr/u32-strcpy-tests: Likewise.
18854         * modules/unistr/u32-strdup-tests: Likewise.
18855         * modules/unistr/u32-strlen-tests: Likewise.
18856         * modules/unistr/u32-strmblen-tests: Likewise.
18857         * modules/unistr/u32-strmbtouc-tests: Likewise.
18858         * modules/unistr/u32-strncat-tests: Likewise.
18859         * modules/unistr/u32-strncmp-tests: Likewise.
18860         * modules/unistr/u32-strncpy-tests: Likewise.
18861         * modules/unistr/u32-strnlen-tests: Likewise.
18862         * modules/unistr/u32-to-u16-tests: Likewise.
18863         * modules/unistr/u32-to-u8-tests: Likewise.
18864         * modules/unistr/u32-uctomb-tests: Likewise.
18865         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18866         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18867         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18868         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18869         * modules/uniwidth/u8-strwidth-tests: Likewise.
18870         * modules/uniwidth/u8-width-tests: Likewise.
18871         * modules/uniwidth/u16-strwidth-tests: Likewise.
18872         * modules/uniwidth/u16-width-tests: Likewise.
18873         * modules/uniwidth/u32-strwidth-tests: Likewise.
18874         * modules/uniwidth/u32-width-tests: Likewise.
18875         * modules/uniwidth/width-tests: Likewise.
18876
18877 2010-05-18  Richard Jones  <rjones@redhat.com>
18878
18879         doc: users.txt: list hivex
18880         * users.txt: Add hivex.
18881
18882 2010-05-18  Richard Jones  <rjones@redhat.com>
18883
18884         doc: users.txt: list febootstrap
18885         * users.txt: Add febootstrap.
18886
18887 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18888
18889         bootstrap: fix an error when gnulib is not used as a git submodule
18890         * build-aux/bootstrap (gnulib_path): If its length is zero then
18891         assign "gnulib" to it.
18892         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18893
18894 2010-05-16  Bruno Haible  <bruno@clisp.org>
18895
18896         Avoid autoconf warnings about AM_ICONV.
18897         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18898         2.64.
18899
18900 2010-05-16  Bruno Haible  <bruno@clisp.org>
18901
18902         absolute-header: Make the macro usable in more situations.
18903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18904         from gl_ABSOLUTE_HEADER.
18905         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18906
18907 2010-05-16  James Youngman  <jay@gnu.org>
18908
18909         doc: update users.txt
18910         * users.txt: Add CSSC.
18911
18912 2010-05-16  Jim Meyering  <meyering@redhat.com>
18913
18914         init.sh: fix an error in the previous change; add more comments
18915         * tests/init.sh: Compare exit code in loop against 9, not 2.
18916         Patch by Bruno Haible.
18917         Make the two tests more similar by adding an empty "then" clause.
18918         Add comments.
18919
18920         init.sh: avoid unnecessary shell re-exec
18921         * tests/init.sh: Improve the re-exec-required check to first test the
18922         current shell.  If it passes the test, do not search for a shell that
18923         does pass, and do not re-exec.  This test is particularly contorted to
18924         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18925         of $(...) evokes a syntax error and causes immediate shell exit with
18926         status 2.  Bruno Haible reported that the re-exec made it impossible
18927         to single-step through any init.sh-using script.
18928
18929 2010-05-16  Bruno Haible  <bruno@clisp.org>
18930
18931         Fix collision between gnulib's and libintl's printf replacements.
18932         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18933         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18934         (printf): When using GNU C, map the __printf__ function to rpl_printf
18935         via __asm__. When not using GNU C, define rpl_printf instead of
18936         __printf__.
18937         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18938         commit.
18939         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18940         commit.
18941         * m4/asm-underscore.m4: New file.
18942         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18943         * modules/stdio (Files): Add m4/asm-underscore.m4.
18944         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18945         Reported by Ben Pfaff.
18946
18947 2010-05-16  Bruno Haible  <bruno@clisp.org>
18948
18949         verify: Avoid skipping the test on openSUSE 11.0.
18950         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18951
18952 2010-05-13  Bruno Haible  <bruno@clisp.org>
18953
18954         Avoid useless warnings from G++.
18955         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18956         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18957         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18958
18959 2010-05-11  Jim Meyering  <meyering@redhat.com>
18960
18961         maint.mk: tweak preceding change
18962         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18963         regexps tighter by anchoring at EOL, and make the new group "shy"
18964         for slightly decreased overhead.
18965
18966 2010-05-11  Eric Blake  <eblake@redhat.com>
18967
18968         maint.mk: gnulib doesn't guarantee NSIG
18969         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18970
18971 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18972
18973         test-pwrite.c: Remove unused variable declaration.
18974         * tests/test-pwrite.c (main): Remove read_buf declaration.
18975
18976         Remove useless test-pwrite.sh file.
18977         * tests/test-pwrite.sh: Delete file.
18978         * modules/pwrite-tests: Remove references.
18979         Reported by Bruno Haible.
18980
18981 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18982
18983         init.sh: fix a typo
18984         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18985
18986 2010-05-10  Jim Meyering  <meyering@redhat.com>
18987
18988         maint.mk: avoid using a temporary file in the always-defined-macros check
18989         * top/maint.mk (.re-defmac): Remove rule.
18990         (gl_trap_): Remove definition.
18991         (sc_prohibit_always-defined_macros): Rewrite not to create and
18992         depend on a temporary file.  Instead, depend on GNU grep's ability
18993         to read a list of regular expressions from stdin when given "-f -".
18994
18995 2010-05-09  Bruno Haible  <bruno@clisp.org>
18996
18997         Update to GNU gettext 0.18, part 1.
18998         * m4/gettext.m4: Update to GNU gettext 0.18.
18999         * m4/intl.m4: Likewise.
19000         * m4/po.m4: Likewise.
19001         * modules/gettext (Files): Add m4/fcntl-o.m4.
19002         (configure.ac): Require gettext infrastructure from version 0.18.
19003
19004 2010-05-09  Jim Meyering  <meyering@redhat.com>
19005
19006         init.sh: enable MALLOC_PERTURB_
19007         * tests/init.sh: Enable glibc's malloc-perturbing option.
19008
19009         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19010         With my recent change in init.sh from the two-line form:
19011             -#   : ${srcdir=.}
19012             -#   . "$srcdir/init.sh"; path_prepend_ .
19013             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19014         I noticed that using the one-line form would cause this test
19015         to fail with a false-positive, or to stop working altogether,
19016         depending on whether help-version changed or all the tests did.
19017         * top/maint.mk (_hv_regex): Remove this definition.
19018         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19019         (_hv_regex_strong): Use a stronger regex to check for conformance.
19020         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19021         Give a separate diagnostic for lack of conforming use.
19022
19023         maint.mk: prohibit definition of symbols defined by gnulib
19024         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19025         definition of symbols defined by gnulib.
19026
19027 2010-05-09  Bruno Haible  <bruno@clisp.org>
19028
19029         acl: Avoid test failure on Cygwin-hosted mingw.
19030         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19031
19032 2010-05-09  Bruno Haible  <bruno@clisp.org>
19033
19034         error: Use system's fcntl function.
19035         * lib/error.c (fcntl): Undefine.
19036
19037 2010-05-09  Jim Meyering  <meyering@redhat.com>
19038
19039         verify: adjust formatting to be more consistent
19040         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19041         argument-list '('s, and after one comma.
19042
19043 2010-05-09  Bruno Haible  <bruno@clisp.org>
19044
19045         error: More reliable output on mingw.
19046         * lib/error.c: Include <windows.h>.
19047         (is_open): New function.
19048         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19049         defined.
19050
19051 2010-05-09  Bruno Haible  <bruno@clisp.org>
19052
19053         vasnprintf: Fix syntax errors in libintl build on mingw.
19054         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19055         pad_ourselves and prec_ourselves after use.
19056
19057 2010-05-08  Bruno Haible  <bruno@clisp.org>
19058
19059         * lib/config.charset: Update comments for Cygwin 1.7.
19060         * lib/localcharset.c: Likewise.
19061
19062 2010-05-07  Jim Meyering  <meyering@redhat.com>
19063
19064         init.sh: improve comments
19065         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19066         . "${srcdir=.}/init.sh"; path_prepend_ .
19067         Add a note about path_prepend_ and the alternative of using
19068         TESTS_ENVIRONMENT.
19069
19070 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19071
19072         exclude: Unescape hashed patterns in wildcard mode.
19073         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19074         to the hash list.
19075         * tests/test-exclude8.sh: New test case.
19076         * modules/exclude-tests: Add new test.
19077
19078 2010-05-05  Eric Blake  <eblake@redhat.com>
19079
19080         verify: automate tests
19081         * modules/verify-tests: New module.
19082         * tests/test-verify.sh: New file.
19083         * tests/test-verify.c: Guard each negative test with a unique id.
19084         Also avoid warning about unused left hand of comma expressions.
19085
19086 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19087
19088         Further improvements to verify.h, suggested by Eric Blake.
19089         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19090         the GL_* versions, to avoid collision with OpenGL.
19091         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19092         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19093         than testing merely whether it's defined.
19094
19095         Modify verify.h to pacify gcc -Wredundant_decls.
19096         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19097         These use the prefix "GL_" since they're likely to be useful elsewhere.
19098         We may need to break them out into a different .h file.
19099         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19100         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19101         of verify_function__.
19102
19103 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19104
19105         Tests for module pwrite.
19106         * modules/pwrite-tests: New file.
19107         * tests/test-pwrite.sh: New file.
19108         * tests/test-pwrite.c: New file.
19109
19110         New module pwrite.
19111         * lib/unistd.in.h (pwrite): New declaration.
19112         * lib/pwrite.c: New file, from glibc with modifications.
19113         * m4/pwrite.m4: New file.
19114         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19115         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19116         REPLACE_PWRITE.
19117         * modules/pwrite: New file.
19118         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19119         REPLACE_PWRITE.
19120         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19121         * doc/posix-functions/pwrite.texi: Mention the new module.
19122
19123 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19124
19125         pread: Update documentation.
19126         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19127
19128 2010-05-04  Eric Blake  <eblake@redhat.com>
19129
19130         docs: update cygwin progress
19131         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19132         this bug.
19133         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19134         Added in cygwin 1.7.2.
19135         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19136         Likewise.
19137         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19138         Likewise.
19139         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19140         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19141         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19142         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19143         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19144         Mention nproc module.
19145         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19146         bug in cygwin 1.7.5 addition.
19147         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19148         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19149         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19150         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19151         1.7.5.
19152         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19153         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19154         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19155         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19156         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19157         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19158         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19159         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19160         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19161         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19162         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19163         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19164         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19165         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19166         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19167         Likewise.
19168         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19169         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19170         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19171         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19172         Likewise.
19173         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19174         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19175         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19176         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19177         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19178         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19179         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19180         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19181         Likewise.
19182         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19183         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19184         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19185         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19186         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19187         Likewise.
19188         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19189         Likewise.
19190         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19191         Likewise.
19192         * doc/glibc-functions/xdrrec_endofrecord.texi
19193         (xdrrec_endofrecord): Likewise.
19194         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19195         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19196         Likewise.
19197         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19198         Likewise.
19199
19200 2010-05-04  Jim Meyering  <meyering@redhat.com>
19201
19202         gendocs.sh: make its "-s FILE" option more useful
19203         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19204         $PACKAGE to reflect the probably-different basename of "FILE".
19205
19206 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19207
19208         bootstrap: don't ignore download_po_files failure
19209         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19210         failure.
19211
19212 2010-05-03  Jim Meyering  <meyering@redhat.com>
19213
19214         maint.mk: allow to pass options to gendocs.sh
19215         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19216         (gendocs_options_): New overridable variable.
19217
19218         gnu-web-doc-update: don't ignore configure or build failure
19219         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19220
19221         announce-gen: backslash-escape '@'s in --help output
19222         * build-aux/announce-gen: Fix syntax errors.
19223
19224         maint.mk, announce-gen: allow project-specific announcement mail headers
19225         * top/maint.mk (translation_project_): Define default.
19226         (announcement_Cc_, announcement_mail_headers_): Likewise.
19227         (announcement): Invoke announce-gen with new --mail-headers option.
19228         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19229
19230         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19231         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19232         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19233         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19234         line in the "err2" output file when running "make check" in verbose
19235         mode (i.e., with set -x enabled).
19236
19237 2010-05-03  Bruno Haible  <bruno@clisp.org>
19238
19239         wctob: Fix for weird platforms.
19240         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19241         argument value.
19242
19243 2010-05-03  Jim Meyering  <meyering@redhat.com>
19244
19245         maint.mk: prohibit unwarranted use of <strings.h>
19246         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19247         strings.h in a file that does not also use strcasecmp, strncasecmp,
19248         ffs or ffsll.
19249
19250         maint.mk: remove obsolete comments
19251         * top/maint.mk: Remove stale, commented-out rules.
19252
19253 2010-05-02  Bruno Haible  <bruno@clisp.org>
19254
19255         wcwidth: Declare also when it's aliased.
19256         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19257         macro.
19258
19259 2010-05-02  Bruno Haible  <bruno@clisp.org>
19260
19261         Fix regression from 2010-04-25.
19262         * gnulib-tool (func_modules_transitive_closure): Check the status of
19263         all modules, not only of the tests that are of the form foo-tests where
19264         foo is a module.
19265
19266 2010-05-02  Bruno Haible  <bruno@clisp.org>
19267
19268         wctob: Work around nasty Cygwin 1.7.2 bug.
19269         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19270         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19271
19272 2010-05-01  Bruno Haible  <bruno@clisp.org>
19273
19274         fpurge: Sharper test.
19275         * tests/test-fpurge.c (main): Add one more ftell check.
19276         * modules/fpurge-tests (Depends-on): Add ftell.
19277         Suggested by Eric Blake.
19278
19279 2010-05-01  Bruno Haible  <bruno@clisp.org>
19280
19281         ftello: Another test.
19282         * tests/test-ftello3.c: New file.
19283         * modules/ftello-tests (Files): Add it.
19284         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19285         MOSTLYCLEANFILES.
19286
19287         ftell: Another test.
19288         * tests/test-ftell3.c: New file.
19289         * modules/ftell-tests (Files): Add it.
19290         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19291         MOSTLYCLEANFILES.
19292
19293 2010-05-01  Bruno Haible  <bruno@clisp.org>
19294
19295         ftell, ftello: Work around Solaris bug.
19296         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19297         * lib/ftello.c: Include stdio-impl.h.
19298         (ftello): On Solaris, when _IOWRT is set, compute the result without
19299         looking at _IOREAD.
19300         * modules/ftello (Files): Add lib/stdio-impl.h.
19301         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19302         * doc/posix-functions/ftello.texi: Likewise.
19303         Reported by Eric Blake.
19304
19305 2010-05-01  Bruno Haible  <bruno@clisp.org>
19306
19307         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19308         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19309         the _IOWRT flag is also set.
19310
19311 2010-05-01  Bruno Haible  <bruno@clisp.org>
19312
19313         Fix doc about a HP-UX stdio bug.
19314         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19315         * doc/posix-functions/ftello.texi: Likewise.
19316
19317 2010-05-01  Bruno Haible  <bruno@clisp.org>
19318
19319         lseek test: Fix failure on Solaris.
19320         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19321         output.
19322
19323 2010-04-30  Jim Meyering  <meyering@redhat.com>
19324
19325         bootstrap: don't ignore failure to generate po*/Makevars
19326         * build-aux/bootstrap (with_gettext): Don't ignore failure
19327         to create po/Makevars or runtime-po/Makevars.
19328
19329 2010-04-29  Eric Blake  <eblake@redhat.com>
19330
19331         headers: relax license to LGPLv2+
19332         * modules/fcntl-h (License): Relax license.
19333         * modules/getopt-posix (License): Likewise.
19334         * modules/locale (License): Likewise.
19335         * modules/math (License): Likewise.
19336         * modules/pty (License): Likewise.
19337         * modules/sched (License): Likewise.
19338         * modules/search (License): Likewise.
19339         * modules/spawn (License): Likewise.
19340         * modules/stdarg (License): Likewise.
19341         * modules/sysexits (License): Likewise.
19342
19343 2010-04-29  Jim Meyering  <meyering@redhat.com>
19344
19345         inttypes: relax license to LGPLv2+
19346         * modules/inttypes (License): Relax license.
19347
19348 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19349
19350         * top/maint.mk (indent): Run twice to produce idempotent results.
19351
19352 2010-04-28  Bruno Haible  <bruno@clisp.org>
19353
19354         getdate: Generate getdate.c in the source directory.
19355         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19356         MOSTLYCLEANFILES.
19357         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19358
19359 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19360
19361         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19362         is not declared as a const *; avoid warnings in that case.
19363
19364 2010-04-28  Eric Blake  <eblake@redhat.com>
19365
19366         canonicalize-lgpl: avoid compiler warning
19367         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19368         declaration' / 'extraneous semicolon' warning with some compilers.
19369         Reported by Andreas Gruenbacher.
19370
19371 2010-04-28  Jim Meyering  <meyering@redhat.com>
19372
19373         init.sh: ensure a more reliable exit status when exiting via trap
19374         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19375         Inspired by patches from Dmitry V. Levin.
19376         Also trap on signal 3 (SIGQUIT).
19377
19378 2010-04-27  Bruno Haible  <bruno@clisp.org>
19379
19380         Update doc about utimes().
19381         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19382         'utimens' module.
19383         Reported by Andreas Gruenbacher <agruen@suse.de>.
19384
19385 2010-04-27  Eric Blake  <eblake@redhat.com>
19386
19387         full-read, full-write: relax license
19388         * modules/full-read (License): Drop to LGPLv2+.
19389         * modules/full-write (License): Likewise.
19390         * modules/safe-read (License): Likewise.
19391         * modules/safe-write (License): Likewise.
19392
19393         pthread: mention library for linking
19394         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19395
19396 2010-04-27  Jim Meyering  <meyering@redhat.com>
19397
19398         maint.mk: fix a bug introduced in last change
19399         * top/maint.mk (gl_assured_headers_): Now that all names are on
19400         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19401         is not anchored to end of word, it should be adequate.
19402
19403         maint.mk: avoid side-effect in latest syntax-check
19404         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19405         to run commands via $(shell...), and hence to incur cost only when
19406         the new rule is actually run.
19407
19408         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19409         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19410         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19411         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19412         (gl_assured_headers_, az_, AZ_): Define.
19413         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19414
19415 2010-04-26  Jim Meyering  <jim@meyering.net>
19416             Bruno Haible  <bruno@clisp.org>
19417
19418         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19419         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19420         Prompted by an exchange with Gilles Espinasse.
19421
19422 2010-04-26  Jim Meyering  <meyering@redhat.com>
19423
19424         git-version-gen: aesthetic tweak
19425         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19426         so that the command remains on a single line.
19427
19428 2010-04-26  Eric Blake  <eblake@redhat.com>
19429
19430         git-version-gen: allow use on EBCDIC hosts
19431         * build-aux/git-version-gen (dirty): Use literal rather than tying
19432         ourselves to ascii.
19433         Reported by Steve Goetze.
19434
19435 2010-04-25  Bruno Haible  <bruno@clisp.org>
19436
19437         netdb: Add support for GNULIB_POSIXCHECK.
19438         * lib/netdb.in.h: Include warn-on-use.h.
19439         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19440         functions are used when GNULIB_POSIXCHECK is defined and the
19441         getaddrinfo module is not in use.
19442         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19443         freeaddrinfo, gai_strerror, getnameinfo are declared.
19444         * modules/netdb (Depends-on): Add warn-on-use.
19445         (Makefile.am): Include warn-on-use.h in netdb.h.
19446
19447 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19448
19449         build: avoid "make check" failure without .git/ directory
19450         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19451         there is no .git/ directory.
19452
19453 2010-04-25  Bruno Haible  <bruno@clisp.org>
19454
19455         ptsname: Fix misuse of ttyname_r.
19456         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19457         of errno.
19458
19459 2010-04-25  Bruno Haible  <bruno@clisp.org>
19460
19461         ttyname_r: Make it work on Solaris 10.
19462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19463         if the system function has the POSIX declaration. Test whether the
19464         function fails if the buffer is less than 128 bytes large.
19465         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19466         system's ttyname_r function. Provide a reasonably large buffer.
19467         * modules/ttyname_r (Depends-on): Add extensions.
19468         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19469
19470 2010-04-25  Bruno Haible  <bruno@clisp.org>
19471
19472         Use the 'extensions' module for some more functions on Solaris.
19473         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19474         module.
19475         * doc/posix-functions/ctime_r.texi: Likewise.
19476         * doc/posix-functions/getgrgid_r.texi: Likewise.
19477         * doc/posix-functions/getgrnam_r.texi: Likewise.
19478         * doc/posix-functions/getpwnam_r.texi: Likewise.
19479         * doc/posix-functions/getpwuid_r.texi: Likewise.
19480         * doc/posix-functions/readdir_r.texi: Likewise.
19481         * doc/posix-functions/sigwait.texi: Likewise.
19482         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19483         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19484
19485 2010-04-25  Bruno Haible  <bruno@clisp.org>
19486
19487         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19488         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19489         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19490         * lib/ttyname_r.c: Include <limits.h>.
19491         (ttyname_r): Define using the system's ttyname_r function, if it exists
19492         and not on Solaris.
19493         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19494         set.
19495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19496         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19497         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19498         Reported by Simon Josefsson.
19499
19500 2010-04-25  Bruno Haible  <bruno@clisp.org>
19501
19502         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19503         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19504         * doc/posix-functions/ctime_r.texi: Likewise.
19505         * doc/posix-functions/getgrgid_r.texi: Likewise.
19506         * doc/posix-functions/getgrnam_r.texi: Likewise.
19507         * doc/posix-functions/getlogin_r.texi: Likewise.
19508         * doc/posix-functions/getpwnam_r.texi: Likewise.
19509         * doc/posix-functions/getpwuid_r.texi: Likewise.
19510         * doc/posix-functions/readdir_r.texi: Likewise.
19511         * doc/posix-functions/sigwait.texi: Likewise.
19512         * doc/posix-functions/ttyname_r.texi: Likewise.
19513         Reported by Simon Josefsson.
19514
19515 2010-04-25  Bruno Haible  <bruno@clisp.org>
19516
19517         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19518         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19519         also to --create-testdir.
19520         (func_acceptable): Don't consider the status of *-tests modules here.
19521         (func_modules_transitive_closure): Consider it here, before including a
19522         test module.
19523         (func_import, func_create_testdir): Set inc_all_direct_tests,
19524         inc_all_indirect_tests.
19525         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19526         --create-testdir and --create-megatestdir.
19527
19528 2010-04-25  Bruno Haible  <bruno@clisp.org>
19529
19530         gnulib-tool: Add --without-*-tests options.
19531         * gnulib-tool (func_usage): Document the --without-*-tests options.
19532         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19533         excl_unportable_tests): New variables.
19534         Fail if they are specified with --import or --update.
19535         (func_acceptable): Respect the excl_*_tests variables.
19536         (func_import): Set the excl_*_tests variables to empty.
19537
19538 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19539             Bruno Haible  <bruno@clisp.org>
19540
19541         Work around a MacOS X 10.4 bug with openpty.
19542         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19543         * tests/test-openpty.c (main): Close the master side explicitly.
19544
19545 2010-04-25  Bruno Haible  <bruno@clisp.org>
19546
19547         strnlen: Fix a C++ test error on MacOS X and Solaris.
19548         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19549         the function is not declared.
19550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19551         Simon Josefsson.
19552
19553 2010-04-24  Bruno Haible  <bruno@clisp.org>
19554
19555         Avoid a gcc warning.
19556         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19557         of correct type for %08lx directive.
19558         Reported by Eric Blake.
19559
19560 2010-04-24  Bruno Haible  <bruno@clisp.org>
19561
19562         vasnprintf: Correct errno value in case of out-of-memory.
19563         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19564         or sprintf. Use the errno value from SNPRINTF or sprintf.
19565         Reported by Ian Beckwith <ianb@erislabs.net>.
19566
19567 2010-04-24  Bruno Haible  <bruno@clisp.org>
19568
19569         ansi-c++-opt: Find correct compiler when cross-compiling.
19570         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19571         AC_CHECK_PROGS.
19572         Reported by Simon Josefsson.
19573
19574 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19575
19576         vc-list-files: Add support for subversion
19577         * build-aux/vc-list-files: Use "svn list" to generate the list of
19578         files controlled by subversion.
19579
19580 2010-04-23  Jim Meyering  <meyering@redhat.com>
19581
19582         vc-list-files tests: convert to use init.sh
19583         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19584         path_prepend_.
19585         Use Exit, not exit.
19586         Use skip_ rather than open coding it.
19587         Remove trap set-up and compare definitions.
19588         * tests/test-vc-list-files-git.sh: Likewise.
19589         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19590
19591 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19592
19593         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19594         backup files.
19595
19596 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19597
19598         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19599
19600 2010-04-20  Eric Blake  <eblake@redhat.com>
19601
19602         tests: be robust to ignored SIGPIPE
19603         * tests/test-select-in.sh: Consume all output.
19604         * tests/test-lseek.sh: Check correct exit status, while avoiding
19605         EPIPE.
19606
19607 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19608             Bruno Haible  <bruno@clisp.org>
19609
19610         visibility: Don't use -fvisibility if it leads to a warning.
19611         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19612         yes, don't pretend that visibility works if it leads to a warning.
19613         Reported by Mike Gran <spk121@yahoo.com>.
19614
19615 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19616
19617         * build-aux/bootstrap: Use "git -h" for testing for supported options
19618         instead of "git --help".  The short-form option only shows a summary,
19619         and doesn't layout the full man page.  Grep for the full option name
19620         in the summary, too.
19621
19622 2010-04-19  Bruno Haible  <bruno@clisp.org>
19623
19624         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19626         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19627         mention of RELOCATABLE_STRIP.
19628         Reported by Sylvain Beucler <beuc@beuc.net>.
19629
19630 2010-04-19  Bruno Haible  <bruno@clisp.org>
19631
19632         * lib/diffseq.h: Fix typo in comment.
19633         Reported by Eric Blake.
19634
19635 2010-04-19  Bruno Haible  <bruno@clisp.org>
19636
19637         ioctl: Move autoconf macro to a .m4 file.
19638         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19639         * modules/ioctl (Files): Add it.
19640         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19641         Reported by Ian Beckwith <ianb@erislabs.net>.
19642
19643 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19644             Bruno Haible  <bruno@clisp.org>
19645
19646         diffseq: Accommodate use-case with abstract arrays.
19647         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19648         is not defined.
19649         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19650         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19651
19652 2010-04-18  Bruno Haible  <bruno@clisp.org>
19653
19654         * doc/posix-headers/stdbool.texi: More precise wording.
19655
19656 2010-04-17  Jim Meyering  <meyering@redhat.com>
19657
19658         maint.mk: use gnu-style indentation in an embedded perl script
19659         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19660         Rename variable: s/two/last_two_bytes/
19661
19662 2010-04-16  Eric Blake  <eblake@redhat.com>
19663
19664         test-stdbool: skip test that fails with Solaris CC
19665         * tests/test-stdbool.c (f): Skip test that causes compilation
19666         error under buggy C++ compiler.
19667         * lib/stdbool.in.h: Document the limitation.
19668         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19669
19670         setenv: allow compilation with C++
19671         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19672         register keyword.
19673
19674         stdint: allow test to pass with C++
19675         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19676
19677         getopt: allow compilation with C++
19678         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19679         struct.
19680         * lib/getopt.c (_getopt_internal_r): Use correct type.
19681         Reported by Dagobert Michelson, via Joel E. Denny.
19682
19683 2010-04-16  Bruno Haible  <bruno@clisp.org>
19684
19685         Override netdb.h always.
19686         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19688         Reported by Ludovic Courtès <ludo@gnu.org>.
19689
19690 2010-04-15  Bruno Haible  <bruno@clisp.org>
19691
19692         openpty: Fix mistake from 2010-03-21.
19693         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19694         Reported by Simon Josefsson.
19695
19696 2010-04-15  Eric Blake  <eblake@redhat.com>
19697
19698         test-forkpty: fix expected signature
19699         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19700         Reported by Simon Josefsson.
19701
19702 2010-04-15  Jim Meyering  <meyering@redhat.com>
19703
19704         maint.mk: texinfo_suffix_re_: correct the default regexp
19705         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19706
19707         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19708         make it configurable via texinfo_suffix_re_.
19709
19710 2010-04-14  Eric Blake  <eblake@redhat.com>
19711
19712         strtok_r: relax license to LGPLv2+
19713         * modules/strtok_r (License): Relax license.
19714         Reported by Matthias Bolte.
19715
19716 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19717
19718         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19719         version 1.4.4 by default instead of requiring the libgcrypt
19720         version used during build.  This makes it possible to use the
19721         application with older but still binary compatible libgcrypt
19722         versions.
19723
19724 2010-04-13  Eric Blake  <eblake@redhat.com>
19725
19726         getopt-gnu: match recent glibc fixes and posix ruling
19727         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19728         '+' handling, when requesting extensions.
19729         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19730         'W;' handling.
19731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19732         * doc/posix-functions/getopt.texi (getopt): Document this.
19733         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19734         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19735         Likewise.
19736
19737         getopt: merge bug fixes from glibc
19738         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19739         diagnostics.  Honor '+:' correctly.  Reject ';'.
19740
19741         getopt-posix: detect MacOS bug
19742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19743         optind when missing a required argument.
19744         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19745         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19746         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19747         Likewise.
19748
19749         getopt-posix: avoid spurious failure on Solaris
19750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19751         an indicator that setting optind=1 is sufficient for reset.
19752
19753         getopt-posix: avoid spurious failure on FreeBSD
19754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19755         in POSIX mode, since the m4 test uses it.
19756
19757         gnulib-tool: silence warning on BSD sh
19758         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19759
19760 2010-04-13  Jim Meyering  <meyering@redhat.com>
19761
19762         doc: users.txt: GNU patch now uses gnulib
19763         * users.txt: Add patch.
19764
19765 2010-04-12  Jim Meyering  <meyering@redhat.com>
19766
19767         maint.mk: generate more concise timing data for syntax-check rules
19768         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19769         " done" from each line that reports a syntax-check test duration.
19770
19771 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19772
19773         git-version-gen: use "git update-index..." rather than "git status"
19774         * build-aux/git-version-gen: Use git update-index --refresh, not
19775         "git status".  With some versions of git, "git status" would fail
19776         to update the index and result in an unwarranted "-dirty" suffix.
19777
19778 2010-04-11  Jim Meyering  <meyering@redhat.com>
19779
19780         openat: correct formatting (no semantic change)
19781         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19782         Suggested by Bruno Haible.
19783
19784 2010-04-11  Bruno Haible  <bruno@clisp.org>
19785
19786         Stricter declaration checking in testdirs.
19787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19788         If for_tests is true, augment AM_CPPFLAGS to define
19789         GNULIB_STRICT_CHECKING.
19790         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19791         GNULIB_STRICT_CHECKING is defined, verify that the function is
19792         declared.
19793
19794 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19795             Bruno Haible  <bruno@clisp.org>
19796
19797         libunistring: Improve configure output.
19798         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19799         Don't say "consider installing GNU libunistring" when checking again
19800         with libiconv.
19801
19802 2010-04-11  Bruno Haible  <bruno@clisp.org>
19803
19804         libunistring: Correct value of $LTLIBUNISTRING.
19805         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19806         correct the value of $LTLIBUNISTRING.
19807
19808 2010-04-11  Bruno Haible  <bruno@clisp.org>
19809
19810         havelib: Add static libraries to LIBS in the right order.
19811         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19812         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19813
19814 2010-04-11  Bruno Haible  <bruno@clisp.org>
19815
19816         libunistring: Detect libunistring also when it depends on libiconv.
19817         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19818         the second AC_LIB_HAVE_LINKFLAGS invocation.
19819
19820 2010-04-11  James Youngman  <jay@gnu.org>
19821
19822         close-stream: declare local scalars to be "const"
19823         * lib/close-stream.c (close_stream): Make boolean variables const
19824         to document the fact that we set but do not change them.
19825
19826 2010-04-11  Bruno Haible  <bruno@clisp.org>
19827
19828         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19829
19830 2010-04-11  Jim Meyering  <meyering@redhat.com>
19831
19832         maint.mk: don't include dist-check.mk
19833         * top/maint.mk: Remove bogus include directive.
19834
19835         maint.mk: improve empty-line-at-EOF check
19836         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19837         solution, rather than tail+Perl-based one.  The latter would read
19838         a few kilobytes from the end of each file, and did not handle empty
19839         files properly.
19840
19841         maint.mk: print the elapsed time for each syntax-check rule
19842         * top/maint.mk (sc_m_rules_): Save start time in a file.
19843         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19844         (local-check): Interpose the .z rules
19845
19846 2010-04-11  Jim Meyering  <meyering@redhat.com>
19847
19848         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19849         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19850         empty file with one that ends in an empty line.
19851
19852 2010-04-10  Bruno Haible  <bruno@clisp.org>
19853
19854         mkdir: Make it work on mingw64.
19855         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19856         * lib/mkdir.c: Update comment.
19857         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
19858
19859 2010-04-10  Bruno Haible  <bruno@clisp.org>
19860
19861         Don't override improved macro from newer autoconf.
19862         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19863         autoconf >= 2.62.
19864         Reported by Joel E. Denny <jdenny@clemson.edu>.
19865
19866 2010-04-10  Jim Meyering  <meyering@redhat.com>
19867
19868         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19869         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19870
19871         maint.mk: correct a diagnostic
19872         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19873         in diagnostic; now use $prohibit.
19874
19875 2010-04-10  Bruno Haible  <address@hidden>
19876
19877         fchownat: Fix a C++ test error on Solaris 8.
19878         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19879         the function does not exist.
19880
19881 2010-04-10  Bruno Haible  <bruno@clisp.org>
19882
19883         vasnprintf: Add more tests.
19884         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19885         (test_function): Test converting an invalid wide string.
19886
19887         vasnprintf: Correct handling of unconvertible wide string arguments.
19888         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19889         VASNPRINTF.
19890         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19891         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19892         smaller than the expected maximum need for the directive. Set errno to
19893         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19894         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19896         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19897         * modules/vasnprintf (Files): Add m4/printf.m4.
19898         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19899
19900 2010-04-10  Bruno Haible  <bruno@clisp.org>
19901
19902         vasnprintf: Fix crash in %ls directive.
19903         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19904         string is passed as argument to %ls, with no precision and no width.
19905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19906
19907 2010-04-10  Bruno Haible  <bruno@clisp.org>
19908
19909         vasnprintf: Fix multiple test failures on mingw.
19910         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19911         _snprintf, or snwprintf, not _snwprintf.
19912
19913 2010-04-10  Bruno Haible  <bruno@clisp.org>
19914
19915         write: Fix a C++ test error on mingw.
19916         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19917
19918 2010-04-10  Bruno Haible  <bruno@clisp.org>
19919
19920         vasnprintf test: Reduce code duplication.
19921         * tests/test-vasnprintf.c (test_function): New function, extracted from
19922         test_vasnprintf.
19923         (test_vasnprintf, test_asnprintf): Invoke it.
19924
19925 2010-04-10  Bruno Haible  <bruno@clisp.org>
19926
19927         strnlen: Fix warning in C++ mode on MacOS X.
19928         * lib/string.in.h (strnlen): Use the modern idiom.
19929         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19930         defining strnlen as a macro already in <config.h>.
19931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19932         REPLACE_STRNLEN.
19933         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19934         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19935
19936 2010-04-08  James Youngman  <jay@gnu.org>
19937
19938         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19939         the example.
19940
19941 2010-04-09  Jim Meyering  <meyering@redhat.com>
19942
19943         maint.mk: print better diagnostic when there is no $(_hv_file)
19944         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19945         announce that when $(_hv_file) (aka help-version) does not exist.
19946
19947         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19948         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19949         not try to interpret its random input bytes.  Jarno Rajahalme reported
19950         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19951         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19952         (mktempd_): Likewise, just in case.
19953
19954         ftruncate: add two years to projected module removal date: 2012
19955         * m4/ftruncate.m4: Adjust comments.
19956
19957         ftruncate: mark module as obsolete; even MinGW provides it, now
19958         * modules/ftruncate (Status): Obsolete.
19959         (Notice): Say that.
19960         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19962
19963 2010-04-08  Bruno Haible  <bruno@clisp.org>
19964
19965         Fix side effects from tests-related modules.
19966         * modules/dprintf-posix (Comment): New section.
19967         * modules/fprintf-posix (Comment): Likewise.
19968         * modules/obstack-printf-posix (Comment): Likewise.
19969         * modules/printf-posix (Comment): Likewise.
19970         * modules/snprintf-posix (Comment): Likewise.
19971         * modules/sprintf-posix (Comment): Likewise.
19972         * modules/vasnprintf-posix (Comment): Likewise.
19973         * modules/vasprintf-posix (Comment): Likewise.
19974         * modules/vdprintf-posix (Comment): Likewise.
19975         * modules/vfprintf-posix (Comment): Likewise.
19976         * modules/vprintf-posix (Comment): Likewise.
19977         * modules/vsnprintf-posix (Comment): Likewise.
19978         * modules/vsprintf-posix (Comment): Likewise.
19979         * modules/xprintf-posix (Comment): Likewise.
19980         * modules/xvasprintf-posix (Comment): Likewise.
19981         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19982         * modules/floorf-tests (Depends-on): Likewise.
19983         * modules/round-tests (Depends-on): Likewise.
19984         * modules/roundf-tests (Depends-on): Likewise.
19985         * modules/trunc-tests (Depends-on): Likewise.
19986         * modules/truncf-tests (Depends-on): Likewise.
19987         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19988         'fprintf-posix' module is not present.
19989         * tests/test-floorf2.c (check): Likewise.
19990         * tests/test-trunc2.c (check): Likewise.
19991         * tests/test-truncf2.c (check): Likewise.
19992         * tests/test-round2.c (equal): Likewise.
19993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19994
19995 2010-04-07  Karl Berry  <karl@gnu.org>
19996
19997         * config/srclist.txt,
19998         * config/srclistvars.sh,
19999         * config/srclist-update: doc fixes.
20000
20001 2010-04-07  Jim Meyering  <meyering@redhat.com>
20002
20003         maint.mk: add a PATH crosschecking syntax-check rule
20004         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20005         Useful if you use a test like the one in help-version (coreutils,
20006         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20007         printed by prog --version.
20008
20009 2010-04-06  Bruno Haible  <bruno@clisp.org>
20010
20011         Fix link error on mingw.
20012         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20013         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20014
20015 2010-04-06  Bruno Haible  <bruno@clisp.org>
20016
20017         Assume rmdir exists.
20018         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20019
20020 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20021
20022         doc: update users.txt
20023         * users.txt: Add gcal.
20024
20025 2010-04-06  Jim Meyering  <meyering@redhat.com>
20026
20027         init.sh: simply unset TMPDIR rather than risking env -i
20028         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20029         although it probably works fine on all Unix-based systems, some
20030         systems (Cygwin?) cannot tolerate a totally cleared environment.
20031         Suggestion from Eric Blake.
20032
20033 2010-04-06  Jim Meyering  <meyering@redhat.com>
20034
20035         init.sh: portability fix: use env's POSIX-specified -i option not -u
20036         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20037         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20038
20039 2010-04-05  Bruno Haible  <bruno@clisp.org>
20040
20041         btowc: Work around Cygwin 1.7.2 bug.
20042         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20043         does not map NUL to 0.
20044         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20045
20046 2010-04-05  Bruno Haible  <bruno@clisp.org>
20047
20048         Make the multithread modules work on Cygwin 1.7.2.
20049         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20050         imported symbols can be declared weak, so that it returns "no" on
20051         Cygwin 1.7.2.
20052
20053 2010-04-05  Bruno Haible  <bruno@clisp.org>
20054
20055         Use the module 'strncat'.
20056         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20057
20058         Tests for module 'strncat'.
20059         * modules/strncat-tests: New file.
20060         * tests/test-strncat.c: New file.
20061
20062         New module 'strncat'.
20063         * lib/string.in.h (strncat): New declaration.
20064         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20065         * m4/strncat.m4: New file, based on m4/memchr.m4.
20066         * modules/strncat: New file.
20067         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20068         is declared.
20069         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20070         REPLACE_STRNCAT.
20071         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20072         REPLACE_STRNCAT.
20073         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20074         module.
20075         * tests/test-string-c++.cc: Check signature of strncat.
20076
20077 2010-04-05  Jim Meyering  <meyering@redhat.com>
20078
20079         xstrtoumax-tests: convert to use init.sh
20080         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20081         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20082         Use Exit, not exit.
20083         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20084
20085         xstrtoimax-tests: convert to use init.sh
20086         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20087         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20088         Use Exit, not exit.
20089         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20090
20091 2010-04-05  Bruno Haible  <bruno@clisp.org>
20092
20093         sys_socket: Avoid #define replacements in C++ mode.
20094         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20095         warning to the function if possible, rather than #defining the symbol
20096         to a dysfunctional alias.
20097
20098 2010-04-05  Bruno Haible  <bruno@clisp.org>
20099
20100         fseeko: Fix C++ test error on mingw.
20101         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20102         gl_FUNC_FSEEKO.
20103         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20104         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20105         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20106         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20107
20108 2010-04-05  Bruno Haible  <bruno@clisp.org>
20109
20110         duplocale: Improve test output.
20111         * tests/test-duplocale.c (main): Print reason for skipped test.
20112
20113 2010-04-05  Bruno Haible  <bruno@clisp.org>
20114
20115         Assume rmdir exists.
20116         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20117         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20118
20119 2010-04-05  Bruno Haible  <bruno@clisp.org>
20120
20121         Fix link error on Solaris 8 with cc.
20122         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20123
20124 2010-04-05  Bruno Haible  <bruno@clisp.org>
20125
20126         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20127         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20128
20129 2010-04-05  Bruno Haible  <bruno@clisp.org>
20130
20131         vasprintf: Update documentation.
20132         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20133
20134 2010-04-05  Bruno Haible  <bruno@clisp.org>
20135
20136         ptsname: Improve test.
20137         * tests/test-ptsname.c (main): Also try the various master names of BSD
20138         systems.
20139
20140 2010-04-05  Bruno Haible  <bruno@clisp.org>
20141
20142         memchr: Avoid a possible C++ test error.
20143         * lib/string.in.h (memchr): Provide declaration if function is missing.
20144         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20145         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20147         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20148
20149 2010-04-05  Bruno Haible  <bruno@clisp.org>
20150
20151         strtok_r: Improve idiom.
20152         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20153         AC_LIBOBJ is used.
20154
20155 2010-04-05  Bruno Haible  <bruno@clisp.org>
20156
20157         strdup: Improve idiom.
20158         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20159         AC_LIBOBJ is used.
20160         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20161         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20162         when AC_LIBOBJ is used.
20163
20164 2010-04-05  Bruno Haible  <bruno@clisp.org>
20165
20166         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20167         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20168         don't set REPLACE_MBSINIT to 1.
20169         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20170         don't set REPLACE_MBRTOWC to 1.
20171         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20172         exist, don't set REPLACE_MBSRTOWCS to 1.
20173         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20174         exist, don't set REPLACE_MBSNRTOWCS to 1.
20175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20176         don't set REPLACE_WCRTOMB to 1.
20177         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20178         exist, don't set REPLACE_WCSRTOMBS to 1.
20179         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20180         exist, don't set REPLACE_WCSNRTOMBS to 1.
20181
20182 2010-04-05  Bruno Haible  <bruno@clisp.org>
20183
20184         ldexpl: Improve idiom.
20185         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20186         make sure to set HAVE_DECL_LDEXPL to 0.
20187
20188 2010-04-05  Jim Meyering  <meyering@redhat.com>
20189
20190         xstrtol-tests: convert to use init.sh
20191         * modules/xstrtol-tests (Files): Add tests/init.sh.
20192         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20193         Use Exit, not exit.
20194         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20195
20196         atexit-tests: convert to use init.sh
20197         * modules/atexit-tests (Files): Add tests/init.sh.
20198         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20199         Use Exit, not exit.
20200         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20201
20202         init.sh: fix typo
20203         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20204
20205         init.sh: make it easier for a test script to write to the tty, ...
20206         when using automake's parallel-tests mode.
20207         * tests/init.sh (stderr_fileno_): Define overridable variable.
20208         (warn_): New function, to use it.
20209         (fail_, skip_, framework_failure_): Use warn_.
20210
20211 2010-04-04  Bruno Haible  <bruno@clisp.org>
20212
20213         btowc: Avoid warning.
20214         * lib/btowc.c: Include <stdlib.h>.
20215         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20216
20217 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20218             Bruno Haible  <bruno@clisp.org>
20219
20220         wchar: Port to NetBSD 1.5.
20221         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20222         * lib/wctype.in.h (WEOF): Likewise.
20223
20224 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20225             Bruno Haible  <bruno@clisp.org>
20226
20227         Port extended stdio to NetBSD 1.5.
20228         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20229         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20230         older.
20231
20232 2010-04-04  Bruno Haible  <bruno@clisp.org>
20233
20234         string: Remove unused substitution.
20235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20236         HAVE_DECL_STRERROR.
20237         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20238
20239 2010-04-04  Bruno Haible  <bruno@clisp.org>
20240
20241         strtod: Avoid a possible C++ test error.
20242         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20243         set REPLACE_STRTOD.
20244
20245 2010-04-04  Bruno Haible  <bruno@clisp.org>
20246
20247         strerror: Update documentation.
20248         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20249
20250 2010-04-04  Bruno Haible  <bruno@clisp.org>
20251
20252         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20253         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20254         _GL_CXXALIAS_SYS_CAST.
20255
20256 2010-04-04  Bruno Haible  <bruno@clisp.org>
20257
20258         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20259         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20260         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20261         REPLACE_FREXPL to 1.
20262         * doc/posix-functions/frexpl.texi: Update documentation.
20263
20264 2010-04-04  Bruno Haible  <bruno@clisp.org>
20265
20266         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20267         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20268
20269 2010-04-04  Bruno Haible  <bruno@clisp.org>
20270
20271         Implement nanosleep for native Windows.
20272         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20273
20274 2010-04-04  Bruno Haible  <bruno@clisp.org>
20275
20276         math: Fix some C++ test errors on Solaris 8.
20277         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20278
20279 2010-04-04  Bruno Haible  <bruno@clisp.org>
20280
20281         math: Fix some C++ test errors on Cygwin.
20282         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20283         truncl): Provide declaration if the system does not have it.
20284         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20285         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20286         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20287         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20288         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20289         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20290         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20291         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20292         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20293         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20294         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20295         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20296         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20297         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20298         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20299         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20301         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20302         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20303         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20304         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20305         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20306
20307 2010-04-04  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20310         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20311         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20312         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20313         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20314         * m4/isinf.m4 (gl_ISINF): Likewise.
20315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20316
20317 2010-04-04  Bruno Haible  <bruno@clisp.org>
20318
20319         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20320         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20321
20322 2010-04-04  Bruno Haible  <bruno@clisp.org>
20323
20324         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20325         * modules/tmpfile (configure.ac): Update.
20326
20327         tmpfile: Fix C++ test error on mingw.
20328         * lib/stdio.in.h (tmpfile): New declaration.
20329         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20330         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20331         * modules/tmpfile (Depends-on): Add stdio.
20332         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20333         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20335         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20336         REPLACE_TMPFILE.
20337         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20338
20339 2010-04-04  Bruno Haible  <bruno@clisp.org>
20340
20341         ioctl: Fix C++ test error on mingw.
20342         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20343         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20344         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20345
20346 2010-04-03  Bruno Haible  <bruno@clisp.org>
20347
20348         wcwidth: Fix C++ test error on mingw.
20349         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20351         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20352
20353 2010-04-03  Bruno Haible  <bruno@clisp.org>
20354
20355         nanosleep: Fix C++ test error on mingw.
20356         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20357         * lib/time.in.h (nanosleep): Use modern idiom.
20358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20359         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20360         REPLACE_NANOSLEEP to 1.
20361         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20362         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20363
20364 2010-04-03  Bruno Haible  <bruno@clisp.org>
20365
20366         strptime: Fix C++ test error on mingw.
20367         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20368         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20369         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20370         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20372         not REPLACE_STRPTIME.
20373         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20374         REPLACE_STRPTIME.
20375
20376 2010-04-03  Bruno Haible  <bruno@clisp.org>
20377
20378         timegm: Fix C++ test error on mingw.
20379         * lib/time.in.h (timegm): Use modern idiom.
20380         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20381         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20383         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20384
20385 2010-04-03  Bruno Haible  <bruno@clisp.org>
20386
20387         timegm: Assume declaration if function exists.
20388         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20389         if it exists. Don't clobber ac_cv_func_timegm.
20390
20391 2010-04-03  Bruno Haible  <bruno@clisp.org>
20392
20393         time_r: Fix C++ test error on mingw.
20394         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20395         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20396         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20397         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20398         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20399
20400 2010-04-03  Bruno Haible  <bruno@clisp.org>
20401
20402         time_r: Minor updates.
20403         * modules/time_r (Description): Mention the provided functions.
20404         * lib/time_r.c: Don't include <string.h>.
20405         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20406         * doc/posix-functions/localtime_r.texi: Likewise.
20407
20408 2010-04-03  Bruno Haible  <bruno@clisp.org>
20409
20410         time: Fix regression introduced on 2010-03-08.
20411         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20412         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20413
20414 2010-04-03  Jim Meyering  <meyering@redhat.com>
20415
20416         maint.mk: don't silently disable project-specific syntax-check rules
20417         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20418         that they need to convert their project-specific syntax-check rules
20419         to use the new _sc_search_regexp.
20420
20421 2010-04-03  Bruno Haible  <bruno@clisp.org>
20422
20423         fchdir: Fix regression introduced on 2010-03-08.
20424         * lib/unistd.in.h (fchdir): Fix declaration.
20425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20427         REPLACE_FCHDIR.
20428         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20429         REPLACE_FCHDIR.
20430
20431 2010-04-03  Bruno Haible  <bruno@clisp.org>
20432
20433         getpagesize: Fix C++ test error on mingw.
20434         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20435         system does not declare the function.
20436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20437         declared.
20438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20439         HAVE_DECL_GETPAGESIZE.
20440         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20441
20442 2010-04-03  Bruno Haible  <bruno@clisp.org>
20443
20444         stdio: Make C++ tests work on mingw.
20445         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20446         does not declare the function.
20447
20448 2010-04-03  Bruno Haible  <bruno@clisp.org>
20449
20450         ftello: Fix C++ test error on mingw.
20451         * lib/stdio.in.h (ftello): Use modern idiom.
20452         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20453         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20454         is missing and that it needs to be replaced.
20455         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20457         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20458
20459 2010-04-03  Bruno Haible  <bruno@clisp.org>
20460
20461         fseeko: Fix C++ test error on mingw.
20462         * lib/stdio.in.h (fseeko): Use modern idiom.
20463         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20465         is missing and that it needs to be replaced.
20466         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20468         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20469
20470 2010-04-03  Bruno Haible  <bruno@clisp.org>
20471
20472         mkstemp: Fix C++ test error on mingw.
20473         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20475         function is missing and that it needs to be replaced.
20476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20477         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20478
20479 2010-04-03  Bruno Haible  <bruno@clisp.org>
20480
20481         stpncpy: Fix C++ test error on mingw.
20482         * lib/string.in.h (stpncpy): Use modern idiom.
20483         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20484         function is missing and that it needs to be replaced.
20485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20486         REPLACE_STPNCPY.
20487         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20488
20489 2010-04-03  Bruno Haible  <bruno@clisp.org>
20490
20491         sys_stat: Fix C++ test error on mingw.
20492         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20493         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20494
20495 2010-04-03  Bruno Haible  <bruno@clisp.org>
20496
20497         pty: Update doc.
20498         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20499
20500 2010-04-03  Bruno Haible  <bruno@clisp.org>
20501
20502         unistd: Fix C++ test error on mingw.
20503         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20504
20505 2010-04-03  Bruno Haible  <bruno@clisp.org>
20506
20507         Update doc regarding mingw.
20508         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20509         * doc/glibc-functions/login_tty.texi: Likewise.
20510         * doc/glibc-functions/forkpty.texi: Likewise.
20511
20512 2010-04-03  Bruno Haible  <bruno@clisp.org>
20513
20514         stdlib: Avoid compilation failure of c-strtold on mingw.
20515         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20516
20517 2010-04-03  Bruno Haible  <bruno@clisp.org>
20518
20519         locale: Make C++ tests work on Cygwin and mingw.
20520         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20521         cannot provide the function.
20522         Reported by Simon Josefsson.
20523
20524 2010-04-03  Bruno Haible  <bruno@clisp.org>
20525
20526         localename: Port to MacOS X 10.6.
20527         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20528         memory layout of the locales in MacOS X 10.6 as well.
20529         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20530
20531 2010-04-02  Bruno Haible  <bruno@clisp.org>
20532
20533         gnulib-tool: Ensure that long-running tests are executed last.
20534         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20535         running tests after the one for the other tests.
20536
20537 2010-04-02  Bruno Haible  <bruno@clisp.org>
20538
20539         gnulib-tool: Ensure the tests in the main directory are executed first.
20540         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20541         start with the current directory.
20542
20543 2010-04-02  Bruno Haible  <bruno@clisp.org>
20544
20545         Tests for module 'havelib', moved here from GNU gettext.
20546         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20547         modifications.
20548         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20549         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20550         with modifications.
20551         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20552         modifications.
20553         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20554         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20555         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20556         with modifications.
20557         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20558         with modifications.
20559         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20560         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20561         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20562         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20563         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20564         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20565         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20566         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20567         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20568         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20569         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20570         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20571         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20572         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20573         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20574         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20575         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20576         with modifications.
20577         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20578         with modifications.
20579         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20580         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20581         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20582         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20583         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20584         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20585         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20586         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20587         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20588         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20589         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20590         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20591         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20592         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20593         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20594         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20595         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20596         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20597         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20598         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20599         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20600         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20601         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20602         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20603         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20604         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20605         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20606         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20607         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20608         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20609         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20610         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20611         * tests/havelib/rpathx/rpathx.c: New file, from
20612         gettext/autoconf-lib-link.
20613         * tests/havelib/rpathx/Makefile.am: New file, from
20614         gettext/autoconf-lib-link.
20615         * tests/havelib/rpathx/configure.ac: New file, from
20616         gettext/autoconf-lib-link with modifications.
20617         * tests/havelib/rpathy/rpathy.c: New file, from
20618         gettext/autoconf-lib-link.
20619         * tests/havelib/rpathy/Makefile.am: New file, from
20620         gettext/autoconf-lib-link.
20621         * tests/havelib/rpathy/configure.ac: New file, from
20622         gettext/autoconf-lib-link with modifications.
20623         * tests/havelib/rpathz/rpathz.c: New file, from
20624         gettext/autoconf-lib-link.
20625         * tests/havelib/rpathz/Makefile.am: New file, from
20626         gettext/autoconf-lib-link.
20627         * tests/havelib/rpathz/configure.ac: New file, from
20628         gettext/autoconf-lib-link with modifications.
20629         * tests/havelib/rpathlx/usex.c: New file, from
20630         gettext/autoconf-lib-link.
20631         * tests/havelib/rpathlx/Makefile.am: New file, from
20632         gettext/autoconf-lib-link.
20633         * tests/havelib/rpathlx/configure.ac: New file, from
20634         gettext/autoconf-lib-link with modifications.
20635         * tests/havelib/rpathly/usey.c: New file, from
20636         gettext/autoconf-lib-link.
20637         * tests/havelib/rpathly/Makefile.am: New file, from
20638         gettext/autoconf-lib-link.
20639         * tests/havelib/rpathly/configure.ac: New file, from
20640         gettext/autoconf-lib-link with modifications.
20641         * tests/havelib/rpathlz/usez.c: New file, from
20642         gettext/autoconf-lib-link.
20643         * tests/havelib/rpathlz/Makefile.am: New file, from
20644         gettext/autoconf-lib-link.
20645         * tests/havelib/rpathlz/configure.ac: New file, from
20646         gettext/autoconf-lib-link with modifications.
20647         * tests/havelib/rpathlyx/usey.c: New file, from
20648         gettext/autoconf-lib-link.
20649         * tests/havelib/rpathlyx/Makefile.am: New file, from
20650         gettext/autoconf-lib-link.
20651         * tests/havelib/rpathlyx/configure.ac: New file, from
20652         gettext/autoconf-lib-link with modifications.
20653         * tests/havelib/rpathlzyx/usez.c: New file, from
20654         gettext/autoconf-lib-link.
20655         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20656         gettext/autoconf-lib-link.
20657         * tests/havelib/rpathlzyx/configure.ac: New file, from
20658         gettext/autoconf-lib-link with modifications.
20659         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20660         with modifications.
20661
20662 2010-04-02  Bruno Haible  <bruno@clisp.org>
20663
20664         gnulib-tool: Create distributed built sources also for the tests.
20665         * gnulib-tool (func_create_testdir): Also generate distributed built
20666         sources in the tests directory.
20667
20668 2010-04-02  Bruno Haible  <bruno@clisp.org>
20669
20670         gnulib-tool: Obey user's environment variables.
20671         * gnulib-tool (func_create_testdir): When creating built sources,
20672         respect the environment variables for autoconf, automake, etc. given by
20673         the user.
20674
20675 2010-04-02  Bruno Haible  <bruno@clisp.org>
20676
20677         gnulib-tool: Provide the value of --m4-base to modules.
20678         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20679         of gl_m4_base.
20680
20681 2010-04-02  Eric Blake  <eblake@redhat.com>
20682
20683         maint.mk: fix some fallout
20684         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20685         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20686
20687 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20688
20689         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20690         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20691         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20692         (sc_cast_of_x_alloc_return_value): Likewise.
20693         (sc_cast_of_alloca_return_value): Likewise.
20694         (sc_space_tab): Likewise.
20695         (sc_prohibit_atoi_atof): Likewise.
20696         (sc_prohibit_magic_number_exit): Likewise.
20697         (sc_error_exit_success): Likewise.
20698         (sc_file_system): Likewise.
20699         (sc_prohibit_have_config_h): Likewise.
20700         (sc_require_config_h): Likewise.
20701         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20702         (sc_obsolete_symbols): Likewise.
20703         (sc_changelog): Likewise.
20704         (sc_program_name): Likewise.
20705         (sc_the_the): Likewise.
20706         (sc_trailing_blank): Likewise.
20707         (sc_two_space_separator_in_usage): Likewise.
20708         (sc_useless_cpp_parens): Likewise.
20709         (sc_GPL_version): Likewise.
20710         (sc_GFDL_version): Likewise.
20711         (sc_texinfo_acronym): Likewise.
20712         (sc_prohibit_cvs_keyword): Likewise.
20713         (sc_prohibit_stat_st_blocks): Likewise.
20714         (sc_prohibit_S_IS_definition): Likewise.
20715         (sc_redundant_const): Likewise.
20716         (sc_makefile_TAB_only_indentation): Likewise.
20717         (sc_m4_quote_check): Likewise.
20718         (sc_makefile_path_separator_check): Likewise.
20719         (sc_copyright_check): Likewise.
20720         (sc_Wundef_boolean): Likewise.
20721         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20722
20723         maint.mk: match 0 or more whitespace-before-function-call '('
20724         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20725         that have zero or two-and-more spaces between the function name
20726         and the open parenthesis.
20727         (sc_error_message_warn_fatal): Likewise.
20728         (sc_error_message_uppercase): Likewise.
20729         (sc_error_message_period): Likewise.
20730
20731 2010-03-31  Eric Blake  <eblake@redhat.com>
20732
20733         maint.mk: check for [ as well as test
20734         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20735         Based on a libvirt report by Matthias Bolte.
20736
20737         gnumakefile: don't squelch _version output
20738         * top/GNUmakefile (_version): Create one-shot dependency rather
20739         than using $(shell) when version must be regenerated.
20740         (_autoreconf): Run verbosely, by default.
20741
20742         sys_time: avoid compiler warnings
20743         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20744         unconditional, fixing regression from 2010-03-29.
20745         Reported by Simon Josefsson.
20746
20747 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20748
20749         maint.mk: s/_header_without_use/_sc_header_without_use/
20750         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20751         (sc_prohibit_assert_without_use): Use the new name.
20752         (sc_prohibit_close_stream_without_use): Likewise.
20753         (sc_prohibit_getopt_without_use): Likewise.
20754         (sc_prohibit_quotearg_without_use): Likewise.
20755         (sc_prohibit_quote_without_use): Likewise.
20756         (sc_prohibit_long_options_without_use): Likewise.
20757         (sc_prohibit_inttostr_without_use): Likewise.
20758         (sc_prohibit_ignore_value_without_use): Likewise.
20759         (sc_prohibit_error_without_use): Likewise.
20760         (sc_prohibit_xalloc_without_use): Likewise.
20761         (sc_prohibit_hash_without_use): Likewise.
20762         (sc_prohibit_hash_pjw_without_use): Likewise.
20763         (sc_prohibit_safe_read_without_use): Likewise.
20764         (sc_prohibit_argmatch_without_use): Likewise.
20765         (sc_prohibit_canonicalize_without_use): Likewise.
20766         (sc_prohibit_root_dev_ino_without_use): Likewise.
20767         (sc_prohibit_openat_without_use): Likewise.
20768         (sc_prohibit_c_ctype_without_use): Likewise.
20769         (sc_prohibit_signal_without_use): Likewise.
20770         (sc_prohibit_intprops_without_use): Likewise.
20771
20772 2010-03-30  Eric Blake  <eblake@redhat.com>
20773
20774         maint: improve module indicators
20775         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20776         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20777         columns, and avoid extra macro expansion.
20778
20779         fdopendir: work around FreeBSD bug
20780         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20781         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20782         * modules/dirent (Makefile.am): Substitute it.
20783         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20784         declaration.
20785         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20786         fix.
20787         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20788
20789 2010-03-29  Bruno Haible  <bruno@clisp.org>
20790
20791         Emit #pragma system_header after the inclusion guard, not before.
20792         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20793         guard that spans the entire file, not before. This enables an
20794         optimization in GCC's preprocessor.
20795         * lib/ctype.in.h: Likewise.
20796         * lib/dirent.in.h: Likewise.
20797         * lib/errno.in.h: Likewise.
20798         * lib/float.in.h: Likewise.
20799         * lib/getopt.in.h: Likewise.
20800         * lib/iconv.in.h: Likewise.
20801         * lib/langinfo.in.h: Likewise.
20802         * lib/locale.in.h: Likewise.
20803         * lib/math.in.h: Likewise.
20804         * lib/netdb.in.h: Likewise.
20805         * lib/netinet_in.in.h: Likewise.
20806         * lib/pty.in.h: Likewise.
20807         * lib/sched.in.h: Likewise.
20808         * lib/se-selinux.in.h: Likewise.
20809         * lib/search.in.h: Likewise.
20810         * lib/spawn.in.h: Likewise.
20811         * lib/stdarg.in.h: Likewise.
20812         * lib/stdint.in.h: Likewise.
20813         * lib/string.in.h: Likewise.
20814         * lib/strings.in.h: Likewise.
20815         * lib/sys_file.in.h: Likewise.
20816         * lib/sys_ioctl.in.h: Likewise.
20817         * lib/sys_time.in.h: Likewise.
20818         * lib/sys_times.in.h: Likewise.
20819         * lib/sys_utsname.in.h: Likewise.
20820         * lib/sys_wait.in.h: Likewise.
20821         * lib/sysexits.in.h: Likewise.
20822         * lib/wctype.in.h: Likewise.
20823
20824 2010-03-28  James Youngman  <jay@gnu.org>
20825
20826         save-cwd: don't leak a file descriptor when the caller execs.
20827         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20828         saved file descriptor.
20829         * modules/save-cwd (Depends-on): Depend on cloexec.
20830
20831 2010-03-29  Bruno Haible  <bruno@clisp.org>
20832
20833         Remove vestiges of fts-lgpl module.
20834         * lib/fts_.h: Assume GNULIB_FTS is 1.
20835         * lib/fts.c: Likewise.
20836         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20837
20838 2010-03-28  Bruno Haible  <bruno@clisp.org>
20839
20840         Fix definition of tests witness macro.
20841         * gnulib-tool (func_import): Fix definition of witness macro.
20842
20843 2010-03-28  Bruno Haible  <bruno@clisp.org>
20844
20845         Fix ioctl's protoype on glibc systems.
20846         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20847         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20848         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20849         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20850         signature. If not, arrange to replace the ioctl function.
20851         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20852         REPLACE_IOCTL.
20853         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20854         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20855         Reported by Ludovic Courtès <ludo@gnu.org>.
20856
20857 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20858
20859         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20860         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20861         made it so grep -r --include=GLOB* ... did not work.
20862
20863 2010-03-26  Jim Meyering  <meyering@redhat.com>
20864             Eric Blake  <eblake@redhat.com>
20865
20866         maint.mk: prohibit use of test's -o and -a operators
20867         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20868
20869 2010-03-28  Bruno Haible  <bruno@clisp.org>
20870
20871         Remove unused GNULIB_XYZ macro definitions.
20872         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20873         invocation.
20874
20875 2010-03-28  Bruno Haible  <bruno@clisp.org>
20876
20877         Mark privileged tests modules.
20878         * modules/idpriv-drop-tests (Status): New section.
20879         * modules/idpriv-droptemp-tests (Status): New section.
20880
20881 2010-03-28  Bruno Haible  <bruno@clisp.org>
20882
20883         Split C++ tests into separate tests modules.
20884         * modules/dirent-c++-tests: New file, extracted from
20885         modules/dirent-tests.
20886         * modules/dirent-tests: Depend on it.
20887         * modules/fcntl-h-c++-tests: New file, extracted from
20888         modules/fcntl-h-tests.
20889         * modules/fcntl-h-tests: Depend on it.
20890         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20891         * modules/glob-tests: Depend on it.
20892         * modules/iconv-h-c++-tests: New file, extracted from
20893         modules/iconv-h-tests.
20894         * modules/iconv-h-tests: Depend on it.
20895         * modules/langinfo-c++-tests: New file, extracted from
20896         modules/langinfo-tests.
20897         * modules/langinfo-tests: Depend on it.
20898         * modules/locale-c++-tests: New file, extracted from
20899         modules/locale-tests.
20900         * modules/locale-tests: Depend on it.
20901         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20902         * modules/math-tests: Depend on it.
20903         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20904         * modules/pty-tests: Depend on it.
20905         * modules/search-c++-tests: New file, extracted from
20906         modules/search-tests.
20907         * modules/search-tests: Depend on it.
20908         * modules/signal-c++-tests: New file, extracted from
20909         modules/signal-tests.
20910         * modules/signal-tests: Depend on it.
20911         * modules/spawn-c++-tests: New file, extracted from
20912         modules/spawn-tests.
20913         * modules/spawn-tests: Depend on it.
20914         * modules/stdio-c++-tests: New file, extracted from
20915         modules/stdio-tests.
20916         * modules/stdio-tests: Depend on it.
20917         * modules/stdlib-c++-tests: New file, extracted from
20918         modules/stdlib-tests.
20919         * modules/stdlib-tests: Depend on it.
20920         * modules/string-c++-tests: New file, extracted from
20921         modules/string-tests.
20922         * modules/string-tests: Depend on it.
20923         * modules/sys_ioctl-c++-tests: New file, extracted from
20924         modules/sys_ioctl-tests.
20925         * modules/sys_ioctl-tests: Depend on it.
20926         * modules/sys_select-c++-tests: New file, extracted from
20927         modules/sys_select-tests.
20928         * modules/sys_select-tests: Depend on it.
20929         * modules/sys_socket-c++-tests: New file, extracted from
20930         modules/sys_socket-tests.
20931         * modules/sys_socket-tests: Depend on it.
20932         * modules/sys_stat-c++-tests: New file, extracted from
20933         modules/sys_stat-tests.
20934         * modules/sys_stat-tests: Depend on it.
20935         * modules/sys_time-c++-tests: New file, extracted from
20936         modules/sys_time-tests.
20937         * modules/sys_time-tests: Depend on it.
20938         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20939         * modules/time-tests: Depend on it.
20940         * modules/unistd-c++-tests: New file, extracted from
20941         modules/unistd-tests.
20942         * modules/unistd-tests: Depend on it.
20943         * modules/wchar-c++-tests: New file, extracted from
20944         modules/wchar-tests.
20945         * modules/wchar-tests: Depend on it.
20946         * modules/wctype-c++-tests: New file, extracted from
20947         modules/wctype-tests.
20948         * modules/wctype-tests: Depend on it.
20949         Reported by Simon Josefsson.
20950
20951 2010-03-28  Bruno Haible  <bruno@clisp.org>
20952
20953         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20954         * gnulib-tool (func_exists_module): New function, extracted from
20955         func_verify_module.
20956         (func_verify_module): Use it.
20957         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20958         'foo' only if 'foo' exists.
20959         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20960         module.
20961
20962 2010-03-28  Bruno Haible  <bruno@clisp.org>
20963
20964         gnulib-tool: Add support for special categories of tests.
20965         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20966         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20967         (func_usage): Document them.
20968         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20969         inc_unportable_tests, inc_all_tests): New variables.
20970         (func_acceptable): Consider these variables.
20971         (func_modules_transitive_closure): Make it work when the 'Status' field
20972         consists of multiple words.
20973         (func_import): Store and restore the values of inc_cxx_tests,
20974         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20975         inc_all_tests in gnulib-comp.m4.
20976         (func_create_testdir): Set inc_all_tests to true.
20977         * doc/gnulib.texi (Extra tests modules): New section.
20978         Suggested by Jim Meyering.
20979
20980 2010-03-28  Bruno Haible  <bruno@clisp.org>
20981
20982         ansi-c++-opt: Allow turning off the C++ build by default.
20983         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20984         gl_CXX_CHOICE_DEFAULT_NO is defined.
20985         Requested by Eric Blake.
20986
20987 2010-03-28  Bruno Haible  <bruno@clisp.org>
20988
20989         unistd: Avoid #define replacements in C++ mode.
20990         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20991         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20992         setsockopt, shutdown, select): In C++, attach a warning to the function
20993         if possible, rather than #defining the symbol to a dysfunctional alias.
20994         Reported by John W. Eaton <jwe@gnu.org>.
20995
20996 2010-03-28  Bruno Haible  <bruno@clisp.org>
20997
20998         Fix link errors on mingw.
20999         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21000         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21001         $(LIBSOCKET).
21002         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21003         $(LIBSOCKET).
21004
21005 2010-03-28  Bruno Haible  <bruno@clisp.org>
21006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21007
21008         lib-ignore: Determine different options for different compilers.
21009         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21010         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21011         Add comments.
21012         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21013         * NEWS: Mention the change.
21014
21015 2010-03-27  Bruno Haible  <bruno@clisp.org>
21016
21017         Remove unused GNULIB_XYZ macro definitions.
21018         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21019         * modules/fseek (configure.ac): Likewise.
21020         * modules/ioctl (configure.ac): Likewise.
21021         * modules/open (configure.ac): Likewise.
21022         * modules/stdlib-safer (configure.ac): Likewise.
21023
21024 2010-03-27  Bruno Haible  <bruno@clisp.org>
21025
21026         Add a remark about certain modules.
21027         * modules/malloc (Comment): New section.
21028         * modules/realloc (Comment): Likewise.
21029         * modules/sigpipe (Comment): Likewise.
21030
21031 2010-03-27  Bruno Haible  <bruno@clisp.org>
21032
21033         Resolve conflict between the two kinds of module indicators.
21034         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21035         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21036         * modules/canonicalize (configure.ac): Invoke
21037         gl_MODULE_INDICATOR_FOR_TESTS.
21038         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21039         GNULIB_XYZ.
21040         * tests/test-dirent-c++.cc: Likewise.
21041         * tests/test-dirent-safer.c: Likewise.
21042         * tests/test-dup2.c: Likewise.
21043         * tests/test-fchdir.c: Likewise.
21044         * tests/test-fcntl-h-c++.cc: Likewise.
21045         * tests/test-getopt.c: Likewise.
21046         * tests/test-getopt.h: Likewise.
21047         * tests/test-langinfo-c++.cc: Likewise.
21048         * tests/test-locale-c++.cc: Likewise.
21049         * tests/test-math-c++.cc: Likewise.
21050         * tests/test-pty-c++.cc: Likewise.
21051         * tests/test-search-c++.cc: Likewise.
21052         * tests/test-signal-c++.cc: Likewise.
21053         * tests/test-spawn-c++.cc: Likewise.
21054         * tests/test-stdio-c++.cc: Likewise.
21055         * tests/test-stdlib-c++.cc: Likewise.
21056         * tests/test-string-c++.cc: Likewise.
21057         * tests/test-sys_ioctl-c++.cc: Likewise.
21058         * tests/test-sys_select-c++.cc: Likewise.
21059         * tests/test-sys_socket-c++.cc: Likewise.
21060         * tests/test-sys_stat-c++.cc: Likewise.
21061         * tests/test-sys_time-c++.cc: Likewise.
21062         * tests/test-time-c++.cc: Likewise.
21063         * tests/test-unistd-c++.cc: Likewise.
21064         * tests/test-wchar-c++.cc: Likewise.
21065         * tests/uninorm/test-u8-nfc.c: Likewise.
21066         * tests/uninorm/test-u8-nfd.c: Likewise.
21067         * tests/uninorm/test-u8-nfkc.c: Likewise.
21068         * tests/uninorm/test-u8-nfkd.c: Likewise.
21069         * tests/uninorm/test-u16-nfc.c: Likewise.
21070         * tests/uninorm/test-u16-nfd.c: Likewise.
21071         * tests/uninorm/test-u16-nfkc.c: Likewise.
21072         * tests/uninorm/test-u16-nfkd.c: Likewise.
21073         * tests/uninorm/test-u32-nfc.c: Likewise.
21074         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21075         * tests/uninorm/test-u32-nfd.c: Likewise.
21076         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21077         * tests/uninorm/test-u32-nfkc.c: Likewise.
21078         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21079         * tests/uninorm/test-u32-nfkd.c: Likewise.
21080         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21081         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21082
21083 2010-03-27  Bruno Haible  <bruno@clisp.org>
21084
21085         Distinguish two kinds of module indicators.
21086         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21087         gl_MODULE_INDICATOR.
21088         (gl_MODULE_INDICATOR): New macro.
21089         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21090         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21091         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21092         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21093         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21094         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21095         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21096         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21097         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21098         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21099         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21100         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21105         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21106         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21108         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21109         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21110         * modules/cloexec (configure.ac): Likewise.
21111         * modules/getopt-gnu (configure.ac): Likewise.
21112         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21113         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21114         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21115         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21116
21117 2010-03-27  Bruno Haible  <bruno@clisp.org>
21118
21119         New module description field 'Comment'.
21120         * gnulib-tool: New option --extract-comment.
21121         (func_usage): Document it.
21122         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21123         (func_get_comment): New function.
21124         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21125
21126 2010-03-27  Bruno Haible  <bruno@clisp.org>
21127
21128         Addendum to 2010-02-07 commit.
21129         * gnulib-tool (func_usage): Document --extract-applicability option.
21130
21131 2010-03-27  Bruno Haible  <bruno@clisp.org>
21132
21133         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21134         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21135         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21136         rather than link errors.
21137
21138 2010-03-27  Bruno Haible  <bruno@clisp.org>
21139
21140         Avoid side effects from tests-related modules on the compilation of lib.
21141         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21142         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21143         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21144         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21145         macro.
21146         (func_import): Define a witness macro. Assign it a value that depends
21147         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21148         tests-related modules.
21149         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21150         Reported by Jim Meyering.
21151
21152 2010-03-27  Bruno Haible  <bruno@clisp.org>
21153
21154         Factorize common .m4 code.
21155         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21156         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21157         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21158         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21159         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21160         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21161         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21162         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21163         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21164         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21165         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21166         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21167         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21168         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21169         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21170         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21171         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21172         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21174         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21175         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21176         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21177         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21179         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21180         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21181         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21184         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21185         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21186         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21187
21188 2010-03-27  Bruno Haible  <bruno@clisp.org>
21189
21190         Fix a compilation error on Cygwin with g++ >= 4.3.
21191         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21192         if it is undefined or if we alias it to chmod.
21193         (lstat): Don't warn about the use of this function if it is undefined
21194         or if we alias it to stat.
21195         Reported by Simon Josefsson.
21196
21197 2010-03-27  Bruno Haible  <bruno@clisp.org>
21198
21199         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21200         * modules/getlogin (configure.ac): Update.
21201
21202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21203         * modules/getlogin_r (configure.ac): Update.
21204
21205         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21207         * modules/inet_ntop (configure.ac): Update.
21208
21209         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21210         * modules/inet_pton (configure.ac): Update.
21211
21212         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21213         * modules/mbslen (configure.ac): Update.
21214
21215         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21216         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21217         * modules/forkpty (configure.ac): Update.
21218         * modules/openpty (configure.ac): Update.
21219
21220 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21221
21222         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21223         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21224
21225 2010-03-25  Eric Blake  <eblake@redhat.com>
21226
21227         maint: use pragma consistently across replacement headers
21228         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21229         * lib/dirent.in.h (system_header): Likewise.
21230         * lib/errno.in.h (system_header): Likewise.
21231         * lib/float.in.h (system_header): Likewise.
21232         * lib/getopt.in.h (system_header): Likewise.
21233         * lib/iconv.in.h (system_header): Likewise.
21234         * lib/inttypes.in.h (system_header): Likewise.
21235         * lib/langinfo.in.h (system_header): Likewise.
21236         * lib/locale.in.h (system_header): Likewise.
21237         * lib/math.in.h (system_header): Likewise.
21238         * lib/netdb.in.h (system_header): Likewise.
21239         * lib/netinet_in.in.h (system_header): Likewise.
21240         * lib/pty.in.h (system_header): Likewise.
21241         * lib/sched.in.h (system_header): Likewise.
21242         * lib/se-selinux.in.h (system_header): Likewise.
21243         * lib/search.in.h (system_header): Likewise.
21244         * lib/spawn.in.h (system_header): Likewise.
21245         * lib/stdarg.in.h (system_header): Likewise.
21246         * lib/stdint.in.h (system_header): Likewise.
21247         * lib/string.in.h (system_header): Likewise.
21248         * lib/strings.in.h (system_header): Likewise.
21249         * lib/sys_file.in.h (system_header): Likewise.
21250         * lib/sys_ioctl.in.h (system_header): Likewise.
21251         * lib/sys_socket.in.h (system_header): Likewise.
21252         * lib/sys_times.in.h (system_header): Likewise.
21253         * lib/sys_utsname.in.h (system_header): Likewise.
21254         * lib/sys_wait.in.h (system_header): Likewise.
21255         * lib/sysexits.in.h (system_header): Likewise.
21256         * lib/unistd.in.h (system_header): Likewise.
21257         * lib/wctype.in.h (system_header): Likewise.
21258
21259         arpa/inet: fix mingw compilation warning
21260         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21261         Reported by Matthew Bolte.
21262
21263 2010-03-25  Bruno Haible  <bruno@clisp.org>
21264
21265         Avoid collision between gnulib wrapper and libintl wrapper.
21266         * lib/printf.c (printf): Don't define if a printf wrapper is already
21267         defined in intl/printf.c.
21268         Reported by Michel Boaventura <michel@michelboaventura.com>.
21269
21270 2010-03-25  Bruno Haible  <bruno@clisp.org>
21271
21272         Use ANSI C.
21273         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21274
21275 2010-03-25  Bruno Haible  <bruno@clisp.org>
21276
21277         Minor formatting changes.
21278         * lib/acosl.c: Insert space before function argument list.
21279         * lib/argz.c: Likewise.
21280         * lib/asinl.c: Likewise.
21281         * lib/expl.c: Likewise.
21282         * lib/gen-uni-tables.c: Likewise.
21283         * lib/gettext.h: Likewise.
21284         * lib/glthread/lock.h: Likewise.
21285         * lib/tanl.c: Likewise.
21286         * lib/uniname/uniname.c: Likewise.
21287         * tests/test-idpriv-drop.c: Likewise.
21288         * tests/test-idpriv-droptemp.c: Likewise.
21289         * tests/test-lock.c: Likewise.
21290         * tests/test-tls.c: Likewise.
21291         * lib/argp-help.c: Insert space before function-like macro argument
21292         list.
21293         * lib/memcmp.c: Likewise.
21294         * tests/test-base64.c: Likewise.
21295         * lib/localename.c: Insert space before sizeof's argument list.
21296         * lib/safe-alloc.h: Likewise.
21297         * lib/file-set.h: Insert space before macro argument list.
21298         * tests/test-argp.c: Likewise.
21299         * lib/argp-namefrob.h: Insert space before function parameter list.
21300         * lib/getaddrinfo.c: Likewise.
21301         * lib/netdb.in.h: Likewise.
21302         * lib/parse-duration.h: Likewise.
21303         * lib/parse-duration.c: Likewise.
21304         * lib/poll.c: Likewise.
21305         * lib/select.c: Likewise.
21306         * lib/trim.h: Likewise.
21307         * tests/test-usleep.c: Likewise.
21308         * lib/ldexpl.c: Insert space before function parameter list and before
21309         function argument list.
21310         * lib/logl.c: Likewise.
21311         * lib/sqrtl.c: Likewise.
21312         * lib/trim.c: Likewise.
21313         * lib/cosl.c: Use GNU style indentation. Insert space before function
21314         argument list.
21315         * lib/sinl.c: Likewise.
21316         * lib/tsearch.c: Insert space after 'for'.
21317         Reported by Jim Meyering.
21318
21319 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21320
21321         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21322         config header before grepping, as it's not present before
21323         autoreconf/configure are run.  Reported by Simon Josefsson.
21324
21325 2010-03-23  Bruno Haible  <bruno@clisp.org>
21326
21327         pt_chown: Make it work with automake < 1.11.
21328         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21329         Reported by Simon Josefsson.
21330
21331 2010-03-23  Bruno Haible  <bruno@clisp.org>
21332
21333         pt_chown: Don't depend on GPLed modules.
21334         * lib/pt_chown.c: Don't include idpriv.h.
21335         (main): Don't drop privileges.
21336         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21337         Reported by Simon Josefsson.
21338
21339 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21340
21341         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21342         suggestions from karl@freefriends.org (Karl Berry).
21343
21344 2010-03-22  Eric Blake  <eblake@redhat.com>
21345
21346         gethostname: further tweaks
21347         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21348         are overriding gethostname.
21349         Suggested by Bruno Haible.
21350
21351 2010-03-21  Bruno Haible  <bruno@clisp.org>
21352
21353         Fix comments.
21354         * lib/forkpty.c (rpl_forkpty): Fix comment.
21355         * lib/openpty.c (rpl_openpty): Likewise.
21356         Reported by Eric Blake.
21357
21358 2010-03-22  Eric Blake  <eblake@redhat.com>
21359
21360         gethostname: fix build on mingw
21361         * lib/unistd.in.h (includes): Work around fact that mingw
21362         <winsock2.h> re-includes <unistd.h>, by avoiding any
21363         redeclarations if we are being included by <winsock2.h>.
21364         Reported by Matthias Bolte.
21365
21366 2010-03-21  Bruno Haible  <bruno@clisp.org>
21367
21368         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21369         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21370         modifications.
21371         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21372         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21373         provide the replacement.
21374         * modules/forkpty (Depends-on): Add openpty, login_tty.
21375         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21376         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21377         * doc/glibc-functions/forkpty.texi: More supported platforms.
21378         * config/srclist.txt: Add forkpty.c (commented).
21379
21380 2010-03-21  Bruno Haible  <bruno@clisp.org>
21381
21382         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21383         (Makefile.am): Verify that PTY_LIB is defined.
21384
21385         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21386
21387 2010-03-21  Bruno Haible  <bruno@clisp.org>
21388
21389         Tests for module 'login_tty'.
21390         * modules/login_tty-tests: New file.
21391         * tests/test-login_tty.c: New file.
21392
21393         New module 'login_tty'.
21394         * lib/login_tty.c: New file.
21395         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21396         * modules/login_tty: New file.
21397         * doc/glibc-functions/login_tty.texi: Mention the new module.
21398
21399 2010-03-21  Bruno Haible  <bruno@clisp.org>
21400
21401         login_tty: Documentation.
21402         * doc/glibc-functions/login_tty.texi: New file.
21403         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21404
21405 2010-03-21  Bruno Haible  <bruno@clisp.org>
21406
21407         pty: Consistent macro naming.
21408         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21409         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21410         * modules/pty (configure.ac): Update.
21411
21412 2010-03-21  Bruno Haible  <bruno@clisp.org>
21413
21414         Tests for openpty: Make stricter.
21415         * tests/test-openpty.c (main): Add test of canonical processing and
21416         erase.
21417         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21418
21419         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21420         * lib/openpty.c (openpty): New replacement function.
21421         * lib/pty.in.h: Include <termios.h>.
21422         (openpty): Update declaration. Add comments.
21423         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21424         is not declared, arrange to provide the replacement. Check for _getpty
21425         and posix_openpt.
21426         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21427         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21428         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21429         * modules/pty-tests (test_pty_c___LDADD): New variable.
21430         * doc/glibc-functions/openpty.texi: More supported platforms.
21431
21432 2010-03-21  Bruno Haible  <bruno@clisp.org>
21433
21434         setenv: Tweaks.
21435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21436         the test program.
21437         * doc/posix-functions/setenv.texi: Update platforms list.
21438
21439 2010-03-21  Bruno Haible  <bruno@clisp.org>
21440
21441         New module 'unlockpt'.
21442         * lib/unlockpt.c: New file, from glibc with modifications.
21443         * m4/unlockpt.m4: New file.
21444         * modules/unlockpt: New file.
21445         * lib/stdlib.in.h (unlockpt): New declaration.
21446         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21447         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21448         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21449         HAVE_UNLOCKPT.
21450         * doc/posix-functions/unlockpt.texi: Mention the new module.
21451         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21452         * config/srclist.txt: Add unlockpt.c (commented).
21453
21454 2010-03-21  Jim Meyering  <meyering@redhat.com>
21455
21456         maint.mk: prohibit inclusion of "intprops.h" without use
21457         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21458
21459 2010-03-21  Bruno Haible  <bruno@clisp.org>
21460
21461         New module 'grantpt'.
21462         * lib/grantpt.c: New file, from glibc with modifications.
21463         * m4/grantpt.m4: New file.
21464         * modules/grantpt: New file.
21465         * lib/stdlib.in.h (grantpt): New declaration.
21466         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21467         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21468         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21469         HAVE_GRANTPT.
21470         * doc/posix-functions/grantpt.texi: Mention the new module.
21471         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21472         * config/srclist.txt: Add grantpt.c (commented).
21473
21474 2010-03-21  Bruno Haible  <bruno@clisp.org>
21475
21476         New module 'pt_chown'.
21477         * lib/pt_chown.c: New file, from glibc with modifications.
21478         * lib/pty-private.h: New file, from glibc with modifications.
21479         * modules/pt_chown: New file.
21480         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21481
21482 2010-03-21  Bruno Haible  <bruno@clisp.org>
21483
21484         Tests for module 'ptsname'.
21485         * modules/ptsname-tests: New file.
21486         * tests/test-ptsname.c: New file.
21487
21488         New module 'ptsname'.
21489         * lib/ptsname.c: New file, from glibc with modifications.
21490         * m4/ptsname.m4: New file.
21491         * modules/ptsname: New file.
21492         * lib/stdlib.in.h (ptsname): New declaration.
21493         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21494         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21495         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21496         HAVE_PTSNAME.
21497         * doc/posix-functions/ptsname.texi: Mention the new module.
21498         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21499         * config/srclist.txt: Add ptsname.c (commented).
21500
21501 2010-03-21  Bruno Haible  <bruno@clisp.org>
21502
21503         Tests for module 'ttyname_r'.
21504         * modules/ttyname_r-tests: New file.
21505         * tests/test-ttyname_r.c: New file.
21506
21507         New module 'ttyname_r'.
21508         * lib/ttyname_r.c: New file.
21509         * m4/ttyname_r.m4: New file.
21510         * modules/ttyname_r: New file.
21511         * lib/unistd.in.h (ttyname_r): New declaration.
21512         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21513         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21514         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21515         HAVE_TTYNAME_R.
21516         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21517         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21518
21519 2010-03-20  Bruno Haible  <bruno@clisp.org>
21520
21521         signal: Undefine macro definitions in C++ mode.
21522         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21523         sigfillset): Undefine macro definitions from the system header in C++
21524         mode.
21525         Reported by John W. Eaton <jwe@gnu.org>.
21526
21527 2010-03-20  Bruno Haible  <bruno@clisp.org>
21528
21529         Ensure no #include statements inside extern "C" { ... }.
21530         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21531         contain #include statements.
21532         * lib/time.in.h: Likewise.
21533
21534 2010-03-20  Bruno Haible  <bruno@clisp.org>
21535
21536         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21537         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21538         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21539         Reported by John W. Eaton <jwe@gnu.org>.
21540
21541 2010-03-20  Bruno Haible  <bruno@clisp.org>
21542
21543         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21544         Reported by Jim Meyering.
21545
21546 2010-03-20  Bruno Haible  <bruno@clisp.org>
21547
21548         pipe: Set errno upon failure.
21549         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21550         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21551         errno value in error message.
21552
21553 2010-03-20  Bruno Haible  <bruno@clisp.org>
21554             Jim Meyering  <meyering@redhat.com>
21555
21556         lchown: Avoid "unused variable" warning.
21557         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21558
21559 2010-03-20  Bruno Haible  <bruno@clisp.org>
21560
21561         Work around unlink() bug on MacOS X 10.5.6.
21562         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21563         attempting to unlink a parent directory.
21564         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21565         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21566         activate for the replacement function.
21567         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21568
21569 2010-03-20  Bruno Haible  <bruno@clisp.org>
21570
21571         Fix link errors on Solaris 8.
21572         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21573         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21574
21575 2010-03-19  Jim Meyering  <meyering@redhat.com>
21576
21577         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21578         The _LIBC implementation of build_range_exp correctly honors the
21579         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21580         However, the non-_LIBC implementation would ignore that syntax-bit
21581         flag and return REG_ERANGE unconditionally.
21582         This change makes it honor that flag.
21583         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21584         Make two pointer parameters "const".
21585         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21586         (parse_bracket_exp): Update caller.
21587
21588         regex.m4: correct the reversed range endpoint ([b-a]) test
21589         * m4/regex.m4: When requiring that [b-a] evoke failure,
21590         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21591         test pass once again for x86-based systems.
21592
21593 2010-03-19  Bruno Haible  <bruno@clisp.org>
21594
21595         scandir: Fix link error on Solaris 8.
21596         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21597         macros.
21598
21599 2010-03-19  Bruno Haible  <bruno@clisp.org>
21600
21601         getusershell: Fix documentation.
21602         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21603         module.
21604         * doc/glibc-functions/setusershell.texi: Likewise.
21605
21606         getusershell: Provide declaration, missing on Solaris 9.
21607         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21608         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21609         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21610         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21612         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21613         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21614         HAVE_GETUSERSHELL.
21615         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21616
21617 2010-03-19  Bruno Haible  <bruno@clisp.org>
21618
21619         wctype: Provide iswblank function.
21620         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21621         exists and is fine.
21622         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21623         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21624         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21625         * doc/posix-functions/iswblank.texi: Update.
21626
21627 2010-03-19  Bruno Haible  <bruno@clisp.org>
21628
21629         Tests of module 'pty' in C++ mode.
21630         * modules/pty-tests: New file.
21631         * tests/test-pty-c++.cc: New file.
21632         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21633
21634 2010-03-19  Eric Blake  <eblake@redhat.com>
21635
21636         logb: fix documentation
21637         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21638         1.5 declaration bug.
21639
21640         forkpty, openpty: prefer glibc's const-safe prototype
21641         * lib/forkpty.c (rpl_forkpty): New file.
21642         * lib/openpty.c (rpl_openpty): Likewise.
21643         * modules/forkpty (Files): Distribute it.
21644         * modules/openpty (Files): Likewise.
21645         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21646         check...
21647         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21648         replacement for for non-const BSD signature.
21649         * modules/pty (Makefile.am): Substitute witnesses.
21650         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21651         * tests/test-forkpty.c: Update signature check.
21652         * tests/test-openpty.c: Likewise.
21653         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21654         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21655
21656         forkpty, openpty: split functions into new modules
21657         * modules/pty (Makefile.am): Substitute new witnesses.
21658         (Libraries): Move library detection...
21659         * modules/forkpty: ...into new module.
21660         * modules/openpty: Another new module.
21661         * modules/pty-tests: Rename and split...
21662         * modules/forkpty-tests: ...to this...
21663         * modules/openpty-tests: ...and this.
21664         * tests/test-pty.c: Rename and split...
21665         * tests/test-forkpty.c: ...to this...
21666         * tests/test-openpty.c: ...and this.
21667         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21668         (gl_PTY): Split library searching...
21669         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21670         (gl_FORKPTY, gl_OPENPTY): New macros.
21671         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21672         * NEWS: Mention the split.
21673         * MODULES.html.sh (Misc): Document the modules.
21674         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21675         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21676
21677         pty: improve replacement header
21678         * lib/pty.in.h: New file.
21679         * modules/pty (Files): Ship it.
21680         (Makefile.am): Always build replacement.
21681         * m4/pty.m4: Rename...
21682         * m4/pty_h.m4: ...to this.
21683         (gl_PTY): Modernize setting of witness macros; update check of
21684         forkpty to take proper advantage of cache.
21685         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21686
21687         getopt: avoid compiler warning
21688         * lib/getopt.c (attribute_hidden): Remove unused macro.
21689
21690 2010-03-18  Bruno Haible  <bruno@clisp.org>
21691
21692         Fix link errors on Solaris 8.
21693         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21694         * modules/search-tests (test_search_c___LDADD): Likewise.
21695         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21696         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21697         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21698         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21699         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21700         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21701         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21702
21703 2010-03-18  Bruno Haible  <bruno@clisp.org>
21704
21705         Fix bug introduced on 2010-03-14.
21706         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21707         (gl_SPAWN_H): Require it.
21708         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21709         Reported by Simon Josefsson.
21710
21711 2010-03-18  Bruno Haible  <bruno@clisp.org>
21712
21713         Fix typo introduced on 2009-12-31.
21714         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21715         posix_spawn_file_actions_adddup2.
21716
21717 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21718         and Eric Blake  <eblake@redhat.com>
21719
21720         test-vc-list-files-git: make more robust
21721         * tests/test-vc-list-files-git.sh: Unset problematic environment
21722         variables.  Chain commands together.
21723
21724 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21725
21726         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21727         `AC_CHECK_DECL' invocation.
21728
21729 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21730
21731         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21732         appears before executable statements. Suggested by Petr Sumbera
21733         <Petr.Sumbera@Sun.COM>.
21734
21735 2010-03-14  Bruno Haible  <bruno@clisp.org>
21736
21737         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21738         portability problems. Instead use a simpler test.
21739         (main): Check that invalid arguments are rejected only on Linux.
21740
21741 2010-03-14  Bruno Haible  <bruno@clisp.org>
21742
21743         Fix bug introduced on 2009-12-31.
21744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21745         gl_PREREQ_SYS_H_WINSOCK2 always.
21746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21747         SYS_SOCKET_H variable.
21748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21749         Update comments.
21750         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21751         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21752         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21753         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21754         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21755
21756 2010-03-14  Bruno Haible  <bruno@clisp.org>
21757
21758         Fix values returned by sinl, cosl.
21759         * lib/trigl.h: Add specification comments.
21760         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21761         that combines the values from the precomputed table with the values of
21762         the Chebyshev polynomials.
21763
21764 2010-03-14  Bruno Haible  <bruno@clisp.org>
21765
21766         Fix compilation error when modules 'posix_spawn[p]' are not used.
21767         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21769
21770 2010-03-14  Bruno Haible  <bruno@clisp.org>
21771
21772         Fix compilation error on mingw when module 'time_r' is not used.
21773         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21774         is 1.
21775         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21776         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21777         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21778         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21779
21780 2010-03-14  Bruno Haible  <bruno@clisp.org>
21781
21782         Fix compilation error with Sun C.
21783         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21784         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21785         instead of GCC specific ULONG_LONG_MAX.
21786         * lib/xstrtoll.c: Likewise.
21787         * lib/xstrtoull.c: Likewise.
21788
21789 2010-03-13  Bruno Haible  <bruno@clisp.org>
21790
21791         Allow the user to disable C++ code and tests.
21792         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21793         (gl_PROG_ANSI_CXX): Require it.
21794
21795 2010-03-13  Bruno Haible  <bruno@clisp.org>
21796
21797         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21798         cases.
21799
21800 2010-03-13  Bruno Haible  <bruno@clisp.org>
21801
21802         Test that gnulib does not break the standard C++ headers.
21803         * tests/test-locale-c++2.cc: New file.
21804         * modules/locale-tests (Files): Add it.
21805         (Makefile.am): Compile it for test-locale-c++.
21806         * tests/test-math-c++2.cc: New file.
21807         * modules/math-tests (Files): Add it.
21808         (Makefile.am): Compile it for test-math-c++.
21809         * tests/test-signal-c++2.cc: New file.
21810         * modules/signal-tests (Files): Add it.
21811         (Makefile.am): Compile it for test-signal-c++.
21812         * tests/test-stdio-c++2.cc: New file.
21813         * modules/stdio-tests (Files): Add it.
21814         (Makefile.am): Compile it for test-stdio-c++.
21815         * tests/test-stdlib-c++2.cc: New file.
21816         * modules/stdlib-tests (Files): Add it.
21817         (Makefile.am): Compile it for test-stdlib-c++.
21818         * tests/test-string-c++2.cc: New file.
21819         * modules/string-tests (Files): Add it.
21820         (Makefile.am): Compile it for test-string-c++.
21821         * tests/test-time-c++2.cc: New file.
21822         * modules/time-tests (Files): Add it.
21823         (Makefile.am): Compile it for test-time-c++.
21824         Reported by John W. Eaton <jwe@gnu.org>.
21825
21826 2010-03-13  Bruno Haible  <bruno@clisp.org>
21827
21828         * gnulib-tool (func_usage): Clarify which options are available for
21829         --create-testdir and --create-megatestdir.
21830
21831 2010-03-13  Bruno Haible  <bruno@clisp.org>
21832
21833         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21834         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21835         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21836         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21837         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21838         when appropriate.
21839         Reported by Jim Meyering.
21840
21841 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21842
21843         * gnulib-tool (func_import): Explain origin of code.
21844
21845 2010-03-12  Bruno Haible  <bruno@clisp.org>
21846
21847         Fix problem with automake's definition of CXXLINK.
21848         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21849         Reported by Simon Josefsson and Ludovic Courtès.
21850
21851 2010-03-12  Bruno Haible  <bruno@clisp.org>
21852
21853         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21854         stable releases.
21855
21856 2010-03-11  Bruno Haible  <bruno@clisp.org>
21857
21858         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21859         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21860         whether the system provides one variant or multiple variants of the
21861         function.
21862         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21863         C++ compilers.
21864         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21865         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21866         Reported by Jim Meyering.
21867
21868 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21869
21870         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21871
21872 2010-03-08  Bruno Haible  <bruno@clisp.org>
21873
21874         gnulib-tool: Add support for --libtool in --create-testdir.
21875         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21876         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21877
21878 2010-03-08  Eric Blake  <eblake@redhat.com>
21879
21880         gnulib-tool.texi: mention possibility of git submodule
21881         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21882         submodules.
21883         * doc/.gitignore: Ignore another generated file.
21884
21885 2010-03-08  Karl Berry  <karl@gnu.org>
21886
21887         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21888         of committing gnulib files while skipping others.
21889
21890 2010-03-07  Bruno Haible  <bruno@clisp.org>
21891
21892         Tests of module 'wctype' in C++ mode.
21893         * tests/test-wctype-c++.cc: New file.
21894         * modules/wctype-tests (Files): Add it and tests/signature.h.
21895         (Depends-on): Add ansi-c++-opt.
21896         (Makefile.am): Arrange to compile and run test-wctype-c++.
21897
21898         Tests of module 'wchar' in C++ mode.
21899         * tests/test-wchar-c++.cc: New file.
21900         * modules/wchar-tests (Files): Add it and tests/signature.h.
21901         (Depends-on): Add ansi-c++-opt.
21902         (Makefile.am): Arrange to compile and run test-wchar-c++.
21903         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21904         gl_MODULE_INDICATOR.
21905
21906         Tests of module 'unistd' in C++ mode.
21907         * tests/test-unistd-c++.cc: New file.
21908         * modules/unistd-tests (Files): Add it and tests/signature.h.
21909         (Depends-on): Add ansi-c++-opt.
21910         (Makefile.am): Arrange to compile and run test-unistd-c++.
21911         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21912         gl_MODULE_INDICATOR.
21913
21914         Tests of module 'time' in C++ mode.
21915         * tests/test-time-c++.cc: New file.
21916         * modules/time-tests (Files): Add it and tests/signature.h.
21917         (Depends-on): Add ansi-c++-opt.
21918         (Makefile.am): Arrange to compile and run test-time-c++.
21919         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21920
21921         Tests of module 'sys_time' in C++ mode.
21922         * tests/test-sys_time-c++.cc: New file.
21923         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21924         (Depends-on): Add ansi-c++-opt.
21925         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21926         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21927         gl_MODULE_INDICATOR.
21928
21929         Tests of module 'sys_stat' in C++ mode.
21930         * tests/test-sys_stat-c++.cc: New file.
21931         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21932         (Depends-on): Add ansi-c++-opt.
21933         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21934         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21935         gl_MODULE_INDICATOR.
21936
21937         Tests of module 'sys_socket' in C++ mode.
21938         * tests/test-sys_socket-c++.cc: New file.
21939         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21940         (Depends-on): Add ansi-c++-opt.
21941         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21942         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21943         gl_MODULE_INDICATOR.
21944
21945         Tests of module 'sys_select' in C++ mode.
21946         * tests/test-sys_select-c++.cc: New file.
21947         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21948         (Depends-on): Add ansi-c++-opt.
21949         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21950         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21951         gl_MODULE_INDICATOR.
21952
21953         Tests of module 'sys_ioctl' in C++ mode.
21954         * tests/test-sys_ioctl-c++.cc: New file.
21955         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21956         (Depends-on): Add ansi-c++-opt.
21957         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21958         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21959         gl_MODULE_INDICATOR.
21960
21961         Tests of module 'string' in C++ mode.
21962         * tests/test-string-c++.cc: New file.
21963         * modules/string-tests (Files): Add it and tests/signature.h.
21964         (Depends-on): Add ansi-c++-opt.
21965         (Makefile.am): Arrange to compile and run test-string-c++.
21966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21967         gl_MODULE_INDICATOR.
21968
21969         Tests of module 'stdlib' in C++ mode.
21970         * tests/test-stdlib-c++.cc: New file.
21971         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21972         (Depends-on): Add ansi-c++-opt.
21973         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21974         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21975         gl_MODULE_INDICATOR.
21976
21977         Tests of module 'stdio' in C++ mode.
21978         * tests/test-stdio-c++.cc: New file.
21979         * modules/stdio-tests (Files): Add it and tests/signature.h.
21980         (Depends-on): Add ansi-c++-opt.
21981         (Makefile.am): Arrange to compile and run test-stdio-c++.
21982         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21983         gl_MODULE_INDICATOR.
21984
21985         Tests of module 'spawn' in C++ mode.
21986         * tests/test-spawn-c++.cc: New file.
21987         * modules/spawn-tests (Files): Add it and tests/signature.h.
21988         (Depends-on): Add ansi-c++-opt.
21989         (Makefile.am): Arrange to compile and run test-spawn-c++.
21990         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21991         gl_MODULE_INDICATOR.
21992
21993         Tests of module 'signal' in C++ mode.
21994         * tests/test-signal-c++.cc: New file.
21995         * modules/signal-tests (Files): Add it and tests/signature.h.
21996         (Depends-on): Add ansi-c++-opt.
21997         (Makefile.am): Arrange to compile and run test-signal-c++.
21998         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21999         gl_MODULE_INDICATOR.
22000
22001         Tests of module 'search' in C++ mode.
22002         * tests/test-search-c++.cc: New file.
22003         * modules/search-tests (Files): Add it and tests/signature.h.
22004         (Depends-on): Add ansi-c++-opt.
22005         (Makefile.am): Arrange to compile and run test-search-c++.
22006         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22007         gl_MODULE_INDICATOR.
22008
22009         Tests of module 'math' in C++ mode.
22010         * tests/test-math-c++.cc: New file.
22011         * modules/math-tests (Files): Add it and tests/signature.h.
22012         (Depends-on): Add ansi-c++-opt.
22013         (Makefile.am): Arrange to compile and run test-math-c++.
22014         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22015
22016         Tests of module 'locale' in C++ mode.
22017         * tests/test-locale-c++.cc: New file.
22018         * modules/locale-tests (Files): Add it and tests/signature.h.
22019         (Depends-on): Add ansi-c++-opt.
22020         (Makefile.am): Arrange to compile and run test-locale-c++.
22021         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22022         gl_MODULE_INDICATOR.
22023
22024         Tests of module 'langinfo' in C++ mode.
22025         * tests/test-langinfo-c++.cc: New file.
22026         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22027         (Depends-on): Add ansi-c++-opt.
22028         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22029         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22030         gl_MODULE_INDICATOR.
22031
22032         Tests of module 'iconv-h' in C++ mode.
22033         * tests/test-iconv-h-c++.cc: New file.
22034         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22035         (Depends-on): Add ansi-c++-opt.
22036         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22037
22038         Tests of module 'glob' in C++ mode.
22039         * tests/test-glob-c++.cc: New file.
22040         * modules/glob-tests (Files): Add it.
22041         (Depends-on): Add ansi-c++-opt.
22042         (Makefile.am): Arrange to compile and run test-glob-c++.
22043
22044         Tests of module 'fcntl-h' in C++ mode.
22045         * tests/test-fcntl-h-c++.cc: New file.
22046         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22047         (Depends-on): Add ansi-c++-opt.
22048         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22049         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22050         gl_MODULE_INDICATOR.
22051
22052         Tests of module 'dirent' in C++ mode.
22053         * tests/test-dirent-c++.cc: New file.
22054         * modules/dirent-tests (Files): Add it and tests/signature.h.
22055         (Depends-on): Add ansi-c++-opt.
22056         (Makefile.am): Arrange to compile and run test-dirent-c++.
22057         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22058         gl_MODULE_INDICATOR.
22059
22060         New module 'ansi-c++-opt'.
22061         * modules/ansi-c++-opt: New file.
22062         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22063
22064         Document C++ namespace mode.
22065         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22066
22067         wctype: Avoid #define replacements in C++ mode.
22068         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22069         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22070         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22071         In C++, define a namespaced alias symbol.
22072         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22073         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22074         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22075         rule.
22076
22077         wchar: Avoid #define replacements in C++ mode.
22078         * lib/wchar.in.h: Include c++defs.h.
22079         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22080         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22081         symbol.
22082         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22083         * modules/wchar (Depends-on): Add c++defs.
22084         (Makefile.am): Update wchar.h rule.
22085
22086         unistd: Avoid #define replacements in C++ mode.
22087         * lib/unistd.in.h: Include c++defs.h.
22088         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22089         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22090         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22091         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22092         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22093         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22094         symbol.
22095         (environ): Update.
22096         * modules/unistd (Depends-on): Add c++defs.
22097         (Makefile.am): Update unistd.h rule.
22098
22099         time: Avoid #define replacements in C++ mode.
22100         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22101         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22102         define a namespaced alias symbol.
22103         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22104         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22105         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22106         * modules/time (Depends-on): Add c++defs, warn-on-use.
22107         (Makefile.am): Update time.h rule.
22108         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22109         * modules/nanosleep (configure.ac): Likewise.
22110         * modules/strptime (configure.ac): Likewise.
22111         * modules/timegm (configure.ac): Likewise.
22112
22113         sys_time: Avoid #define replacements in C++ mode.
22114         * lib/sys_time.in.h: Include c++defs.h.
22115         (gettimeofday): In C++, define a namespaced alias symbol.
22116         * modules/sys_time (Depends-on): Add c++defs.
22117         (Makefile.am): Update sys/time.h rule.
22118
22119         sys_stat: Avoid #define replacements in C++ mode.
22120         * lib/sys_stat.in.h: Include c++defs.h.
22121         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22122         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22123         namespaced alias symbol.
22124         In C++, define a namespaced alias symbol.
22125         * modules/sys_stat (Depends-on): Add c++defs.
22126         (Makefile.am): Update sys/stat.h rule.
22127
22128         sys_socket: Avoid #define replacements in C++ mode.
22129         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22130         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22131         definitions also when the system has a <sys/socket.h>.
22132         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22133         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22134         In C++, define a namespaced alias symbol.
22135         * modules/sys_socket (Depends-on): Add c++defs.
22136         (Makefile.am): Update sys/socket.h rule.
22137
22138         sys_select: Avoid #define replacements in C++ mode.
22139         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22140         definitions also when the system has a <sys/select.h>.
22141         (select): In C++, define a namespaced alias symbol.
22142         * modules/sys_select (Depends-on): Add c++defs.
22143         (Makefile.am): Update sys/select.h rule.
22144
22145         sys_ioctl: Avoid #define replacements in C++ mode.
22146         * lib/sys_ioctl.in.h: Include c++defs.h.
22147         (ioctl): In C++, define a namespaced alias symbol.
22148         * modules/sys_ioctl (Depends-on): Add c++defs.
22149         (Makefile.am): Update sys/ioctl.h rule.
22150
22151         string: Avoid #define replacements in C++ mode.
22152         * lib/string.in.h: Include c++defs.h.
22153         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22154         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22155         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22156         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22157         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22158         * modules/string (Depends-on): Add c++defs.
22159         (Makefile.am): Update string.h rule.
22160
22161         stdlib: Avoid #define replacements in C++ mode.
22162         * lib/stdlib.in.h: Include c++defs.h.
22163         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22164         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22165         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22166         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22167         symbol.
22168         * modules/stdlib (Depends-on): Add c++defs.
22169         (Makefile.am): Update stdlib.h rule.
22170
22171         stdio: Avoid #define replacements in C++ mode.
22172         * lib/stdio.in.h: Include c++defs.h.
22173         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22174         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22175         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22176         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22177         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22178         namespaced alias symbol.
22179         * modules/stdio (Depends-on): Add c++defs.
22180         (Makefile.am): Update stdio.h rule.
22181
22182         spawn: Avoid #define replacements in C++ mode.
22183         * lib/spawn.in.h: Include c++defs.h.
22184         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22185         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22186         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22187         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22188         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22189         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22190         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22191         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22192         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22193         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22194         In C++, define a namespaced alias symbol.
22195         * modules/spawn (Depends-on): Add c++defs.
22196         (Makefile.am): Update spawn.h rule.
22197
22198         signal: Avoid #define replacements in C++ mode.
22199         * lib/signal.in.h: Include c++defs.h.
22200         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22201         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22202         namespaced alias symbol.
22203         * modules/signal (Depends-on): Add c++defs.
22204         (Makefile.am): Update signal.h rule.
22205
22206         search: Avoid #define replacements in C++ mode.
22207         * lib/search.in.h: Include c++defs.h.
22208         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22209         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22210         symbol.
22211         * modules/search (Depends-on): Add c++defs.
22212         (Makefile.am): Update search.h rule.
22213
22214         math: Avoid #define replacements in C++ mode.
22215         * lib/math.in.h: Include c++defs.h.
22216         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22217         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22218         trunc, truncl): In C++, define a namespaced alias symbol.
22219         * modules/math (Depends-on): Add c++defs.
22220         (Makefile.am): Update math.h rule.
22221
22222         locale: Avoid #define replacements in C++ mode.
22223         * lib/locale.in.h: Include c++defs.h.
22224         (duplocale): In C++, define a namespaced alias symbol.
22225         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22226         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22227         * modules/locale (Depends-on): Add c++defs.
22228         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22229
22230         langinfo: Avoid #define replacements in C++ mode.
22231         * lib/langinfo.in.h: Include c++defs.h.
22232         (nl_langinfo): In C++, define a namespaced alias symbol.
22233         * modules/langinfo (Depends-on): Add c++defs.
22234         (Makefile.am): Update langinfo.h rule.
22235
22236         iconv-h: Avoid #define replacements in C++ mode.
22237         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22238         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22239         symbol.
22240         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22241         whenever iconv is present.
22242         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22243         (Makefile.am): Update iconv.h rule.
22244
22245         glob: Avoid #define replacements in C++ mode.
22246         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22247         (_gl_glob_errfunc_fn): New type.
22248         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22249         symbol.
22250         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22251         (Makefile.am): Update glob.h rule.
22252
22253         fcntl-h: Avoid #define replacements in C++ mode.
22254         * lib/fcntl.in.h: Include c++defs.h.
22255         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22256         * modules/fcntl-h (Depends-on): Add c++defs.
22257         (Makefile.am): Update fcntl.h rule.
22258
22259         dirent: Avoid #define replacements in C++ mode.
22260         * lib/dirent.in.h: Include c++defs.h.
22261         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22262         namespaced alias symbol.
22263         (dirfd): Update declaration.
22264         * modules/dirent (Depends-on): Add c++defs.
22265         (Makefile.am): Update dirent.h rule.
22266
22267         ctype: Make it usable in C++ code.
22268         * lib/ctype.in.h: Include c++defs.h.
22269         (isblank): Declare as extern "C".
22270         * modules/ctype (Depends-on): Add c++defs.
22271         (Makefile.am): Update ctype.h rule.
22272
22273         New module 'c++defs'.
22274         * modules/c++defs: New file.
22275         * build-aux/c++defs.h: New file.
22276         Reported by John W. Eaton <jwe@gnu.org>.
22277
22278 2010-03-07  Bruno Haible  <bruno@clisp.org>
22279
22280         logb: Provide missing declaration for Cygwin.
22281         * lib/math.in.h (logb): New declaration.
22282         * m4/logb.m4: New file.
22283         * modules/logb (Files): Add m4/logb.m4.
22284         (Depends-on): Add math.
22285         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22286         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22288         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22289         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22290
22291 2010-03-07  Bruno Haible  <bruno@clisp.org>
22292
22293         Fix test-cond link error.
22294         * tests/test-cond.c: Include <stdio.h>.
22295
22296 2010-03-07  Bruno Haible  <bruno@clisp.org>
22297
22298         Fix test-dirent-safer link error.
22299         * modules/dirent-safer-tests (Makefile.am): Define
22300         test_dirent_safer_LDADD.
22301
22302 2010-03-07  Bruno Haible  <bruno@clisp.org>
22303
22304         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22305         among default module list.
22306
22307 2010-03-07  Bruno Haible  <bruno@clisp.org>
22308
22309         Fix link error on platforms with GNU libiconv.
22310         * modules/unistr/u8-strcoll-tests (Makefile): Define
22311         test_u8_strcoll_LDADD.
22312         * modules/unistr/u16-strcoll-tests (Makefile): Define
22313         test_u16_strcoll_LDADD.
22314         * modules/unistr/u32-strcoll-tests (Makefile): Define
22315         test_u32_strcoll_LDADD.
22316
22317 2010-03-07  Bruno Haible  <bruno@clisp.org>
22318
22319         Use POSIX declarations for socket functions.
22320         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22321         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22322         rpl_sendto): Change declaration to match POSIX.
22323         * lib/connect.c (rpl_connect): Likewise.
22324         * lib/accept.c (rpl_accept): Likewise.
22325         * lib/bind.c (rpl_bind): Likewise.
22326         * lib/getpeername.c (rpl_getpeername): Likewise.
22327         * lib/getsockname.c (rpl_getsockname): Likewise.
22328         * lib/recv.c (rpl_recv): Likewise.
22329         * lib/send.c (rpl_send): Likewise.
22330         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22331         * lib/sendto.c (rpl_sendto): Likewise.
22332
22333 2010-03-06  Bruno Haible  <bruno@clisp.org>
22334
22335         Clarify access, euidaccess, faccessat.
22336         * doc/posix-functions/faccessat.texi: Mention security problem under
22337         "Other problems", not "Portability problems".
22338         * doc/posix-functions/access.texi: Likewise. Mention a related security
22339         problem.
22340         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22341         * lib/euidaccess.c: Add comments about platforms.
22342         * lib/unistd.in.h (access, euidaccess): Add warnings.
22343
22344 2010-03-07  Bruno Haible  <bruno@clisp.org>
22345
22346         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22347         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22348         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22349         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22350         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22351         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22352         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22353         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22354         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22355         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22356         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22357         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22358         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22359         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22360         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22361         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22362         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22363         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22364         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22365         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22366         Likewise.
22367         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22368         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22369         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22370         Likewise.
22371         * tests/test-spawn.c (main): Make it work when
22372         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22373
22374 2010-03-07  Bruno Haible  <bruno@clisp.org>
22375
22376         Fix incorrect Makefile.am generation in German locale.
22377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22378         Execute sed command with character range in C locale.
22379
22380 2010-03-06  Bruno Haible  <bruno@clisp.org>
22381
22382         Tests for module 'iconv-h'.
22383         * modules/iconv-h-tests: New file.
22384         * tests/test-iconv-h.c: New file.
22385
22386         New module 'iconv-h'.
22387         * modules/iconv-h: New file.
22388         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22389         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22390         (configure.ac): Remove gl_ICONV_H.
22391         (Makefile.am): Remove rule for iconv.h.
22392
22393 2010-03-06  Bruno Haible  <bruno@clisp.org>
22394
22395         More consistent naming of *.m4 files.
22396         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22397         * modules/wctype (Files): Update.
22398
22399         More consistent naming of *.m4 files.
22400         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22401         * modules/wchar (Files): Update.
22402
22403 2010-03-06  Jim Meyering  <meyering@redhat.com>
22404
22405         euidaccess: relax license to LGPLv2+
22406         * modules/euidaccess (License): Relax to LGPLv2+.
22407
22408 2010-03-06  Bruno Haible  <bruno@clisp.org>
22409
22410         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22411         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22412         (Makefile.am): Augment lib_SOURCES instead.
22413
22414 2010-03-04  Jim Meyering  <meyering@redhat.com>
22415
22416         utime: remove obsolete module
22417         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22418         unnecessary for years, and has been marked as obsolete for 10 months.
22419         * modules/utime: Remove file.
22420         * lib/utime.c: Remove file.
22421         * m4/utime.m4: Remove file.
22422         * m4/utimes-null.m4: Remove file.
22423         * doc/posix-functions/utime.texi (utime): Remove reference to
22424         the module.  Move the sole "fixed by gnulib" item into the
22425         "problems not fixed by Gnulib" list.
22426         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22427
22428 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22429
22430         * modules/exit (License): Relax license to LGPLv2+.
22431         (Status): Mark as obsolete.
22432         * NEWS: Mention deprecated 'exit' module.
22433         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22434         of now obsolete 'exit'.
22435
22436 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22437
22438         fts-lgpl: remove unused module
22439         * modules/fts-lgpl: Remove.
22440         * MODULES.html.sh (func_all_modules): Adjust.
22441         * check-module (find_included_lib_files): Adjust.
22442         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22443
22444 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22445
22446         copy-acl: enhance Solaris ACL error handling
22447         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22448         * lib/set-mode-acl.c (qset_acl): Likewise.
22449
22450 2010-03-02  Bruno Haible  <bruno@clisp.org>
22451
22452         spawn: Don't override the system defined values on FreeBSD 8.
22453         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22454         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22455         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22456         if HAVE_POSIX_SPAWN is 1.
22457         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22458
22459 2010-03-01  Bruno Haible  <bruno@clisp.org>
22460
22461         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22462         regarding Automake.
22463
22464 2010-02-25  Bruno Haible  <bruno@clisp.org>
22465
22466         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22467         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22468         setting, not afterwards.
22469         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22470
22471 2010-02-24  Eric Blake  <eblake@redhat.com>
22472
22473         bootstrap, git-version-gen: use timestamp
22474         * build-aux/git-version-gen (scriptversion): Force UTC.
22475         * build-aux/bootstrap (scriptversion): New variable.
22476
22477         bootstrap: allow older git
22478         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22479         older than 1.6.4.  Requested by the libvirt project.
22480
22481 2010-02-23  Eric Blake  <eblake@redhat.com>
22482
22483         warn-on-use: work with old autoconf
22484         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22485         AS_VAR semantics of autoconf 2.60.
22486         Reported by Bruno Haible.
22487
22488         bootstrap: improve some comments
22489         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22490         clarification comments.
22491
22492         gettimeofday: provide correct function
22493         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22494         when replacement is declared, otherwise provide gettimeofday.
22495         Reported by Michael Goffioul.
22496
22497 2010-02-23  Jim Meyering  <meyering@redhat.com>
22498
22499         lib-ignore: relax license to "unlimited", not LGPLv2+
22500         * modules/lib-ignore (License): Relax to "unlimited".
22501
22502 2010-02-23  Jim Meyering  <meyering@redhat.com>
22503
22504         lib-ignore: relax license to LGPLv2+
22505         * modules/lib-ignore (License): Relax to LGPLv2+.
22506
22507 2010-02-22  Eric Blake  <eblake@redhat.com>
22508
22509         lseek: avoid bash 3.2 broken pipe bug
22510         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22511         warning from bash 3.2.
22512         Reported by Ben Pfaff, with analysis from Bruno Haible.
22513
22514         bootstrap: support non-FSF copyright holder
22515         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22516         bootstrap.conf override of COPYRIGHT_HOLDER.
22517         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22518
22519         bootstrap: interoperate with gettext 0.14.1
22520         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22521
22522         bootstrap: allow for alternate submodule location
22523         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22524         hardcoding submodule location.
22525         (gnulib_mk): Allow direct use of Makefile.am.
22526
22527         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22528         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22529         rather than reconfiguring where the submodule points.
22530
22531         gettimeofday: restore support for platforms that lack function
22532         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22533         replacement if function is missing.
22534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22535         * modules/sys_time (Makefile.am): Substitute it.
22536         * lib/sys_time.in.h (gettimeofday): Check it.
22537         Reported by Michael Goffioul.
22538
22539 2010-02-21  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/stdio.in.h (obstack_printf): Fix typo.
22542
22543 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22544
22545         vc-list-files: use bzr ls's -R option
22546         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22547         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22548
22549 2010-02-21  Jim Meyering  <meyering@redhat.com>
22550
22551         init.sh: fix EXEEXT shims to work also for names like test-prog
22552         * tests/init.sh: Re-exec a better shell, when needed.
22553         If the current shell lacks support for posix $(...), an init.sh-using
22554         test will now try to find a shell that supports that.  If EXEEXT is
22555         nonempty, we also require support for hyphen-in-alias-name and shell
22556         substitutions like ${var#glob}.  Failure to find such a shell results
22557         in a skipped test.
22558
22559 2010-02-21  Bruno Haible  <bruno@clisp.org>
22560
22561         Really work around around "broken pipe" error message from bash 3.2.
22562         * gnulib-tool (func_reset_sigpipe): Remove function.
22563         (echo): In bash 3.2, define to a function that uses printf.
22564         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22565
22566 2010-02-20  Bruno Haible  <bruno@clisp.org>
22567
22568         Restore support for automake 1.9.6 with autoconf 2.61.
22569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22570         Reported by James Youngman <jay@gnu.org>.
22571
22572 2010-02-20  Bruno Haible  <bruno@clisp.org>
22573
22574         Improve *printf warning condition.
22575         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22576         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22577         and the function is overridden due to SIGPIPE emulation.
22578
22579 2010-02-20  Bruno Haible  <bruno@clisp.org>
22580
22581         * lib/stdio.in.h: Tweak comments.
22582
22583 2010-02-19  Bruno Haible  <bruno@clisp.org>
22584
22585         Make it easier to find modules. New gnulib-tool option '--find'.
22586         * gnulib-tool: New option --find.
22587         (func_usage): Document it.
22588         (func_sanitize_modulelist): New function, extracted from
22589         func_all_modules.
22590         (func_all_modules): Invoke it.
22591         * doc/gnulib-tool.texi (Which modules?): New node.
22592
22593 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22594
22595         * lib/sys_select.in.h: Provide select replacement even if
22596         sys/select.h exists on a system, for Interix.
22597
22598 2010-02-18  Jim Meyering  <meyering@redhat.com>
22599
22600         init.sh: don't use $(...) just yet
22601         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22602         to accommodate e.g., Solaris' /bin/sh.
22603
22604 2010-02-17  Bruno Haible  <bruno@clisp.org>
22605
22606         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22607         Reported by Ludovic Courtès <ludo@gnu.org>.
22608
22609 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22610
22611         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22612         linking with -lintl.
22613
22614 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22615
22616         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22617         if not provided by the system's netdb.h.  Reported by
22618         ludo@gnu.org (Ludovic Courtès).
22619
22620 2010-02-15  Jim Meyering  <meyering@redhat.com>
22621
22622         init.sh: improve portability and efficiency
22623         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22624         "dummy" in a for loop.
22625         Use '!', not '^' to select the complement of a character set used
22626         in a "case" statement.
22627         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22628         Suggestions from Eric Blake.
22629
22630         init.sh: automatically accommodate programs with the .exe suffix
22631         Automatically arrange for an invocation of "prog" to execute the
22632         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22633         may use the simpler "prog", yet still work when built on a system
22634         that requires specifying the added suffix.
22635         Do this by constructing a function named "prog" that invokes
22636         "prog.exe" for each .exe file in selected directories.
22637         * tests/init.sh (find_exe_basenames_): New function.
22638         (create_exe_shim_functions_): New function.
22639         (path_prepend_): Use it.
22640
22641         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22642         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22643         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22644
22645 2010-02-14  Jim Meyering  <meyering@redhat.com>
22646
22647         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22648         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22649         (sc_prohibit_hash_pjw_without_use): New rule.
22650
22651         maint.mk: allow the default upload destination dir to be overridden
22652         * top/maint.mk (upload_dest_dir_): Define with a default that
22653         preserves the status quo.
22654         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22655         Reported by Peter Simons.
22656
22657         maint.mk: prohibit inclusion of "hash.h" without_use
22658         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22659
22660 2010-02-10  Jim Meyering  <meyering@redhat.com>
22661
22662         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22663         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22664
22665 2010-02-09  Eric Blake  <ebb9@byu.net>
22666         and Bruno Haible  <bruno@clisp.org>
22667
22668         obstack-printf-posix: ensure declaration
22669         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22670         extracted from gl_FUNC_OBSTACK_PRINTF.
22671         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22672         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22673         Likewise.
22674         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22675         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22676         0.
22677
22678 2010-02-08  Bruno Haible  <bruno@clisp.org>
22679
22680         gnulib-tool: Fix typo in 2010-02-07 commit.
22681         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22682         Reported by Eric Blake.
22683
22684 2010-02-07  Bruno Haible  <bruno@clisp.org>
22685
22686         gnulib-tool: Fix up caching patches.
22687         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22688         option --no-cache. Use associative arrays when supported by the shell.
22689         (sed_comments): New variable.
22690         (modcache): Renamed from do_cache.
22691         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22692         abbreviate unnecessarily.
22693         (have_associative): New variable.
22694         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22695         way also for ksh and zsh.
22696         (func_init_sed_convert_to_cache_statements): New function, extracted
22697         from func_cache_lookup_module. Add support for associative arrays.
22698         Don't set the c_MODULE_cached variable here. Ignore all lines before
22699         the first field header. Remove only the final newline, not all trailing
22700         newlines. Support empty fields correctly. Limit the use of 'eval' to
22701         assignments.
22702         (func_get_description, func_get_status, func_get_notice,
22703         func_get_applicability, func_get_filelist, func_get_dependencies,
22704         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22705         func_get_automake_snippet, func_get_include_directive,
22706         func_get_link_directive, func_get_license, func_get_maintainer):
22707         Update documentation. List the unoptimized code first. Add support for
22708         associative arrays. Limit the use of 'eval' to assignments.
22709         (func_get_applicability): Undo stylistic pessimisations.
22710         (func_get_automake_snippet, func_get_include_directive): Reduce code
22711         duplication.
22712         (func_modules_transitive_closure, func_modules_add_dummy,
22713         func_modules_notice, func_modules_to_filelist, func_add_file,
22714         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22715         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22716         func_create_testdir, func_create_megatestdir): Update documentation.
22717
22718 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22719
22720         * gnulib-tool (func_cache_lookup_module): Store the module name
22721         belonging to the cache variable; error out if two different
22722         module names map to the same cache variable name.
22723
22724 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22725
22726         gnulib-tool: Make caching optional.
22727         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22728         Update matching short versions of --no-changelog.
22729         (func_usage): Update.
22730         (sed_extract_cache_prog): Renamed from ...
22731         (sed_extract_prog): ... this; revert to old extraction script.
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): If $do_cache is false,
22738         use old, non-caching extraction scripts.
22739         Suggestion by Bruno Haible.
22740
22741 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22742
22743         gnulib-tool: cache module metainformation.
22744         * gnulib-tool (sed_extract_prog): Match newline before each
22745         header, and rewrite header to a shell variable suffix.
22746         (func_cache_var, func_cache_lookup_module): New functions,
22747         to turn a module name into a cache variable prefix, and to
22748         look up and cache module metainformation.
22749         (func_get_description, func_get_status)
22750         (func_get_notice, func_get_applicability, func_get_filelist)
22751         (func_get_dependencies, func_get_autoconf_early_snippet)
22752         (func_get_autoconf_snippet, func_get_automake_snippet)
22753         (func_get_include_directive, func_get_link_directive)
22754         (func_get_license, func_get_maintainer): Use
22755         func_cache_lookup_module.
22756
22757 2010-02-07  Bruno Haible  <bruno@clisp.org>
22758
22759         fnctl: Fix missing dependency.
22760         * modules/fcntl (Depends-on): Add getdtablesize.
22761         Reported by John W. Eaton <jwe@gnu.org>.
22762
22763 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22764
22765         Argp: fix recognition of short alias options.
22766
22767         * lib/argp-parse.c (convert_options): Fix improper use of
22768         `|' between character values.
22769         * tests/test-argp.c (group1_option): New alias option
22770         --read (-r).
22771         (group1_parser): Special handling for 'r'.
22772         (test15): New test case.
22773         (test_fun): Add test15.
22774         * tests/test-argp-2.sh: Update expected --help and --usage
22775         outputs.
22776
22777 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22778
22779         * tests/test-argp.c: Fix indentation.
22780
22781 2010-02-04  Eric Blake  <ebb9@byu.net>
22782
22783         gettimeofday: expose type of second argument
22784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22785         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22786         * tests/test-gettimeofday.c: Use it to silence warning.
22787         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22788         the issue.
22789
22790 2010-02-03  Jim Meyering  <meyering@redhat.com>
22791
22792         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22793         * lib/regcomp.c (TYPE_SIGNED): Define.
22794         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22795
22796         regcomp.c: avoid a new -Wshadow warning
22797         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22798
22799 2010-02-01  Jim Meyering  <meyering@redhat.com>
22800
22801         removing useless parentheses in cpp #define directives
22802         For motivation, see commit c0221df4, "define STREQ(a,b)
22803         consistently, removing useless parentheses"
22804         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22805         * lib/mountlist.c (MNT_IGNORE): Likewise.
22806         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22807
22808 2010-02-01  Eric Blake  <ebb9@byu.net>
22809
22810         sys_time: use link-warning
22811         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22812         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22813         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22814         * modules/sys_time (Depends-on): Add warn-on-use.
22815         (Makefile.am): Always build replacement.
22816         (configure.ac): Update substitutions.
22817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22818         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22819         bother with SYS_TIME_H.
22820         * modules/gettimeofday (configure.ac): Declare indicator.
22821         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22822         in use.
22823
22824         closein-tests: silence compiler warning
22825         * tests/test-closein.c (main): Ignore fread result.
22826         * modules/closein-tests (Depends-on): Add ignore-value.
22827
22828         tests: silence warning about system return
22829         * tests/test-areadlink-with-size.c (main): Ignore system result.
22830         * tests/test-areadlink.c (main): Likewise.
22831         * tests/test-areadlinkat-with-size.c (main): Likewise.
22832         * tests/test-areadlinkat.c (main): Likewise.
22833         * tests/test-canonicalize-lgpl.c (main): Likewise.
22834         * tests/test-canonicalize.c (main): Likewise.
22835         * tests/test-chown.c (main): Likewise.
22836         * tests/test-fchownat.c (main): Likewise.
22837         * tests/test-fdutimensat.c (main): Likewise.
22838         * tests/test-fstatat.c (main): Likewise.
22839         * tests/test-futimens.c (main): Likewise.
22840         * tests/test-lchown.c (main): Likewise.
22841         * tests/test-link.c (main): Likewise.
22842         * tests/test-linkat.c (main): Likewise.
22843         * tests/test-lstat.c (main): Likewise.
22844         * tests/test-mkdir.c (main): Likewise.
22845         * tests/test-mkdirat.c (main): Likewise.
22846         * tests/test-mkfifo.c (main): Likewise.
22847         * tests/test-mkfifoat.c (main): Likewise.
22848         * tests/test-mknod.c (main): Likewise.
22849         * tests/test-readlink.c (main): Likewise.
22850         * tests/test-remove.c (main): Likewise.
22851         * tests/test-rename.c (main): Likewise.
22852         * tests/test-renameat.c (main): Likewise.
22853         * tests/test-rmdir.c (main): Likewise.
22854         * tests/test-symlink.c (main): Likewise.
22855         * tests/test-symlinkat.c (main): Likewise.
22856         * tests/test-unlink.c (main): Likewise.
22857         * tests/test-unlinkat.c (main): Likewise.
22858         * tests/test-utimens.c (main): Likewise.
22859         * tests/test-utimensat.c (main): Likewise.
22860         * modules/areadlink-tests (Depends-on): Add ignore-value.
22861         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22862         * modules/areadlinkat-tests (Depends-on): Likewise.
22863         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22864         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22865         * modules/canonicalize-tests (Depends-on): Likewise.
22866         * modules/chown-tests (Depends-on): Likewise.
22867         * modules/fdutimensat-tests (Depends-on): Likewise.
22868         * modules/futimens-tests (Depends-on): Likewise.
22869         * modules/lchown-tests (Depends-on): Likewise.
22870         * modules/link-tests (Depends-on): Likewise.
22871         * modules/linkat-tests (Depends-on): Likewise.
22872         * modules/lstat-tests (Depends-on): Likewise.
22873         * modules/mkdir-tests (Depends-on): Likewise.
22874         * modules/mkfifo-tests (Depends-on): Likewise.
22875         * modules/mkfifoat-tests (Depends-on): Likewise.
22876         * modules/mknod-tests (Depends-on): Likewise.
22877         * modules/openat-tests (Depends-on): Likewise.
22878         * modules/readlink-tests (Depends-on): Likewise.
22879         * modules/remove-tests (Depends-on): Likewise.
22880         * modules/rename-tests (Depends-on): Likewise.
22881         * modules/renameat-tests (Depends-on): Likewise.
22882         * modules/rmdir-tests (Depends-on): Likewise.
22883         * modules/symlink-tests (Depends-on): Likewise.
22884         * modules/symlinkat-tests (Depends-on): Likewise.
22885         * modules/unlink-tests (Depends-on): Likewise.
22886         * modules/utimens-tests (Depends-on): Likewise.
22887         * modules/utimensat-tests (Depends-on): Likewise.
22888
22889 2010-01-31  Bruno Haible  <bruno@clisp.org>
22890
22891         Perform the same test for many <math.h> functions.
22892         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22893         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22894         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22895         of gl_MATHFUNC.
22896         * modules/acos (configure.ac): Likewise.
22897         * modules/asin (configure.ac): Likewise.
22898         * modules/atan (configure.ac): Likewise.
22899         * modules/atan2 (configure.ac): Likewise.
22900         * modules/cbrt (configure.ac): Likewise.
22901         * modules/copysign (configure.ac): Likewise.
22902         * modules/cos (configure.ac): Likewise.
22903         * modules/cosh (configure.ac): Likewise.
22904         * modules/erf (configure.ac): Likewise.
22905         * modules/erfc (configure.ac): Likewise.
22906         * modules/exp (configure.ac): Likewise.
22907         * modules/fmod (configure.ac): Likewise.
22908         * modules/hypot (configure.ac): Likewise.
22909         * modules/j0 (configure.ac): Likewise.
22910         * modules/j1 (configure.ac): Likewise.
22911         * modules/jn (configure.ac): Likewise.
22912         * modules/lgamma (configure.ac): Likewise.
22913         * modules/log (configure.ac): Likewise.
22914         * modules/log10 (configure.ac): Likewise.
22915         * modules/log1p (configure.ac): Likewise.
22916         * modules/pow (configure.ac): Likewise.
22917         * modules/remainder (configure.ac): Likewise.
22918         * modules/sin (configure.ac): Likewise.
22919         * modules/sinh (configure.ac): Likewise.
22920         * modules/tan (configure.ac): Likewise.
22921         * modules/tanh (configure.ac): Likewise.
22922         * modules/y0 (configure.ac): Likewise.
22923         * modules/y1 (configure.ac): Likewise.
22924         * modules/yn (configure.ac): Likewise.
22925         Suggested by Paolo Bonzini.
22926
22927 2010-01-31  Bruno Haible  <bruno@clisp.org>
22928
22929         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22930
22931 2010-01-31  Bruno Haible  <bruno@clisp.org>
22932
22933         Work around getdelim() bug on FreeBSD 8.0.
22934         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22935         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22936         not work.
22937         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22938         is 1.
22939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22940         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22941         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22942         a non-zero size.
22943         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22944
22945 2010-01-31  Bruno Haible  <bruno@clisp.org>
22946
22947         Work around getline() bug on FreeBSD 8.0.
22948         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22949         and a non-zero size.
22950         * tests/test-getline.c (main): Likewise.
22951         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22952         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22953
22954 2010-01-28  Eric Blake  <ebb9@byu.net>
22955
22956         regex: fix build failure
22957         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22958         platforms.
22959
22960 2010-01-28  Jim Meyering  <meyering@redhat.com>
22961
22962         regex: do not ignore memory allocation failure
22963         * lib/regex_internal.c (create_cd_newstate): Detect
22964         re_node_set_init_copy failure.   Extracted from glibc commit
22965         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22966
22967         regex: sync more white-space changes from libc
22968         * lib/regex_internal.c: White-space only changes.
22969         * lib/regexec.c: Likewise.
22970
22971         regex: add many uses of __attribute_warn_unused_result__
22972         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22973         * lib/regexec.c: Likewise.
22974         Extracted from a messy glibc commit.
22975
22976         regcomp.c: spelling and merge-artifact from glibc
22977         * lib/regcomp.c: Merge remainder of glibc's
22978         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22979
22980         regcomp.c: sync white-space changes from glibc
22981         * lib/regcomp.c: Merge to accommodate white space
22982         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22983
22984         regcomp.c: do not ignore internal return values
22985         * lib/regcomp.c: Do not ignore internal return values.
22986         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22987         but without its white-space changes and spelling fixes.
22988
22989         regex_internal.h: define __attribute_warn_unused_result__
22990         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22991
22992         maint: add a syntax-check rule to check for vulnerable Makefile.in
22993         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22994
22995 2010-01-27  Jim Meyering  <meyering@redhat.com>
22996
22997         ncftpput-ftp: clean up spaces
22998         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22999         Remove trailing blanks.
23000
23001 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23002
23003         * build-aux/git-version-gen: Fix copyright statement.
23004         * build-aux/gnupload: Likewise.
23005         * tests/test-arcfour.c: Likewise.
23006         * tests/test-arctwo.c: Likewise.
23007         * tests/test-count-one-bits.c: Likewise.
23008         * tests/test-crc.c: Likewise.
23009         * tests/test-des.c: Likewise.
23010         * tests/test-gc-arcfour.c: Likewise.
23011         * tests/test-gc-arctwo.c: Likewise.
23012         * tests/test-gc-des.c: Likewise.
23013         * tests/test-gc-hmac-md5.c: Likewise.
23014         * tests/test-gc-hmac-sha1.c: Likewise.
23015         * tests/test-gc-md2.c: Likewise.
23016         * tests/test-gc-md4.c: Likewise.
23017         * tests/test-gc-md5.c: Likewise.
23018         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23019         * tests/test-gc-rijndael.c: Likewise.
23020         * tests/test-gc-sha1.c: Likewise.
23021         * tests/test-gc.c: Likewise.
23022         * tests/test-gethostname.c: Likewise.
23023         * tests/test-gettimeofday.c: Likewise.
23024         * tests/test-hash.c: Likewise.
23025         * tests/test-hmac-md5.c: Likewise.
23026         * tests/test-hmac-sha1.c: Likewise.
23027         * tests/test-md2.c: Likewise.
23028         * tests/test-md4.c: Likewise.
23029         * tests/test-md5.c: Likewise.
23030         * tests/test-memchr.c: Likewise.
23031         * tests/test-memchr2.c: Likewise.
23032         * tests/test-memcmp.c: Likewise.
23033         * tests/test-memmem.c: Likewise.
23034         * tests/test-memrchr.c: Likewise.
23035         * tests/test-rawmemchr.c: Likewise.
23036         * tests/test-read-file.c: Likewise.
23037         * tests/test-rijndael.c: Likewise.
23038         * tests/test-sockets.c: Likewise.
23039         * tests/test-strchrnul.c: Likewise.
23040         * tests/test-strstr.c: Likewise.
23041         * tests/test-strtod.c: Likewise.
23042         * build-aux/ncftpput-ftp: Likewise.
23043
23044 2010-01-26  Eric Blake  <ebb9@byu.net>
23045
23046         ignore-value: update recommended header name
23047         * modules/ignore-value (Include): Only use <> for headers that
23048         exist in glibc.
23049
23050 2010-01-26  Jim Meyering  <meyering@redhat.com>
23051
23052         test-userspec.c: avoid compiler warnings
23053         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23054         and "initialization discards qualifiers..." warnings.
23055         Put the first "uid" in its own scope, and make char* members "const".
23056
23057 2010-01-25  Bruno Haible  <bruno@clisp.org>
23058
23059         gnulib-tool: Make warning diagnostics consistent.
23060         * gnulib-tool (func_warning): New function.
23061         Use it everywhere where gnulib-tool produces output to stderr and it is
23062         not a fatal error.
23063
23064 2010-01-25  Bruno Haible  <bruno@clisp.org>
23065
23066         Fix test dependencies.
23067         * modules/xstrtol-tests (Depends-on): Add inttypes.
23068         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23069
23070 2010-01-25 Pádraig Brady <P@draigBrady.com>
23071
23072         syntax-check: detect incorrect boolean macro values in config.h
23073         * modules/maintainer-makefile (configure.ac): Parameterize the location
23074         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23075         The logic is from Eric Blake and the location indicated by Jim Meyering.
23076         Note the more natural CONFIG_HEADER name is prohibited by automake
23077         for backwards compatibility reasons.
23078         * top/maint.mk (sc_Wundef_boolean): New rule.
23079
23080 2010-01-25  Jim Meyering  <meyering@redhat.com>
23081
23082         bootstrap: detect MacOS 10.6's shasum, too
23083         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23084         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23085
23086 2010-01-23  Jim Meyering  <meyering@redhat.com>
23087
23088         xstrtoll: new module
23089         * modules/xstrtoll: New file.
23090         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23091         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23092         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23093         ./configure fails if you use this module and lack "long long".
23094         * modules/xstrtoll-tests: New module.
23095         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23096         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23097         new init.sh-based test framework.
23098
23099 2010-01-24  Bruno Haible  <bruno@clisp.org>
23100
23101         Tests for module 'yn'.
23102         * modules/yn-tests: New file.
23103         * tests/test-yn.c: New file.
23104
23105         Tests for module 'y1'.
23106         * modules/y1-tests: New file.
23107         * tests/test-y1.c: New file.
23108
23109         Tests for module 'y0'.
23110         * modules/y0-tests: New file.
23111         * tests/test-y0.c: New file.
23112
23113         Tests for module 'tanh'.
23114         * modules/tanh-tests: New file.
23115         * tests/test-tanh.c: New file.
23116
23117         Tests for module 'tan'.
23118         * modules/tan-tests: New file.
23119         * tests/test-tan.c: New file.
23120
23121         Tests for module 'sqrt'.
23122         * modules/sqrt-tests: New file.
23123         * tests/test-sqrt.c: New file.
23124
23125         Tests for module 'sinh'.
23126         * modules/sinh-tests: New file.
23127         * tests/test-sinh.c: New file.
23128
23129         Tests for module 'sin'.
23130         * modules/sin-tests: New file.
23131         * tests/test-sin.c: New file.
23132
23133         Tests for module 'rint'.
23134         * modules/rint-tests: New file.
23135         * tests/test-rint.c: New file.
23136
23137         Tests for module 'remainder'.
23138         * modules/remainder-tests: New file.
23139         * tests/test-remainder.c: New file.
23140
23141         Tests for module 'pow'.
23142         * modules/pow-tests: New file.
23143         * tests/test-pow.c: New file.
23144
23145         Tests for module 'nextafter'.
23146         * modules/nextafter-tests: New file.
23147         * tests/test-nextafter.c: New file.
23148
23149         Tests for module 'modf'.
23150         * modules/modf-tests: New file.
23151         * tests/test-modf.c: New file.
23152
23153         Tests for module 'logb'.
23154         * modules/logb-tests: New file.
23155         * tests/test-logb.c: New file.
23156
23157         Tests for module 'log1p'.
23158         * modules/log1p-tests: New file.
23159         * tests/test-log1p.c: New file.
23160
23161         Tests for module 'log10'.
23162         * modules/log10-tests: New file.
23163         * tests/test-log10.c: New file.
23164
23165         Tests for module 'log'.
23166         * modules/log-tests: New file.
23167         * tests/test-log.c: New file.
23168
23169         Tests for module 'lgamma'.
23170         * modules/lgamma-tests: New file.
23171         * tests/test-lgamma.c: New file.
23172
23173         Tests for module 'ldexp'.
23174         * modules/ldexp-tests: New file.
23175         * tests/test-ldexp.c: New file.
23176
23177         Tests for module 'jn'.
23178         * modules/jn-tests: New file.
23179         * tests/test-jn.c: New file.
23180
23181         Tests for module 'j1'.
23182         * modules/j1-tests: New file.
23183         * tests/test-j1.c: New file.
23184
23185         Tests for module 'j0'.
23186         * modules/j0-tests: New file.
23187         * tests/test-j0.c: New file.
23188
23189         Tests for module 'hypot'.
23190         * modules/hypot-tests: New file.
23191         * tests/test-hypot.c: New file.
23192
23193         Tests for module 'fmod'.
23194         * modules/fmod-tests: New file.
23195         * tests/test-fmod.c: New file.
23196
23197         Tests for module 'fabs'.
23198         * modules/fabs-tests: New file.
23199         * tests/test-fabs.c: New file.
23200
23201         Tests for module 'exp'.
23202         * modules/exp-tests: New file.
23203         * tests/test-exp.c: New file.
23204
23205         Tests for module 'erfc'.
23206         * modules/erfc-tests: New file.
23207         * tests/test-erfc.c: New file.
23208
23209         Tests for module 'erf'.
23210         * modules/erf-tests: New file.
23211         * tests/test-erf.c: New file.
23212
23213         Tests for module 'cosh'.
23214         * modules/cosh-tests: New file.
23215         * tests/test-cosh.c: New file.
23216
23217         Tests for module 'cos'.
23218         * modules/cos-tests: New file.
23219         * tests/test-cos.c: New file.
23220
23221         Tests for module 'copysign'.
23222         * modules/copysign-tests: New file.
23223         * tests/test-copysign.c: New file.
23224
23225         Tests for module 'cbrt'.
23226         * modules/cbrt-tests: New file.
23227         * tests/test-cbrt.c: New file.
23228
23229         Tests for module 'atan2'.
23230         * modules/atan2-tests: New file.
23231         * tests/test-atan2.c: New file.
23232
23233         Tests for module 'atan'.
23234         * modules/atan-tests: New file.
23235         * tests/test-atan.c: New file.
23236
23237         Tests for module 'asin'.
23238         * modules/asin-tests: New file.
23239         * tests/test-asin.c: New file.
23240
23241         Tests for module 'acos'.
23242         * modules/acos-tests: New file.
23243         * tests/test-acos.c: New file.
23244
23245 2010-01-24  Bruno Haible  <bruno@clisp.org>
23246
23247         Fix tests for common <math.h> functions.
23248         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23249         code snippet that references the function pointer, rather than merely
23250         calling the function. Substitute the FUNC_LIBM variable.
23251         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23252         * modules/acos (configure.ac): Likewise.
23253         * modules/asin (configure.ac): Likewise.
23254         * modules/atan (configure.ac): Likewise.
23255         * modules/atan2 (configure.ac): Likewise.
23256         * modules/cbrt (configure.ac): Likewise.
23257         * modules/copysign (configure.ac): Likewise.
23258         * modules/cos (configure.ac): Likewise.
23259         * modules/cosh (configure.ac): Likewise.
23260         * modules/erf (configure.ac): Likewise.
23261         * modules/erfc (configure.ac): Likewise.
23262         * modules/exp (configure.ac): Likewise.
23263         * modules/fabs (configure.ac): Likewise.
23264         * modules/fmod (configure.ac): Likewise.
23265         * modules/hypot (configure.ac): Likewise.
23266         * modules/j0 (configure.ac): Likewise.
23267         * modules/j1 (configure.ac): Likewise.
23268         * modules/jn (configure.ac): Likewise.
23269         * modules/ldexp (configure.ac): Likewise.
23270         * modules/lgamma (configure.ac): Likewise.
23271         * modules/log (configure.ac): Likewise.
23272         * modules/log10 (configure.ac): Likewise.
23273         * modules/log1p (configure.ac): Likewise.
23274         * modules/logb (configure.ac): Likewise.
23275         * modules/modf (configure.ac): Likewise.
23276         * modules/nextafter (configure.ac): Likewise.
23277         * modules/pow (configure.ac): Likewise.
23278         * modules/remainder (configure.ac): Likewise.
23279         * modules/rint (configure.ac): Likewise.
23280         * modules/sin (configure.ac): Likewise.
23281         * modules/sinh (configure.ac): Likewise.
23282         * modules/tan (configure.ac): Likewise.
23283         * modules/tanh (configure.ac): Likewise.
23284         * modules/y0 (configure.ac): Likewise.
23285         * modules/y1 (configure.ac): Likewise.
23286         * modules/yn (configure.ac): Likewise.
23287
23288 2010-01-24  Bruno Haible  <bruno@clisp.org>
23289
23290         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23291         * tests/test-acosl.c (x): New variable.
23292         (main): Store argument in x and fetch it from x.
23293         * tests/test-asinl.c (x): New variable.
23294         (main): Store argument in x and fetch it from x.
23295         * tests/test-atanl.c (x): New variable.
23296         (main): Store argument in x and fetch it from x.
23297         * tests/test-cosl.c (x): New variable.
23298         (main): Store argument in x and fetch it from x.
23299         * tests/test-expl.c (x): New variable.
23300         (main): Store argument in x and fetch it from x.
23301         * tests/test-logl.c (x): New variable.
23302         (main): Store argument in x and fetch it from x.
23303         * tests/test-sinl.c (x): New variable.
23304         (main): Store argument in x and fetch it from x.
23305         * tests/test-sqrtl.c (x): New variable.
23306         (main): Store argument in x and fetch it from x.
23307         * tests/test-tanl.c (x): New variable.
23308         (main): Store argument in x and fetch it from x.
23309
23310 2010-01-24  Bruno Haible  <bruno@clisp.org>
23311
23312         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23313         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23314         assignments to the initial TESTS_ENVIRONMENT.
23315         * doc/gnulib.texi (Unit test modules): Document it.
23316         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23317         TESTS_ENVIRONMENT.
23318         * modules/btowc-tests (Makefile.am): Likewise.
23319         * modules/c-stack-tests (Makefile.am): Likewise.
23320         * modules/c-strcase-tests (Makefile.am): Likewise.
23321         * modules/copy-file-tests (Makefile.am): Likewise.
23322         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23323         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23324         * modules/mbrtowc-tests (Makefile.am): Likewise.
23325         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23326         * modules/mbscasestr-tests (Makefile.am): Likewise.
23327         * modules/mbschr-tests (Makefile.am): Likewise.
23328         * modules/mbscspn-tests (Makefile.am): Likewise.
23329         * modules/mbsinit-tests (Makefile.am): Likewise.
23330         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23331         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23332         * modules/mbspbrk-tests (Makefile.am): Likewise.
23333         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23334         * modules/mbsrchr-tests (Makefile.am): Likewise.
23335         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23336         * modules/mbsspn-tests (Makefile.am): Likewise.
23337         * modules/mbsstr-tests (Makefile.am): Likewise.
23338         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23339         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23340         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23341         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23342         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23343         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23344         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23345         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23346         * modules/wcrtomb-tests (Makefile.am): Likewise.
23347         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23348         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23349         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23350         assignments from TESTS_ENVIRONMENT.
23351         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23352         augmentation.
23353         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23354         * modules/atexit-tests (Makefile.am): Likewise.
23355         * modules/binary-io-tests (Makefile.am): Likewise.
23356         * modules/closein-tests (Makefile.am): Likewise.
23357         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23358         * modules/exclude-tests (Makefile.am): Likewise.
23359         * modules/fflush-tests (Makefile.am): Likewise.
23360         * modules/fpending-tests (Makefile.am): Likewise.
23361         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23362         * modules/freadahead-tests (Makefile.am): Likewise.
23363         * modules/freadptr-tests (Makefile.am): Likewise.
23364         * modules/freadseek-tests (Makefile.am): Likewise.
23365         * modules/fseek-tests (Makefile.am): Likewise.
23366         * modules/fseeko-tests (Makefile.am): Likewise.
23367         * modules/ftell-tests (Makefile.am): Likewise.
23368         * modules/ftello-tests (Makefile.am): Likewise.
23369         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23370         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23371         * modules/lseek-tests (Makefile.am): Likewise.
23372         * modules/parse-duration-tests (Makefile.am): Likewise.
23373         * modules/perror-tests (Makefile.am): Likewise.
23374         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23375         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23376         * modules/pipe-tests (Makefile.am): Likewise.
23377         * modules/pread-tests (Makefile.am): Likewise.
23378         * modules/printf-posix-tests (Makefile.am): Likewise.
23379         * modules/select-tests (Makefile.am): Likewise.
23380         * modules/sigpipe-tests (Makefile.am): Likewise.
23381         * modules/tsearch-tests (Makefile.am): Likewise.
23382         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23383         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23384         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23385         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23386         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23387         * modules/version-etc-tests (Makefile.am): Likewise.
23388         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23389         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23390         * modules/xalloc-die-tests (Makefile.am): Likewise.
23391         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23392         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23393         * modules/xstrtol-tests (Makefile.am): Likewise.
23394         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23395         * modules/yesno-tests (Makefile.am): Likewise.
23396         Suggested by Jim Meyering.
23397
23398 2010-01-24  Bruno Haible  <bruno@clisp.org>
23399
23400         More documentation.
23401         * doc/gnulib.texi (Writing modules): New chapter.
23402         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23403         the new chapter.
23404
23405 2010-01-24  Jim Meyering  <meyering@redhat.com>
23406
23407         maint.mk: do not prepend "./" after filtering
23408         * top/maint.mk (_prepend_srcdir_prefix): New variable
23409         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23410         "./" when $(srcdir) is ".".
23411
23412         define STREQ(a,b) consistently, removing useless parentheses
23413         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23414         since the only risk is that "a" or "b" contains an unparenthesized
23415         comma, but if either did that, STREQ would have 3 or more arguments.
23416         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23417         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23418         * lib/hash-triple.c (STREQ): Likewise.
23419         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23420         * lib/getugroups.c (STREQ): Likewise.
23421
23422 2010-01-23  Jim Meyering  <meyering@redhat.com>
23423
23424         maint.mk: fix syntax-check in a non-srcdir build directory
23425         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23426         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23427
23428 2010-01-22  Jim Meyering  <meyering@redhat.com>
23429
23430         userspec: add unit tests
23431         * tests/test-userspec.c: New file.
23432         * modules/userspec-tests: Likewise.
23433
23434 2010-01-21  Jim Meyering  <meyering@redhat.com>
23435
23436         maint.mk: handle source file names containing "." robustly
23437         * top/maint.mk (_dot_escaped_srcdir): Define.
23438         (VC_LIST): Use it in LHS of sed substitution.
23439
23440 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23441
23442         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23443         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23444         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23445         from a non-srcdir build.
23446
23447 2010-01-20  Eric Blake  <ebb9@byu.net>
23448
23449         warn-on-use: use instead of link-warning
23450         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23451         * modules/unistd (Depends-on, Makefile.am): Likewise.
23452         * modules/arpa_inet (Depends-on): Replace link-warning with
23453         warn-on-use.
23454         (Makefile.am): Update rules accordingly.
23455         * modules/ctype (Depends-on, Makefile.am): Likewise.
23456         * modules/dirent (Depends-on, Makefile.am): Likewise.
23457         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23458         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23459         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23460         * modules/locale (Depends-on, Makefile.am): Likewise.
23461         * modules/math (Depends-on, Makefile.am): Likewise.
23462         * modules/search (Depends-on, Makefile.am): Likewise.
23463         * modules/signal (Depends-on, Makefile.am): Likewise.
23464         * modules/spawn (Depends-on, Makefile.am): Likewise.
23465         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23466         * modules/string (Depends-on, Makefile.am): Likewise.
23467         * modules/strings (Depends-on, Makefile.am): Likewise.
23468         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23469         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23470         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23471         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23472         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23473         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23474         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23475         * modules/wchar (Depends-on, Makefile.am): Likewise.
23476         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23477         should be poisoned.
23478         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23479         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23480         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23481         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23482         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23483         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23484         * m4/math_h.m4 (gl_MATH_H): Likewise.
23485         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23486         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23487         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23488         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23489         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23490         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23491         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23492         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23499         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23500         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23501         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23502         GL_LINK_WARNING.
23503         * lib/ctype.in.h: Likewise.
23504         * lib/dirent.in.h: Likewise.
23505         * lib/fcntl.in.h: Likewise.
23506         * lib/inttypes.in.h: Likewise.
23507         * lib/langinfo.in.h: Likewise.
23508         * lib/locale.in.h: Likewise.
23509         * lib/math.in.h: Likewise.
23510         * lib/search.in.h: Likewise.
23511         * lib/signal.in.h: Likewise.
23512         * lib/spawn.in.h: Likewise.
23513         * lib/stdio.in.h: Likewise.
23514         * lib/stdlib.in.h: Likewise.
23515         * lib/string.in.h: Likewise.
23516         * lib/strings.in.h: Likewise.
23517         * lib/sys_file.in.h: Likewise.
23518         * lib/sys_ioctl.in.h: Likewise.
23519         * lib/sys_select.in.h: Likewise.
23520         * lib/sys_socket.in.h: Likewise.
23521         * lib/sys_stat.in.h: Likewise.
23522         * lib/sys_times.in.h: Likewise.
23523         * lib/sys_utsname.in.h: Likewise.
23524         * lib/unistd.in.h: Likewise.
23525         * lib/wchar.in.h: Likewise.
23526
23527 2010-01-20  Bruno Haible  <bruno@clisp.org>
23528
23529         Avoid duplicate -lm.
23530         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23531         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23533         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23534         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23535         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23536         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23537         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23538         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23539         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23540         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23541         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23542         Reported by Paolo Bonzini.
23543
23544 2010-01-19  Bruno Haible  <bruno@clisp.org>
23545
23546         langinfo, nl_langinfo: Relicense under LGPLv2+.
23547         * modules/langinfo (License): Change to LGPLv2+.
23548         * modules/nl_langinfo (License): Likewise.
23549         Patch by David Lutterkort <lutter@redhat.com>.
23550
23551 2010-01-19  Bruno Haible  <bruno@clisp.org>
23552
23553         Avoid compilation error with cc on OSF/1 5.1.
23554         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23555         statement, not before.
23556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23557
23558 2010-01-18  Bruno Haible  <bruno@clisp.org>
23559
23560         Avoid a link error due to the __printf__ symbol.
23561         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23562         and 2.6.x.
23563         (__format__, __printf__): Remove definitions.
23564         * lib/argp-fmtstream.h: Likewise.
23565         * lib/argp.h: Likewise.
23566         * lib/error.h: Likewise.
23567         * lib/vasnprintf.h: Likewise.
23568         * lib/xprintf.h: Likewise.
23569         * lib/xvasprintf.h: Likewise.
23570         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23571
23572 2010-01-18  Bruno Haible  <bruno@clisp.org>
23573
23574         Tests for module 'tanl'.
23575         * modules/tanl-tests: New file.
23576         * tests/test-tanl.c: New file.
23577
23578         Tests for module 'sqrtl'.
23579         * modules/sqrtl-tests: New file.
23580         * tests/test-sqrtl.c: New file.
23581
23582         Tests for module 'sinl'.
23583         * modules/sinl-tests: New file.
23584         * tests/test-sinl.c: New file.
23585
23586         Tests for module 'logl'.
23587         * modules/logl-tests: New file.
23588         * tests/test-logl.c: New file.
23589
23590         Tests for module 'expl'.
23591         * modules/expl-tests: New file.
23592         * tests/test-expl.c: New file.
23593
23594         Tests for module 'cosl'.
23595         * modules/cosl-tests: New file.
23596         * tests/test-cosl.c: New file.
23597
23598         Tests for module 'atanl'.
23599         * modules/atanl-tests: New file.
23600         * tests/test-atanl.c: New file.
23601
23602         Tests for module 'asinl'.
23603         * modules/asinl-tests: New file.
23604         * tests/test-asinl.c: New file.
23605
23606         Tests for module 'acosl'.
23607         * modules/acosl-tests: New file.
23608         * tests/test-acosl.c: New file.
23609
23610         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23611         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23612         tanl): Use the standard gnulib idiom.
23613         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23614         * lib/sinl.c: Likewise.
23615         * lib/tanl.c: Don't include trigl.c.
23616         (kernel_tanl): Make static.
23617         * lib/sincosl.c: Include trigl.h first.
23618         * lib/trigl.c: Likewise.
23619         * m4/acosl.m4: New file.
23620         * m4/asinl.m4: New file.
23621         * m4/atanl.m4: New file.
23622         * m4/cosl.m4: New file.
23623         * m4/expl.m4: New file.
23624         * m4/logl.m4: New file.
23625         * m4/sinl.m4: New file.
23626         * m4/sqrtl.m4: New file.
23627         * m4/tanl.m4: New file.
23628         * m4/mathl.m4: Remove file.
23629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23630         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23631         Don't initialize GNULIB_MATHL.
23632         * modules/acosl: New file.
23633         * modules/asinl: New file.
23634         * modules/atanl: New file.
23635         * modules/cosl: New file.
23636         * modules/expl: New file.
23637         * modules/logl: New file.
23638         * modules/sinl: New file.
23639         * modules/sqrtl: New file.
23640         * modules/tanl: New file.
23641         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23642         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23643         substitute GNULIB_MATHL.
23644         * modules/mathl: Rewritten.
23645         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23646         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23647         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23648         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23649         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23650         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23651         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23652         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23653         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23654
23655 2010-01-18  Bruno Haible  <bruno@clisp.org>
23656
23657         sqrt: Make gl_FUNC_SQRT requirable.
23658         * m4/sqrt.m4: New file.
23659         * modules/sqrt (Files): Add it.
23660         (configure.ac): Invoke gl_FUNC_SQRT.
23661
23662 2010-01-18  Bruno Haible  <bruno@clisp.org>
23663
23664         New modules for common <math.h> functions.
23665         * m4/mathfunc.m4: New file.
23666         * modules/acos: New file.
23667         * modules/asin: New file.
23668         * modules/atan: New file.
23669         * modules/atan2: New file.
23670         * modules/cbrt: New file.
23671         * modules/copysign: New file.
23672         * modules/cos: New file.
23673         * modules/cosh: New file.
23674         * modules/erf: New file.
23675         * modules/erfc: New file.
23676         * modules/exp: New file.
23677         * modules/fabs: New file.
23678         * modules/fmod: New file.
23679         * modules/hypot: New file.
23680         * modules/j0: New file.
23681         * modules/j1: New file.
23682         * modules/jn: New file.
23683         * modules/ldexp: New file.
23684         * modules/lgamma: New file.
23685         * modules/log: New file.
23686         * modules/log10: New file.
23687         * modules/log1p: New file.
23688         * modules/logb: New file.
23689         * modules/modf: New file.
23690         * modules/nextafter: New file.
23691         * modules/pow: New file.
23692         * modules/remainder: New file.
23693         * modules/rint: New file.
23694         * modules/sin: New file.
23695         * modules/sinh: New file.
23696         * modules/sqrt: New file.
23697         * modules/tan: New file.
23698         * modules/tanh: New file.
23699         * modules/y0: New file.
23700         * modules/y1: New file.
23701         * modules/yn: New file.
23702         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23703         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23704         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23705         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23706         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23707         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23708         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23709         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23710         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23711         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23712         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23713         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23714         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23715         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23716         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23717         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23718         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23719         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23720         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23721         * doc/posix-functions/log.texi: Mention the 'log' module.
23722         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23723         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23724         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23725         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23726         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23727         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23728         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23729         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23730         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23731         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23732         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23733         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23734         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23735         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23736         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23737         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23738
23739 2010-01-18  Jim Meyering  <meyering@redhat.com>
23740
23741         ignore-value: relax license to LGPLv2+
23742         * modules/ignore-value (License): Relax to LGPLv2+.
23743
23744         getdate: don't leak when TZ contains two or more '"'s
23745         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23746         double quote in TZ after the first one.
23747
23748         readtokens: do not leak internal token_lengths buffer
23749         * lib/readtokens.c (readtokens): Free the local, lengths,
23750         when the supplied "token_lengths" parameter is NULL.
23751
23752 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23753
23754         Fix a couple of missing LIBTHREAD link failures on AIX.
23755         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23756         $(LIBTHREAD).
23757         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23758
23759         Link test-poll against INET_PTON_LIB.
23760         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23761         for inet_pton on Solaris 10.
23762
23763 2010-01-17  Bruno Haible  <bruno@clisp.org>
23764
23765         unistdio/*-sprintf: Fix typo in module description.
23766         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23767         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23768         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23769         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23770         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23771         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23772         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23774
23775 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23776
23777         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23778         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23779         variables in shell case patterns, for AIX and HP-UX ksh.
23780
23781         Split large sed scripts, for HP-UX sed.
23782         * modules/stdio: Split sed scripts around 50 sed commands,
23783         to avoid HP-UX limit of 99 commands, in the near future.
23784         * modules/string: Likewise.
23785         * modules/unistd: Likewise.
23786
23787         gnulib-tool: avoid writing in the current directory.
23788         * gnulib-tool (func_emit_lib_Makefile_am)
23789         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23790         not in the current directory, so concurrent gnulib-tool
23791         instances do not interfere.
23792
23793 2010-01-16  Jim Meyering  <meyering@redhat.com>
23794
23795         doc: update users.txt
23796         * users.txt: Add grep.
23797         (diffutils, gzip): Update URLs.
23798
23799 2010-01-12  Bruno Haible  <bruno@clisp.org>
23800
23801         posix_spawn: Avoid test failure on Cygwin.
23802         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23803         characters.
23804         Reported by Simon Josefsson.
23805
23806 2010-01-12  Bruno Haible  <bruno@clisp.org>
23807
23808         * tests/test-cond.c (main): When skipping the test, show the reason.
23809
23810 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23811
23812         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23813
23814 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23815
23816         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23817         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23818
23819 2010-01-12  Eric Blake  <ebb9@byu.net>
23820
23821         build: guarantee AS_VAR_IF
23822         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23823         (gl_AS_VAR_IF): Move...
23824         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23825         Reported by Simon Josefsson.
23826
23827 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23828
23829         * lib/stdio.in.h: Fix typo.
23830
23831 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23832
23833         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23834         libgpg-error.
23835
23836 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23837
23838         * tests/test-xalloc-die.sh: Use $EXEEXT.
23839
23840 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23841             Bruno Haible  <bruno@clisp.org>
23842
23843         getlogin, getlogin_r: Avoid test failure.
23844         * tests/test-getlogin.c: Include <stdio.h>.
23845         (main): Skip the test when the function fails because stdin is not a
23846         tty.
23847         * tests/test-getlogin_r.c: Include <stdio.h>.
23848         (main): Skip the test when the function fails because stdin is not a
23849         tty.
23850
23851 2010-01-11  Eric Blake  <ebb9@byu.net>
23852
23853         tests: avoid more large file warnings
23854         * tests/test-fflush.c: Avoid warning about ftell use.
23855         * tests/test-fseek.c: Avoid warning about fseek use.
23856
23857 2010-01-10  Bruno Haible  <bruno@clisp.org>
23858
23859         nproc: Work better on Linux when /proc and /sys are not mounted.
23860         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23861         as lower bound when, on glibc/Linux systems,
23862         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23863         Suggested by Pádraig Brady <P@draigbrady.com>.
23864         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23865
23866         nproc: Refactor.
23867         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23868         extracted from num_processors.
23869         (num_processors): Call it.
23870
23871 2010-01-11  Jim Meyering  <meyering@redhat.com>
23872
23873         utimecmp: avoid new warning from upcoming gcc-4.5.0
23874         * lib/utimecmp.c (BILLION): Define using #define rather than an
23875         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23876
23877 2010-01-11  Eric Blake  <ebb9@byu.net>
23878
23879         math: add portability warnings for classification macros
23880         * modules/math (Depends-on): Add warn-on-use.
23881         (Makefile.am): Provide new substitutions.
23882         * m4/math_h.m4 (gl_MATH_H): Require inline.
23883         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23884         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23885         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23886         implement warnings.
23887
23888         unistd: warn on use of environ without module
23889         * modules/unistd (Depends-on): Add warn-on-use.
23890         (Makefile.am): Provide new substitutions.
23891         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23892         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23893
23894         stdio: warn on suspicious uses
23895         * modules/stdio (Depends-on): Add warn-on-use.
23896         (Makefile.am): Provide new substitutions.
23897         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23898         fseeko.
23899         * lib/stdio.in.h (gets): Always warn on use.
23900         (fseek, ftell): Adjust when warnings are issued, and honor
23901         _GL_NO_LARGE_FILES as a way to silence the warning.
23902         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23903         any warning about large file offsets.
23904         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23905         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23906         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23907         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23908         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23909         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23910         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23911         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23912
23913         warn-on-use: new module
23914         * modules/warn-on-use: New file.
23915         * build-aux/warn-on-use.h: Likewise.
23916         * m4/warn-on-use.m4: Likewise.
23917         * MODULES.html.sh (Support for building): Mention it.
23918
23919 2010-01-10  Bruno Haible  <bruno@clisp.org>
23920
23921         Tests for module 'unistr/u32-strdup'.
23922         * modules/unistr/u32-strdup-tests: New file.
23923         * tests/unistr/test-u32-strdup.c: New file.
23924
23925         Tests for module 'unistr/u16-strdup'.
23926         * modules/unistr/u16-strdup-tests: New file.
23927         * tests/unistr/test-u16-strdup.c: New file.
23928
23929         Tests for module 'unistr/u8-strdup'.
23930         * modules/unistr/u8-strdup-tests: New file.
23931         * tests/unistr/test-u8-strdup.c: New file.
23932         * tests/unistr/test-strdup.h: New file.
23933
23934         Tests for module 'unistr/u32-strncmp'.
23935         * modules/unistr/u32-strncmp-tests: New file.
23936         * tests/unistr/test-u32-strncmp.c: New file.
23937
23938         Tests for module 'unistr/u16-strncmp'.
23939         * modules/unistr/u16-strncmp-tests: New file.
23940         * tests/unistr/test-u16-strncmp.c: New file.
23941
23942         Tests for module 'unistr/u8-strncmp'.
23943         * modules/unistr/u8-strncmp-tests: New file.
23944         * tests/unistr/test-u8-strncmp.c: New file.
23945         * tests/unistr/test-strncmp.h: New file.
23946
23947         Tests for module 'unistr/u32-strcoll'.
23948         * modules/unistr/u32-strcoll-tests: New file.
23949         * tests/unistr/test-u32-strcoll.c: New file.
23950
23951         Tests for module 'unistr/u16-strcoll'.
23952         * modules/unistr/u16-strcoll-tests: New file.
23953         * tests/unistr/test-u16-strcoll.c: New file.
23954
23955         Tests for module 'unistr/u8-strcoll'.
23956         * modules/unistr/u8-strcoll-tests: New file.
23957         * tests/unistr/test-u8-strcoll.c: New file.
23958
23959         Tests for module 'unistr/u32-strcmp'.
23960         * modules/unistr/u32-strcmp-tests: New file.
23961         * tests/unistr/test-u32-strcmp.c: New file.
23962         * tests/unistr/test-u32-strcmp.h: New file.
23963
23964         Tests for module 'unistr/u16-strcmp'.
23965         * modules/unistr/u16-strcmp-tests: New file.
23966         * tests/unistr/test-u16-strcmp.c: New file.
23967         * tests/unistr/test-u16-strcmp.h: New file.
23968
23969         Tests for module 'unistr/u8-strcmp'.
23970         * modules/unistr/u8-strcmp-tests: New file.
23971         * tests/unistr/test-u8-strcmp.c: New file.
23972         * tests/unistr/test-u8-strcmp.h: New file.
23973         * tests/unistr/test-strcmp.h: New file.
23974
23975         Tests for module 'unistr/u32-strncat'.
23976         * modules/unistr/u32-strncat-tests: New file.
23977         * tests/unistr/test-u32-strncat.c: New file.
23978
23979         Tests for module 'unistr/u16-strncat'.
23980         * modules/unistr/u16-strncat-tests: New file.
23981         * tests/unistr/test-u16-strncat.c: New file.
23982
23983         Tests for module 'unistr/u8-strncat'.
23984         * modules/unistr/u8-strncat-tests: New file.
23985         * tests/unistr/test-u8-strncat.c: New file.
23986         * tests/unistr/test-strncat.h: New file.
23987
23988         Tests for module 'unistr/u32-strcat'.
23989         * modules/unistr/u32-strcat-tests: New file.
23990         * tests/unistr/test-u32-strcat.c: New file.
23991
23992         Tests for module 'unistr/u16-strcat'.
23993         * modules/unistr/u16-strcat-tests: New file.
23994         * tests/unistr/test-u16-strcat.c: New file.
23995
23996         Tests for module 'unistr/u8-strcat'.
23997         * modules/unistr/u8-strcat-tests: New file.
23998         * tests/unistr/test-u8-strcat.c: New file.
23999         * tests/unistr/test-strcat.h: New file.
24000
24001         Tests for module 'unistr/u32-stpncpy'.
24002         * modules/unistr/u32-stpncpy-tests: New file.
24003         * tests/unistr/test-u32-stpncpy.c: New file.
24004
24005         Tests for module 'unistr/u16-stpncpy'.
24006         * modules/unistr/u16-stpncpy-tests: New file.
24007         * tests/unistr/test-u16-stpncpy.c: New file.
24008
24009         Tests for module 'unistr/u8-stpncpy'.
24010         * modules/unistr/u8-stpncpy-tests: New file.
24011         * tests/unistr/test-u8-stpncpy.c: New file.
24012         * tests/unistr/test-stpncpy.h: New file.
24013
24014         Tests for module 'unistr/u32-strncpy'.
24015         * modules/unistr/u32-strncpy-tests: New file.
24016         * tests/unistr/test-u32-strncpy.c: New file.
24017
24018         Tests for module 'unistr/u16-strncpy'.
24019         * modules/unistr/u16-strncpy-tests: New file.
24020         * tests/unistr/test-u16-strncpy.c: New file.
24021
24022         Tests for module 'unistr/u8-strncpy'.
24023         * modules/unistr/u8-strncpy-tests: New file.
24024         * tests/unistr/test-u8-strncpy.c: New file.
24025         * tests/unistr/test-strncpy.h: New file.
24026
24027         Tests for module 'unistr/u32-stpcpy'.
24028         * modules/unistr/u32-stpcpy-tests: New file.
24029         * tests/unistr/test-u32-stpcpy.c: New file.
24030
24031         Tests for module 'unistr/u16-stpcpy'.
24032         * modules/unistr/u16-stpcpy-tests: New file.
24033         * tests/unistr/test-u16-stpcpy.c: New file.
24034
24035         Tests for module 'unistr/u8-stpcpy'.
24036         * modules/unistr/u8-stpcpy-tests: New file.
24037         * tests/unistr/test-u8-stpcpy.c: New file.
24038         * tests/unistr/test-stpcpy.h: New file.
24039
24040         Tests for module 'unistr/u32-strcpy'.
24041         * modules/unistr/u32-strcpy-tests: New file.
24042         * tests/unistr/test-u32-strcpy.c: New file.
24043
24044         Tests for module 'unistr/u16-strcpy'.
24045         * modules/unistr/u16-strcpy-tests: New file.
24046         * tests/unistr/test-u16-strcpy.c: New file.
24047
24048         Tests for module 'unistr/u8-strcpy'.
24049         * modules/unistr/u8-strcpy-tests: New file.
24050         * tests/unistr/test-u8-strcpy.c: New file.
24051         * tests/unistr/test-strcpy.h: New file.
24052
24053         Tests for module 'unistr/u32-strnlen'.
24054         * modules/unistr/u32-strnlen-tests: New file.
24055         * tests/unistr/test-u32-strnlen.c: New file.
24056
24057         Tests for module 'unistr/u16-strnlen'.
24058         * modules/unistr/u16-strnlen-tests: New file.
24059         * tests/unistr/test-u16-strnlen.c: New file.
24060
24061         Tests for module 'unistr/u8-strnlen'.
24062         * modules/unistr/u8-strnlen-tests: New file.
24063         * tests/unistr/test-u8-strnlen.c: New file.
24064         * tests/unistr/test-strnlen.h: New file.
24065
24066         Tests for module 'unistr/u32-strlen'.
24067         * modules/unistr/u32-strlen-tests: New file.
24068         * tests/unistr/test-u32-strlen.c: New file.
24069
24070         Tests for module 'unistr/u16-strlen'.
24071         * modules/unistr/u16-strlen-tests: New file.
24072         * tests/unistr/test-u16-strlen.c: New file.
24073
24074         Tests for module 'unistr/u8-strlen'.
24075         * modules/unistr/u8-strlen-tests: New file.
24076         * tests/unistr/test-u8-strlen.c: New file.
24077
24078         Tests for module 'unistr/u32-prev'.
24079         * modules/unistr/u32-prev-tests: New file.
24080         * tests/unistr/test-u32-prev.c: New file.
24081
24082         Tests for module 'unistr/u16-prev'.
24083         * modules/unistr/u16-prev-tests: New file.
24084         * tests/unistr/test-u16-prev.c: New file.
24085
24086         Tests for module 'unistr/u8-prev'.
24087         * modules/unistr/u8-prev-tests: New file.
24088         * tests/unistr/test-u8-prev.c: New file.
24089
24090         Tests for module 'unistr/u32-next'.
24091         * modules/unistr/u32-next-tests: New file.
24092         * tests/unistr/test-u32-next.c: New file.
24093
24094         Tests for module 'unistr/u16-next'.
24095         * modules/unistr/u16-next-tests: New file.
24096         * tests/unistr/test-u16-next.c: New file.
24097
24098         Tests for module 'unistr/u8-next'.
24099         * modules/unistr/u8-next-tests: New file.
24100         * tests/unistr/test-u8-next.c: New file.
24101
24102         Tests for module 'unistr/u32-strmbtouc'.
24103         * modules/unistr/u32-strmbtouc-tests: New file.
24104         * tests/unistr/test-u32-strmbtouc.c: New file.
24105
24106         Tests for module 'unistr/u16-strmbtouc'.
24107         * modules/unistr/u16-strmbtouc-tests: New file.
24108         * tests/unistr/test-u16-strmbtouc.c: New file.
24109
24110         Tests for module 'unistr/u8-strmbtouc'.
24111         * modules/unistr/u8-strmbtouc-tests: New file.
24112         * tests/unistr/test-u8-strmbtouc.c: New file.
24113
24114         Tests for module 'unistr/u32-strmblen'.
24115         * modules/unistr/u32-strmblen-tests: New file.
24116         * tests/unistr/test-u32-strmblen.c: New file.
24117
24118         Tests for module 'unistr/u16-strmblen'.
24119         * modules/unistr/u16-strmblen-tests: New file.
24120         * tests/unistr/test-u16-strmblen.c: New file.
24121
24122         Tests for module 'unistr/u8-strmblen'.
24123         * modules/unistr/u8-strmblen-tests: New file.
24124         * tests/unistr/test-u8-strmblen.c: New file.
24125
24126         Tests for module 'unistr/u32-cpy-alloc'.
24127         * modules/unistr/u32-cpy-alloc-tests: New file.
24128         * tests/unistr/test-u32-cpy-alloc.c: New file.
24129
24130         Tests for module 'unistr/u16-cpy-alloc'.
24131         * modules/unistr/u16-cpy-alloc-tests: New file.
24132         * tests/unistr/test-u16-cpy-alloc.c: New file.
24133
24134         Tests for module 'unistr/u8-cpy-alloc'.
24135         * modules/unistr/u8-cpy-alloc-tests: New file.
24136         * tests/unistr/test-u8-cpy-alloc.c: New file.
24137         * tests/unistr/test-cpy-alloc.h: New file.
24138
24139         Tests for module 'unistr/u32-mbsnlen'.
24140         * modules/unistr/u32-mbsnlen-tests: New file.
24141         * tests/unistr/test-u32-mbsnlen.c: New file.
24142
24143         Tests for module 'unistr/u16-mbsnlen'.
24144         * modules/unistr/u16-mbsnlen-tests: New file.
24145         * tests/unistr/test-u16-mbsnlen.c: New file.
24146
24147         Tests for module 'unistr/u8-mbsnlen'.
24148         * modules/unistr/u8-mbsnlen-tests: New file.
24149         * tests/unistr/test-u8-mbsnlen.c: New file.
24150
24151         Tests for module 'unistr/u32-chr'.
24152         * modules/unistr/u32-chr-tests: New file.
24153         * tests/unistr/test-u32-chr.c: New file.
24154
24155         Tests for module 'unistr/u16-chr'.
24156         * modules/unistr/u16-chr-tests: New file.
24157         * tests/unistr/test-u16-chr.c: New file.
24158
24159         Tests for module 'unistr/u8-chr'.
24160         * modules/unistr/u8-chr-tests: New file.
24161         * tests/unistr/test-u8-chr.c: New file.
24162         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24163
24164         Tests for module 'unistr/u32-cmp2'.
24165         * modules/unistr/u32-cmp2-tests: New file.
24166         * tests/unistr/test-u32-cmp2.c: New file.
24167
24168         Tests for module 'unistr/u16-cmp2'.
24169         * modules/unistr/u16-cmp2-tests: New file.
24170         * tests/unistr/test-u16-cmp2.c: New file.
24171
24172         Tests for module 'unistr/u8-cmp2'.
24173         * modules/unistr/u8-cmp2-tests: New file.
24174         * tests/unistr/test-u8-cmp2.c: New file.
24175         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24176
24177         Tests for module 'unistr/u32-cmp'.
24178         * modules/unistr/u32-cmp-tests: New file.
24179         * tests/unistr/test-u32-cmp.c: New file.
24180
24181         Tests for module 'unistr/u16-cmp'.
24182         * modules/unistr/u16-cmp-tests: New file.
24183         * tests/unistr/test-u16-cmp.c: New file.
24184
24185         Tests for module 'unistr/u8-cmp'.
24186         * modules/unistr/u8-cmp-tests: New file.
24187         * tests/unistr/test-u8-cmp.c: New file.
24188         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24189
24190         Tests for module 'unistr/u32-set'.
24191         * modules/unistr/u32-set-tests: New file.
24192         * tests/unistr/test-u32-set.c: New file.
24193
24194         Tests for module 'unistr/u16-set'.
24195         * modules/unistr/u16-set-tests: New file.
24196         * tests/unistr/test-u16-set.c: New file.
24197
24198         Tests for module 'unistr/u8-set'.
24199         * modules/unistr/u8-set-tests: New file.
24200         * tests/unistr/test-u8-set.c: New file.
24201         * tests/unistr/test-set.h: New file.
24202
24203         Tests for module 'unistr/u32-move'.
24204         * modules/unistr/u32-move-tests: New file.
24205         * tests/unistr/test-u32-move.c: New file.
24206
24207         Tests for module 'unistr/u16-move'.
24208         * modules/unistr/u16-move-tests: New file.
24209         * tests/unistr/test-u16-move.c: New file.
24210
24211         Tests for module 'unistr/u8-move'.
24212         * modules/unistr/u8-move-tests: New file.
24213         * tests/unistr/test-u8-move.c: New file.
24214         * tests/unistr/test-move.h: New file.
24215
24216         Tests for module 'unistr/u32-cpy'.
24217         * modules/unistr/u32-cpy-tests: New file.
24218         * tests/unistr/test-u32-cpy.c: New file.
24219
24220         Tests for module 'unistr/u16-cpy'.
24221         * modules/unistr/u16-cpy-tests: New file.
24222         * tests/unistr/test-u16-cpy.c: New file.
24223
24224         Tests for module 'unistr/u8-cpy'.
24225         * modules/unistr/u8-cpy-tests: New file.
24226         * tests/unistr/test-u8-cpy.c: New file.
24227         * tests/unistr/test-cpy.h: New file.
24228
24229 2010-01-09  Bruno Haible  <bruno@clisp.org>
24230
24231         Tests for module 'unistr/u32-uctomb'.
24232         * modules/unistr/u32-uctomb-tests: New file.
24233         * tests/unistr/test-u32-uctomb.c: New file.
24234
24235         Tests for module 'unistr/u16-uctomb'.
24236         * modules/unistr/u16-uctomb-tests: New file.
24237         * tests/unistr/test-u16-uctomb.c: New file.
24238
24239         Tests for module 'unistr/u8-uctomb'.
24240         * modules/unistr/u8-uctomb-tests: New file.
24241         * tests/unistr/test-u8-uctomb.c: New file.
24242
24243         Tests for module 'unistr/u32-mbtoucr'.
24244         * modules/unistr/u32-mbtoucr-tests: New file.
24245         * tests/unistr/test-u32-mbtoucr.c: New file.
24246
24247         Tests for module 'unistr/u16-mbtoucr'.
24248         * modules/unistr/u16-mbtoucr-tests: New file.
24249         * tests/unistr/test-u16-mbtoucr.c: New file.
24250
24251         Tests for module 'unistr/u8-mbtoucr'.
24252         * modules/unistr/u8-mbtoucr-tests: New file.
24253         * tests/unistr/test-u8-mbtoucr.c: New file.
24254
24255         Tests for module 'unistr/u32-mbtouc'.
24256         * modules/unistr/u32-mbtouc-tests: New file.
24257         * tests/unistr/test-u32-mbtouc.c: New file.
24258
24259         Tests for module 'unistr/u16-mbtouc'.
24260         * modules/unistr/u16-mbtouc-tests: New file.
24261         * tests/unistr/test-u16-mbtouc.c: New file.
24262
24263         Tests for module 'unistr/u8-mbtouc'.
24264         * modules/unistr/u8-mbtouc-tests: New file.
24265         * tests/unistr/test-u8-mbtouc.c: New file.
24266
24267         Tests for module 'unistr/u32-mbtouc-unsafe'.
24268         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24269         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24270         * tests/unistr/test-u32-mbtouc.h: New file.
24271
24272         Tests for module 'unistr/u16-mbtouc-unsafe'.
24273         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24274         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24275         * tests/unistr/test-u16-mbtouc.h: New file.
24276
24277         Tests for module 'unistr/u8-mbtouc-unsafe'.
24278         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24279         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24280         * tests/unistr/test-u8-mbtouc.h: New file.
24281
24282         Tests for module 'unistr/u32-mblen'.
24283         * modules/unistr/u32-mblen-tests: New file.
24284         * tests/unistr/test-u32-mblen.c: New file.
24285
24286         Tests for module 'unistr/u16-mblen'.
24287         * modules/unistr/u16-mblen-tests: New file.
24288         * tests/unistr/test-u16-mblen.c: New file.
24289
24290         Tests for module 'unistr/u8-mblen'.
24291         * modules/unistr/u8-mblen-tests: New file.
24292         * tests/unistr/test-u8-mblen.c: New file.
24293
24294         Tests for module 'unistr/u32-to-u16'.
24295         * modules/unistr/u32-to-u16-tests: New file.
24296         * tests/unistr/test-u32-to-u16.c: New file.
24297
24298         Tests for module 'unistr/u32-to-u8'.
24299         * modules/unistr/u32-to-u8-tests: New file.
24300         * tests/unistr/test-u32-to-u8.c: New file.
24301
24302         Tests for module 'unistr/u16-to-u32'.
24303         * modules/unistr/u16-to-u32-tests: New file.
24304         * tests/unistr/test-u16-to-u32.c: New file.
24305
24306         Tests for module 'unistr/u16-to-u8'.
24307         * modules/unistr/u16-to-u8-tests: New file.
24308         * tests/unistr/test-u16-to-u8.c: New file.
24309
24310         Tests for module 'unistr/u8-to-u32'.
24311         * modules/unistr/u8-to-u32-tests: New file.
24312         * tests/unistr/test-u8-to-u32.c: New file.
24313
24314         Tests for module 'unistr/u8-to-u16'.
24315         * modules/unistr/u8-to-u16-tests: New file.
24316         * tests/unistr/test-u8-to-u16.c: New file.
24317
24318         Tests for module 'unistr/u32-check'.
24319         * modules/unistr/u32-check-tests: New file.
24320         * tests/unistr/test-u32-check.c: New file.
24321
24322         Tests for module 'unistr/u16-check'.
24323         * modules/unistr/u16-check-tests: New file.
24324         * tests/unistr/test-u16-check.c: New file.
24325
24326         Tests for module 'unistr/u8-check'.
24327         * modules/unistr/u8-check-tests: New file.
24328         * tests/unistr/test-u8-check.c: New file.
24329
24330         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24331         (category_equals): New function.
24332         (main): Add more tests.
24333         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24334
24335         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24336
24337 2010-01-10  Bruno Haible  <bruno@clisp.org>
24338
24339         unistr/u*-strcoll: Try harder to distinguish different strings.
24340         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24341         compare s1 and s2 to see if they are different.
24342
24343 2010-01-10  Bruno Haible  <bruno@clisp.org>
24344
24345         unistr/u*-stpncpy: Fix the return value.
24346         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24347         description of the return value consistent with stpncpy in glibc.
24348         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24349         written non-NUL unit.
24350
24351 2010-01-10  Bruno Haible  <bruno@clisp.org>
24352
24353         unistr/u*-next: Add missing dependencies.
24354         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24355         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24356         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24357
24358 2010-01-10  Bruno Haible  <bruno@clisp.org>
24359
24360         unistr/u8-mbsnlen: Fix return value for incomplete character.
24361         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24362         u8_mblen.
24363         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24364         Remove unistr/u8-mblen.
24365         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24366         u16_mblen.
24367         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24368         Remove unistr/u16-mblen.
24369
24370 2010-01-10  Bruno Haible  <bruno@clisp.org>
24371
24372         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24373         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24374         Reported by Brian Gough <bjg@gnu.org> and
24375         Chris Clayton <chris2553@googlemail.com> via
24376         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24377
24378 2010-01-09  Bruno Haible  <bruno@clisp.org>
24379
24380         unistr/u16-to-u32: Reject invalid input.
24381         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24382         u16_mbtouc.
24383         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24384         Remove unistr/u16-mbtouc.
24385
24386         unistr/u16-to-u8: Reject invalid input.
24387         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24388         u16_mbtouc.
24389         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24390         Remove unistr/u16-mbtouc.
24391
24392         unistr/u8-to-u32: Reject invalid input.
24393         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24394         u8_mbtouc.
24395         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24396         Remove unistr/u8-mbtouc.
24397
24398         unistr/u8-to-u16: Reject invalid input.
24399         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24400         u8_mbtouc.
24401         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24402         Remove unistr/u8-mbtouc.
24403
24404 2010-01-09  Bruno Haible  <bruno@clisp.org>
24405
24406         Tests for module 'getlogin'.
24407         * modules/getlogin-tests: New file.
24408         * tests/test-getlogin.c: New file.
24409
24410         New module 'getlogin'.
24411         * lib/unistd.in.h (getlogin): New declaration.
24412         * lib/getlogin.c: New file.
24413         * m4/getlogin.m4: New file.
24414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24415         HAVE_GETLOGIN.
24416         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24417         HAVE_GETLOGIN.
24418         * modules/getlogin: New file.
24419         * doc/posix-functions/getlogin.texi: Mention the new module.
24420         Reported by John W. Eaton <jwe@gnu.org>.
24421
24422 2010-01-09  Bruno Haible  <bruno@clisp.org>
24423
24424         getlogin_r: Support for native Windows.
24425         * lib/getlogin_r.c: Include <windows.h>
24426         (getlogin_r): Implement for native Windows.
24427         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24428         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24429         via John W. Eaton <jwe@gnu.org>.
24430
24431 2010-01-09  Bruno Haible  <bruno@clisp.org>
24432
24433         getlogin_r: Small fixes.
24434         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24435         succeeds.
24436         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24437         before testing whether getlogin_r is declared. No need to set
24438         HAVE_DECL_GETLOGIN_R to 1.
24439         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24440
24441 2010-01-09  Bruno Haible  <bruno@clisp.org>
24442
24443         * lib/unistd.in.h (getlogin_r): Add comment.
24444
24445 2010-01-09  Bruno Haible  <bruno@clisp.org>
24446
24447         Tests for module 'getlogin_r'.
24448         * modules/getlogin_r-tests: New file.
24449         * tests/test-getlogin_r.c: New file.
24450
24451 2010-01-09  Jim Meyering  <meyering@redhat.com>
24452
24453         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24454         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24455         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24456
24457 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24458
24459         * lib/dup2.c (rpl_dup2): Improve comment.
24460
24461 2010-01-08  Eric Blake  <ebb9@byu.net>
24462
24463         maint.mk: allow packages to add makefile @@ exceptions
24464         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24465         (sc_makefile_check): Rename...
24466         (sc_makefile_at_at_check): ...to this, and use hook.
24467
24468         dup2: work around mingw bug
24469         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24470         Reported by Simon Josefsson.
24471
24472 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24473
24474         glob: Fix C++ compilation.
24475         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24476         C++.
24477
24478 2010-01-07  Bruno Haible  <bruno@clisp.org>
24479
24480         Fix indentation of wctype.in.h, broken since 2007-01-06.
24481         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24482
24483 2010-01-07  Bruno Haible  <bruno@clisp.org>
24484
24485         mbslen: Avoid collision with system function.
24486         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24487         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24488         * m4/mbslen.m4: New file.
24489         * modules/mbslen (Files): Add it.
24490         (configure.ac): Invoke gl_MBSLEN.
24491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24492         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24493         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24494         via Ian Beckwith <ianb@erislabs.net>.
24495
24496 2010-01-07  Bruno Haible  <bruno@clisp.org>
24497
24498         dirent: Document the last fix.
24499         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24500
24501 2010-01-07  Bruno Haible  <bruno@clisp.org>
24502
24503         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24504         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24505         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24506         va_list are defined.
24507         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24508         Reported by Eric Blake.
24509
24510 2010-01-07  Bruno Haible  <bruno@clisp.org>
24511
24512         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24513         * modules/xlist (Depends-on): Add 'list',
24514         * modules/xoset (Depends-on): Add 'oset'.
24515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24516
24517 2010-01-07  Bruno Haible  <bruno@clisp.org>
24518
24519         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24520         * doc/posix-functions/strncasecmp.texi: Likewise.
24521
24522 2010-01-07  Bruno Haible  <bruno@clisp.org>
24523
24524         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24525
24526 2010-01-07  John W. Eaton  <jwe@octave.org>
24527
24528         wctype: allow C++ use
24529         * lib/wctype.in.h: Add extern "C" block for C++.
24530
24531 2010-01-06  Eric Blake  <ebb9@byu.net>
24532
24533         maint.mk: detect incorrect GFDL usage
24534         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24535
24536 2010-01-06  Jim Meyering  <meyering@redhat.com>
24537         and Eric Blake  <ebb9@byu.net>
24538
24539         maint.mk: ignore multi-line copyright in NEWS
24540         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24541
24542 2010-01-06  Eric Blake  <ebb9@byu.net>
24543
24544         select: add missing dependency
24545         * modules/select-tests (Depends-on): Move sockets dependency...
24546         * modules/select (Depends-on): ...here.
24547         Reported by Ian Beckwith.
24548
24549         doc: regenerate INSTALL
24550         * doc/INSTALL: Reflect recent autoconf update.
24551         * doc/INSTALL.ISO: Likewise.
24552         * doc/INSTALL.UTF-8: Likewise.
24553
24554         pread: fix compilation on glibc
24555         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24556         Reported by Ralf Wildenhues.
24557
24558         dirent: fix test failure
24559         * lib/dirent.in.h (includes): Guarantee ino_t.
24560         Reported by Ralf Wildenhues.
24561
24562 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24563
24564         linkat, renameat: avoid bad free
24565         * lib/at-func2.c (at_func2): Fix typo.
24566         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24567
24568 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24569
24570         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24571         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24572         to avoid failure of symlink test later.
24573
24574 2010-01-06  Eric Blake  <ebb9@byu.net>
24575
24576         stdio, unistd: guarantee ssize_t
24577         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24578         2008 are exposed when needed.
24579         * lib/stdio.in.h (includes): Likewise.
24580         Reported by Ralf Wildenhues.
24581
24582 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24583
24584         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24585         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24586         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24587
24588 2010-01-06  Jim Meyering  <meyering@redhat.com>
24589
24590         readtokens: this module *does* require xalloc.h
24591         It uses only functions that were omitted by the old syntax-check rule.
24592         * lib/readtokens.c: Include "xalloc.h" once again.
24593         * modules/readtokens (Depends-on): Add xalloc.
24594         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24595
24596 2010-01-05  Eric Blake  <ebb9@byu.net>
24597
24598         maint: support 'make announcement' from a VPATH build
24599         * top/maint.mk (announcement): Look for correct NEWS file.
24600
24601 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24602
24603         utimens (fdutimens): ignore a negative FD, per contract
24604         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24605         when we have a valid file descriptor.  Otherwise, using a brand
24606         new glibc (with just-patched futimens that now fails with EBADF)
24607         would cause this function to fail with ENOSYS.
24608         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24609         See also http://bugzilla.redhat.com/552320.
24610
24611 2010-01-05  Eric Blake  <ebb9@byu.net>
24612
24613         strcase: document what it provides
24614         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24615         gnulib module.
24616         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24617         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24618
24619 2010-01-05  Jim Meyering  <meyering@redhat.com>
24620
24621         maint: remove useless inclusions of "xalloc.h"
24622         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24623         * lib/readtokens.c: Likewise.
24624         * lib/same.c: Likewise.
24625         * modules/getloadavg (Depends-on): Remove xalloc.
24626         * modules/readtokens: Likewise.
24627         * modules/same: Likewise.
24628
24629         maint.mk: include 4 more function names in alloca.h-checking regexp
24630         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24631         regexp.  Before, we would give a false-positive (saying alloca.h
24632         is included unnecessarily) when the only uses involved omitted symbols.
24633
24634         xalloc.h: use consistent formatting
24635         * lib/xalloc.h: Move declarations to start in the first column.
24636
24637 2010-01-05  Eric Blake  <ebb9@byu.net>
24638
24639         mkdir: avoid xalloc
24640         * lib/mkdir.c (includes): Drop unused header.
24641         Reported by John W. Eaton.
24642
24643 2010-01-04  Jim Meyering  <meyering@redhat.com>
24644
24645         nl_langinfo: avoid configure-time syntax error
24646         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24647         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24648         the empty string.  Don't let that provoke a shell syntax error.
24649
24650         regcomp, regexec, fnmatch: avoid array bounds read error
24651         * lib/regcomp.c (build_equiv_class): From glibc:
24652         Use only the low 24 bits of a findidx return value as an index
24653         into the weights array.  Patch by Ulrich Drepper:
24654         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24655         * lib/regexec.c (check_node_accept_bytes): Likewise.
24656         * lib/fnmatch_loop.c (FCT): Likewise.
24657
24658         regcomp: skip collseq lookup when there are no rules
24659         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24660         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24661
24662         regcomp: recognize ill-formed { } expressions
24663         * lib/regcomp.c (parse_dup_op): From glibc:
24664         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24665
24666         regcomp: fix typo in comment
24667         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24668         s/satisfy/satisfies/.
24669
24670         regcomp: sync from glibc: remove dead store
24671         * lib/regcomp.c (duplicate_node_closure): Remove useless
24672         search_duplicated_node call and dead store.
24673
24674         regcomp: sync from glibc; always use nl_langinfo
24675         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24676         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24677         * modules/regex (Depends-on): Add nl_langinfo.
24678
24679 2010-01-04  Eric Blake  <ebb9@byu.net>
24680
24681         fdopendir: fix configure test
24682         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24683
24684 2010-01-01  Bruno Haible  <bruno@clisp.org>
24685
24686         wchar: Remove unused configure check.
24687         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24688
24689 2010-01-01  Eric Blake  <ebb9@byu.net>
24690
24691         headers: make check of system header explicit
24692         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24693         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24694         ourselves.
24695         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24696         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24697         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24698         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24699         internals.
24700         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24701         missing.
24702         Suggested by Bruno Haible.
24703
24704 2010-01-01  Jim Meyering  <meyering@redhat.com>
24705
24706         ChangeLog: tweak to eliminate unnecessary copyright line
24707         * ChangeLog: Remove a copyright line that was mistakenly updated
24708         by today's update-copyright run.  Reported by Eric Blake.
24709
24710         test-update-copyright: don't let envvar setting cause test failure
24711         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24712
24713 2010-01-01  Bruno Haible  <bruno@clisp.org>
24714
24715         localename: Avoid gcc warning.
24716         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24717         function if it is not used.
24718
24719 2010-01-01  Jim Meyering  <meyering@redhat.com>
24720
24721         update nearly all FSF copyright year lists to include 2010
24722         Use the same procedure as for 2009, outlined in
24723         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24724
24725         version-etc: set COPYRIGHT_YEAR to 2010
24726         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24727
24728 2009-12-31  Eric Blake  <ebb9@byu.net>
24729
24730         doc: correct availability of cygwin 1.5.x getopt
24731         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24732         variables.
24733         * doc/posix-functions/opterr.texi (opterr): Likewise.
24734         * doc/posix-functions/optind.texi (optind): Likewise.
24735         * doc/posix-functions/optopt.texi (optopt): Likewise.
24736         * doc/posix-functions/tzname.texi (tzname): Likewise.
24737
24738         openat: update maintainer
24739         * modules/openat (Maintainer): Add myself.
24740
24741         utimens: avoid shadowing warning
24742         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24743         buffers into one, to avoid shadowing, as well as avoiding a
24744         redundant stat.
24745         Reported by Jim Meyering.
24746
24747         test-dup2: avoid compiler warning
24748         * tests/test-dup2.c (is_inheritable): Only define if used.
24749
24750 2010-01-01  Bruno Haible  <bruno@clisp.org>
24751
24752         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24753         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24754         defined, use wctomb instead of wcrtomb.
24755
24756 2010-01-01  Bruno Haible  <bruno@clisp.org>
24757
24758         iconv: Reject native Solaris iconv.
24759         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24760         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24761
24762 2009-12-31  Bruno Haible  <bruno@clisp.org>
24763
24764         * tests/test-signal.c (main): Remove test of 'SIG'.
24765
24766 2009-12-31  Bruno Haible  <bruno@clisp.org>
24767
24768         spawn: Fix incomplete fix.
24769         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24770         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24771         warnings for GNULIB_POSIXCHECK again.
24772         Reported by Eric Blake.
24773
24774 2009-12-31  Bruno Haible  <bruno@clisp.org>
24775
24776         Avoid namespace pollution on glibc systems.
24777         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24778         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24779         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24780         glibc systems.
24781
24782 2009-12-31  Bruno Haible  <bruno@clisp.org>
24783
24784         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24785         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24787         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24788         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24789         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24790         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24791
24792 2009-12-31  Bruno Haible  <bruno@clisp.org>
24793
24794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24795         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24796         afterwards.
24797
24798 2009-12-31  Bruno Haible  <bruno@clisp.org>
24799
24800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24801         SYS_UTSNAME_H.
24802
24803 2009-12-31  Bruno Haible  <bruno@clisp.org>
24804
24805         spawn: Fix misapplied patch.
24806         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24807         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24808         warnings for GNULIB_POSIXCHECK.
24809
24810 2009-12-31  Bruno Haible  <bruno@clisp.org>
24811
24812         times: Update after sys_times changed.
24813         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24814         * modules/times (Files): Add it.
24815         (configure.ac): Invoke gl_FUNC_TIMES.
24816
24817 2009-12-31  Bruno Haible  <bruno@clisp.org>
24818
24819         Use AC_C_INLINE where necessary.
24820         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24821         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24823         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24824         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24825         * m4/mbiter.m4 (gl_MBITER): Likewise.
24826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24827         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24828         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24829         * modules/u64 (configure.ac): Likewise.
24830
24831 2009-12-31  Bruno Haible  <bruno@clisp.org>
24832
24833         Use AC_C_INLINE instead of module 'inline' where possible.
24834         * modules/inline (Description): Clarify purpose.
24835         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24836         * modules/count-one-bits (Depends-on): Remove inline.
24837         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24838         * modules/openat (Depends-on): Remove inline.
24839         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24840         instead of depending on module 'inline'.
24841         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24842         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24843         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24844         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24845         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24846         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24847         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24848         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24849         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24850         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24851         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24852         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24853         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24854         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24855         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24856         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24857         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24858         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24859         Likewise.
24860         * modules/unictype/property-ascii-hex-digit (Depends-on,
24861         configure.ac): Likewise.
24862         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24863         configure.ac): Likewise.
24864         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24865         configure.ac): Likewise.
24866         * modules/unictype/property-bidi-block-separator (Depends-on,
24867         configure.ac): Likewise.
24868         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24869         configure.ac): Likewise.
24870         * modules/unictype/property-bidi-common-separator (Depends-on,
24871         configure.ac): Likewise.
24872         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24873         Likewise.
24874         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24875         configure.ac): Likewise.
24876         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24877         configure.ac): Likewise.
24878         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24879         configure.ac): Likewise.
24880         * modules/unictype/property-bidi-european-digit (Depends-on,
24881         configure.ac): Likewise.
24882         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24883         configure.ac): Likewise.
24884         * modules/unictype/property-bidi-left-to-right (Depends-on,
24885         configure.ac): Likewise.
24886         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24887         configure.ac): Likewise.
24888         * modules/unictype/property-bidi-other-neutral (Depends-on,
24889         configure.ac): Likewise.
24890         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24891         Likewise.
24892         * modules/unictype/property-bidi-segment-separator (Depends-on,
24893         configure.ac): Likewise.
24894         * modules/unictype/property-bidi-whitespace (Depends-on,
24895         configure.ac): Likewise.
24896         * modules/unictype/property-combining (Depends-on, configure.ac):
24897         Likewise.
24898         * modules/unictype/property-composite (Depends-on, configure.ac):
24899         Likewise.
24900         * modules/unictype/property-currency-symbol (Depends-on,
24901         configure.ac): Likewise.
24902         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24903         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24904         Likewise.
24905         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24906         configure.ac): Likewise.
24907         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24908         Likewise.
24909         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24910         Likewise.
24911         * modules/unictype/property-extender (Depends-on, configure.ac):
24912         Likewise.
24913         * modules/unictype/property-format-control (Depends-on, configure.ac):
24914         Likewise.
24915         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24916         Likewise.
24917         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24918         Likewise.
24919         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24920         Likewise.
24921         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24922         Likewise.
24923         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24924         Likewise.
24925         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24926         Likewise.
24927         * modules/unictype/property-id-start (Depends-on, configure.ac):
24928         Likewise.
24929         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24930         Likewise.
24931         * modules/unictype/property-ids-binary-operator (Depends-on,
24932         configure.ac): Likewise.
24933         * modules/unictype/property-ids-trinary-operator (Depends-on,
24934         configure.ac): Likewise.
24935         * modules/unictype/property-ignorable-control (Depends-on,
24936         configure.ac): Likewise.
24937         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24938         Likewise.
24939         * modules/unictype/property-join-control (Depends-on, configure.ac):
24940         Likewise.
24941         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24942         Likewise.
24943         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24944         Likewise.
24945         * modules/unictype/property-logical-order-exception (Depends-on,
24946         configure.ac): Likewise.
24947         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24948         Likewise.
24949         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24950         * modules/unictype/property-non-break (Depends-on, configure.ac):
24951         Likewise.
24952         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24953         Likewise.
24954         * modules/unictype/property-numeric (Depends-on, configure.ac):
24955         Likewise.
24956         * modules/unictype/property-other-alphabetic (Depends-on,
24957         configure.ac): Likewise.
24958         * modules/unictype/property-other-default-ignorable-code-point
24959         (Depends-on, configure.ac): Likewise.
24960         * modules/unictype/property-other-grapheme-extend (Depends-on,
24961         configure.ac): Likewise.
24962         * modules/unictype/property-other-id-continue (Depends-on,
24963         configure.ac): Likewise.
24964         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24965         Likewise.
24966         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24967         Likewise.
24968         * modules/unictype/property-other-math (Depends-on, configure.ac):
24969         Likewise.
24970         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24971         Likewise.
24972         * modules/unictype/property-paired-punctuation (Depends-on,
24973         configure.ac): Likewise.
24974         * modules/unictype/property-paragraph-separator (Depends-on,
24975         configure.ac): Likewise.
24976         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24977         Likewise.
24978         * modules/unictype/property-pattern-white-space (Depends-on,
24979         configure.ac): Likewise.
24980         * modules/unictype/property-private-use (Depends-on, configure.ac):
24981         Likewise.
24982         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24983         Likewise.
24984         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24985         Likewise.
24986         * modules/unictype/property-radical (Depends-on, configure.ac):
24987         Likewise.
24988         * modules/unictype/property-sentence-terminal (Depends-on,
24989         configure.ac): Likewise.
24990         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24991         Likewise.
24992         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24993         * modules/unictype/property-terminal-punctuation (Depends-on,
24994         configure.ac): Likewise.
24995         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24996         Likewise.
24997         * modules/unictype/property-unassigned-code-value (Depends-on,
24998         configure.ac): Likewise.
24999         * modules/unictype/property-unified-ideograph (Depends-on,
25000         configure.ac): Likewise.
25001         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25002         Likewise.
25003         * modules/unictype/property-variation-selector (Depends-on,
25004         configure.ac): Likewise.
25005         * modules/unictype/property-white-space (Depends-on, configure.ac):
25006         Likewise.
25007         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25008         Likewise.
25009         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25010         Likewise.
25011         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25012         Likewise.
25013         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25014         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25015         Likewise.
25016
25017 2009-12-31  Bruno Haible  <bruno@clisp.org>
25018
25019         Remove unnecessary AC_C_INLINE invocation.
25020         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25021         since 2009-08-21.
25022
25023 2009-12-31  Jim Meyering  <meyering@redhat.com>
25024
25025         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25026         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25027         With this change, we can all remove the gpg_key_ID = ... definition
25028         from our respective cfg.mk files.
25029
25030         maint.mk: create announcement template in ~/, not in /tmp
25031         * top/maint.mk (emit_upload_commands): Adjust.
25032         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25033         Remove temporary file, .ci-msg.
25034
25035 2009-12-31  Eric Blake  <ebb9@byu.net>
25036
25037         link-warning: always build headers with link warnings
25038         * modules/arpa_inet (Makefile.am): Always build replacement
25039         header.
25040         * modules/ctype (Makefile.am): Likewise.
25041         * modules/dirent (Makefile.am): Likewise.
25042         * modules/inttypes (Makefile.am): Likewise.
25043         * modules/langinfo (Makefile.am): Likewise.
25044         * modules/locale (Makefile.am): Likewise.
25045         * modules/spawn (Makefile.am): Likewise.
25046         * modules/sys_file (Makefile.am): Likewise.
25047         * modules/sys_ioctl (Makefile.am): Likewise.
25048         * modules/sys_select (Makefile.am): Likewise.
25049         * modules/sys_socket (Makefile.am): Likewise.
25050         * modules/sys_times (Makefile.am): Likewise.
25051         * modules/sys_utsname (Makefile.am): Likewise.
25052         * modules/sys_wait (Makefile.am): Likewise.
25053         * modules/wchar (Makefile.am): Likewise.
25054         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25055         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25056         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25057         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25058         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25059         Likewise.
25060         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25062         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25063         Likewise.
25064         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25065         Likewise.
25066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25068         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25072         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25073         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25074         (gl_WCHAR_H_DEFAULTS): Likewise.
25075
25076 2009-12-31  Eric Blake  <ebb9@byu.net>
25077
25078         signal, spawn: use link warnings
25079         * lib/signal.in.h (sigset_t): Make unconditional.
25080         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25081         (sigpending, sigprocmask, sigaction): Add link warnings.
25082         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25083         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25084         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25085         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25086         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25087         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25088         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25089         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25090         (posix_spawn_file_actions_destroy)
25091         (posix_spawn_file_actions_addopen)
25092         (posix_spawn_file_actions_addclose)
25093         (posix_spawn_file_actions_adddup2): Likewise.
25094         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25095         * tests/test-signal.c (main): Enhance test.
25096
25097         spawn: improve wrapper support
25098         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25099         (gl_SPAWN_H_DEFAULTS): New defaults.
25100         * modules/spawn (Makefile.am): Substitute them.
25101         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25102         Only declare if missing or broken.
25103
25104         sys_times, sys_utsname: use include_next
25105         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25106         header.
25107         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25109         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25110         * modules/sys_times (Depends-on): Add include_next.
25111         (Makefile.am): Substitute additional values.
25112         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25113         * lib/sys_times.in.h (includes): Include native header, if
25114         available.
25115         * lib/sys_utsname.in.h (includes): Likewise.
25116         * tests/test-sys_times.c (main): Enhance test.
25117
25118         fdutimensat: revert prior patch
25119         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25120         utimens.h.
25121         Reported by Bruno Haible.
25122
25123 2009-12-30  Eric Blake  <ebb9@byu.net>
25124
25125         sys_wait: drop link-warning dependency
25126         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25127         link-warning efforts.
25128         * lib/sys_wait.in.h: Likewise.
25129
25130         fdutimensat: remove bogus dependency
25131         * modules/fdutimensat (Depends-on): Drop inline.
25132
25133         unistd: fix typo
25134         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25135
25136 2009-12-30  Bruno Haible  <bruno@clisp.org>
25137
25138         Fix compilation error with Solaris cc.
25139         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25140         * lib/unicase/u16-is-invariant.c: Likewise.
25141         * lib/unicase/u32-is-invariant.c: Likewise.
25142         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25143
25144 2009-12-30  Bruno Haible  <bruno@clisp.org>
25145
25146         Fix test crash.
25147         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25148         locales.
25149         Reported by Simon Josefsson <simon@josefsson.org>.
25150
25151 2009-12-30  Bruno Haible  <bruno@clisp.org>
25152
25153         Fix compilation error on most platforms.
25154         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25155         Reported by Simon Josefsson <simon@josefsson.org>
25156         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25157
25158 2009-12-30  Eric Blake  <ebb9@byu.net>
25159
25160         futimens, utimensat: work around ntfs-3g bug
25161         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25162         a ctime bug is present, and expand workaround to cover ntfs-3g.
25163         * lib/utimens.c (fdutimens, lutimens): Likewise.
25164         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25165         (validate_timespec): Adjust return value.
25166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25167         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25168         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25169
25170 2009-12-29  Eric Blake  <ebb9@byu.net>
25171
25172         link-warning: make usage consistent
25173         * modules/ctype (Depends-on): Add link-warning.
25174         (Makefile.am): Update rules accordingly.
25175         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25176         * modules/locale (Depends-on, Makefile.am): Likewise.
25177         * modules/sys_file (Makefile.am): Likewise.
25178         * modules/getopt-posix (Makefile.am): Delete unused link warning
25179         efforts.
25180         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25181         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25182         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25183         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25184
25185         stdio: remove unused variables
25186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25188         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25189
25190         tests: test more substitute headers
25191         * modules/ctype-tests: New file.
25192         * modules/dirent-tests: Likewise.
25193         * modules/spawn-tests: Likewise.
25194         * modules/sys_file-tests: Likewise.
25195         * modules/sys_ioctl-tests: Likewise.
25196         * modules/sys_wait-tests: Likewise.
25197         * tests/test-ctype.c: Likewise.
25198         * tests/test-dirent.c: Likewise.
25199         * tests/test-spawn.c: Likewise.
25200         * tests/test-sys_file.c: Likewise.
25201         * tests/test-sys_ioctl.c: Likewise.
25202         * tests/test-sys_wait.c: Likewise.
25203         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25204         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25205         whether or not flock is in use.
25206
25207         tests: remove License section from module
25208         * modules/arpa_inet-tests: Remove unneeded section.
25209         * modules/byteswap-tests: Likewise.
25210         * modules/ceilf-tests: Likewise.
25211         * modules/ceill-tests: Likewise.
25212         * modules/crypto/des-tests: Likewise.
25213         * modules/crypto/gc-arcfour-tests: Likewise.
25214         * modules/crypto/gc-arctwo-tests: Likewise.
25215         * modules/crypto/gc-des-tests: Likewise.
25216         * modules/crypto/gc-hmac-md5-tests: Likewise.
25217         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25218         * modules/crypto/gc-md2-tests: Likewise.
25219         * modules/crypto/gc-md4-tests: Likewise.
25220         * modules/crypto/gc-md5-tests: Likewise.
25221         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25222         * modules/crypto/gc-rijndael-tests: Likewise.
25223         * modules/crypto/gc-sha1-tests: Likewise.
25224         * modules/crypto/gc-tests: Likewise.
25225         * modules/crypto/md2-tests: Likewise.
25226         * modules/crypto/md4-tests: Likewise.
25227         * modules/fcntl-h-tests: Likewise.
25228         * modules/floorf-tests: Likewise.
25229         * modules/floorl-tests: Likewise.
25230         * modules/frexp-nolibm-tests: Likewise.
25231         * modules/frexp-tests: Likewise.
25232         * modules/frexpl-nolibm-tests: Likewise.
25233         * modules/frexpl-tests: Likewise.
25234         * modules/getaddrinfo-tests: Likewise.
25235         * modules/inttypes-tests: Likewise.
25236         * modules/isfinite-tests: Likewise.
25237         * modules/isinf-tests: Likewise.
25238         * modules/ldexpl-tests: Likewise.
25239         * modules/locale-tests: Likewise.
25240         * modules/math-tests: Likewise.
25241         * modules/netdb-tests: Likewise.
25242         * modules/netinet_in-tests: Likewise.
25243         * modules/printf-frexp-tests: Likewise.
25244         * modules/printf-frexpl-tests: Likewise.
25245         * modules/priv-set-tests: Likewise.
25246         * modules/random_r-tests: Likewise.
25247         * modules/round-tests: Likewise.
25248         * modules/roundf-tests: Likewise.
25249         * modules/roundl-tests: Likewise.
25250         * modules/search-tests: Likewise.
25251         * modules/select-tests: Likewise.
25252         * modules/signal-tests: Likewise.
25253         * modules/stdbool-tests: Likewise.
25254         * modules/stddef-tests: Likewise.
25255         * modules/stdint-tests: Likewise.
25256         * modules/stdio-tests: Likewise.
25257         * modules/stdlib-tests: Likewise.
25258         * modules/string-tests: Likewise.
25259         * modules/strings-tests: Likewise.
25260         * modules/sys_select-tests: Likewise.
25261         * modules/sys_socket-tests: Likewise.
25262         * modules/sys_stat-tests: Likewise.
25263         * modules/sys_time-tests: Likewise.
25264         * modules/sys_utsname-tests: Likewise.
25265         * modules/sysexits-tests: Likewise.
25266         * modules/time-tests: Likewise.
25267         * modules/trunc-tests: Likewise.
25268         * modules/truncf-tests: Likewise.
25269         * modules/truncl-tests: Likewise.
25270         * modules/tsearch-tests: Likewise.
25271         * modules/unistd-tests: Likewise.
25272         * modules/wchar-tests: Likewise.
25273         * modules/wctype-tests: Likewise.
25274
25275         tests: fix license on several tests
25276         * tests/test-des.c: Update to GPLv3+.
25277         * tests/test-flock.c: Likewise.
25278         * tests/test-fsync.c: Likewise.
25279         * tests/test-futimens.h: Likewise.
25280         * tests/test-gc-arcfour.c: Likewise.
25281         * tests/test-gc-arctwo.c: Likewise.
25282         * tests/test-gc-des.c: Likewise.
25283         * tests/test-gc-hmac-md5.c: Likewise.
25284         * tests/test-gc-hmac-sha1.c: Likewise.
25285         * tests/test-gc-md2.c: Likewise.
25286         * tests/test-gc-md4.c: Likewise.
25287         * tests/test-gc-md5.c: Likewise.
25288         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25289         * tests/test-gc-rijndael.c: Likewise.
25290         * tests/test-gc-sha1.c: Likewise.
25291         * tests/test-gc.c: Likewise.
25292         * tests/test-getcwd.c: Likewise.
25293         * tests/test-link.c: Likewise.
25294         * tests/test-link.h: Likewise.
25295         * tests/test-lutimens.h: Likewise.
25296         * tests/test-md2.c: Likewise.
25297         * tests/test-md4.c: Likewise.
25298         * tests/test-mkdir.h: Likewise.
25299         * tests/test-rename.c: Likewise.
25300         * tests/test-rename.h: Likewise.
25301         * tests/test-safe-alloc.c: Likewise.
25302         * tests/test-utimens-common.h: Likewise.
25303         * tests/test-utimens.h: Likewise.
25304
25305         maint: sync license texts
25306         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25307         * doc/gpl-3.0.texi: Revert copyright year update.
25308         * doc/lgpl-3.0.texi: Likewise.
25309
25310 2009-12-29  Jim Meyering  <meyering@redhat.com>
25311
25312         update nearly all FSF copyright year lists to include 2009
25313         The files named by the following are exempted:
25314             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25315               test -f "$dst" && { echo "$dst"; continue; }
25316               test -d "$dst" || continue
25317               echo "$dst"/$(basename "$src")
25318             done > exempt
25319             git ls-files tests/unictype >> exempt
25320         In the remaining files, convert to all-interval notation if
25321         - there is already at least one year interval like 2000-2003
25322         - the file is maintained by me
25323         - the file is in lib/uni*/, where that style already prevails
25324         Otherwise, use update-copyright's default.
25325
25326 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25327         and Eric Blake  <ebb9@byu.net>
25328
25329         tests: don't require debug system() to pass
25330         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25331         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25332         * tests/test-unlink.h (test_unlink_func): Likewise.
25333         * tests/test-fstatat.c (main): ...into callers.
25334         * tests/test-lstat.c (main): Likewise.
25335         * tests/test-rmdir.c (main): Likewise.
25336         * tests/test-unlink.c (main): Likewise.
25337         * tests/test-unlinkat.c (main): Likewise.
25338         * tests/test-areadlink-with-size.c (main): Don't require a
25339         debug-only system call to pass, aiding cross-testing to mingw.
25340         * tests/test-areadlink.c (main): Likewise.
25341         * tests/test-areadlinkat-with-size.c (main): Likewise.
25342         * tests/test-areadlinkat.c (main): Likewise.
25343         * tests/test-canonicalize-lgpl.c (main): Likewise.
25344         * tests/test-canonicalize.c (main): Likewise.
25345         * tests/test-chown.c (main): Likewise.
25346         * tests/test-fchownat.c (main): Likewise.
25347         * tests/test-lchown.c (main): Likewise.
25348         * tests/test-fdutimensat.c (main): Likewise.
25349         * tests/test-futimens.c (main): Likewise.
25350         * tests/test-link.c (main): Likewise.
25351         * tests/test-linkat.c (main): Likewise.
25352         * tests/test-mkdir.c (main): Likewise.
25353         * tests/test-mkdirat.c (main): Likewise.
25354         * tests/test-mkfifo.c (main): Likewise.
25355         * tests/test-mkfifoat.c (main): Likewise.
25356         * tests/test-mknod.c (main): Likewise.
25357         * tests/test-readlink.c (main): Likewise.
25358         * tests/test-remove.c (main): Likewise.
25359         * tests/test-rename.c (main): Likewise.
25360         * tests/test-renameat.c (main): Likewise.
25361         * tests/test-symlink.c (main): Likewise.
25362         * tests/test-symlinkat.c (main): Likewise.
25363         * tests/test-utimens.c (main): Likewise.
25364         * tests/test-utimensat.c (main): Likewise.
25365
25366 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25367
25368         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25369         on $(UNUSED_PARAMETER_H) to avoid build failure.
25370
25371 2009-12-28  Jim Meyering  <meyering@redhat.com>
25372
25373         update-copyright: you may specify a max. line length other than 72
25374         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25375
25376         maint: use consistent FSF copyright line syntax
25377         * lib/posixtm.c: Add missing comma in FSF copyright line.
25378         * lib/posixtm.h: Likewise.
25379         * lib/getugroups.c: Add missing ", Inc.".
25380
25381         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25382         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25383         FSF copyright line.  Remove trailing blanks.
25384
25385 2009-12-28  Eric Blake  <ebb9@byu.net>
25386
25387         test-dup2: reduce dependencies
25388         * modules/cloexec (Configure.ac): Set witness.
25389         * modules/dup2-tests (Depends-on): Drop cloexec.
25390         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25391         not present.
25392         Suggested by Bruno Haible.
25393
25394 2009-12-26  Bruno Haible  <bruno@clisp.org>
25395
25396         Remove an unneeded dependency.
25397         * modules/fseterr (Depends-on): Remove dup2.
25398
25399 2009-12-26  Eric Blake  <ebb9@byu.net>
25400
25401         tests: use macros.h in more places
25402         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25403         (ASSERT_STREAM): Provide default of stderr.
25404         * tests/test-dirent-safer.c: Include macros.h, using alternate
25405         stream for assertions.
25406         * tests/test-dup-safer.c: Likewise.
25407         * tests/test-freopen-safer.c: Likewise.
25408         * tests/test-getopt.c: Likewise.
25409         * tests/test-openat-safer.c: Likewise.
25410         * tests/test-pipe.c: Likewise.
25411         * tests/test-popen-safer.c: Likewise.
25412         * modules/dirent-safer-tests (Files): Include macros.h.
25413         * modules/unistd-safer-tests (Files): Likewise.
25414         * modules/freopen-safer-tests (Files): Likewise.
25415         * modules/getopt-posix-tests (Files): Likewise.
25416         * modules/openat-safer-tests (Files): Likewise.
25417         * modules/pipe-tests (Files): Likewise.
25418
25419 2009-12-26  Bruno Haible  <bruno@clisp.org>
25420
25421         javacomp: Portability fix.
25422         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25423         that it also works on Solaris.
25424
25425 2009-12-26  Bruno Haible  <bruno@clisp.org>
25426
25427         localename: Fix storage allocation of gl_locale_name_thread's result.
25428         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25429         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25430         all platforms that have 'uselocale'.
25431         (gl_locale_name_thread_unsafe): New function, extracted from
25432         gl_locale_name_thread.
25433         (gl_locale_name_thread): Call struniq on all platforms that have
25434         'uselocale'.
25435         * tests/test-localename.c (test_locale_name_thread): Check that the
25436         resulting strings are permanently allocated.
25437         * modules/localename-tests (Depends-on): Add strdup.
25438
25439 2009-12-26  Bruno Haible  <bruno@clisp.org>
25440
25441         * tests/test-localename.c (categories): Fill in the strings.
25442
25443 2009-12-26  Jim Meyering  <meyering@redhat.com>
25444
25445         isdir: complete the removal of m4/isdir.m4
25446         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25447
25448         isdir: clean up, since at least grep still uses it
25449         * lib/isdir.c: Include "isdir.h".
25450         (S_ISDIR): Remove now-unneeded definition.
25451         * modules/isdir (Files): Add lib/isdir.h.
25452         * lib/isdir.h: New file, with declaration.
25453         * m4/isdir.m4: Remove file -- unneeded.
25454
25455 2009-12-25  Bruno Haible  <bruno@clisp.org>
25456
25457         selinux-h: Make generated .h files standalone.
25458         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25459         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25460         * lib/se-selinux.in.h: Likewise.
25461         * modules/selinux-h (Depends-on): Add unused-parameter.
25462         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25463         selinux/selinux.h and selinux/context.h.
25464         Suggested by Eric Blake.
25465
25466 2009-12-25  Bruno Haible  <bruno@clisp.org>
25467
25468         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25469         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25470         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25471         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25472         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25473
25474 2009-12-24  Bruno Haible  <bruno@clisp.org>
25475
25476         openat: Fix warning.
25477         * lib/openat-proc.c: Include <unistd.h>.
25478
25479 2009-12-24  Bruno Haible  <bruno@clisp.org>
25480
25481         New module 'unused-parameter'.
25482         * build-aux/unused-parameter.h: New file, extracted from earlier
25483         gnulib-common.m4.
25484         * modules/unused-parameter: New file.
25485         * lib/unistr.h: Include unused-parameter.h.
25486         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25487         _GL_UNUSED.
25488         * modules/unistr/base (Depends-on): Add unused-parameter.
25489
25490 2009-12-24  Bruno Haible  <bruno@clisp.org>
25491
25492         Add missing dependencies to 'extensions' module.
25493         * m4/extensions.m4: Add comment.
25494         * modules/accept4 (Depends-on): Add extensions.
25495         * modules/dup3 (Depends-on): Likewise.
25496         * modules/fcntl (Depends-on): Likewise.
25497         * modules/futimens (Depends-on): Likewise.
25498         * modules/mknod (Depends-on): Likewise.
25499         * modules/pipe2 (Depends-on): Likewise.
25500         * modules/stat-time (Depends-on): Likewise.
25501         * modules/strcasestr-simple (Depends-on): Likewise.
25502         * modules/strsignal (Depends-on): Likewise.
25503         * modules/utimensat (Depends-on): Likewise.
25504         * modules/localcharset (Depends-on): Likewise. Needed because of
25505         gl_FCNTL_O_FLAGS.
25506         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25507         AC_TYPE_MBSTATE_T.
25508         * modules/wcsnrtombs (Depends-on): Likewise.
25509         * modules/wcsrtombs (Depends-on): Likewise.
25510
25511 2009-12-24  Bruno Haible  <bruno@clisp.org>
25512
25513         binary-io: Avoid gcc warning due to SET_BINARY.
25514         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25515         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25516
25517 2009-12-24  Bruno Haible  <bruno@clisp.org>
25518
25519         Avoid future namespace pollution on glibc systems.
25520         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25521         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25522         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25523         glibc systems.
25524
25525 2009-12-24  Bruno Haible  <bruno@clisp.org>
25526
25527         Refactor common macros used in tests.
25528         * tests/macros.h: New file.
25529         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25530         and/or <stdlib.h>, if appropriate.
25531         (ASSERT, SIZEOF): Remove macros.
25532         * tests/test-areadlink-with-size.c: Likewise.
25533         * tests/test-areadlinkat.c: Likewise.
25534         * tests/test-areadlinkat-with-size.c: Likewise.
25535         * tests/test-argmatch.c: Likewise.
25536         * tests/test-argv-iter.c: Likewise.
25537         * tests/test-array-mergesort.c: Likewise.
25538         * tests/test-array_list.c: Likewise.
25539         * tests/test-array_oset.c: Likewise.
25540         * tests/test-avltree_list.c: Likewise.
25541         * tests/test-avltree_oset.c: Likewise.
25542         * tests/test-avltreehash_list.c: Likewise.
25543         * tests/test-base64.c: Likewise.
25544         * tests/test-binary-io.c: Likewise.
25545         * tests/test-bitrotate.c: Likewise.
25546         * tests/test-btowc.c: Likewise.
25547         * tests/test-byteswap.c: Likewise.
25548         * tests/test-c-ctype.c: Likewise.
25549         * tests/test-c-stack.c: Likewise.
25550         * tests/test-c-strcasecmp.c: Likewise.
25551         * tests/test-c-strcasestr.c: Likewise.
25552         * tests/test-c-strncasecmp.c: Likewise.
25553         * tests/test-c-strstr.c: Likewise.
25554         * tests/test-canonicalize-lgpl.c: Likewise.
25555         * tests/test-canonicalize.c: Likewise.
25556         * tests/test-carray_list.c: Likewise.
25557         * tests/test-ceilf1.c: Likewise.
25558         * tests/test-ceilf2.c: Likewise.
25559         * tests/test-ceill.c: Likewise.
25560         * tests/test-chown.c: Likewise.
25561         * tests/test-cloexec.c: Likewise.
25562         * tests/test-copy-acl.c: Likewise.
25563         * tests/test-copy-file.c: Likewise.
25564         * tests/test-count-one-bits.c: Likewise.
25565         * tests/test-dprintf-posix.c: Likewise.
25566         * tests/test-dup2.c: Likewise.
25567         * tests/test-dup3.c: Likewise.
25568         * tests/test-duplocale.c: Likewise.
25569         * tests/test-fbufmode.c: Likewise.
25570         * tests/test-fchdir.c: Likewise.
25571         * tests/test-fchownat.c: Likewise.
25572         * tests/test-fcntl-safer.c: Likewise.
25573         * tests/test-fcntl.c: Likewise.
25574         * tests/test-fdopendir.c: Likewise.
25575         * tests/test-fdutimensat.c: Likewise.
25576         * tests/test-fflush2.c: Likewise.
25577         * tests/test-file-has-acl.c: Likewise.
25578         * tests/test-filevercmp.c: Likewise.
25579         * tests/test-flock.c: Likewise.
25580         * tests/test-floorf1.c: Likewise.
25581         * tests/test-floorf2.c: Likewise.
25582         * tests/test-floorl.c: Likewise.
25583         * tests/test-fnmatch.c: Likewise.
25584         * tests/test-fopen.h: Likewise.
25585         * tests/test-fpending.c: Likewise.
25586         * tests/test-fprintf-posix.c: Likewise.
25587         * tests/test-fpurge.c: Likewise.
25588         * tests/test-freadable.c: Likewise.
25589         * tests/test-freadahead.c: Likewise.
25590         * tests/test-freading.c: Likewise.
25591         * tests/test-freadptr.c: Likewise.
25592         * tests/test-freadptr2.c: Likewise.
25593         * tests/test-freadseek.c: Likewise.
25594         * tests/test-freopen.c: Likewise.
25595         * tests/test-frexp.c: Likewise.
25596         * tests/test-frexpl.c: Likewise.
25597         * tests/test-fseek.c: Likewise.
25598         * tests/test-fseeko.c: Likewise.
25599         * tests/test-fstatat.c: Likewise.
25600         * tests/test-fstrcmp.c: Likewise.
25601         * tests/test-fsync.c: Likewise.
25602         * tests/test-ftell.c: Likewise.
25603         * tests/test-ftello.c: Likewise.
25604         * tests/test-func.c: Likewise.
25605         * tests/test-futimens.c: Likewise.
25606         * tests/test-fwritable.c: Likewise.
25607         * tests/test-fwriting.c: Likewise.
25608         * tests/test-getcwd.c: Likewise.
25609         * tests/test-getdate.c: Likewise.
25610         * tests/test-getdelim.c: Likewise.
25611         * tests/test-getdtablesize.c: Likewise.
25612         * tests/test-getgroups.c: Likewise.
25613         * tests/test-getline.c: Likewise.
25614         * tests/test-getndelim2.c: Likewise.
25615         * tests/test-glob.c: Likewise.
25616         * tests/test-hash.c: Likewise.
25617         * tests/test-i-ring.c: Likewise.
25618         * tests/test-iconv-utf.c: Likewise.
25619         * tests/test-iconv.c: Likewise.
25620         * tests/test-idpriv-drop.c: Likewise.
25621         * tests/test-idpriv-droptemp.c: Likewise.
25622         * tests/test-inet_ntop.c: Likewise.
25623         * tests/test-inet_pton.c: Likewise.
25624         * tests/test-isblank.c: Likewise.
25625         * tests/test-isfinite.c: Likewise.
25626         * tests/test-isinf.c: Likewise.
25627         * tests/test-isnan.c: Likewise.
25628         * tests/test-isnand.h: Likewise.
25629         * tests/test-isnanf.h: Likewise.
25630         * tests/test-isnanl.h: Likewise.
25631         * tests/test-lchown.c: Likewise.
25632         * tests/test-ldexpl.c: Likewise.
25633         * tests/test-link.c: Likewise.
25634         * tests/test-linkat.c: Likewise.
25635         * tests/test-linked_list.c: Likewise.
25636         * tests/test-linkedhash_list.c: Likewise.
25637         * tests/test-localename.c: Likewise.
25638         * tests/test-lseek.c: Likewise.
25639         * tests/test-lstat.c: Likewise.
25640         * tests/test-mbmemcasecmp.c: Likewise.
25641         * tests/test-mbmemcasecoll.c: Likewise.
25642         * tests/test-mbrtowc.c: Likewise.
25643         * tests/test-mbscasecmp.c: Likewise.
25644         * tests/test-mbscasestr1.c: Likewise.
25645         * tests/test-mbscasestr2.c: Likewise.
25646         * tests/test-mbscasestr3.c: Likewise.
25647         * tests/test-mbscasestr4.c: Likewise.
25648         * tests/test-mbschr.c: Likewise.
25649         * tests/test-mbscspn.c: Likewise.
25650         * tests/test-mbsinit.c: Likewise.
25651         * tests/test-mbsncasecmp.c: Likewise.
25652         * tests/test-mbsnrtowcs.c: Likewise.
25653         * tests/test-mbspbrk.c: Likewise.
25654         * tests/test-mbspcasecmp.c: Likewise.
25655         * tests/test-mbsrchr.c: Likewise.
25656         * tests/test-mbsrtowcs.c: Likewise.
25657         * tests/test-mbsspn.c: Likewise.
25658         * tests/test-mbsstr1.c: Likewise.
25659         * tests/test-mbsstr2.c: Likewise.
25660         * tests/test-mbsstr3.c: Likewise.
25661         * tests/test-memchr.c: Likewise.
25662         * tests/test-memchr2.c: Likewise.
25663         * tests/test-memcmp.c: Likewise.
25664         * tests/test-memmem.c: Likewise.
25665         * tests/test-memrchr.c: Likewise.
25666         * tests/test-mkdir.c: Likewise.
25667         * tests/test-mkdirat.c: Likewise.
25668         * tests/test-mkfifo.c: Likewise.
25669         * tests/test-mkfifoat.c: Likewise.
25670         * tests/test-mknod.c: Likewise.
25671         * tests/test-nanosleep.c: Likewise.
25672         * tests/test-nl_langinfo.c: Likewise.
25673         * tests/test-obstack-printf.c: Likewise.
25674         * tests/test-open.c: Likewise.
25675         * tests/test-openat.c: Likewise.
25676         * tests/test-pipe-filter-gi1.c: Likewise.
25677         * tests/test-pipe-filter-gi2-main.c: Likewise.
25678         * tests/test-pipe-filter-ii1.c: Likewise.
25679         * tests/test-pipe-filter-ii2-main.c: Likewise.
25680         * tests/test-pipe2.c: Likewise.
25681         * tests/test-popen.h: Likewise.
25682         * tests/test-posixtm.c: Likewise.
25683         * tests/test-pread.c: Likewise.
25684         * tests/test-printf-frexp.c: Likewise.
25685         * tests/test-printf-frexpl.c: Likewise.
25686         * tests/test-printf-posix.c: Likewise.
25687         * tests/test-priv-set.c: Likewise.
25688         * tests/test-quotearg.c: Likewise.
25689         * tests/test-random_r.c: Likewise.
25690         * tests/test-rawmemchr.c: Likewise.
25691         * tests/test-rbtree_list.c: Likewise.
25692         * tests/test-rbtree_oset.c: Likewise.
25693         * tests/test-rbtreehash_list.c: Likewise.
25694         * tests/test-readlink.c: Likewise.
25695         * tests/test-remove.c: Likewise.
25696         * tests/test-rename.c: Likewise.
25697         * tests/test-renameat.c: Likewise.
25698         * tests/test-rmdir.c: Likewise.
25699         * tests/test-round1.c: Likewise.
25700         * tests/test-roundf1.c: Likewise.
25701         * tests/test-roundl.c: Likewise.
25702         * tests/test-safe-alloc.c: Likewise.
25703         * tests/test-sameacls.c: Likewise.
25704         * tests/test-set-mode-acl.c: Likewise.
25705         * tests/test-setenv.c: Likewise.
25706         * tests/test-sigaction.c: Likewise.
25707         * tests/test-signbit.c: Likewise.
25708         * tests/test-sleep.c: Likewise.
25709         * tests/test-snprintf-posix.c: Likewise.
25710         * tests/test-snprintf.c: Likewise.
25711         * tests/test-sprintf-posix.c: Likewise.
25712         * tests/test-stat-time.c: Likewise.
25713         * tests/test-stat.c: Likewise.
25714         * tests/test-strcasestr.c: Likewise.
25715         * tests/test-strchrnul.c: Likewise.
25716         * tests/test-strerror.c: Likewise.
25717         * tests/test-striconv.c: Likewise.
25718         * tests/test-striconveh.c: Likewise.
25719         * tests/test-striconveha.c: Likewise.
25720         * tests/test-strsignal.c: Likewise.
25721         * tests/test-strstr.c: Likewise.
25722         * tests/test-strtod.c: Likewise.
25723         * tests/test-strverscmp.c: Likewise.
25724         * tests/test-symlink.c: Likewise.
25725         * tests/test-symlinkat.c: Likewise.
25726         * tests/test-trunc1.c: Likewise.
25727         * tests/test-trunc2.c: Likewise.
25728         * tests/test-truncf1.c: Likewise.
25729         * tests/test-truncf2.c: Likewise.
25730         * tests/test-truncl.c: Likewise.
25731         * tests/test-uname.c: Likewise.
25732         * tests/test-unlink.c: Likewise.
25733         * tests/test-unlinkat.c: Likewise.
25734         * tests/test-unsetenv.c: Likewise.
25735         * tests/test-usleep.c: Likewise.
25736         * tests/test-utimens.c: Likewise.
25737         * tests/test-utimensat.c: Likewise.
25738         * tests/test-vasnprintf-posix.c: Likewise.
25739         * tests/test-vasnprintf-posix2.c: Likewise.
25740         * tests/test-vasnprintf.c: Likewise.
25741         * tests/test-vasprintf-posix.c: Likewise.
25742         * tests/test-vasprintf.c: Likewise.
25743         * tests/test-vdprintf-posix.c: Likewise.
25744         * tests/test-vfprintf-posix.c: Likewise.
25745         * tests/test-vprintf-posix.c: Likewise.
25746         * tests/test-vsnprintf-posix.c: Likewise.
25747         * tests/test-vsnprintf.c: Likewise.
25748         * tests/test-vsprintf-posix.c: Likewise.
25749         * tests/test-wcrtomb.c: Likewise.
25750         * tests/test-wcsnrtombs.c: Likewise.
25751         * tests/test-wcsrtombs.c: Likewise.
25752         * tests/test-wctype.c: Likewise.
25753         * tests/test-wcwidth.c: Likewise.
25754         * tests/test-xfprintf-posix.c: Likewise.
25755         * tests/test-xmemdup0.c: Likewise.
25756         * tests/test-xprintf-posix.c: Likewise.
25757         * tests/test-xvasprintf.c: Likewise.
25758         * tests/unicase/test-locale-language.c: Likewise.
25759         * tests/unicase/test-mapping-part1.h: Likewise.
25760         * tests/unicase/test-predicate-part1.h: Likewise.
25761         * tests/unicase/test-u8-casecmp.c: Likewise.
25762         * tests/unicase/test-u8-casecoll.c: Likewise.
25763         * tests/unicase/test-u8-casefold.c: Likewise.
25764         * tests/unicase/test-u8-is-cased.c: Likewise.
25765         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25766         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25767         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25768         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25769         * tests/unicase/test-u8-tolower.c: Likewise.
25770         * tests/unicase/test-u8-totitle.c: Likewise.
25771         * tests/unicase/test-u8-toupper.c: Likewise.
25772         * tests/unicase/test-u16-casecmp.c: Likewise.
25773         * tests/unicase/test-u16-casecoll.c: Likewise.
25774         * tests/unicase/test-u16-casefold.c: Likewise.
25775         * tests/unicase/test-u16-is-cased.c: Likewise.
25776         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25777         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25778         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25779         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25780         * tests/unicase/test-u16-tolower.c: Likewise.
25781         * tests/unicase/test-u16-totitle.c: Likewise.
25782         * tests/unicase/test-u16-toupper.c: Likewise.
25783         * tests/unicase/test-u32-casecmp.c: Likewise.
25784         * tests/unicase/test-u32-casecoll.c: Likewise.
25785         * tests/unicase/test-u32-casefold.c: Likewise.
25786         * tests/unicase/test-u32-is-cased.c: Likewise.
25787         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25788         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25789         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25790         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25791         * tests/unicase/test-u32-tolower.c: Likewise.
25792         * tests/unicase/test-u32-totitle.c: Likewise.
25793         * tests/unicase/test-u32-toupper.c: Likewise.
25794         * tests/unicase/test-ulc-casecmp.c: Likewise.
25795         * tests/unicase/test-ulc-casecoll.c: Likewise.
25796         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25797         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25798         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25799         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25800         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25801         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25802         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25803         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25804         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25805         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25806         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25807         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25808         * tests/unictype/test-bidi_byname.c: Likewise.
25809         * tests/unictype/test-bidi_name.c: Likewise.
25810         * tests/unictype/test-bidi_of.c: Likewise.
25811         * tests/unictype/test-bidi_test.c: Likewise.
25812         * tests/unictype/test-block_list.c: Likewise.
25813         * tests/unictype/test-block_of.c: Likewise.
25814         * tests/unictype/test-block_test.c: Likewise.
25815         * tests/unictype/test-categ_and.c: Likewise.
25816         * tests/unictype/test-categ_and_not.c: Likewise.
25817         * tests/unictype/test-categ_byname.c: Likewise.
25818         * tests/unictype/test-categ_name.c: Likewise.
25819         * tests/unictype/test-categ_none.c: Likewise.
25820         * tests/unictype/test-categ_of.c: Likewise.
25821         * tests/unictype/test-categ_or.c: Likewise.
25822         * tests/unictype/test-categ_test_withtable.c: Likewise.
25823         * tests/unictype/test-combining.c: Likewise.
25824         * tests/unictype/test-decdigit.c: Likewise.
25825         * tests/unictype/test-digit.c: Likewise.
25826         * tests/unictype/test-mirror.c: Likewise.
25827         * tests/unictype/test-numeric.c: Likewise.
25828         * tests/unictype/test-pr_byname.c: Likewise.
25829         * tests/unictype/test-pr_test.c: Likewise.
25830         * tests/unictype/test-predicate-part1.h: Likewise.
25831         * tests/unictype/test-scripts.c: Likewise.
25832         * tests/unictype/test-sy_c_ident.c: Likewise.
25833         * tests/unictype/test-sy_java_ident.c: Likewise.
25834         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25835         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25836         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25837         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25838         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25839         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25840         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25841         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25842         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25843         * tests/uninorm/test-compat-decomposition.c: Likewise.
25844         * tests/uninorm/test-composition.c: Likewise.
25845         * tests/uninorm/test-decomposing-form.c: Likewise.
25846         * tests/uninorm/test-decomposition.c: Likewise.
25847         * tests/uninorm/test-u8-nfc.c: Likewise.
25848         * tests/uninorm/test-u8-nfd.c: Likewise.
25849         * tests/uninorm/test-u8-nfkc.c: Likewise.
25850         * tests/uninorm/test-u8-nfkd.c: Likewise.
25851         * tests/uninorm/test-u8-normcmp.c: Likewise.
25852         * tests/uninorm/test-u8-normcoll.c: Likewise.
25853         * tests/uninorm/test-u16-nfc.c: Likewise.
25854         * tests/uninorm/test-u16-nfd.c: Likewise.
25855         * tests/uninorm/test-u16-nfkc.c: Likewise.
25856         * tests/uninorm/test-u16-nfkd.c: Likewise.
25857         * tests/uninorm/test-u16-normcmp.c: Likewise.
25858         * tests/uninorm/test-u16-normcoll.c: Likewise.
25859         * tests/uninorm/test-u32-nfc.c: Likewise.
25860         * tests/uninorm/test-u32-nfd.c: Likewise.
25861         * tests/uninorm/test-u32-nfkc.c: Likewise.
25862         * tests/uninorm/test-u32-nfkd.c: Likewise.
25863         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25864         * tests/uninorm/test-u32-normcmp.c: Likewise.
25865         * tests/uninorm/test-u32-normcoll.c: Likewise.
25866         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25867         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25868         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25869         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25870         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25871         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25872         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25873         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25874         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25875         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25876         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25877         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25878         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25879         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25880         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25881         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25882         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25883         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25884         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25885         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25886         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25887         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25888         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25889         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25890         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25891         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25892         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25893         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25894         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25895         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25896         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25897         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25898         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25899         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25900         * tests/uniwidth/test-u8-width.c: Likewise.
25901         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25902         * tests/uniwidth/test-u16-width.c: Likewise.
25903         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25904         * tests/uniwidth/test-u32-width.c: Likewise.
25905         * tests/uniwidth/test-uc_width.c: Likewise.
25906         * tests/uniwidth/test-uc_width2.c: Likewise.
25907         * modules/acl-tests (Files): Add tests/macros.h.
25908         * modules/areadlink-tests (Files): Likewise.
25909         * modules/areadlink-with-size-tests (Files): Likewise.
25910         * modules/areadlinkat-tests (Files): Likewise.
25911         * modules/areadlinkat-with-size-tests (Files): Likewise.
25912         * modules/argmatch-tests (Files): Likewise.
25913         * modules/argv-iter-tests (Files): Likewise.
25914         * modules/array-list-tests (Files): Likewise.
25915         * modules/array-mergesort-tests (Files): Likewise.
25916         * modules/array-oset-tests (Files): Likewise.
25917         * modules/avltree-list-tests (Files): Likewise.
25918         * modules/avltree-oset-tests (Files): Likewise.
25919         * modules/avltreehash-list-tests (Files): Likewise.
25920         * modules/base64-tests (Files): Likewise.
25921         * modules/binary-io-tests (Files): Likewise.
25922         * modules/bitrotate-tests (Files): Likewise.
25923         * modules/btowc-tests (Files): Likewise.
25924         * modules/byteswap-tests (Files): Likewise.
25925         * modules/c-ctype-tests (Files): Likewise.
25926         * modules/c-stack-tests (Files): Likewise.
25927         * modules/c-strcase-tests (Files): Likewise.
25928         * modules/c-strcasestr-tests (Files): Likewise.
25929         * modules/c-strstr-tests (Files): Likewise.
25930         * modules/canonicalize-lgpl-tests (Files): Likewise.
25931         * modules/canonicalize-tests (Files): Likewise.
25932         * modules/carray-list-tests (Files): Likewise.
25933         * modules/ceilf-tests (Files): Likewise.
25934         * modules/ceill-tests (Files): Likewise.
25935         * modules/chown-tests (Files): Likewise.
25936         * modules/cloexec-tests (Files): Likewise.
25937         * modules/copy-file-tests (Files): Likewise.
25938         * modules/count-one-bits-tests (Files): Likewise.
25939         * modules/dprintf-posix-tests (Files): Likewise.
25940         * modules/dup2-tests (Files): Likewise.
25941         * modules/dup3-tests (Files): Likewise.
25942         * modules/duplocale-tests (Files): Likewise.
25943         * modules/fbufmode-tests (Files): Likewise.
25944         * modules/fchdir-tests (Files): Likewise.
25945         * modules/fcntl-safer-tests (Files): Likewise.
25946         * modules/fcntl-tests (Files): Likewise.
25947         * modules/fdopendir-tests (Files): Likewise.
25948         * modules/fdutimensat-tests (Files): Likewise.
25949         * modules/fflush-tests (Files): Likewise.
25950         * modules/filevercmp-tests (Files): Likewise.
25951         * modules/flock-tests (Files): Likewise.
25952         * modules/floorf-tests (Files): Likewise.
25953         * modules/floorl-tests (Files): Likewise.
25954         * modules/fnmatch-tests (Files): Likewise.
25955         * modules/fopen-safer-tests (Files): Likewise.
25956         * modules/fopen-tests (Files): Likewise.
25957         * modules/fpending-tests (Files): Likewise.
25958         * modules/fprintf-posix-tests (Files): Likewise.
25959         * modules/fpurge-tests (Files): Likewise.
25960         * modules/freadable-tests (Files): Likewise.
25961         * modules/freadahead-tests (Files): Likewise.
25962         * modules/freading-tests (Files): Likewise.
25963         * modules/freadptr-tests (Files): Likewise.
25964         * modules/freadseek-tests (Files): Likewise.
25965         * modules/freopen-tests (Files): Likewise.
25966         * modules/frexp-nolibm-tests (Files): Likewise.
25967         * modules/frexp-tests (Files): Likewise.
25968         * modules/frexpl-nolibm-tests (Files): Likewise.
25969         * modules/frexpl-tests (Files): Likewise.
25970         * modules/fseek-tests (Files): Likewise.
25971         * modules/fseeko-tests (Files): Likewise.
25972         * modules/fstrcmp-tests (Files): Likewise.
25973         * modules/fsync-tests (Files): Likewise.
25974         * modules/ftell-tests (Files): Likewise.
25975         * modules/ftello-tests (Files): Likewise.
25976         * modules/func-tests (Files): Likewise.
25977         * modules/futimens-tests (Files): Likewise.
25978         * modules/fwritable-tests (Files): Likewise.
25979         * modules/fwriting-tests (Files): Likewise.
25980         * modules/getcwd-tests (Files): Likewise.
25981         * modules/getdate-tests (Files): Likewise.
25982         * modules/getdelim-tests (Files): Likewise.
25983         * modules/getdtablesize-tests (Files): Likewise.
25984         * modules/getgroups-tests (Files): Likewise.
25985         * modules/getline-tests (Files): Likewise.
25986         * modules/getndelim2-tests (Files): Likewise.
25987         * modules/glob-tests (Files): Likewise.
25988         * modules/hash-tests (Files): Likewise.
25989         * modules/i-ring-tests (Files): Likewise.
25990         * modules/iconv-tests (Files): Likewise.
25991         * modules/iconv_open-utf-tests (Files): Likewise.
25992         * modules/idpriv-drop-tests (Files): Likewise.
25993         * modules/idpriv-droptemp-tests (Files): Likewise.
25994         * modules/inet_ntop-tests (Files): Likewise.
25995         * modules/inet_pton-tests (Files): Likewise.
25996         * modules/isblank-tests (Files): Likewise.
25997         * modules/isfinite-tests (Files): Likewise.
25998         * modules/isinf-tests (Files): Likewise.
25999         * modules/isnan-tests (Files): Likewise.
26000         * modules/isnand-nolibm-tests (Files): Likewise.
26001         * modules/isnand-tests (Files): Likewise.
26002         * modules/isnanf-nolibm-tests (Files): Likewise.
26003         * modules/isnanf-tests (Files): Likewise.
26004         * modules/isnanl-nolibm-tests (Files): Likewise.
26005         * modules/isnanl-tests (Files): Likewise.
26006         * modules/lchown-tests (Files): Likewise.
26007         * modules/ldexpl-tests (Files): Likewise.
26008         * modules/link-tests (Files): Likewise.
26009         * modules/linkat-tests (Files): Likewise.
26010         * modules/linked-list-tests (Files): Likewise.
26011         * modules/linkedhash-list-tests (Files): Likewise.
26012         * modules/localename-tests (Files): Likewise.
26013         * modules/lseek-tests (Files): Likewise.
26014         * modules/lstat-tests (Files): Likewise.
26015         * modules/mbmemcasecmp-tests (Files): Likewise.
26016         * modules/mbmemcasecoll-tests (Files): Likewise.
26017         * modules/mbrtowc-tests (Files): Likewise.
26018         * modules/mbscasecmp-tests (Files): Likewise.
26019         * modules/mbscasestr-tests (Files): Likewise.
26020         * modules/mbschr-tests (Files): Likewise.
26021         * modules/mbscspn-tests (Files): Likewise.
26022         * modules/mbsinit-tests (Files): Likewise.
26023         * modules/mbsncasecmp-tests (Files): Likewise.
26024         * modules/mbsnrtowcs-tests (Files): Likewise.
26025         * modules/mbspbrk-tests (Files): Likewise.
26026         * modules/mbspcasecmp-tests (Files): Likewise.
26027         * modules/mbsrchr-tests (Files): Likewise.
26028         * modules/mbsrtowcs-tests (Files): Likewise.
26029         * modules/mbsspn-tests (Files): Likewise.
26030         * modules/mbsstr-tests (Files): Likewise.
26031         * modules/memchr-tests (Files): Likewise.
26032         * modules/memchr2-tests (Files): Likewise.
26033         * modules/memcmp-tests (Files): Likewise.
26034         * modules/memmem-tests (Files): Likewise.
26035         * modules/memrchr-tests (Files): Likewise.
26036         * modules/mkdir-tests (Files): Likewise.
26037         * modules/mkfifo-tests (Files): Likewise.
26038         * modules/mkfifoat-tests (Files): Likewise.
26039         * modules/mknod-tests (Files): Likewise.
26040         * modules/nanosleep-tests (Files): Likewise.
26041         * modules/nl_langinfo-tests (Files): Likewise.
26042         * modules/obstack-printf-tests (Files): Likewise.
26043         * modules/open-tests (Files): Likewise.
26044         * modules/openat-tests (Files): Likewise.
26045         * modules/pipe-filter-gi-tests (Files): Likewise.
26046         * modules/pipe-filter-ii-tests (Files): Likewise.
26047         * modules/pipe2-tests (Files): Likewise.
26048         * modules/popen-safer-tests (Files): Likewise.
26049         * modules/popen-tests (Files): Likewise.
26050         * modules/posixtm-tests (Files): Likewise.
26051         * modules/pread-tests (Files): Likewise.
26052         * modules/printf-frexp-tests (Files): Likewise.
26053         * modules/printf-frexpl-tests (Files): Likewise.
26054         * modules/printf-posix-tests (Files): Likewise.
26055         * modules/priv-set-tests (Files): Likewise.
26056         * modules/quotearg-tests (Files): Likewise.
26057         * modules/random_r-tests (Files): Likewise.
26058         * modules/rawmemchr-tests (Files): Likewise.
26059         * modules/rbtree-list-tests (Files): Likewise.
26060         * modules/rbtree-oset-tests (Files): Likewise.
26061         * modules/rbtreehash-list-tests (Files): Likewise.
26062         * modules/readlink-tests (Files): Likewise.
26063         * modules/remove-tests (Files): Likewise.
26064         * modules/rename-tests (Files): Likewise.
26065         * modules/renameat-tests (Files): Likewise.
26066         * modules/rmdir-tests (Files): Likewise.
26067         * modules/round-tests (Files): Likewise.
26068         * modules/roundf-tests (Files): Likewise.
26069         * modules/roundl-tests (Files): Likewise.
26070         * modules/safe-alloc-tests (Files): Likewise.
26071         * modules/setenv-tests (Files): Likewise.
26072         * modules/sigaction-tests (Files): Likewise.
26073         * modules/signbit-tests (Files): Likewise.
26074         * modules/sleep-tests (Files): Likewise.
26075         * modules/snprintf-posix-tests (Files): Likewise.
26076         * modules/snprintf-tests (Files): Likewise.
26077         * modules/sprintf-posix-tests (Files): Likewise.
26078         * modules/stat-tests (Files): Likewise.
26079         * modules/stat-time-tests (Files): Likewise.
26080         * modules/strcasestr-tests (Files): Likewise.
26081         * modules/strchrnul-tests (Files): Likewise.
26082         * modules/strerror-tests (Files): Likewise.
26083         * modules/striconv-tests (Files): Likewise.
26084         * modules/striconveh-tests (Files): Likewise.
26085         * modules/striconveha-tests (Files): Likewise.
26086         * modules/strsignal-tests (Files): Likewise.
26087         * modules/strstr-tests (Files): Likewise.
26088         * modules/strtod-tests (Files): Likewise.
26089         * modules/strverscmp-tests (Files): Likewise.
26090         * modules/symlink-tests (Files): Likewise.
26091         * modules/symlinkat-tests (Files): Likewise.
26092         * modules/trunc-tests (Files): Likewise.
26093         * modules/truncf-tests (Files): Likewise.
26094         * modules/truncl-tests (Files): Likewise.
26095         * modules/uname-tests (Files): Likewise.
26096         * modules/unicase/cased-tests (Files): Likewise.
26097         * modules/unicase/ignorable-tests (Files): Likewise.
26098         * modules/unicase/locale-language-tests (Files): Likewise.
26099         * modules/unicase/tolower-tests (Files): Likewise.
26100         * modules/unicase/totitle-tests (Files): Likewise.
26101         * modules/unicase/toupper-tests (Files): Likewise.
26102         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26103         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26104         * modules/unicase/u8-casefold-tests (Files): Likewise.
26105         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26106         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26107         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26108         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26109         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26110         * modules/unicase/u8-tolower-tests (Files): Likewise.
26111         * modules/unicase/u8-totitle-tests (Files): Likewise.
26112         * modules/unicase/u8-toupper-tests (Files): Likewise.
26113         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26114         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26115         * modules/unicase/u16-casefold-tests (Files): Likewise.
26116         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26117         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26118         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26119         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26120         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26121         * modules/unicase/u16-tolower-tests (Files): Likewise.
26122         * modules/unicase/u16-totitle-tests (Files): Likewise.
26123         * modules/unicase/u16-toupper-tests (Files): Likewise.
26124         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26125         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26126         * modules/unicase/u32-casefold-tests (Files): Likewise.
26127         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26128         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26129         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26130         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26131         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26132         * modules/unicase/u32-tolower-tests (Files): Likewise.
26133         * modules/unicase/u32-totitle-tests (Files): Likewise.
26134         * modules/unicase/u32-toupper-tests (Files): Likewise.
26135         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26136         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26137         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26138         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26139         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26140         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26141         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26142         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26143         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26144         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26145         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26146         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26147         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26148         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26149         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26150         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26151         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26152         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26153         * modules/unictype/block-list-tests (Files): Likewise.
26154         * modules/unictype/block-of-tests (Files): Likewise.
26155         * modules/unictype/block-test-tests (Files): Likewise.
26156         * modules/unictype/category-C-tests (Files): Likewise.
26157         * modules/unictype/category-Cc-tests (Files): Likewise.
26158         * modules/unictype/category-Cf-tests (Files): Likewise.
26159         * modules/unictype/category-Cn-tests (Files): Likewise.
26160         * modules/unictype/category-Co-tests (Files): Likewise.
26161         * modules/unictype/category-Cs-tests (Files): Likewise.
26162         * modules/unictype/category-L-tests (Files): Likewise.
26163         * modules/unictype/category-Ll-tests (Files): Likewise.
26164         * modules/unictype/category-Lm-tests (Files): Likewise.
26165         * modules/unictype/category-Lo-tests (Files): Likewise.
26166         * modules/unictype/category-Lt-tests (Files): Likewise.
26167         * modules/unictype/category-Lu-tests (Files): Likewise.
26168         * modules/unictype/category-M-tests (Files): Likewise.
26169         * modules/unictype/category-Mc-tests (Files): Likewise.
26170         * modules/unictype/category-Me-tests (Files): Likewise.
26171         * modules/unictype/category-Mn-tests (Files): Likewise.
26172         * modules/unictype/category-N-tests (Files): Likewise.
26173         * modules/unictype/category-Nd-tests (Files): Likewise.
26174         * modules/unictype/category-Nl-tests (Files): Likewise.
26175         * modules/unictype/category-No-tests (Files): Likewise.
26176         * modules/unictype/category-P-tests (Files): Likewise.
26177         * modules/unictype/category-Pc-tests (Files): Likewise.
26178         * modules/unictype/category-Pd-tests (Files): Likewise.
26179         * modules/unictype/category-Pe-tests (Files): Likewise.
26180         * modules/unictype/category-Pf-tests (Files): Likewise.
26181         * modules/unictype/category-Pi-tests (Files): Likewise.
26182         * modules/unictype/category-Po-tests (Files): Likewise.
26183         * modules/unictype/category-Ps-tests (Files): Likewise.
26184         * modules/unictype/category-S-tests (Files): Likewise.
26185         * modules/unictype/category-Sc-tests (Files): Likewise.
26186         * modules/unictype/category-Sk-tests (Files): Likewise.
26187         * modules/unictype/category-Sm-tests (Files): Likewise.
26188         * modules/unictype/category-So-tests (Files): Likewise.
26189         * modules/unictype/category-Z-tests (Files): Likewise.
26190         * modules/unictype/category-Zl-tests (Files): Likewise.
26191         * modules/unictype/category-Zp-tests (Files): Likewise.
26192         * modules/unictype/category-Zs-tests (Files): Likewise.
26193         * modules/unictype/category-and-not-tests (Files): Likewise.
26194         * modules/unictype/category-and-tests (Files): Likewise.
26195         * modules/unictype/category-byname-tests (Files): Likewise.
26196         * modules/unictype/category-name-tests (Files): Likewise.
26197         * modules/unictype/category-none-tests (Files): Likewise.
26198         * modules/unictype/category-of-tests (Files): Likewise.
26199         * modules/unictype/category-or-tests (Files): Likewise.
26200         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26201         * modules/unictype/combining-class-tests (Files): Likewise.
26202         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26203         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26204         * modules/unictype/ctype-blank-tests (Files): Likewise.
26205         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26206         * modules/unictype/ctype-digit-tests (Files): Likewise.
26207         * modules/unictype/ctype-graph-tests (Files): Likewise.
26208         * modules/unictype/ctype-lower-tests (Files): Likewise.
26209         * modules/unictype/ctype-print-tests (Files): Likewise.
26210         * modules/unictype/ctype-punct-tests (Files): Likewise.
26211         * modules/unictype/ctype-space-tests (Files): Likewise.
26212         * modules/unictype/ctype-upper-tests (Files): Likewise.
26213         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26214         * modules/unictype/decimal-digit-tests (Files): Likewise.
26215         * modules/unictype/digit-tests (Files): Likewise.
26216         * modules/unictype/mirror-tests (Files): Likewise.
26217         * modules/unictype/numeric-tests (Files): Likewise.
26218         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26219         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26220         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26221         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26222         Likewise.
26223         * modules/unictype/property-bidi-block-separator-tests (Files):
26224         Likewise.
26225         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26226         Likewise.
26227         * modules/unictype/property-bidi-common-separator-tests (Files):
26228         Likewise.
26229         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26230         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26231         Likewise.
26232         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26233         Likewise.
26234         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26235         Likewise.
26236         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26237         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26238         Likewise.
26239         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26240         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26241         Likewise.
26242         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26243         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26244         * modules/unictype/property-bidi-segment-separator-tests (Files):
26245         Likewise.
26246         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26247         * modules/unictype/property-byname-tests (Files): Likewise.
26248         * modules/unictype/property-combining-tests (Files): Likewise.
26249         * modules/unictype/property-composite-tests (Files): Likewise.
26250         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26251         * modules/unictype/property-dash-tests (Files): Likewise.
26252         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26253         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26254         Likewise.
26255         * modules/unictype/property-deprecated-tests (Files): Likewise.
26256         * modules/unictype/property-diacritic-tests (Files): Likewise.
26257         * modules/unictype/property-extender-tests (Files): Likewise.
26258         * modules/unictype/property-format-control-tests (Files): Likewise.
26259         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26260         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26261         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26262         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26263         * modules/unictype/property-hyphen-tests (Files): Likewise.
26264         * modules/unictype/property-id-continue-tests (Files): Likewise.
26265         * modules/unictype/property-id-start-tests (Files): Likewise.
26266         * modules/unictype/property-ideographic-tests (Files): Likewise.
26267         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26268         * modules/unictype/property-ids-trinary-operator-tests (Files):
26269         Likewise.
26270         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26271         * modules/unictype/property-iso-control-tests (Files): Likewise.
26272         * modules/unictype/property-join-control-tests (Files): Likewise.
26273         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26274         * modules/unictype/property-line-separator-tests (Files): Likewise.
26275         * modules/unictype/property-logical-order-exception-tests (Files):
26276         Likewise.
26277         * modules/unictype/property-lowercase-tests (Files): Likewise.
26278         * modules/unictype/property-math-tests (Files): Likewise.
26279         * modules/unictype/property-non-break-tests (Files): Likewise.
26280         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26281         * modules/unictype/property-numeric-tests (Files): Likewise.
26282         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26283         * modules/unictype/property-other-default-ignorable-code-point-tests
26284         (Files): Likewise.
26285         * modules/unictype/property-other-grapheme-extend-tests (Files):
26286         Likewise.
26287         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26288         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26289         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26290         * modules/unictype/property-other-math-tests (Files): Likewise.
26291         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26292         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26293         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26294         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26295         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26296         * modules/unictype/property-private-use-tests (Files): Likewise.
26297         * modules/unictype/property-punctuation-tests (Files): Likewise.
26298         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26299         * modules/unictype/property-radical-tests (Files): Likewise.
26300         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26301         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26302         * modules/unictype/property-space-tests (Files): Likewise.
26303         * modules/unictype/property-terminal-punctuation-tests (Files):
26304         Likewise.
26305         * modules/unictype/property-test-tests (Files): Likewise.
26306         * modules/unictype/property-titlecase-tests (Files): Likewise.
26307         * modules/unictype/property-unassigned-code-value-tests (Files):
26308         Likewise.
26309         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26310         * modules/unictype/property-uppercase-tests (Files): Likewise.
26311         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26312         * modules/unictype/property-white-space-tests (Files): Likewise.
26313         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26314         * modules/unictype/property-xid-start-tests (Files): Likewise.
26315         * modules/unictype/property-zero-width-tests (Files): Likewise.
26316         * modules/unictype/scripts-tests (Files): Likewise.
26317         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26318         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26319         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26320         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26321         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26322         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26323         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26324         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26325         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26326         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26327         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26328         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26329         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26330         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26331         * modules/uninorm/composition-tests (Files): Likewise.
26332         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26333         * modules/uninorm/decomposition-tests (Files): Likewise.
26334         * modules/uninorm/filter-tests (Files): Likewise.
26335         * modules/uninorm/nfc-tests (Files): Likewise.
26336         * modules/uninorm/nfd-tests (Files): Likewise.
26337         * modules/uninorm/nfkc-tests (Files): Likewise.
26338         * modules/uninorm/nfkd-tests (Files): Likewise.
26339         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26340         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26341         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26342         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26343         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26344         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26345         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26346         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26347         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26348         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26349         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26350         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26351         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26352         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26353         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26354         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26355         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26356         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26357         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26358         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26359         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26360         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26361         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26362         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26363         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26364         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26365         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26366         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26367         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26368         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26369         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26370         * modules/uniwidth/u8-width-tests (Files): Likewise.
26371         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26372         * modules/uniwidth/u16-width-tests (Files): Likewise.
26373         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26374         * modules/uniwidth/u32-width-tests (Files): Likewise.
26375         * modules/uniwidth/width-tests (Files): Likewise.
26376         * modules/unlink-tests (Files): Likewise.
26377         * modules/unsetenv-tests (Files): Likewise.
26378         * modules/usleep-tests (Files): Likewise.
26379         * modules/utimens-tests (Files): Likewise.
26380         * modules/utimensat-tests (Files): Likewise.
26381         * modules/vasnprintf-posix-tests (Files): Likewise.
26382         * modules/vasnprintf-tests (Files): Likewise.
26383         * modules/vasprintf-posix-tests (Files): Likewise.
26384         * modules/vasprintf-tests (Files): Likewise.
26385         * modules/vdprintf-posix-tests (Files): Likewise.
26386         * modules/vfprintf-posix-tests (Files): Likewise.
26387         * modules/vprintf-posix-tests (Files): Likewise.
26388         * modules/vsnprintf-posix-tests (Files): Likewise.
26389         * modules/vsnprintf-tests (Files): Likewise.
26390         * modules/vsprintf-posix-tests (Files): Likewise.
26391         * modules/wcrtomb-tests (Files): Likewise.
26392         * modules/wcsnrtombs-tests (Files): Likewise.
26393         * modules/wcsrtombs-tests (Files): Likewise.
26394         * modules/wctype-tests (Files): Likewise.
26395         * modules/wcwidth-tests (Files): Likewise.
26396         * modules/xmemdup0-tests (Files): Likewise.
26397         * modules/xprintf-posix-tests (Files): Likewise.
26398         * modules/xvasprintf-tests (Files): Likewise.
26399
26400 2009-12-24  Eric Blake  <ebb9@byu.net>
26401
26402         test-nanosleep: fix typo
26403         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26404         patch.
26405         Reported by Bruno Haible.
26406
26407 2009-12-24  Bruno Haible  <bruno@clisp.org>
26408
26409         Reduce namespace pollution on glibc systems.
26410         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26411         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26412         systems.
26413         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26414         <getopt.h> on glibc systems.
26415         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26416         systems.
26417         * lib/fcntl.c: Include <unistd.h> here instead.
26418
26419 2009-12-24  Bruno Haible  <bruno@clisp.org>
26420
26421         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26422
26423 2009-12-24  Eric Blake  <ebb9@byu.net>
26424
26425         tests: add signature checks
26426         * tests/signature.h (SIGNATURE_CHECK): New file.
26427         * modules/atexit-tests (Files): Use it.
26428         * modules/btowc-tests (Files): Likewise.
26429         * modules/canonicalize-lgpl-tests (Files): Likewise.
26430         * modules/ceilf-tests (Files): Likewise.
26431         * modules/ceill-tests (Files): Likewise.
26432         * modules/chown-tests (Files): Likewise.
26433         * modules/dprintf-posix-tests (Files): Likewise.
26434         * modules/dup2-tests (Files): Likewise.
26435         * modules/dup3-tests (Files): Likewise.
26436         * modules/duplocale-tests (Files): Likewise.
26437         * modules/fchdir-tests (Files): Likewise.
26438         * modules/fcntl-tests (Files): Likewise.
26439         * modules/fdopendir-tests (Files): Likewise.
26440         * modules/fflush-tests (Files): Likewise.
26441         * modules/flock-tests (Files): Likewise.
26442         * modules/floorf-tests (Files): Likewise.
26443         * modules/floorl-tests (Files): Likewise.
26444         * modules/fnmatch-tests (Files): Likewise.
26445         * modules/fopen-tests (Files): Likewise.
26446         * modules/fprintf-posix-tests (Files): Likewise.
26447         * modules/freopen-tests (Files): Likewise.
26448         * modules/frexp-nolibm-tests (Files): Likewise.
26449         * modules/frexp-tests (Files): Likewise.
26450         * modules/frexpl-nolibm-tests (Files): Likewise.
26451         * modules/frexpl-tests (Files): Likewise.
26452         * modules/fseek-tests (Files): Likewise.
26453         * modules/fseeko-tests (Files): Likewise.
26454         * modules/fsync-tests (Files): Likewise.
26455         * modules/ftell-tests (Files): Likewise.
26456         * modules/ftello-tests (Files): Likewise.
26457         * modules/futimens-tests (Files): Likewise.
26458         * modules/getaddrinfo-tests (Files): Likewise.
26459         * modules/getcwd-tests (Files): Likewise.
26460         * modules/getdelim-tests (Files): Likewise.
26461         * modules/getdtablesize-tests (Files): Likewise.
26462         * modules/getgroups-tests (Files): Likewise.
26463         * modules/gethostname-tests (Files): Likewise.
26464         * modules/getline-tests (Files): Likewise.
26465         * modules/getopt-posix-tests (Files): Likewise.
26466         * modules/gettimeofday-tests (Files): Likewise.
26467         * modules/glob-tests (Files): Likewise.
26468         * modules/iconv-tests (Files): Likewise.
26469         * modules/inet_ntop-tests (Files): Likewise.
26470         * modules/inet_pton-tests (Files): Likewise.
26471         * modules/isblank-tests (Files): Likewise.
26472         * modules/lchown-tests (Files): Likewise.
26473         * modules/ldexpl-tests (Files): Likewise.
26474         * modules/link-tests (Files): Likewise.
26475         * modules/linkat-tests (Files): Likewise.
26476         * modules/lseek-tests (Files): Likewise.
26477         * modules/lstat-tests (Files): Likewise.
26478         * modules/mbrtowc-tests (Files): Likewise.
26479         * modules/mbsinit-tests (Files): Likewise.
26480         * modules/mbsnrtowcs-tests (Files): Likewise.
26481         * modules/mbsrtowcs-tests (Files): Likewise.
26482         * modules/memchr-tests (Files): Likewise.
26483         * modules/memcmp-tests (Files): Likewise.
26484         * modules/memmem-tests (Files): Likewise.
26485         * modules/memrchr-tests (Files): Likewise.
26486         * modules/mkdir-tests (Files): Likewise.
26487         * modules/mkfifo-tests (Files): Likewise.
26488         * modules/mkfifoat-tests (Files): Likewise.
26489         * modules/mknod-tests (Files): Likewise.
26490         * modules/nanosleep-tests (Files): Likewise.
26491         * modules/nl_langinfo-tests (Files): Likewise.
26492         * modules/obstack-printf-tests (Files): Likewise.
26493         * modules/open-tests (Files): Likewise.
26494         * modules/openat-tests (Files): Likewise.
26495         * modules/perror-tests (Files): Likewise.
26496         * modules/pipe2-tests (Files): Likewise.
26497         * modules/poll-tests (Files): Likewise.
26498         * modules/popen-tests (Files): Likewise.
26499         * modules/posix_spawn-tests (Files): Likewise.
26500         * modules/posix_spawnp-tests (Files): Likewise.
26501         * modules/pread-tests (Files): Likewise.
26502         * modules/printf-posix-tests (Files): Likewise.
26503         * modules/pty-tests (Files): Likewise.
26504         * modules/random_r-tests (Files): Likewise.
26505         * modules/rawmemchr-tests (Files): Likewise.
26506         * modules/readlink-tests (Files): Likewise.
26507         * modules/remove-tests (Files): Likewise.
26508         * modules/rename-tests (Files): Likewise.
26509         * modules/renameat-tests (Files): Likewise.
26510         * modules/rmdir-tests (Files): Likewise.
26511         * modules/round-tests (Files): Likewise.
26512         * modules/roundf-tests (Files): Likewise.
26513         * modules/roundl-tests (Files): Likewise.
26514         * modules/select-tests (Files): Likewise.
26515         * modules/setenv-tests (Files): Likewise.
26516         * modules/sigaction-tests (Files): Likewise.
26517         * modules/sleep-tests (Files): Likewise.
26518         * modules/snprintf-posix-tests (Files): Likewise.
26519         * modules/snprintf-tests (Files): Likewise.
26520         * modules/sprintf-posix-tests (Files): Likewise.
26521         * modules/stat-tests (Files): Likewise.
26522         * modules/strcasestr-tests (Files): Likewise.
26523         * modules/strchrnul-tests (Files): Likewise.
26524         * modules/strerror-tests (Files): Likewise.
26525         * modules/strsignal-tests (Files): Likewise.
26526         * modules/strstr-tests (Files): Likewise.
26527         * modules/strtod-tests (Files): Likewise.
26528         * modules/strverscmp-tests (Files): Likewise.
26529         * modules/symlink-tests (Files): Likewise.
26530         * modules/symlinkat-tests (Files): Likewise.
26531         * modules/times-tests (Files): Likewise.
26532         * modules/trunc-tests (Files): Likewise.
26533         * modules/truncf-tests (Files): Likewise.
26534         * modules/truncl-tests (Files): Likewise.
26535         * modules/tsearch-tests (Files): Likewise.
26536         * modules/uname-tests (Files): Likewise.
26537         * modules/unlink-tests (Files): Likewise.
26538         * modules/unsetenv-tests (Files): Likewise.
26539         * modules/usleep-tests (Files): Likewise.
26540         * modules/utimensat-tests (Files): Likewise.
26541         * modules/vasprintf-tests (Files): Likewise.
26542         * modules/vdprintf-posix-tests (Files): Likewise.
26543         * modules/vfprintf-posix-tests (Files): Likewise.
26544         * modules/vprintf-posix-tests (Files): Likewise.
26545         * modules/vsnprintf-posix-tests (Files): Likewise.
26546         * modules/vsnprintf-tests (Files): Likewise.
26547         * modules/vsprintf-posix-tests (Files): Likewise.
26548         * modules/wcrtomb-tests (Files): Likewise.
26549         * modules/wcsnrtombs-tests (Files): Likewise.
26550         * modules/wcsrtombs-tests (Files): Likewise.
26551         * modules/wcwidth-tests (Files): Likewise.
26552         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26553         * tests/test-isinf.c (isinf): Likewise.
26554         * tests/test-isnan.c (isnan): Likewise.
26555         * tests/test-signbit.c (signbit): Likewise.
26556         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26557         declaration, either as macro or with correct signature.
26558         (select): Ensure function under test is declared with correct
26559         signature in correct header.
26560         * tests/test-atexit.c (atexit): Likewise.
26561         * tests/test-btowc.c (btowc): Likewise.
26562         * tests/test-canonicalize-lgpl.c (realpath)
26563         (canonicalize_file_name): Likewise.
26564         * tests/test-ceilf1.c (ceilf): Likewise.
26565         * tests/test-ceill.c (ceill): Likewise.
26566         * tests/test-chown.c (chown): Likewise.
26567         * tests/test-dprintf-posix.c (dprintf): Likewise.
26568         * tests/test-dup2.c (dup2): Likewise.
26569         * tests/test-dup3.c (dup3): Likewise.
26570         * tests/test-duplocale.c (duplocale): Likewise.
26571         * tests/test-fchdir.c (fchdir): Likewise.
26572         * tests/test-fchownat.c (fchownat): Likewise.
26573         * tests/test-fcntl.c (fcntl): Likewise.
26574         * tests/test-fdopendir.c (fdopendir): Likewise.
26575         * tests/test-fflush.c (fflush): Likewise.
26576         * tests/test-flock.c (flock): Likewise.
26577         * tests/test-floorf1.c (floorf): Likewise.
26578         * tests/test-floorl.c (floorl): Likewise.
26579         * tests/test-fnmatch.c (fnmatch): Likewise.
26580         * tests/test-fopen.c (fopen): Likewise.
26581         * tests/test-fprintf-posix.c (fprintf): Likewise.
26582         * tests/test-freopen.c (freopen): Likewise.
26583         * tests/test-frexp.c (frexp): Likewise.
26584         * tests/test-frexpl.c (frexpl): Likewise.
26585         * tests/test-fseek.c (fseek): Likewise.
26586         * tests/test-fseeko.c (fseeko): Likewise.
26587         * tests/test-fstatat.c (fstatat): Likewise.
26588         * tests/test-fsync.c (fsync): Likewise.
26589         * tests/test-ftell.c (ftell): Likewise.
26590         * tests/test-ftello.c (ftello): Likewise.
26591         * tests/test-futimens.c (futimens): Likewise.
26592         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26593         (gai_strerror): Likewise.
26594         * tests/test-getcwd.c (getcwd): Likewise.
26595         * tests/test-getdelim.c (getdelim): Likewise.
26596         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26597         * tests/test-getgroups.c (getgroups): Likewise.
26598         * tests/test-gethostname.c (gethostname): Likewise.
26599         * tests/test-getline.c (getline): Likewise.
26600         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26601         Likewise.
26602         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26603         * tests/test-glob.c (glob, globfree): Likewise.
26604         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26605         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26606         * tests/test-inet_pton.c (inet_pton): Likewise.
26607         * tests/test-isblank.c (isblank): Likewise.
26608         * tests/test-lchown.c (lchown): Likewise.
26609         * tests/test-ldexpl.c (ldexpl): Likewise.
26610         * tests/test-link.c (link): Likewise.
26611         * tests/test-linkat.c (linkat): Likewise.
26612         * tests/test-lseek.c (lseek): Likewise.
26613         * tests/test-lstat.c (lstat): Likewise.
26614         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26615         * tests/test-mbsinit.c (mbsinit): Likewise.
26616         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26617         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26618         * tests/test-memchr.c (memchr): Likewise.
26619         * tests/test-memcmp.c (memcmp): Likewise.
26620         * tests/test-memmem.c (memmem): Likewise.
26621         * tests/test-memrchr.c (memrchr): Likewise.
26622         * tests/test-mkdir.c (mkdir): Likewise.
26623         * tests/test-mkdirat.c (mkdirat): Likewise.
26624         * tests/test-mkfifo.c (mkfifo): Likewise.
26625         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26626         * tests/test-mknod.c (mknod): Likewise.
26627         * tests/test-nanosleep.c (nanosleep): Likewise.
26628         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26629         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26630         Likewise.
26631         * tests/test-open.c (open): Likewise.
26632         * tests/test-openat.c (openat): Likewise.
26633         * tests/test-perror.c (perror): Likewise.
26634         * tests/test-pipe2.c (pipe2): Likewise.
26635         * tests/test-poll.c (poll): Likewise.
26636         * tests/test-popen.c (popen, pclose): Likewise.
26637         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26638         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26639         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26640         (posix_spawn_file_actions_destroy)
26641         (posix_spawn_file_actions_addclose)
26642         (posix_spawn_file_actions_addopen)
26643         (posix_spawn_file_actions_adddup2): Likewise.
26644         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26645         * tests/test-pread.c (pread): Likewise.
26646         * tests/test-printf-posix.c (printf): Likewise.
26647         * tests/test-pty.c (openpty, forkpty): Likewise.
26648         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26649         (random_r): Likewise.
26650         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26651         * tests/test-readlink.c (readlink): Likewise.
26652         * tests/test-remove.c (remove): Likewise.
26653         * tests/test-rename.c (rename): Likewise.
26654         * tests/test-renameat.c (renameat): Likewise.
26655         * tests/test-rmdir.c (rmdir): Likewise.
26656         * tests/test-round1.c (round): Likewise.
26657         * tests/test-roundf1.c (roundf): Likewise.
26658         * tests/test-roundl.c (roundl): Likewise.
26659         * tests/test-setenv.c (setenv): Likewise.
26660         * tests/test-sigaction.c (sigaction): Likewise.
26661         * tests/test-sleep.c (sleep): Likewise.
26662         * tests/test-snprintf.c (snprintf): Likewise.
26663         * tests/test-sprintf-posix.c (sprintf): Likewise.
26664         * tests/test-stat.c (stat): Likewise.
26665         * tests/test-stpncpy.c (stpncpy): Likewise.
26666         * tests/test-strcasestr.c (strcasestr): Likewise.
26667         * tests/test-strchrnul.c (strchrnul): Likewise.
26668         * tests/test-strerror.c (strerror): Likewise.
26669         * tests/test-strsignal.c (strsignal): Likewise.
26670         * tests/test-strstr.c (strstr): Likewise.
26671         * tests/test-strtod.c (strtod): Likewise.
26672         * tests/test-strverscmp.c (strverscmp): Likewise.
26673         * tests/test-symlink.c (symlink): Likewise.
26674         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26675         * tests/test-times.c (times): Likewise.
26676         * tests/test-trunc1.c (trunc): Likewise.
26677         * tests/test-truncf1.c (truncf): Likewise.
26678         * tests/test-truncl.c (truncl): Likewise.
26679         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26680         Likewise.
26681         * tests/test-uname.c (uname): Likewise.
26682         * tests/test-unlink.c (unlink): Likewise.
26683         * tests/test-unlinkat.c (unlinkat): Likewise.
26684         * tests/test-unsetenv.c (unsetenv): Likewise.
26685         * tests/test-usleep.c (usleep): Likewise.
26686         * tests/test-utimensat.c (utimensat): Likewise.
26687         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26688         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26689         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26690         * tests/test-vprintf-posix.c (vprintf): Likewise.
26691         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26692         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26693         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26694         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26695         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26696         * tests/test-wcwidth.c (wcwidth): Likewise.
26697
26698         build: pull in conditional headers during GNULIB_POSIXCHECK
26699         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26700         definitions from any conditionally-included headers.
26701         * lib/stdlib.in.h (includes): Likewise.
26702         * lib/unistd.in.h (includes): Likewise.
26703
26704 2009-12-24  Bruno Haible  <bruno@clisp.org>
26705
26706         * tests/test-argv-iter.c: Include header file being tested immediately
26707         after config.h.
26708         * tests/test-base64.c: Likewise.
26709         * tests/test-flock.c: Likewise.
26710         * tests/test-fsync.c: Likewise.
26711         * tests/test-getdate.c: Likewise.
26712         * tests/test-getndelim2.c: Likewise.
26713         * tests/test-isfinite.c: Likewise.
26714         * tests/test-isinf.c: Likewise.
26715         * tests/test-strerror.c: Likewise.
26716         * tests/test-strsignal.c: Likewise.
26717
26718 2009-12-23  Eric Blake  <ebb9@byu.net>
26719
26720         unistd: work around cygwin bug
26721         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26722         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26723         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26724
26725 2009-12-23  Bruno Haible  <bruno@clisp.org>
26726
26727         localename: More tests.
26728         * tests/test-localename.c (SIZEOF): New macro.
26729         (categories): New variable.
26730         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26731         test_locale_name_default): Add test w.r.t. thread locale.
26732         (test_locale_name_thread): New function.
26733         (main): Invoke it.
26734
26735         localename: Make aware of thread locale.
26736         * lib/localename.h (gl_locale_name_thread): New declaration.
26737         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26738         behaviour with respect to thread locale.
26739         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26740         <langinfo.h>, glthread/lock.h.
26741         (SIZE_BITS): New macro.
26742         (string_hash): New function.
26743         (struct hash_node): New type.
26744         (HASH_TABLE_SIZE): New macro.
26745         (struniq_hash_table, struniq_lock): New variables.
26746         (struniq): New function.
26747         (gl_locale_name_thread): New function.
26748         (gl_locale_name): Invoke it.
26749         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26750         * modules/localename (Depends-on): Add lock.
26751         Reported by Mike Gran <spk121@yahoo.com>.
26752
26753 2009-12-23  Eric Blake  <ebb9@byu.net>
26754
26755         va-args: new module
26756         * modules/va-args: New file.
26757         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26758         * MODULES.html.sh (Core language properties): Mention it.
26759
26760         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26761         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26762         named alias for __attribute__((__unused__)).
26763         * lib/chown.c: Update client.
26764         * lib/fchmodat.c: Likewise.
26765         * lib/fts.c: Likewise.
26766         * lib/getdate.y: Likewise.
26767         * lib/getgroups.c: Likewise.
26768         * lib/getopt.c: Likewise.
26769         * lib/getugroups.c: Likewise.
26770         * lib/mkdir.c: Likewise.
26771         * lib/mkfifo.c: Likewise.
26772         * lib/mkfifoat.c: Likewise.
26773         * lib/mknod.c: Likewise.
26774         * lib/mknodat.c: Likewise.
26775         * lib/readlink.c: Likewise.
26776         * lib/se-context.in.h: Likewise.
26777         * lib/se-selinux.in.h: Likewise.
26778         * lib/sockets.c: Likewise.
26779         * lib/symlink.c: Likewise.
26780         * lib/symlinkat.c: Likewise.
26781         * lib/unicodeio.c: Likewise.
26782         * lib/unistr.h: Likewise.
26783         * tests/test-areadlink.c: Likewise.
26784         * tests/test-areadlinkat.c: Likewise.
26785         * tests/test-filenamecat.c: Likewise.
26786         * tests/test-fseeko.c: Likewise.
26787         * tests/test-ftello.c: Likewise.
26788         * tests/test-getdate.c: Likewise.
26789         * tests/test-getgroups.c: Likewise.
26790         * tests/test-gethostname.c: Likewise.
26791         * tests/test-quotearg.c: Likewise.
26792         * tests/test-version-etc.c: Likewise.
26793         * tests/test-xalloc-die.c: Likewise.
26794         * tests/test-xfprintf-posix.c: Likewise.
26795         * tests/test-xprintf-posix.c: Likewise.
26796         * tests/test-xvasprintf.c: Likewise.
26797
26798         tests: avoid compiler warnings
26799         * tests/test-fcntl.c (main): Delete unused parameters.
26800         * tests/test-freopen-safer.c (main): Likewise.
26801         * tests/test-xalloc-die.c (main): Mark unused parameters.
26802         * tests/test-fseeko.c (main): Likewise.
26803         * tests/test-ftello.c (main): Likewise.
26804         * tests/test-nanosleep.c (main): Avoid declaration warning.
26805         * tests/test-sleep.c (main): Likewise.
26806         * tests/test-unsetenv.c (main): Silence warning about string
26807         literal.
26808         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26809
26810 2009-12-23  Bruno Haible  <bruno@clisp.org>
26811
26812         * tests/test-localename.c (test_locale_name): New function, extracted
26813         from main. Also test mixed situations.
26814         (test_locale_name_posix, test_locale_name_environ,
26815         test_locale_name_default): New functions.
26816         (main): Invoke them all.
26817         * modules/localename-tests (configure.ac): Test for newlocale.
26818
26819 2009-12-23  Bruno Haible  <bruno@clisp.org>
26820
26821         unistd: Ensure getcwd gets declared before being overridden.
26822         * lib/unistd.in.h: Conditionally include <io.h>.
26823
26824 2009-12-22  Bruno Haible  <bruno@clisp.org>
26825
26826         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26827         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26828         (gl_WCHAR_H): Invoke it.
26829         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26830         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26831         Reported by Karl Berry <karl@freefriends.org>.
26832
26833 2009-12-22  Eric Blake  <ebb9@byu.net>
26834
26835         math, unistd: avoid redundant includes
26836         * lib/math.in.h (isnan): No need to re-include <math.h>.
26837         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26838
26839         getsubopt: work around cygwin bug
26840         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26841         avoid conflicting with system getsubopt.
26842         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26843         bug.
26844
26845         getopt: synchronize from glibc
26846         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26847         parameter order.  Adjust all callers.
26848         (_getopt_internal_r, main): Adjust quoting in error messages.
26849         Drop considerations for outdated POSIX 1003.2 error message.
26850         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26851         callers.
26852         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26853
26854         test-getopt: test stderr behavior
26855         * modules/getopt-posix-tests (Depends-on): Add dup2.
26856         * tests/test-getopt.c (ASSERT): Avoid stderr.
26857         (main): Move stderr to a temporary file.
26858         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26859         Instead, add parameter to inform caller if output occurred.
26860         (test_getopt): Adjust all existing tests to expect silence, and
26861         add new tests of leading ":".
26862         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26863         glibc shortcomings with leading "-:" or "+:" in optstring.
26864         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26865         Likewise.
26866         * doc/posix-functions/getopt.texi (getopt): Likewise.
26867
26868         test-getopt: enhance test
26869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26870         supports optind=0.
26871         * tests/test-getopt.c (OPTIND_MIN): Move...
26872         * tests/test-getopt.h (OPTIND_MIN): ...here.
26873         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26874         Require that optind=0 works, since modern BSD supports it in
26875         addition to optreset, and since coreutils expects it.
26876         (test_getopt_long_only): New test.
26877         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26878         glibc shortcomings with 'W;', and enforcement of optind=0.
26879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26880         Likewise.
26881
26882 2009-12-21  Bruno Haible  <bruno@clisp.org>
26883
26884         localename: Improvements for MacOS X and Cygwin.
26885         * lib/localename.h (gl_locale_name_environ): New declaration.
26886         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26887         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26888         (gl_locale_name_posix): Invoke it.
26889         (gl_locale_name_default): Add comments. Use Windows native API also on
26890         Cygwin.
26891
26892 2009-12-21  Bruno Haible  <bruno@clisp.org>
26893
26894         Update list of Win32 locale ids.
26895         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26896         (LANG_SAMI): Renamed from LANG_SAAMI.
26897         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26898         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26899         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26900         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26901         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26902         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26903         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26904         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26905         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26906         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26907         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26908         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26909         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26910         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26911         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26912         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26913         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26914         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26915         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26916         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26917         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26918         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26919         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26920         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26921         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26922         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26923         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26924         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26925         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26926         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26927         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26928         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26929         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26930         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26931         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26932         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26933         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26934         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26935         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26936         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26937         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26938         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26939         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26940         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26941         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26942         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26943         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26944         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26945         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26946         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26947         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26948         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26949         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26950         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26951         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26952         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26953         Add more languages and countries for Sami, Sorbian. Add more countries
26954         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26955         for Pashto. Change country for Syriac, Tswana.
26956
26957 2009-12-21  Eric Blake  <ebb9@byu.net>
26958
26959         test-utimens: avoid spurious failure
26960         * tests/test-chown.h (nap): Factor...
26961         * tests/nap.h: ...into new file.
26962         * tests/test-lchown.h (nap): Avoid duplication.
26963         * tests/test-utimens-common.h (nap): Use shared implementation,
26964         necessary on file systems with 1-second resolution.
26965         * modules/chown-tests (Files): Include new file.
26966         * modules/fdutimensat-tests (Files): Likewise.
26967         * modules/futimens-tests (Files): Likewise.
26968         * modules/lchown-tests (Files): Likewise.
26969         * modules/openat-tests (Files): Likewise.
26970         * modules/utimens-tests (Files): Likewise.
26971         * modules/utimensat-tests (Files): Likewise.
26972
26973 2009-12-19  Eric Blake  <ebb9@byu.net>
26974
26975         futimens, utimensat: work around Linux bug
26976         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26977         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26978         * lib/utimensat.c (rpl_utimensat): Work around it.
26979         * lib/futimens.c (rpl_futimens): Adjust comment.
26980
26981         utimens: work around Linux ctime bug
26982         * lib/utimens.c (detect_ctime_bug): New helper function.
26983         (update_timespec): Differentiate between workaround needed for
26984         this bug vs. what is needed for systems that lack utimensat.
26985         (fdutimens, lutimens): Work around bug.
26986
26987         utimens: check for ctime update
26988         * tests/test-utimens-common.h (check_ctime): Define.
26989         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26990         * tests/test-futimens.h (test_futimens): Likewise.
26991         * tests/test-lutimens.h (test_lutimens): Likewise.
26992         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26993         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26994
26995 2009-12-19  Bruno Haible  <bruno@clisp.org>
26996
26997         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26998         * tests/test-dprintf-posix2.sh: New file.
26999         * tests/test-dprintf-posix2.c: New file.
27000         * modules/dprintf-posix-tests (Files): Add them.
27001         (configure.ac): Check for getrlimit and setrlimit.
27002         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27003
27004 2009-12-19  Bruno Haible  <bruno@clisp.org>
27005
27006         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27007         * tests/test-fprintf-posix3.sh: New file.
27008         * tests/test-fprintf-posix3.c: New file.
27009         * modules/fprintf-posix-tests (Files): Add them.
27010         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27011
27012 2009-12-19  Eric Blake  <ebb9@byu.net>
27013
27014         dirfd: fix prototype
27015         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27016         * lib/dirfd.c (dirfd): Likewise.
27017
27018         canonicalize: reduce memory usage
27019         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27020         allocation to size.
27021         Reported by Solar Designer <solar@openwall.com>.
27022
27023 2009-12-19  Bruno Haible  <bruno@clisp.org>
27024
27025         New module attribute 'Applicability'.
27026         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27027         * gnulib-tool: New option --extract-applicability.
27028         (func_usage): Document it.
27029         (sed_extract_prog): Recognize it.
27030         (func_get_applicability): New function.
27031         (func_import): Generalize handling of 'link-warning' module.
27032         * modules/link-warning (Applicability): New section.
27033         * modules/arg-nonnull (Applicability): New section.
27034         Repoted by Simon Josefsson <simon@josefsson.org>.
27035
27036 2009-12-19  Bruno Haible  <bruno@clisp.org>
27037
27038         fflush: tweak
27039         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27040         * lib/fseeko.c (rpl_fseeko): Likewise.
27041
27042 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27043
27044         * lib/gl_list.h: Fix typo in comment.
27045
27046 2009-12-16  Eric Blake  <ebb9@byu.net>
27047
27048         fcntl: use to simplify other modules
27049         * modules/cloexec (Depends-on): Add fcntl.
27050         * modules/fchdir (Depends-on): Likewise.
27051         * modules/fd-safer-flag (Depends-on): Likewise.
27052         * modules/unistd-safer (Depends-on): Likewise.
27053         * modules/dup3 (configure.ac): Set module indicator.
27054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27055         missing.
27056         * lib/fchdir.c (_gl_register_dup): Fix comment.
27057         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27058         * lib/dup-safer.c (dup_safer): Likewise.
27059         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27060         * lib/dup3.c (dup3): Likewise.
27061         * tests/test-fchdir.c (main): Enhance test.
27062         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27063
27064         fcntl: port portions of fcntl to mingw
27065         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27066         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27067         replacement for mingw.
27068         * modules/fcntl (Description): Update.
27069         (Depends-on): Add dup2.
27070         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27071         * modules/fcntl-h (Makefile.am): Substitute it.
27072         * lib/fcntl.in.h (fcntl): Update declaration.
27073         (F_DUPFD, F_GETFD): New macros, when needed.
27074         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27075         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27076         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27077         we now guarantee.
27078
27079         fcntl: work around cygwin bug in F_DUPFD
27080         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27081         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27082         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27083         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27084         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27085
27086         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27087         * modules/fcntl (Files): List new files.
27088         (configure.ac): Run a test.
27089         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27090         * lib/fcntl.c (rpl_fcntl): Likewise.
27091         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27092         (gl_FCNTL_H): Always replace fcntl.h.
27093         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27094         * lib/fcntl.in.h (fcntl): Declare replacement.
27095         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27096         needed, plus a witness.
27097         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27098         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27099         * tests/test-fcntl.c: New file.
27100         * modules/fcntl-tests: Likewise.
27101
27102         binary-io: avoid potential compilation warning
27103         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27104         directives.
27105
27106         fflush: avoid compilation error on NetBSD
27107         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27108         between off_t and fpos_t, since the latter is sometimes a struct.
27109         * lib/fseeko.c (rpl_fseeko): Likewise.
27110         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27111
27112 2009-12-15  Eric Blake  <ebb9@byu.net>
27113
27114         fcntl-h, stdio, sys_ioctl: fix declarations
27115         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27116         function must not take arguments.
27117         * lib/sys_ioctl.in.h (ioctl): Likewise.
27118         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27119         (open): Add a link warning.
27120
27121 2009-12-15  Jim Meyering  <meyering@redhat.com>
27122
27123         areadlink, areadlink-with-size: relax license to LGPLv2+
27124         * modules/areadlink (License): Relax to LGPLv2+.
27125         * modules/areadlink-with-size (License): Likewise.
27126
27127 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27128             Bruno Haible  <bruno@clisp.org>
27129
27130         *printf: Fix memory leak.
27131         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27132         * lib/vfprintf.c (vfprintf): Likewise.
27133         * lib/dprintf.c (dprintf): Likewise.
27134         * lib/vdprintf.c (vdprintf): Likewise.
27135
27136 2009-12-14  Eric Blake  <ebb9@byu.net>
27137
27138         accept4: adjust module dependencies
27139         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27140
27141         utimens: one more try at avoiding compiler warning
27142         * lib/utimens.c (lutimens): Lower scope of result.
27143
27144 2009-12-13  Bruno Haible  <bruno@clisp.org>
27145
27146         Move the malloc checking from module 'list' to new module 'xlist'.
27147         * modules/xlist: New file.
27148         * lib/gl_xlist.h: New file.
27149         * lib/gl_xlist.c: New file.
27150         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27151         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27152         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27153         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27154         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27155         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27156         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27157         gl_sortedlist_nx_add): New declarations.
27158         (struct gl_list_implementation): Rename and change methods accordingly.
27159         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27160         (gl_list_nx_create): Renamed from gl_list_create.
27161         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27162         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27163         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27164         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27165         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27166         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27167         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27168         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27169         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27170         gl_list_create_empty.
27171         (gl_list_nx_create): Renamed from gl_list_create.
27172         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27173         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27174         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27175         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27176         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27177         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27178         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27179         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27180         * lib/gl_array_list.c: Don't include xalloc.h.
27181         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27182         NULL upon out-of-memory.
27183         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27184         out-of-memory.
27185         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27186         Change return type to 'int'.
27187         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27188         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27189         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27190         upon out-of-memory.
27191         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27192         upon out-of-memory.
27193         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27194         upon out-of-memory.
27195         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27196         upon out-of-memory.
27197         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27198         out-of-memory.
27199         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27200         Update.
27201         (gl_array_list_implementation): Update.
27202         * lib/gl_carray_list.c: Don't include xalloc.h.
27203         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27204         Return NULL upon out-of-memory.
27205         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27206         out-of-memory.
27207         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27208         Change return type to 'int'.
27209         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27210         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27211         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27212         upon out-of-memory.
27213         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27214         upon out-of-memory.
27215         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27216         out-of-memory.
27217         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27218         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27219         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27220         Update.
27221         (gl_carray_list_implementation): Update.
27222         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27223         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27224         gl_linked_create_empty. Return NULL upon out-of-memory.
27225         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27226         out-of-memory.
27227         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27228         Change return type to 'int'. Return -1 upon out-of-memory.
27229         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27230         out-of-memory.
27231         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27232         upon out-of-memory.
27233         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27234         upon out-of-memory.
27235         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27236         NULL upon out-of-memory.
27237         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27238         upon out-of-memory.
27239         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27240         out-of-memory.
27241         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27242         Update.
27243         * lib/gl_linked_list.c: Don't include xalloc.h.
27244         (gl_linked_list_implementation): Update.
27245         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27246         (add_to_bucket): Change return type to 'int'.
27247         (gl_linkedhash_list_implementation): Update.
27248         * lib/gl_anytree_list1.h (free_subtree): New function.
27249         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27250         gl_tree_create_empty. Return NULL upon out-of-memory.
27251         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27252         Change return type to 'int'. Return -1 upon out-of-memory.
27253         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27254         out-of-memory.
27255         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27256         (gl_tree_remove_node): New function, moved here from
27257         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27258         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27259         Update.
27260         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27261         malloc, not xmalloc. Return NULL upon out-of-memory.
27262         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27263         out-of-memory.
27264         (gl_tree_remove_node_from_tree): New function, extracted from
27265         gl_tree_remove_node.
27266         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27267         upon out-of-memory.
27268         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27269         out-of-memory.
27270         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27271         upon out-of-memory.
27272         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27273         upon out-of-memory.
27274         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27275         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27276         not xmalloc. Return NULL upon out-of-memory.
27277         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27278         out-of-memory.
27279         (gl_tree_remove_node_from_tree): New function, extracted from
27280         gl_tree_remove_node.
27281         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27282         upon out-of-memory.
27283         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27284         out-of-memory.
27285         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27286         upon out-of-memory.
27287         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27288         upon out-of-memory.
27289         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27290         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27291         gl_anytree_list1.h before gl_anyavltree_list2.h.
27292         (gl_avltree_list_implementation): Update.
27293         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27294         gl_anytree_list1.h before gl_anyavltree_list2.h.
27295         (gl_rbtree_list_implementation): Update.
27296         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27297         Change return type to 'int'. Return -1 upon out-of-memory. Use
27298         __builtin_expect.
27299         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27300         (gl_avltreehash_list_implementation): Update.
27301         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27302         (gl_rbtreehash_list_implementation): Update.
27303         * modules/array-list (Depends-on): Remove xalloc.
27304         * modules/carray-list (Depends-on): Likewise.
27305         * modules/linked-list (Depends-on): Likewise.
27306         * modules/linkedhash-list (Depends-on): Likewise.
27307         * modules/avltree-list (Depends-on): Likewise.
27308         * modules/rbtree-list (Depends-on): Likewise.
27309         * modules/avltreehash-list (Depends-on): Likewise.
27310         * modules/rbtreehash-list (Depends-on): Likewise.
27311
27312         * modules/xsublist: New file.
27313         * lib/gl_xsublist.h: New file.
27314         * lib/gl_xsublist.c: New file.
27315         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27316         (gl_sublist_nx_create): New declaration.
27317         * lib/gl_sublist.c: Don't include xalloc.h.
27318         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27319         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27320         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27321         Change return type to 'int'. Return -1 upon out-of-memory.
27322         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27323         upon out-of-memory.
27324         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27325         NULL upon out-of-memory.
27326         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27327         upon out-of-memory.
27328         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27329         NULL upon out-of-memory.
27330         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27331         NULL upon out-of-memory.
27332         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27333         upon out-of-memory.
27334         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27335         (gl_sublist_list_implementation): Update.
27336         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27337         upon out-of-memory.
27338         * modules/sublist (Depends-on): Remove xalloc.
27339
27340         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27341         * tests/test-carray_list.c: Likewise.
27342         * tests/test-linked_list.c: Likewise.
27343         * tests/test-linkedhash_list.c: Likewise.
27344         * tests/test-avltree_list.c: Likewise.
27345         * tests/test-rbtree_list.c: Likewise.
27346         * tests/test-avltreehash_list.c: Likewise.
27347         * tests/test-rbtreehash_list.c: Likewise.
27348         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27349         * modules/carray-list-tests (Makefile.am): Likewise.
27350         * modules/linked-list-tests (Makefile.am): Likewise.
27351         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27352         * modules/avltree-list-tests (Makefile.am): Likewise.
27353         * modules/rbtree-list-tests (Makefile.am): Likewise.
27354         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27355         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27356
27357         * NEWS: Mention the changes.
27358
27359         * lib/clean-temp.c: Include gl_xlist.h.
27360         * modules/clean-temp (Depends-on): Add xlist.
27361
27362         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27363         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27364
27365         * tests/test-array_oset.c: Include gl_xlist.h.
27366         * modules/array-oset-tests (Depends-on): Add xlist.
27367
27368         Reported by José E. Marchesi <jemarch@gnu.org>.
27369
27370 2009-12-13  Bruno Haible  <bruno@clisp.org>
27371
27372         Move the malloc checking from module 'oset' to new module 'xoset'.
27373         * modules/xoset: New file.
27374         * lib/gl_xoset.h: New file.
27375         * lib/gl_xoset.c: New file.
27376         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27377         declarations.
27378         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27379         (struct gl_oset_implementation): Rename and change methods accordingly.
27380         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27381         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27382         'int'. Mark as __warn_unused_result__.
27383         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27384         gl_oset_create_empty.
27385         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27386         'int'.
27387         * lib/gl_array_oset.c: Don't include xalloc.h.
27388         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27389         malloc, not xmalloc.
27390         (grow): Change return type to 'int'. Don't call xalloc_die.
27391         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27392         to 'int'.
27393         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27394         'int'.
27395         (gl_array_oset_implementation): Update.
27396         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27397         gl_tree_create_empty.
27398         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27399         'int'.
27400         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27401         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27402         xmalloc.
27403         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27404         not xmalloc.
27405         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27406         xmalloc.
27407         (gl_avltree_oset_implementation): Update.
27408         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27409         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27410         xmalloc.
27411         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27412         not xmalloc.
27413         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27414         xmalloc.
27415         (gl_rbtree_oset_implementation): Update.
27416         * modules/array-oset (Depends-on): Remove xalloc.
27417         * modules/avltree-oset (Depends-on): Likewise.
27418         * modules/rbtree-oset (Depends-on): Likewise.
27419         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27420         * tests/test-avltree_oset.c: Likewise.
27421         * tests/test-rbtree_oset.c: Likewise.
27422         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27423         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27424         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27425         * NEWS: Mention the change.
27426
27427 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27428
27429         maint.mk: allow a project to override release-prep commands
27430         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27431         commands into a new rule.
27432         (release-prep): New rule.
27433         (release-prep-hook): New overridable variable.
27434
27435 2009-12-13  Bruno Haible  <bruno@clisp.org>
27436
27437         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27438
27439 2009-12-13  Jim Meyering  <meyering@redhat.com>
27440
27441         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27442         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27443
27444 2009-12-12  Bruno Haible  <bruno@clisp.org>
27445
27446         duplocale: Tweak.
27447         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27448
27449 2009-12-12  Karl Berry  <karl@gnu.org>
27450
27451         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27452
27453 2009-12-12  Bruno Haible  <bruno@clisp.org>
27454
27455         * m4/po.m4: Undo incorrect untabification.
27456
27457 2009-12-12  Bruno Haible  <bruno@clisp.org>
27458
27459         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27460         * modules/c-strtod (Depends-on): Add locale.
27461         * modules/c-strtold (Depends-on): Likewise.
27462
27463 2009-12-12  Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27466
27467 2009-12-11  Eric Blake  <ebb9@byu.net>
27468
27469         setenv: relax requirement in light of POSIX ruling
27470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27471         not NULL.
27472         * tests/test-setenv.c (main): Relax test.
27473         * tests/test-unsetenv.c (main): Likewise.
27474         * doc/posix-functions/setenv.texi (setenv): Document this.
27475         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27476
27477 2009-12-11  Bruno Haible  <bruno@clisp.org>
27478
27479         New module 'fd-safer-flag'.
27480         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27481         * lib/dup-safer.c (dup_safer_flag): Remove function.
27482         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27483         * lib/fd-safer.c (fd_safer_flag): Remove function.
27484         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27485         * modules/cloexec (configure.ac): Drop indicator macro.
27486         * modules/fd-safer-flag: New file.
27487         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27488         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27489         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27490
27491 2009-12-11  Bruno Haible  <bruno@clisp.org>
27492
27493         Tests for module 'nl_langinfo'.
27494         * modules/nl_langinfo-tests: New file.
27495         * tests/test-nl_langinfo.sh: New file.
27496         * tests/test-nl_langinfo.c: New file.
27497
27498         New module 'nl_langinfo'.
27499         * lib/nl_langinfo.c: New file.
27500         * m4/nl_langinfo.m4: New file.
27501         * modules/nl_langinfo: New file.
27502         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27503
27504 2009-12-11  Bruno Haible  <bruno@clisp.org>
27505
27506         Tests for module 'langinfo'.
27507         * modules/langinfo-tests: New file.
27508         * tests/test-langinfo.c: New file.
27509
27510         New module 'langinfo'.
27511         * lib/langinfo.in.h: New file.
27512         * m4/langinfo_h.m4: New file.
27513         * modules/langinfo: New file.
27514         * doc/posix-headers/langinfo.texi: Mention the new module.
27515
27516 2009-12-11  Bruno Haible  <bruno@clisp.org>
27517
27518         * lib/config.charset: Untabify.
27519
27520 2009-12-11  Bruno Haible  <bruno@clisp.org>
27521
27522         * modules/unistd-safer (configure.ac): Drop indicator macro.
27523
27524 2009-12-11  Bruno Haible  <bruno@clisp.org>
27525
27526         Move pipe2-safer code to its own file.
27527         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27528         * lib/pipe-safer.c (pipe2_safer): Remove function.
27529         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27530         (Makefile.am): Add it to lib_SOURCES.
27531
27532 2009-12-10  Bruno Haible  <bruno@clisp.org>
27533
27534         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27535
27536 2009-12-10  Bruno Haible  <bruno@clisp.org>
27537
27538         Declare which arguments expect non-NULL values, for GCC and clang.
27539         * build-aux/arg-nonnull.h: New file.
27540         * modules/arg-nonnull: New file.
27541         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27542         (inet_ntop, inet_pton): Use it.
27543         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27544         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27545         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27546         (open, openat): Use it.
27547         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27548         (fnmatch): Use it.
27549         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27550         (getopt, getopt_long, getopt_long_only): Use it.
27551         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27552         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27553         Use it.
27554         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27555         (iconv_open): Use it.
27556         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27557         (strtoimax, strtoumax): Use it.
27558         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27559         (duplocale): Use it.
27560         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27561         (frexp, frexpl): Use it.
27562         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27563         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27564         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27565         (tsearch, tfind, tdelete, twalk): Use it.
27566         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27568         sigpending): Use it.
27569         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27570         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27571         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27572         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27573         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27574         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27575         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27576         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27577         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27578         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27579         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27580         Use it.
27581         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27582         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27583         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27584         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27585         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27586         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27587         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27588         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27589         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27590         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27591         strtoull, unsetenv): Use it.
27592         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27593         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27594         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27595         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27596         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27597         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27598         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27599         (strcasecmp, strncasecmp): Use it.
27600         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27601         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27602         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27603         rpl_setsockopt): Use it.
27604         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27605         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27606         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27607         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27608         (gettimeofday): Use it.
27609         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27610         (times): Use it.
27611         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27612         (uname): Use it.
27613         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27614         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27615         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27616         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27617         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27618         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27619         unlinkat, write): Use it.
27620         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27621         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27622         * lib/argv-iter.h: Include arg-nonnull.h.
27623         (_ATTRIBUTE_NONNULL_): Remove macro.
27624         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27625         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27626         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27627         optimization.
27628         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27629         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27630         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27631         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27632         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27633         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27634         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27635         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27636         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27637         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27638         * modules/dirent (Depends-on): Add arg-nonnull.
27639         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27640         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27641         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27642         * modules/fnmatch (Depends-on): Add arg-nonnull.
27643         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27644         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27645         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27646         * modules/glob (Depends-on): Add arg-nonnull.
27647         (Makefile.am): Insert arg-nonnull.h into glob.h.
27648         * modules/iconv_open (Depends-on): Add arg-nonnull.
27649         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27650         * modules/inttypes (Depends-on): Add arg-nonnull.
27651         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27652         * modules/locale (Depends-on): Add arg-nonnull.
27653         (Makefile.am): Insert arg-nonnull.h into locale.h.
27654         * modules/math (Depends-on): Add arg-nonnull.
27655         (Makefile.am): Insert arg-nonnull.h into math.h.
27656         * modules/netdb (Depends-on): Add arg-nonnull.
27657         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27658         * modules/search (Depends-on): Add arg-nonnull.
27659         (Makefile.am): Insert arg-nonnull.h into search.h.
27660         * modules/signal (Depends-on): Add arg-nonnull.
27661         (Makefile.am): Insert arg-nonnull.h into signal.h.
27662         * modules/spawn (Depends-on): Add arg-nonnull.
27663         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27664         * modules/stdio (Depends-on): Add arg-nonnull.
27665         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27666         * modules/stdlib (Depends-on): Add arg-nonnull.
27667         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27668         * modules/string (Depends-on): Add arg-nonnull.
27669         (Makefile.am): Insert arg-nonnull.h into string.h.
27670         * modules/strings (Depends-on): Add arg-nonnull.
27671         (Makefile.am): Insert arg-nonnull.h into strings.h.
27672         * modules/sys_socket (Depends-on): Add arg-nonnull.
27673         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27674         * modules/sys_stat (Depends-on): Add arg-nonnull.
27675         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27676         * modules/sys_time (Depends-on): Add arg-nonnull.
27677         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27678         * modules/sys_times (Depends-on): Add arg-nonnull.
27679         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27680         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27681         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27682         * modules/time (Depends-on): Add arg-nonnull.
27683         (Makefile.am): Insert arg-nonnull.h into time.h.
27684         * modules/unistd (Depends-on): Add arg-nonnull.
27685         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27686         * modules/wchar (Depends-on): Add arg-nonnull.
27687         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27688         * modules/argv-iter (Depends-on): Add arg-nonnull.
27689         * tests/test-canonicalize.c (null_ptr): New function.
27690         (main): Use it.
27691         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27692         (main): Use it.
27693         * tests/test-memmem.c (null_ptr): New function.
27694         (main): Use it.
27695         Reported by Jim Meyering.
27696
27697 2009-12-10  Bruno Haible  <bruno@clisp.org>
27698
27699         Use spaces for indentation, not tabs.
27700         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27701         * m4/*.m4: Untabify.
27702         * build-aux/*.h: Untabify.
27703         * tests/**/*.[hc]: Untabify.
27704         * README: New section "Indent with spaces, not TABs", based on
27705         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27706         * NEWS: Mention the change.
27707
27708 2009-12-10  Bruno Haible  <bruno@clisp.org>
27709
27710         pty test: Fix link error.
27711         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27712         test_pty_LDADD.
27713
27714 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27715
27716         * modules/pty: New file.
27717         * modules/pty-tests: New file.
27718         * m4/pty.m4: New file.
27719         * tests/test-pty.c: New file.
27720         * doc/glibc-headers/pty.texi: Modified.
27721         * doc/glibc-functions/forkpty.texi: Modified.
27722         * doc/glibc-functions/openpty.texi: Modified.
27723
27724 2009-12-10  Bruno Haible  <bruno@clisp.org>
27725
27726         Avoid syntax error in C++ mode.
27727         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27728
27729 2009-12-10  Bruno Haible  <bruno@clisp.org>
27730
27731         Use sed with option -e.
27732         * gnulib-tool (func_version, func_emit_copyright_notice,
27733         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27734         option -e to sed.
27735         * modules/link-warning (Makefile.am): Likewise.
27736
27737 2009-12-10  Jim Meyering  <meyering@redhat.com>
27738
27739         mgetgroups: do not write bytes beyond end of malloc'd buffer
27740         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27741         username, we call getgroups with a one-element-shorter buffer,
27742         but still told it the length was original, max_n_groups.
27743
27744 2009-12-09  Eric Blake  <ebb9@byu.net>
27745
27746         cloexec: relax license
27747         * modules/cloexec (Maintainer): Add myself.
27748         (License): Use LGPL, not GPL.
27749
27750         link-warning: optimize generation
27751         * modules/link-warning (Makefile.am): Reduce process usage.
27752
27753 2009-12-09  Bruno Haible  <bruno@clisp.org>
27754
27755         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27756         workaround was added on 2009-11-17.
27757
27758 2009-12-09  Jim Meyering  <meyering@redhat.com>
27759             Bruno Haible  <bruno@clisp.org>
27760
27761         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27762         * modules/link-warning (Makefile.am): Make the comment-removing sed
27763         command more robust in the face of bootstrap-prepended comment lines.
27764
27765 2009-12-09  Bruno Haible  <bruno@clisp.org>
27766
27767         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27768         most one group.
27769
27770 2009-12-09  Simon Josefsson <simon@josefsson.org>
27771             Bruno Haible  <bruno@clisp.org>
27772
27773         * build-aux/link-warning.h: Add copyright notice.
27774         * modules/link-warning (Makefile.am): Generate link-warning.h from
27775         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27776         * NEWS: Mention change in link-warning module.
27777         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27778         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27779         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27780         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27781         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27782         * modules/math (Makefile.am): Add dependency to math.h.
27783         * modules/search (Makefile.am): Add dependency to search.h.
27784         * modules/signal (Makefile.am): Add dependency to signal.h.
27785         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27786         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27787         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27788         * modules/string (Makefile.am): Add dependency to string.h.
27789         * modules/strings (Makefile.am): Add dependency to strings.h.
27790         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27791         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27792         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27793         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27794         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27795         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27796         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27797         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27798         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27799
27800 2009-12-09  Bruno Haible  <bruno@clisp.org>
27801
27802         fchdir: Optimize away rpl_fstat when possible.
27803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27804         REPLACE_OPEN_DIRECTORY.
27805         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27806
27807 2009-12-09  Bruno Haible  <bruno@clisp.org>
27808
27809         * lib/fchdir.c: Update comment.
27810
27811 2009-12-09  Bruno Haible  <bruno@clisp.org>
27812
27813         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27814
27815 2009-12-08  Eric Blake  <ebb9@byu.net>
27816
27817         fchdir: avoid memory leak on re-registration.
27818         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27819
27820 2009-12-08  Jim Meyering  <meyering@redhat.com>
27821
27822         init.sh: avoid Solaris 10 /bin/sh portability problem
27823         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27824         sourced script:
27825           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27826           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27827           bar
27828         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27829         and two tests used that idiom.
27830         * tests/init.sh: Update suggested usage comments.
27831         (path_prepend_): New function, to be used in place
27832         of the --src-path=DIR option.
27833         (setup_): Move PATH-prepending code into path_prepend_.
27834         * tests/test-pread.sh: Adapt to new usage.
27835         * tests/test-xalloc-die.sh: Likewise.
27836
27837 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27838
27839         * doc/gnulib.texi (Glibc pty.h): Add.
27840         * doc/glibc-functions/forkpty.texi: Add.
27841         * doc/glibc-functions/openpty.texi: Add.
27842         Suggested by Bruno Haible.
27843
27844 2009-12-08  Eric Blake  <ebb9@byu.net>
27845
27846         fchdir: fix logic bugs
27847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27848         * tests/test-fchdir.c (main): Enhance test.
27849         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27850         is in use.
27851
27852         dup2: fix logic bugs
27853         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27854         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27855         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27856         exists.
27857         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27858
27859 2009-12-07  Eric Blake  <ebb9@byu.net>
27860
27861         unlink: fix m4 detection
27862         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27863
27864         unistd-safer: add unit test
27865         * modules/unistd-safer-tests: New file.
27866         * tests/test-dup-safer.c: Likewise.
27867         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27868         * tests/test-dup2.c (setmode): Likewise.
27869         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27870
27871         cloexec: preserve text vs. binary across dup_cloexec
27872         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27873         mode.
27874         * modules/dup2-tests (Depends-on): Add binary-io.
27875         * modules/cloexec-tests (Depends-on): Likewise.
27876         * tests/test-dup2.c (setmode, is_mode): New helpers.
27877         (main): Add tests that translation mode is preserved.
27878         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27879         Reported by Bruno Haible.
27880
27881         mgetgroups: reduce duplicate listings
27882         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27883         resulting array.
27884         * tests/test-chown.h (test_chown): Simplify client.
27885         * tests/test-lchown.h (test_lchown): Likewise.
27886
27887 2009-12-06  Bruno Haible  <bruno@clisp.org>
27888
27889         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27890         value.
27891
27892 2009-12-06  Bruno Haible  <bruno@clisp.org>
27893
27894         * lib/progname.c: Include stdio.h, stdlib.h.
27895         (set_program_name): Reject a NULL argument.
27896
27897 2009-12-05  Eric Blake  <ebb9@byu.net>
27898
27899         pipe2-safer: new module
27900         * modules/pipe2-safer: New file.
27901         * lib/unistd-safer.h (pipe2_safer): New prototype.
27902         * lib/unistd--.h (pipe2): New wrapper.
27903         * lib/pipe-safer.c (pipe2_safer): New function.
27904         * modules/pipe (Depends-on): Add pipe2-safer.
27905         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27906
27907         stdlib-safer: preserve cloexec flag for mkostemp[s]
27908         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27909         fd_safer_flag.
27910
27911         unistd-safer: allow preservation of cloexec status via flag
27912         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27913         prototypes.
27914         * lib/dup-safer.c (dup_safer_flag): New function.
27915         * lib/fd-safer.c (fd_safer_flag): Likewise.
27916         * modules/cloexec (configure.ac): Set witness.
27917
27918         test-dup2: enhance test
27919         * modules/dup2-tests (Depends-on): Add cloexec.
27920         * tests/test-dup2.c (main): Enhance test.
27921
27922         cloexec: add dup_cloexec
27923         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27924         header and comments.
27925         * lib/cloexec.c (set_cloexec_flag): Add comments.
27926         (dup_cloexec): New function, with mingw implementation borrowed
27927         from...
27928         * lib/w32spawn.h (dup_noinherit): ...here.
27929         * modules/execute (Depends-on): Add cloexec.
27930         * modules/pipe (Depends-on): Likewise.
27931         * modules/cloexec (Depends-on): Add dup2.
27932         * modules/cloexec-tests (Files): New file.
27933         * tests/test-cloexec.c: Likewise.
27934
27935         test-xalloc-die: fix test for mingw
27936         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27937         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27938         directory and .exe suffix off argv[0] output.
27939
27940         test-fseeko: fix test for mingw
27941         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27942         than undefining fseek, so test will pass on mingw.
27943
27944 2009-12-05  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/progname.h (set_program_name): Clarify specification.
27947         * lib/progname.c (set_program_name): Likewise.
27948         Reported by Jim Meyering.
27949
27950 2009-12-05  Jim Meyering  <meyering@redhat.com>
27951
27952         maint.mk: backslash-escape parens in default regexp
27953         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27954         backslash-escape the literal parentheses.
27955
27956         maint.mk: news-date-check: use grep -E
27957         * top/maint.mk (today): Define a Make variable, not a...
27958         (news-date-check): ...shell variable.
27959         (news-date-regexp): Use the Make variable.
27960         Use grep's -E option.  Change the failing diagnostic to mention
27961         the variable, $(news-date-regexp).
27962
27963 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27964
27965         maintainer-makefile: allow customization of NEWS entry format
27966         * top/maint.mk (news-date-regexp): New overridable variable.
27967         (news-date-check): Use it.
27968
27969 2009-12-04  Eric Blake  <ebb9@byu.net>
27970
27971         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27972         * lib/mgetgroups.h (xgetgroups): New prototype.
27973         * lib/mgetgroups.c (xgetgroups): New wrapper.
27974         (mgetgroups): Handle ENOSYS.
27975         * modules/mgetgroups (Depends-on): Add realloc.
27976         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27977
27978         mgetgroups: avoid argument promotion issues with -1
27979         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27980         for invalid gid_t.
27981         * tests/test-chown.h (getegid, test_chown): Likewise.
27982         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27983
27984 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27985
27986         exclude: Fix header file problems.
27987         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27988
27989 2009-12-01  Jim Meyering  <meyering@redhat.com>
27990
27991         fts: fts_open: do not let an empty string cause immediate failure
27992         This is required in support of GNU rm, for which the command
27993         "rm A '' B" must process and remove both A and B, in spite of
27994         the empty string argument.
27995         * lib/fts.c (fts_open): Do not let the presence of an empty string
27996         cause fts_open to fail immediately.  Most fts-using tools must be
27997         able to process all arguments, in order, and can be expected to
27998         diagnose such arguments themselves.
27999
28000 2009-11-30  Eric Blake  <ebb9@byu.net>
28001
28002         utimens: fix compilation error
28003         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28004         Declare variable at right scope.
28005
28006 2009-11-29  Jim Meyering  <meyering@redhat.com>
28007
28008         bootstrap: handle perl-5.11's changed --version output
28009         * build-aux/bootstrap (get_version): Handle perl separately,
28010         since perl-5.11's --version output is different.
28011
28012 2009-11-28  Jim Meyering  <meyering@redhat.com>
28013
28014         userspec: depend on the inttostr module, too
28015         * modules/userspec (Depends-on): Add inttostr.
28016
28017         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28018         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28019         number of MAXUID when it evaluates to (uid_t) -1.
28020         Likewise for group ID.  Reported by Matt McCutchen in
28021         <http://savannah.gnu.org/bugs/?28113>
28022
28023         userspec: reformat to use spaces, not TABs
28024         * lib/userspec.c: Expand TABs to spaces.
28025         Add Emacs' "indent-tabs-mode: nil" hint.
28026
28027 2009-11-27  Eric Blake  <ebb9@byu.net>
28028
28029         getopt-gnu: flush out another BSD bug
28030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28031         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28032         flush out BSD bug.
28033         * tests/test-getopt.h (test_getopt): End lists with NULL.
28034         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28035         (test_getopt_long_posix): Enhance test.
28036         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28037         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28038         getopt-gnu.
28039         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28040         Likewise.
28041
28042 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28043
28044         * modules/idpriv-droptemp-tests (Notice): Fix text.
28045
28046 2009-11-27  Jim Meyering  <meyering@redhat.com>
28047
28048         test-xalloc-die: avoid spurious failure due to libtool argv difference
28049         In a libtool-enabled project, this test would fail due to a difference
28050         in the emitted program name, e.g.,
28051         -test-xalloc-die: memory exhausted
28052         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28053         Use program to avoid that.
28054         * modules/xalloc-die-tests (Depends-on): Add progname.
28055         * tests/test-xalloc-die.c: Include progname.h".
28056         (program_name): Remove decl.
28057         (main): Call set_program_name.
28058         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28059
28060 2009-11-26  Richard Jones  <rjones@redhat.com>
28061
28062         w32sock: leave win32 error in place.
28063         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28064
28065 2009-11-26  Eric Blake  <ebb9@byu.net>
28066
28067         init.sh: suggest to use skip_ and fail_ functions in comments
28068         * tests/init.sh: Add a sentence.
28069
28070 2009-11-25  Bruno Haible  <bruno@clisp.org>
28071
28072         init.sh: add documentation in comments
28073         * tests/init.sh: Add some developer and user documentation.
28074
28075 2009-11-26  Jim Meyering  <meyering@redhat.com>
28076
28077         init.sh: accommodate even those who specify bogus srcdir manually
28078         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28079         configure-time tests to be sanitized, so that there is no need to
28080         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28081         (with no double quotes) suffices.  However, since tests may be
28082         invoked manually, and since you may explicitly set srcdir to the
28083         name of a directory containing spaces, do quote its uses here.
28084         * tests/test-pread.sh: Likewise.
28085         Suggested by Bruno Haible.
28086
28087         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28088         * tests/test-pread.sh: Write no data into the pipe, because
28089         test-pread actually reads none.  This avoids a diagnostic,
28090         "bash: echo: write error: Broken pipe", that arises in the unusual
28091         event something is ignoring SIGPIPE, and might be interpreted
28092         as some sort of failure.  Reported by Bruno Haible.
28093
28094 2009-11-25  Jim Meyering  <meyering@redhat.com>
28095
28096         test-pread: cover failure with ESPIPE and EINVAL
28097         * tests/test-pread.c (main): Test for failure, too.
28098         * tests/test-pread.sh: Invoke with stdin on a pipe.
28099         Suggested by Eric Blake.
28100
28101         pread: improvement and fix
28102         * modules/pread (Depends-on): Depend on lseek, for portability to
28103         e.g., mingw.  Suggested by Eric Blake.
28104         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28105
28106         unistd.in.h: correct declaration of pread
28107         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28108         Reported by Richard W.M. Jones.
28109
28110         test-pread.sh: distribute the test script
28111         * modules/pread-tests (Files): Include test-pread.sh.
28112
28113         test-pread.sh: clean up
28114         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28115         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28116         That is unnecessary, since it's always ".".
28117         Suggestion from Eric Blake.
28118
28119         test-pread.sh: make executable
28120         * tests/test-pread.sh: Set executable bit.
28121         Reported by Eric Blake.
28122
28123         correct typo in test-pread.sh
28124         * tests/test-pread.sh: Add #! line.
28125
28126         test pread
28127         * tests/test-pread.c: New file.
28128         * tests/test-pread.sh: Likewise.
28129         * modules/pread-tests: Likewise.
28130
28131         pread: new module
28132         * modules/pread: New file.
28133         * lib/unistd.in.h (pread): Define/declare.
28134         * lib/pread.c (pread): New file.
28135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28136         * modules/unistd (Makefile.am): Substitute witnesses.
28137         * doc/posix-functions/pread.texi (pread): Update.
28138         * MODULES.html.sh: Add pread.
28139
28140 2009-11-25  Jim Meyering  <meyering@redhat.com>
28141
28142         tests/init.sh: new file to be used via most *.sh tests
28143         * tests/init.sh: New file.
28144
28145 2009-11-25  Eric Blake  <ebb9@byu.net>
28146
28147         utimens: work around older Linux failure with symlinks
28148         * lib/utimens.c (lutimensat_works_really): New variable.
28149         (fdutimens, lutimens): Use it to manage kernels that support
28150         nanosecond times on files, but not on symlinks.
28151         Reported by OndÅ™ej Vašík.
28152
28153         utimes: fix configure grammar
28154         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28155
28156 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28157
28158         regex: Fix fastmap for multibyte character ranges.
28159         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28160         characters when a multibyte character range is included.
28161
28162 2009-11-22  Andy Wingo  <wingo@pobox.com>
28163
28164         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28165         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28166
28167 2009-11-24  Bruno Haible  <bruno@clisp.org>
28168
28169         doc: Most *_l functions exist in MacOS X 10.5.
28170         * doc/posix-functions/duplocale.texi: Update platforms list.
28171         * doc/posix-functions/freelocale.texi: Likewise.
28172         * doc/posix-functions/newlocale.texi: Likewise.
28173         * doc/posix-functions/uselocale.texi: Likewise.
28174         * doc/posix-functions/isalnum_l.texi: Likewise.
28175         * doc/posix-functions/isalpha_l.texi: Likewise.
28176         * doc/posix-functions/isblank_l.texi: Likewise.
28177         * doc/posix-functions/iscntrl_l.texi: Likewise.
28178         * doc/posix-functions/isdigit_l.texi: Likewise.
28179         * doc/posix-functions/isgraph_l.texi: Likewise.
28180         * doc/posix-functions/islower_l.texi: Likewise.
28181         * doc/posix-functions/isprint_l.texi: Likewise.
28182         * doc/posix-functions/ispunct_l.texi: Likewise.
28183         * doc/posix-functions/isspace_l.texi: Likewise.
28184         * doc/posix-functions/isupper_l.texi: Likewise.
28185         * doc/posix-functions/iswalnum_l.texi: Likewise.
28186         * doc/posix-functions/iswalpha_l.texi: Likewise.
28187         * doc/posix-functions/iswblank_l.texi: Likewise.
28188         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28189         * doc/posix-functions/iswctype_l.texi: Likewise.
28190         * doc/posix-functions/iswdigit_l.texi: Likewise.
28191         * doc/posix-functions/iswgraph_l.texi: Likewise.
28192         * doc/posix-functions/iswlower_l.texi: Likewise.
28193         * doc/posix-functions/iswprint_l.texi: Likewise.
28194         * doc/posix-functions/iswpunct_l.texi: Likewise.
28195         * doc/posix-functions/iswspace_l.texi: Likewise.
28196         * doc/posix-functions/iswupper_l.texi: Likewise.
28197         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28198         * doc/posix-functions/isxdigit_l.texi: Likewise.
28199         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28200         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28201         * doc/posix-functions/strcoll_l.texi: Likewise.
28202         * doc/posix-functions/strfmon_l.texi: Likewise.
28203         * doc/posix-functions/strftime_l.texi: Likewise.
28204         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28205         * doc/posix-functions/strxfrm_l.texi: Likewise.
28206         * doc/posix-functions/tolower_l.texi: Likewise.
28207         * doc/posix-functions/toupper_l.texi: Likewise.
28208         * doc/posix-functions/towctrans_l.texi: Likewise.
28209         * doc/posix-functions/towlower_l.texi: Likewise.
28210         * doc/posix-functions/towupper_l.texi: Likewise.
28211         * doc/posix-functions/wcscoll_l.texi: Likewise.
28212         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28213         * doc/posix-functions/wctrans_l.texi: Likewise.
28214         * doc/posix-functions/wctype_l.texi: Likewise.
28215         * doc/glibc-functions/strptime_l.texi: Likewise.
28216         * doc/glibc-functions/strtod_l.texi: Likewise.
28217         * doc/glibc-functions/strtof_l.texi: Likewise.
28218         * doc/glibc-functions/strtol_l.texi: Likewise.
28219         * doc/glibc-functions/strtold_l.texi: Likewise.
28220         * doc/glibc-functions/strtoll_l.texi: Likewise.
28221         * doc/glibc-functions/strtoul_l.texi: Likewise.
28222         * doc/glibc-functions/strtoull_l.texi: Likewise.
28223         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28224         * doc/glibc-functions/wcstod_l.texi: Likewise.
28225         * doc/glibc-functions/wcstof_l.texi: Likewise.
28226         * doc/glibc-functions/wcstol_l.texi: Likewise.
28227         * doc/glibc-functions/wcstold_l.texi: Likewise.
28228         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28229         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28230         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28231
28232 2009-11-24  Bruno Haible  <bruno@clisp.org>
28233
28234         duplocale: Fix logic bug.
28235         * lib/duplocale.c: Don't include <langinfo.h>.
28236         (_NL_LOCALE_NAME): Remove macro.
28237         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28238         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28239
28240 2009-11-23  Jim Meyering  <meyering@redhat.com>
28241
28242         test-update-copyright: don't hard-code /usr/bin/perl
28243         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28244         perl to print the current year.  Gilles Espinasse reported that
28245         the replaced use of perl was hard-coded as /usr/bin/perl.
28246
28247 2009-11-23  Bruno Haible  <bruno@clisp.org>
28248
28249         duplocale: Add support for glibc 2.3.x.
28250         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28251
28252 2009-11-22  Bruno Haible  <bruno@clisp.org>
28253
28254         vasnprintf: Tiny optimization.
28255         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28256         MacOS X.
28257
28258 2009-11-22  Bruno Haible  <bruno@clisp.org>
28259
28260         Tests for module 'duplocale'.
28261         * modules/duplocale-tests: New file.
28262         * tests/test-duplocale.c: New file.
28263
28264         New module 'duplocale'.
28265         * m4/duplocale.m4: New file.
28266         * lib/locale.in.h (duplocale): New declaration.
28267         * lib/duplocale.c: New file.
28268         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28269         gl_LOCALE_H_DEFAULTS): New macros.
28270         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28271         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28272         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28273         REPLACE_DUPLOCALE.
28274         * modules/duplocale: New file.
28275         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28276
28277 2009-11-22  Bruno Haible  <bruno@clisp.org>
28278
28279         * modules/locale-tests (configure.ac): Test for newlocale function.
28280         * tests/test-locale.c: When the system has extended locale functions,
28281         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28282
28283         locale: Make locale_t available when possible.
28284         * lib/locale.in.h: Include <xlocale.h> when it exists.
28285         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28286         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28287         * modules/locale (Depends-on): Add extensions.
28288         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28289         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28290
28291 2009-11-22  Bruno Haible  <bruno@clisp.org>
28292
28293         Add comments.
28294         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28295         invocation.
28296         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28297         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28298         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28299
28300 2009-11-22  Bruno Haible  <bruno@clisp.org>
28301
28302         error: account for the possibility of freopen (stdout).
28303         * lib/error.c: Include <unistd.h>.
28304         (flush_stdout): New function, extracted from error and error_at_line.
28305         Determine stdout's fd dynamically.
28306         (error, error_at_line): Invoke flush_stdout.
28307         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28308         * modules/error (Depends-on): Add unistd.
28309
28310 2009-11-22  Bruno Haible  <bruno@clisp.org>
28311
28312         diffseq: Add comment.
28313         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28314
28315 2009-11-22  Jim Meyering  <meyering@redhat.com>
28316
28317         c-stack: avoid defining an unused static function
28318         * lib/c-stack.c (find_stack_direction): Do not define this function
28319         when it will not be used.
28320
28321         diffseq: avoid spurious gcc warnings
28322         * lib/diffseq.h (IF_LINT2): Define.
28323         (compareseq): Use it to initialize two members of "part".
28324         This avoids two used-uninitialized warnings.
28325
28326 2009-11-21  Jim Meyering  <meyering@redhat.com>
28327
28328         c-stack: avoid "ignoring return value of `write'" warning
28329         * lib/c-stack.c: Include "ignore-value.h".
28330         (die): Explicitly ignore each write return value.
28331         * modules/c-stack (Depends-on): Add ignore-value.
28332
28333 2009-11-21  Bruno Haible  <bruno@clisp.org>
28334
28335         diffseq: reduce scope of variable 'best'.
28336         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28337         variable, earlier used for two different purposes.
28338
28339 2009-11-21  Jim Meyering  <meyering@redhat.com>
28340
28341         diffseq: remove useless assignment to "best"
28342         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28343         assignment.  At that point "best" is already guaranteed to be zero.
28344
28345 2009-11-20  Eric Blake  <ebb9@byu.net>
28346
28347         build: mention ftp redirector in release announcements
28348         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28349         values that used to come from cfg.mk; mention FTP redirect URL.
28350         * build-aux/announce-gen: Mention the mirror list.
28351         Suggested by Karl Berry.
28352
28353         nanosleep: improve port to mingw
28354         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28356         LIB_NANOSLEEP, but only when needed.
28357         * modules/select (Link): Document LIBSOCKET.
28358         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28359         enough.
28360
28361         nanosleep: work around cygwin bug
28362         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28363         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28364         bug.
28365         (getnow): Delete, not needed.
28366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28367         LIB_CLOCK_GETTIME.
28368         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28369         clock-time, gettime.
28370         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28371         bug.
28372         * modules/nanosleep-tests: New test.
28373         * tests/test-nanosleep.c: New file.
28374
28375         sleep: work around cygwin bug
28376         * lib/sleep.c (rpl_sleep): Work around the bug.
28377         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28378         (gl_PREREQ_SLEEP): Delete unused macro.
28379         * modules/sleep (Depends-on): Add verify.
28380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28381         * modules/unistd (Makefile.am): Substitute witness.
28382         * lib/unistd.in.h (sleep): Update prototype.
28383         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28384         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28385         * modules/sleep-tests (Depends-on): Check for alarm.
28386
28387 2009-11-20  Jim Meyering  <meyering@redhat.com>
28388
28389         maint.mk: improve sc_prohibit_magic_number_exit
28390         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28391         so it does not match uses like System.exit(1).
28392         Add comments showing how to correct all offenders.
28393
28394 2009-11-19  Eric Blake  <ebb9@byu.net>
28395
28396         xalloc-die-tests: add missing library
28397         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28398
28399         test-xvasprintf: silence compiler warnings
28400         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28401         empty string from gcc.
28402
28403 2009-11-19  Jim Meyering  <meyering@redhat.com>
28404
28405         xfreopen: new module, from coreutils
28406         * modules/xfreopen: New module.
28407         * lib/xfreopen.c: New file.
28408         * lib/xfreopen.h: New file.
28409         * MODULES.html.sh (File stream based Input/Output"): Add it.
28410
28411 2009-11-19  Eric Blake  <ebb9@byu.net>
28412
28413         manywarnings: depend on warnings
28414         * modules/manywarnings (Depends-on): Add warnings.
28415
28416         build: avoid compiler warnings
28417         * lib/select.c (rpl_select): Delete unused variable.
28418         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28419
28420 2009-11-18  Eric Blake  <ebb9@byu.net>
28421
28422         tests: avoid false negative with --with-packager
28423         * tests/test-version-etc.sh: Discard packager information.
28424         * tests/test-argp-version-etc-1.sh: Likewise.
28425         Reported by Mike Frysinger.
28426
28427         utimens: fix regression on Solaris
28428         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28429         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28430         can only change fd timestamps via futimesat.  Instead, use an
28431         additional witness macro to avoid BSD bug.
28432         Reported by Jim Meyering.
28433
28434 2009-11-17  Eric Blake  <ebb9@byu.net>
28435
28436         usleep: use it to simplify tests
28437         * modules/stat-time-tests (Depends-on): Add usleep.
28438         (configure.ac): Drop usleep check.
28439         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28440         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28441         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28442         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28443         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28444         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28445         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28446         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28447         Likewise.
28448         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28449         * tests/test-lchown.h (nap): Likewise.
28450         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28451         * tests/test-stat-time.c (nap): Likewise.
28452         * tests/test-utimens-common.h (nap): Update comments.
28453
28454         usleep: new module
28455         * modules/usleep: New file.
28456         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28457         * lib/usleep.c (usleep): Likewise.
28458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28459         * modules/unistd (Makefile.am): Substitute witnesses.
28460         * lib/unistd.in.h (usleep): Add declaration.
28461         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28462         * MODULES.html.sh (Date and time): Likewise.
28463         * modules/usleep-tests (Depends-on): New test.
28464         * tests/test-usleep.c: New file.
28465
28466         chown: work around OpenBSD bug
28467         * lib/chown.c (rpl_chown): Work around the bug.
28468         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28469         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28470         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28471         * modules/chown (Depends-on): Add stdbool.
28472         * modules/lchown (Depends-on): Likewise.
28473         * doc/posix-functions/chown.texi (chown): Document the bug.
28474         * doc/posix-functions/lchown.texi (lchown): Likewise.
28475         * tests/test-lchown.h (test_chown): Relax test.
28476
28477         mkstemp: avoid conflict with C++ keyword template
28478         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28479         * lib/mkostemp.c (mkostemp): Likewise.
28480         * lib/mkostemps.c (mkostemps): Likewise.
28481         * lib/mkstemp.c (mkstemp): Likewise.
28482         * lib/mkstemps.c (mkstemps): Likewise.
28483
28484         xalloc-die-tests: optimize
28485         * tests/test-xalloc-die.sh: Reduce number of processes.
28486
28487 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28488
28489         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28490         patch from ludo@gnu.org (Ludovic Courtès).
28491
28492 2009-11-17  Jim Meyering  <meyering@redhat.com>
28493
28494         version-etc: use proper license string
28495         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28496         * modules/version-etc-fsf: Likewise.
28497
28498 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28499
28500         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28501         printed to stdout.  Deal with EOL differences.
28502
28503 2009-11-17  Eric Blake  <ebb9@byu.net>
28504
28505         unsetenv: work around Solaris bug
28506         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28507         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28508         Reported by Jim Meyering.
28509
28510         vasnprintf: avoid compiler warnings
28511         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28512         variables.
28513         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28514
28515 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28516
28517         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28518         settings since xalloc-die is no longer the self test,
28519         xalloc-die.sh is.
28520
28521 2009-11-17  Jim Meyering  <meyering@redhat.com>
28522
28523         test-xalloc-die.sh: make the code agree with the commit log
28524         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28525         at the end, just in case you happen to have a test-xalloc-die
28526         program in some other PATH directory.
28527
28528         test-xalloc-die.sh: fix a portability bug
28529         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28530         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28531         Otherwise, argv[0] (as often seen in diagnostics) would be too
28532         system-dependent, sometimes with, and sometimes without the leading "./".
28533
28534         version-etc-fsf: relax license to LGPLv3+
28535         * modules/version-etc-fsf (License): Relax license.
28536
28537 2009-11-16  Eric Blake  <ebb9@byu.net>
28538
28539         xalloc-die-tests: avoid printing null pointer
28540         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28541         shell script.
28542         * tests/test-xalloc-die.c (program_name): Declare.
28543         * tests/test-xalloc-die.sh (tmpfiles): New file.
28544
28545         setenv, unsetenv: work around various bugs
28546         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28547         (setenv) [HAVE_SETENV]: Work around bugs.
28548         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28549         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28550         for bugs.
28551         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28552         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28554         * modules/stdlib (Makefile.am): Update substitutions.
28555         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28556         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28557         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28558         * modules/setenv-tests: New test.
28559         * modules/unsetenv-tests: Likewise.
28560         * tests/test-setenv.c: New file.
28561         * tests/test-unsetenv.c: Likewise.
28562
28563 2009-11-16  Jim Meyering  <meyering@redhat.com>
28564
28565         version-etc: relax license to LGPLv3+
28566         * modules/version-etc (License): Relax license.
28567
28568         better AC_REQUIRE expanded-before-required-warning avoidance
28569         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28570         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28571         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28572         which is no longer needed.
28573
28574 2009-11-16  Eric Blake  <ebb9@byu.net>
28575
28576         test-freading: clean up temporary file
28577         * tests/test-freading.c (main): Remove file on success, and use
28578         ASSERT more liberally.
28579         Reported by Jim Meyering.
28580
28581 2009-11-16  Jim Meyering  <meyering@redhat.com>
28582
28583         avoid new AC_REQUIRE expanded-before-required warnings
28584         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28585         merely using it.
28586         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28587         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28588
28589 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28590
28591         * tests/test-xalloc-die.c: New file.
28592         * modules/xalloc-die-tests: New file.
28593         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28594         XFAIL_TESTS so it can be appended by modules.
28595
28596 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28597
28598         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28599         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28600
28601 2009-11-14  Eric Blake  <ebb9@byu.net>
28602
28603         fnmatch: avoid compiler warning
28604         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28605         to silence compiler warning about mismatch signedness in ?:.
28606         Reported by Robert Millan.
28607
28608         intprops: add double-inclusion guard
28609         * lib/intprops.h: Allow idempotent includes.
28610         Suggested by Bruce Korb.
28611
28612         openat: detect Solaris fchownat bug
28613         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28614         penalizing glibc chownat when only lchownat is broken.
28615         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28616         trailing slash bugs.
28617         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28618         * modules/openat-tests (Files): Include more files.
28619         (Depends-on): Add mgetgroups, sleep, stat-time.
28620         (configure.ac): Add additional checks.
28621         (Makefile.am): Build new test.
28622         * tests/test-fchownat.c: New file.
28623
28624         lchown: detect Solaris and FreeBSD bug
28625         * lib/lchown.c (rpl_lchown): Work around bug.
28626         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28628         * modules/unistd (Makefile.am): Populate it.
28629         * lib/unistd.in.h (lchown): Update declaration.
28630         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28631         * modules/lchown-tests: New file.
28632         * tests/test-lchown.h (test_lchown): Likewise.
28633         * tests/test-lchown.c (main): Likewise.
28634
28635         chown: detect Solaris and FreeBSD bug
28636         * lib/chown.c (rpl_chown): Work around bug.
28637         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28638         (gl_PREREQ_CHOWN): Delete.
28639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28640         * modules/unistd (Makefile.am): Populate it.
28641         * lib/unistd.in.h (chown): Update declaration.
28642         * lib/lchown.c (chown): Update client.
28643         * modules/lchown (Depends-on): Add lstat.
28644         * doc/posix-functions/chown.texi (chown): Document the bug.
28645         * doc/posix-functions/getgroups.texi (getgroups): Document
28646         getgroups pitfall.
28647         * modules/chown-tests: New file.
28648         * tests/test-chown.h (test_chown): Likewise.
28649         * tests/test-chown.c (main): Likewise.
28650
28651 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28652
28653         gnulib-tool: correctly detect absence of m4 directories
28654         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28655
28656 2009-11-14  Jim Meyering  <meyering@redhat.com>
28657
28658         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28659         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28660
28661 2009-11-14  John W. Eaton  <jwe@gnu.org>
28662
28663         strftime.h: wrap funtion declaration in extern "C" block
28664         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28665
28666 2009-11-13  Eric Blake  <ebb9@byu.net>
28667
28668         getgroups: avoid compiler warning
28669         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28670
28671         getgroups: work around FreeBSD bug
28672         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28673         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28674         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28675         * tests/test-getgroups.c (main): Fix buffer overrun.
28676
28677         getgroups: avoid compilation failure
28678         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28679         * modules/getgroups (Depends-on): Add stdint.
28680
28681 2009-11-13  Jim Meyering  <meyering@redhat.com>
28682
28683         test-getgroups: avoid compilation failure
28684         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28685
28686 2009-11-13  Eric Blake  <ebb9@byu.net>
28687
28688         mgetgroups: new module, taken from coreutils
28689         * modules/mgetgroups: New file.
28690         * lib/mgetgroups.h: Likewise.
28691         * lib/mgetgroups.c (mgetgroups): Likewise.
28692         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28693         * MODULES.html.sh (Users and groups): Mention it.
28694
28695         getgroups: don't expose GETGROUPS_T to user
28696         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28697         an element at a time if GETGROUPS_T is wrong size.
28698         * lib/getugroups.h (getugroups): Change signature.
28699         * lib/unistd.in.h (getgroups): Likewise.
28700         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28701         signature needs fixing.
28702         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28703         AC_TYPE_GETGROUPS.
28704         * modules/group-member (Depends-on): Add getgroups.
28705         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28706         (group_member): Rely on getgroups replacement.
28707         * lib/getugroups.c (getugroups): Use gid_t.
28708         * tests/test-getgroups.c (main): Likewise.
28709         * NEWS: Mention the signature change.
28710         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28711         problem with signature.
28712         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28713         GETGROUPS_T is still useful for setgroups.
28714
28715         getgroups, getugroups: provide stubs for mingw
28716         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28717         * lib/getugroups.c (getugroups): Likewise.
28718         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28719         function.  Modernize replacement scheme.
28720         (gl_PREREQ_GETGROUPS): Delete.
28721         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28722         * modules/getgroups (configure.ac): Declare witness.
28723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28724         * modules/unistd (Depends-on): Substitute witness.
28725         * lib/unistd.in.h (getgroups): Declare replacement.
28726
28727         getgroups: avoid calling exit
28728         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28729         drop xalloc.
28730         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28731         dependencies.
28732         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28733         exiting, in the rare case of malloc failure.
28734
28735         getgroups: fix logic error
28736         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28737         has more than 20 groups.
28738         * modules/getgroups-tests: New test.
28739         * tests/test-getgroups.c: New file.
28740
28741 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28742
28743         * tests/test-base64.c: Improve.
28744
28745 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28746
28747         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28748         Blake <ebb9@byu.net>.
28749
28750 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28751
28752         * tests/test-xvasprintf.c: Add %s%s related checks.
28753
28754 2009-11-12  Eric Blake  <ebb9@byu.net>
28755
28756         version-etc: match standards.texi style
28757         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28758         and use <> only for URLs.
28759
28760 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28761
28762         fts: do not fail on a submount during traversal
28763         * lib/fts.c (fts_build): Read the stat info again after opening
28764         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28765         Original report at http://bugzilla.redhat.com/501848.
28766
28767 2009-11-12  Jim Meyering  <meyering@redhat.com>
28768
28769         bootstrap: sync from coreutils
28770         * build-aux/bootstrap (bootstrap_epilogue): New function.
28771         Use git_modules_config in one more place.  This make bootstrap's
28772         --gnulib-srcdir option more useful for testing.
28773
28774         bootstrap: generalize autoheader check
28775         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28776         AC_CONFIG_HEADERS.
28777
28778 2009-11-11  Eric Blake  <ebb9@byu.net>
28779
28780         mkfifoat: use new modules for Solaris and BSD bugs
28781         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28782         * lib/mkfifoat.c (mknodat): Split...
28783         * lib/mknodat.c (mknodat): ...into new file.
28784         * modules/mkfifoat (Files): Ship new file.
28785         (Depends-on): Add mkfifo, mknod.
28786         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28787         (Depends-on): Add symlink.
28788         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28789         redundant with test_mkfifo.h.
28790         (do_mkfifoat, do_mknodat): New helpers.
28791
28792         mknod: new module
28793         * modules/mknod: New file.
28794         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28795         * lib/mknod.c (mknod): Likewise.
28796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28797         defaults.
28798         * modules/sys_stat (Makefile.am): Substitute them.
28799         * lib/sys_stat.in.h (mknod): Declare replacement.
28800         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28801         Document it.
28802         * doc/posix-functions/mknod.texi (mknod): Likewise.
28803         * modules/mknod-tests: New test.
28804         * tests/test-mknod.c: Likewise.
28805
28806         mkfifo: new module
28807         * modules/mkfifo: New file.
28808         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28809         * lib/mkfifo.c (mkfifo): Likewise.
28810         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28811         defaults.
28812         * modules/sys_stat (Makefile.am): Substitute them.
28813         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28814         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28815         Document it.
28816         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28817         * modules/mkfifo-tests: New test.
28818         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28819         from test-mkfifoat.c.
28820         * tests/test-mkfifo.c: New file.
28821
28822         readlink: detect FreeBSD bug
28823         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28824         slash on symlink.
28825         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28826         * tests/test-readlink.h (test_readlink): Enhance test.
28827
28828         symlink: detect FreeBSD bug
28829         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28830         slash on symlink.
28831         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28832         * tests/test-symlink.h (test_symlink): Enhance test.
28833
28834 2009-11-10  Eric Blake  <ebb9@byu.net>
28835
28836         link: detect FreeBSD bug
28837         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28838         symlink.
28839         * doc/posix-functions/link.texi (link): Document the bug.
28840         * tests/test-link.h (test_link): Enhance test.
28841         * tests/test-linkat.c (main): Update caller.
28842
28843         unlink, remove: detect FreeBSD bug
28844         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28845         slash on symlink.
28846         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28847         * doc/posix-functions/remove.texi (remove): Likewise.
28848         * tests/test-unlink.h (test_unlink): Enhance test.
28849         * tests/test-remove.c (main): Likewise.
28850
28851 2009-11-09  Eric Blake  <ebb9@byu.net>
28852
28853         rename: detect FreeBSD bug
28854         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28855         slash on symlink.
28856         * modules/renameat-tests (Depends-on): Add filenamecat.
28857         * tests/test-rename.h (test_rename): Allow one more errno.
28858         * tests/test-renameat.c (main): Likewise.
28859         * doc/posix-functions/rename.texi (rename): Document the bug.
28860
28861         open: detect FreeBSD bug
28862         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28863         symlink.
28864         * doc/posix-functions/open.texi (open): Document the bug.
28865         * doc/posix-functions/utimes.texi (utimes): Likewise.
28866         * tests/test-open.h (test_open): Add parameters, and test symlink
28867         handling.
28868         * tests/test-open.c (main): Adjust caller.
28869         * tests/test-fcntl-safer.c (main): Likewise.
28870         * modules/open-tests (Depends-on): Add stdbool, symlink.
28871         * modules/fcntl-safer-tests (Depends-on): Likewise.
28872         * tests/test-openat.c (main): Add test-open tests.
28873
28874         stat: detect FreeBSD bug
28875         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28876         symlink.
28877         * doc/posix-functions/stat.texi (stat): Document the bug.
28878         * tests/test-stat.h (test_stat_func): Add argument.
28879         * tests/test-stat.c (main): Adjust caller.
28880         * tests/test-fstatat.c (main): Likewise.
28881         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28882         Reported by Jim Meyering.
28883
28884 2009-11-09  James Youngman  <jay@gnu.org>
28885
28886         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28887         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28888
28889 2009-11-08  Jim Meyering  <meyering@redhat.com>
28890
28891         utimens: remove invalid futimesat call
28892         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28893         It used the file descriptor of the target file as the DIR_FD
28894         parameter and NULL as the file name.  That caused failure with
28895         errno == EFAULT on FreeBSD-8.0-rc2
28896
28897 2009-11-07  Eric Blake  <ebb9@byu.net>
28898
28899         fflush, freadseek: use fseeko, not fseek
28900         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28901         (clear_ungetc_buffer): Avoid potential problems on large files.
28902         * lib/freadseek.c (freadseek): Likewise.
28903         * modules/freadseek (Depends-on): Add fseeko.
28904         * modules/fseek (configure.ac): Set a witness.
28905         * tests/test-fflush.c (main): Use fseeko.
28906         * tests/test-fpurge.c (fseek): Disable link warning.
28907         * tests/test-freadable.c (fseek): Likewise.
28908         * tests/test-freading.c (fseek): Likewise.
28909         * tests/test-fseeko.c (fseek): Likewise.
28910         * tests/test-ftell.c (fseek): Likewise.
28911         * tests/test-ftello.c (fseek): Likewise.
28912         * tests/test-fwritable.c (fseek): Likewise.
28913         * tests/test-fwriting.c (fseek): Likewise.
28914
28915 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28916
28917         * modules/memchr (Depends-on): Drop getpagesize dependency.
28918
28919 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28920
28921         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28922         Reported by Ludovic Courtès.
28923         * build-aux/pmccabe2html: Improve example usage.
28924         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28925
28926 2009-11-06  Jim Meyering  <meyering@redhat.com>
28927
28928         do-release-commit-and-tag: New module.
28929         Automate the release-commit and tag process.
28930         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28931         * modules/do-release-commit-and-tag: New file.
28932         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28933
28934 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28935
28936         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28937         because test-select.c uses inet_pton.
28938
28939 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28940
28941         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28942         GETADDRINFO_LIB.  Bump serial number.
28943         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28944         Suggested by Eric Blake <ebb9@byu.net>.
28945
28946 2009-11-05  Eric Blake  <ebb9@byu.net>
28947
28948         strtod: detect darwin bug
28949         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28950         Reported by Leo Davis.
28951
28952         freopen-safer: new module
28953         * modules/freopen-safer: New module.
28954         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28955         * lib/freopen-safer.c (freopen_safer): New file.
28956         * lib/stdio-safer.h (freopen_safer): New declaration.
28957         * lib/stdio--.h (freopen): New override.
28958         * MODULES.html.sh (File stream based Input/Output): Mention it.
28959         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28960         freopen-safer module.
28961         * doc/posix-functions/stderr.texi (stderr): Likewise.
28962         * doc/posix-functions/stdin.texi (stdin): Likewise.
28963         * doc/posix-functions/stdout.texi (stdout): Likewise.
28964         * modules/freopen-safer-tests: New test.
28965         * tests/test-reopen-safer.c: New file.
28966
28967 2009-11-05  Jim Meyering  <meyering@redhat.com>
28968
28969         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28970         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28971
28972 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28973
28974         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28975
28976 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28977
28978         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28979
28980 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28981
28982         Fix link error.
28983         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28984         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28985
28986 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28987
28988         * tests/test-func.c: Also test value of __func__.
28989
28990 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28991
28992         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28993         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28994
28995 2009-11-05  Bruno Haible  <bruno@clisp.org>
28996
28997         Fix link error.
28998         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28999         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29000         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29001
29002 2009-11-05  Bruno Haible  <bruno@clisp.org>
29003
29004         Tests for module 'inet_pton'.
29005         * modules/inet_pton-tests: New file.
29006         * tests/test-inet_pton.c: New file.
29007
29008 2009-11-05  Bruno Haible  <bruno@clisp.org>
29009
29010         Tests for module 'inet_ntop'.
29011         * modules/inet_ntop-tests: New file.
29012         * tests/test-inet_ntop.c: New file.
29013
29014 2009-11-04  Eric Blake  <ebb9@byu.net>
29015
29016         stdlib-safer: wrap all mkstemp variants
29017         * modules/mkostemp (configure.ac): Set witness.
29018         * modules/mkostemps (configure.ac): Likewise.
29019         * modules/mkstemps (configure.ac): Likewise.
29020         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29021         (mkstemps_safer): Wrap more functions.
29022         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29023         wrapping.
29024         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29025         (mkstemps_safer): Implement the wrappers.
29026
29027         mkstemps, mkostemps: new modules
29028         * modules/mkostemps: New module.
29029         * modules/mkstemps: Likewise.
29030         * lib/mkostemps.c (mkostemps): New file.
29031         * lib/mkstemps.c (mkstemps): Likewise.
29032         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29033         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29035         * modules/stdlib (Makefile.am): Substitute them.
29036         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29037         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29038         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29039         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29040         * MODULES.html.sh (File system functions): Mention them.
29041
29042         tempname: resync from glibc
29043         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29044         same values for __GT_FILE as glibc.  Abort even when assertions
29045         are disabled.
29046         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29047         match its value otherwise.  Allow idempotent inclusion.
29048         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29049         * lib/mkostemp.c (mkostemp): Likewise.
29050         * lib/mkstemp.c (mkstemp): Likewise.
29051         * lib/tmpfile.c (tmpfile): Likewise.
29052         * NEWS: Document this.
29053
29054         utimens: fix use of futimens on older Linux
29055         * lib/utimens.c (fdutimens): Use updated, rather than original,
29056         timespec to avoid bug in older Linux kernel.
29057         Reported by Simon Josefsson.
29058
29059 2009-11-04  Bruno Haible  <bruno@clisp.org>
29060
29061         Make num_processors more flexible and consistent.
29062         * lib/nproc.h (enum nproc_query): New type.
29063         (num_processors): Add a 'query' argument.
29064         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29065         (num_processors): Add a 'query' argument. Test the value of the
29066         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29067         mingw, count the number of CPUs available for the current process.
29068         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29069         Check for sched_getaffinity and sched_getaffinity_np.
29070         * modules/nproc (Depends-on): Add c-ctype, extensions.
29071         * NEWS: Mention the change.
29072
29073 2009-11-03  Bruno Haible  <bruno@clisp.org>
29074
29075         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29076
29077 2009-11-03  Jim Meyering  <meyering@redhat.com>
29078
29079         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29080         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29081         if it is defined.
29082
29083 2009-11-02  Eric Blake  <ebb9@byu.net>
29084
29085         mktime, timegm: share common declaration
29086         * lib/mktime-internal.h: New file.
29087         * lib/mktime.c: Use it rather than open-coding a declaration.
29088         * lib/timegm.c: Likewise.
29089         * modules/mktime (Files): Ship it.
29090         * modules/timegm (Files): Likewise.
29091         Suggested by Bruno Haible.
29092
29093         test-update-copyright: update test to match script changes
29094         * tests/test-update-copyright.sh: Avoid hard-coding perl
29095         location.  Don't update *.bak created by earlier runs.
29096
29097 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29098             Simon Josefsson  <simon@josefsson.org>
29099             Bruno Haible  <bruno@clisp.org>
29100
29101         Fix link error on Solaris 8.
29102         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29103         also in libnsl. Define also INET_PTON_LIB.
29104         * modules/inet_pton (Link): New section.
29105
29106 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29107             Bruno Haible  <bruno@clisp.org>
29108
29109         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29110         * modules/inet_ntop (Link): New section.
29111         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29112
29113 2009-11-02  Eric Blake  <ebb9@byu.net>
29114
29115         maint: avoid compiler warnings in m4 macros
29116         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29117         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29118
29119 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29120
29121         * m4/pmccabe2html.m4: Remove file.
29122         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29123         function.  Change maintainer.
29124         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29125         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29126         Courtès).
29127
29128 2009-10-31  Eric Blake  <ebb9@byu.net>
29129
29130         fseeko: fix m4 regression
29131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29132         regression from 2009-10-27.
29133         Reported by Ralf Wildenhues.
29134
29135 2009-10-31  Jim Meyering  <meyering@redhat.com>
29136
29137         inttostr: aesthetics and improved (compile-time) safety
29138         Define inttype_is_signed rather than inttype_is_unsigned,
29139         since the sole use is via "#if inttype_is_signed".
29140         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29141         inttype_is_unsigned.
29142         * lib/offtostr.c (inttype_is_signed): Likewise.
29143         * lib/uinttostr.c (inttype_is_signed): Likewise.
29144         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29145         * lib/inttostr.c (inttostr): Use verify to cross-check the
29146         inttype_is_signed value and the signedness of the actual type.
29147         * modules/inttostr (Depends-on): Add verify.
29148
29149 2009-10-30  Eric Blake  <ebb9@byu.net>
29150
29151         build: avoid compiler warnings
29152         * lib/fchmodat.c (lchmod): Mark unused variables.
29153         * lib/getopt.c (_getopt_initialize): Likewise.
29154         * lib/mktime.c (__mktime_internal): Provide prototype.
29155         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29156         older gcc that do not understand #pragma GCC diagnostic.
29157         * lib/uinttostr.c (inttype_is_unsigned): Define.
29158         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29159
29160 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29161
29162         stat: fix compilation on AIX
29163         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29164         only see struct stat64.
29165
29166 2009-10-30  Eric Blake  <ebb9@byu.net>
29167
29168         exclude: make more robust
29169         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29170         rather than masking a coding bug.
29171         Suggested by Bruno Haible.
29172
29173 2009-10-30  Jim Meyering  <meyering@redhat.com>
29174
29175         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29176         Rather than putting #!/usr/bin/perl on the first line,
29177         start with a variant of what's recommended by "man perlrun" that
29178         invokes the first "perl" program from your shell's search path.
29179         * build-aux/gitlog-to-changelog: Replace #!... as above.
29180         Add a "Local Variables" perl mode setting.
29181         Prompted by a patch from Ludovic Courtès.
29182         Improved by Eric Blake.
29183         * build-aux/useless-if-before-free: Likewise.
29184         * build-aux/announce-gen: Likewise.
29185         * build-aux/update-copyright: Likewise.
29186
29187 2009-10-29  Eric Blake  <ebb9@byu.net>
29188
29189         filenamecat-lgpl: adjust clients
29190         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29191         filenamecat.
29192         * modules/renameat (Depends-on): Likewise.
29193
29194         filenamecat: split into filenamecat-lgpl
29195         * modules/filenamecat-lgpl: New module.
29196         * modules/filenamecat (Files): Move library-safe files into
29197         filenamecat-lgpl.
29198         (Depends-on): Add filenamecat-lgpl.
29199         (configure.ac): Declare witness.
29200         * lib/filenamecat.h (file_name_concat): Only declare when using
29201         GPL module.
29202         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29203         Move...
29204         * lib/filenamecat-lgpl.c: ...into new file.
29205         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29206         (gl_FILE_NAME_CONCAT): Use it.
29207         * MODULES.html.sh (File system functions): Mention new module.
29208
29209         argp: avoid memory leak
29210         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29211         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29212         base_name, since the latter malloc()s and can call exit().
29213         Leak introduced 2006-07-03.
29214
29215         dirname-lgpl: adjust clients that don't need full dirname
29216         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29217         * modules/filenamecat (Depends-on): Likewise.
29218         * modules/linkat (Depends-on): Likewise.
29219         * modules/mkancesdirs (Depends-on): Likewise.
29220         * modules/mkdir (Depends-on): Likewise.
29221         * modules/openat (Depends-on): Likewise.
29222         * modules/savewd (Depends-on): Likewise.
29223         * modules/rename (Depends-on): Likewise.
29224         (License): Relax license.
29225         * modules/mkdir-tests (Depends-on): Drop progname.
29226         (Makefile.am): Delete unneeded LDADD.
29227         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29228
29229         dirname: split into dirname-lgpl
29230         * modules/dirname-lgpl: New module.
29231         * modules/dirname (Files): Move library-safe files into
29232         dirname-lgpl.
29233         (Depends-on): Add dirname-lgpl.
29234         (configure.ac): Declare witness.
29235         * modules/double-slash-root (License): Relax license.
29236         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29237         module.
29238         * lib/dirname.c (dir_len, mdir_name): Move...
29239         * lib/dirname-lgpl.c: ...into new file.
29240         * lib/basename.c (last_component, base_len): Move...
29241         * lib/basename-lgpl.c: ...into new file.
29242         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29243         (gl_DIRNAME): Use it.
29244         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29245         Mention new module.
29246         * modules/dirname-tests (Depends-on): Add progname.
29247         * tests/test-dirname.c (program_name): Delete.
29248
29249         mkdir: make safe for libraries
29250         * modules/mkdir (Depends-on): Drop xalloc.
29251         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29252         exit.
29253
29254         tests: avoid some compiler warnings
29255         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29256         literals.
29257         * tests/test-memchr.c (main): Avoid type mismatch.
29258         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29259         * tests/test-base64.c (main): Likewise.
29260         * tests/test-getdelim.c (main): Likewise.
29261         * tests/test-gethostname.c (main): Likewise.
29262         * tests/test-getline.c (main): Likewise.
29263         * tests/test-netinet_in.c (main): Likewise.
29264         * tests/test-select.c (open_server_socket, main): Likewise.
29265         * tests/test-select-stdin.c (main): Likewise.
29266         * tests/test-sockets.c (main): Likewise.
29267         * tests/test-strsignal.c (main): Likewise.
29268         * tests/test-sys_select.c (main): Likewise.
29269         * tests/test-sys_socket.c (main): Likewise.
29270         * tests/test-u64.c (main): Likewise.
29271         * tests/test-xfprintf-posix.c (main): Likewise.
29272         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29273
29274         sockets: avoid compiler warning
29275         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29276
29277         maint: detect usage(1) and other suspicious exits
29278         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29279
29280 2009-10-29  Jim Meyering  <meyering@redhat.com>
29281
29282         timespec: long-to-int truncation could make timespec_cmp malfunction
29283         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29284         a multiple of 2^32 nanoseconds as no difference.
29285
29286 2009-10-28  Jim Meyering  <meyering@redhat.com>
29287
29288         fprintftime: wrap macro code argument in "do {...} while(0)"
29289         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29290         cpy macro must be a statement that can be followed by a semicolon.
29291         Now that the else clause contains a comment and is hence longer
29292         than one line, I require curly braces.  That in turn requires
29293         that we wrap this code block in the standard do...while(0).
29294
29295         fprintftime: remove stray semicolon from previous change
29296         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29297
29298         fprintftime: avoid a warning about ignored fwrite return value
29299         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29300         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29301         that is unsafe.
29302         * modules/fprintftime (Depends-on): Add ignore-value.
29303
29304         exclude: avoid an unwarranted warning
29305         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29306
29307 2009-10-27  Eric Blake  <ebb9@byu.net>
29308
29309         fseek: avoid compilation failure when fflush is replaced
29310         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29311         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29312         module is in use.
29313         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29314         module is not in use; since REPLACE_FSEEK worked otherwise.
29315         (GNULIB_FTELLO): Likewise for ftell.
29316         Reported by Ian Beckwith and others.
29317
29318 2009-10-27  Bruno Haible  <bruno@clisp.org>
29319
29320         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29321         Reported by Jim Meyering.
29322
29323 2009-10-27  Jim Meyering  <jim@meyering.net>
29324             Bruno Haible  <bruno@clisp.org>
29325
29326         Avoid warning despite dropping the return value of fwrite.
29327         * lib/unicodeio.c: Include ignore-value.h.
29328         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29329         * modules/unicodeio (Depends-on): Add ignore-value.
29330
29331 2009-10-26  Eric Blake  <ebb9@byu.net>
29332
29333         areadlinkat: fix fallback path
29334         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29335         pointer and zero.
29336
29337 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29338
29339         Use a better IO block size for modern systems
29340         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29341         * lib/md2.c: Likewise.
29342         * lib/md4.c: Likewise.
29343         * lib/md5.c: Likewise.
29344         * lib/sha1.c: Likewise.
29345         * lib/sha256.c: Likewise.
29346         * lib/sha512.c: Likewise.
29347
29348 2009-10-22  Eric Blake  <ebb9@byu.net>
29349
29350         tests: avoid several compiler warnings
29351         * tests/test-getcwd.c (main): Avoid buffer underflow.
29352         * tests/test-getdate.c (main): String literals are not safe with
29353         putenv, so use setenv.  Declare unused argument.
29354         * modules/getdate-tests (Depends-on): Add setenv.
29355         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29356         problems with string literals in char *.
29357         * tests/test-hash.c (main): Avoid shadowing declaration.
29358         (insert_new): Treat string literals as char const *.
29359         * tests/test-getopt.h (test_getopt): Likewise.
29360         (getopt_loop): Alter types to minimize casting elsewhere.
29361         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29362         (test_getopt_long_posix): Likewise.
29363         (do_getopt_long): Add wrapper to minimize casting.
29364         * tests/test-atexit.c (clear_temp_file): Use void.
29365         * tests/test-areadlink-with-size.c (main): Declare unused
29366         arguments.
29367         * tests/test-areadlink.c (main): Likewise.
29368         * tests/test-areadlinkat-with-size.c (main): Likewise.
29369         * tests/test-areadlinkat.c (main): Likewise.
29370         * tests/test-canonicalize-lgpl.c (main): Likewise.
29371         * tests/test-canonicalize.c (main): Likewise.
29372         * tests/test-dirent-safer.c (main): Likewise.
29373         * tests/test-dirname.c (main): Likewise.
29374         * tests/test-dup2.c (main): Likewise.
29375         * tests/test-fchdir.c (main): Likewise.
29376         * tests/test-fcntl-h.c (main): Likewise.
29377         * tests/test-fcntl-safer.c (main): Likewise.
29378         * tests/test-fdopendir.c (main): Likewise.
29379         * tests/test-fdutimensat.c (main): Likewise.
29380         * tests/test-fflush.c (main): Likewise.
29381         * tests/test-filenamecat.c (main): Likewise.
29382         * tests/test-filevercmp.c (main): Likewise.
29383         * tests/test-fopen-safer.c (main): Likewise.
29384         * tests/test-fopen.c (main): Likewise.
29385         * tests/test-fpending.c (main): Likewise.
29386         * tests/test-fpurge.c (main): Likewise.
29387         * tests/test-freading.c (main): Likewise.
29388         * tests/test-fstatat.c (main): Likewise.
29389         * tests/test-fsync.c (main): Likewise.
29390         * tests/test-futimens.c (main): Likewise.
29391         * tests/test-getndelim2.c (main): Likewise.
29392         * tests/test-gettimeofday.c (main): Likewise.
29393         * tests/test-getopt.c (main): Likewise.
29394         * tests/test-i-ring.c (main): Likewise.
29395         * tests/test-inttypes.c (main): Likewise.
29396         * tests/test-link.c (main): Likewise.
29397         * tests/test-lstat.c (main): Likewise.
29398         * tests/test-math.c (main): Likewise.
29399         * tests/test-md5.c (main): Likewise.
29400         * tests/test-memchr2.c (main): Likewise.
29401         * tests/test-memrchr.c (main): Likewise.
29402         * tests/test-mkdir.c (main): Likewise.
29403         * tests/test-mkdirat.c (main): Likewise.
29404         * tests/test-mkfifoat.c (main): Likewise.
29405         * tests/test-open.c (main): Likewise.
29406         * tests/test-openat-safer.c (main): Likewise.
29407         * tests/test-openat.c (main): Likewise.
29408         * tests/test-quotearg.c (main): Likewise.
29409         * tests/test-rawmemchr.c (main): Likewise.
29410         * tests/test-readlink.c (main): Likewise.
29411         * tests/test-remove.c (main): Likewise.
29412         * tests/test-rename.c (main): Likewise.
29413         * tests/test-renameat.c (main): Likewise.
29414         * tests/test-rmdir.c (main): Likewise.
29415         * tests/test-sha1.c (main): Likewise.
29416         * tests/test-signal.c (main): Likewise.
29417         * tests/test-sigaction.c (main): Likewise.
29418         * tests/test-stat.c (main): Likewise.
29419         * tests/test-stat-time.c (main): Likewise.
29420         * tests/test-stddef.c (main): Likewise.
29421         * tests/test-stdint.c (main): Likewise.
29422         * tests/test-stdio.c (main): Likewise.
29423         * tests/test-stdlib.c (main): Likewise.
29424         * tests/test-strchrnul.c (main): Likewise.
29425         * tests/test-strerror.c (main): Likewise.
29426         * tests/test-string.c (main): Likewise.
29427         * tests/test-strtod.c (main): Likewise.
29428         * tests/test-strverscmp.c (main): Likewise.
29429         * tests/test-symlink.c (main): Likewise.
29430         * tests/test-symlinkat.c (main): Likewise.
29431         * tests/test-sys_stat.c (main): Likewise.
29432         * tests/test-sys_time.c (main): Likewise.
29433         * tests/test-time.c (main): Likewise.
29434         * tests/test-unistd.c (main): Likewise.
29435         * tests/test-unlink.c (main): Likewise.
29436         * tests/test-unlinkat.c (main): Likewise.
29437         * tests/test-utimens.c (main): Likewise.
29438         * tests/test-utimensat.c (main): Likewise.
29439         * tests/test-version-etc.c (main): Likewise.
29440         * tests/test-wchar.c (main): Likewise.
29441         * tests/test-wctype.c (main): Likewise.
29442         * tests/test-xprintf-posix.c (main): Likewise.
29443         * tests/test-posixtm.c (main): Likewise.
29444         (STREQ): Delete unused macro.
29445         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29446         shadowed variables.
29447         * tests/test-memchr.c (main): Likewise.
29448
29449 2009-10-21  Eric Blake  <ebb9@byu.net>
29450
29451         areadlinkat: avoid failure on older glibc
29452         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29453         rather than mis-comparing 0 against FUNC_RESULT of char*.
29454
29455 2009-10-21  Bruno Haible  <bruno@clisp.org>
29456
29457         * modules/stpncpy (License): Relicense under LGPLv2+.
29458         Reported by David Lutterkort <lutter@redhat.com>.
29459
29460 2009-10-20  Eric Blake  <ebb9@byu.net>
29461
29462         utimensat: work around Solaris 9 bug
29463         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29464         has trailing slash bugs.
29465         * tests/test-lutimens.h (test_lutimens): Enhance test.
29466         * tests/test-utimens.h (test_utimens): Likewise.
29467         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29468         * doc/posix-functions/utimes.texi (utimes): Likewise.
29469         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29470         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29471         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29472         * doc/posix-functions/futimens.texi (futimens): Likewise.
29473
29474         fdutimensat: new module
29475         * modules/fdutimensat: New file.
29476         * lib/fdutimensat.c (fdutimensat): Likewise.
29477         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29478         * MODULES.html.sh (File system functions): Mention module.
29479         * modules/fdutimensat-tests: New test.
29480         * tests/test-fdutimensat.c: Likewise.
29481
29482         doc: regenerate INSTALL
29483         * doc/INSTALL: Reflect recent autoconf update.
29484         * doc/INSTALL.ISO: Likewise.
29485         * doc/INSTALL.UTF-8: Likewise.
29486
29487 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29488
29489         acl: warn if ACL support is not detected
29490         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29491
29492 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29493
29494         * lib/nproc.h: Add extern "C" block for C++.
29495
29496 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29497             Bruno Haible  <bruno@clisp.org>
29498
29499         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29500         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29501         * doc/posix-functions/isalpha.texi: Likewise.
29502         * doc/posix-functions/isblank.texi: Likewise.
29503         * doc/posix-functions/iscntrl.texi: Likewise.
29504         * doc/posix-functions/isdigit.texi: Likewise.
29505         * doc/posix-functions/isgraph.texi: Likewise.
29506         * doc/posix-functions/islower.texi: Likewise.
29507         * doc/posix-functions/isprint.texi: Likewise.
29508         * doc/posix-functions/ispunct.texi: Likewise.
29509         * doc/posix-functions/isspace.texi: Likewise.
29510         * doc/posix-functions/isupper.texi: Likewise.
29511         * doc/posix-functions/isxdigit.texi: Likewise.
29512
29513 2009-10-18  Bruno Haible  <bruno@clisp.org>
29514
29515         Tests for module 'isblank'.
29516         * modules/isblank-tests: New file.
29517         * tests/test-isblank.c: New file.
29518
29519         New module 'isblank'.
29520         * lib/isblank.c: New file.
29521         * m4/isblank.m4: New file.
29522         * modules/isblank: New file.
29523         * doc/posix-functions/isblank.texi: Mention the new module.
29524
29525 2009-10-18  Bruno Haible  <bruno@clisp.org>
29526
29527         New module 'ctype'.
29528         * lib/ctype.in.h: New file.
29529         * m4/ctype.m4: New file.
29530         * modules/ctype: New file.
29531         * doc/posix-headers/ctype.texi: Mention the new module.
29532
29533 2009-10-18  Jim Meyering  <meyering@redhat.com>
29534
29535         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29536         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29537         right after its initialization, rather than farther down.
29538         Keeping these in close proximity makes it easier to ensure
29539         that each such variable is initialized.  E.g.,
29540
29541             LIB_CLOCK_GETTIME=
29542             AC_SUBST([LIB_CLOCK_GETTIME])
29543
29544         This change also increments these serial numbers.
29545         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29546         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29548
29549 2009-10-18  Bruno Haible  <bruno@clisp.org>
29550
29551         Don't let environment variables perturb build.
29552         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29553         (gl_PREREQ_GETHRXTIME): ... not here.
29554
29555 2009-10-18  Bruno Haible  <bruno@clisp.org>
29556
29557         Avoid symlink attack in localcharset module.
29558         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29559         (O_NOFOLLOW): Define fallback.
29560         (get_charset_aliases): Don't open the file if it is a symbolic link.
29561         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29562         gl_FCNTL_H.
29563         (gl_FCNTL_H): Require it.
29564         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29565         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29566         Reported by Fergal Glynn <fglynn@veracode.com>.
29567
29568 2009-10-18  Bruno Haible  <bruno@clisp.org>
29569
29570         Implement nproc for mingw.
29571         * lib/nproc.c: Include <windows.h>
29572         (num_processors): On native Windows platforms, try GetSystemInfo.
29573
29574 2009-10-18  Bruno Haible  <bruno@clisp.org>
29575
29576         Implement nproc for IRIX.
29577         * lib/nproc.c: Include <sys/sysmp.h>.
29578         (num_processors): On IRIX systems, try sysmp.
29579         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29580
29581 2009-10-18  Bruno Haible  <bruno@clisp.org>
29582
29583         Implement nproc for HP-UX.
29584         * lib/nproc.c: Include <sys/pstat.h>
29585         (num_processors): On HP-UX systems, try pstat_getdynamic.
29586         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29587         pstat_getdynamic.
29588
29589 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29590             Bruno Haible  <bruno@clisp.org>
29591
29592         Implement nproc for NetBSD, OpenBSD.
29593         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29594         (ARRAY_SIZE): New macro.
29595         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29596         * m4/nproc.m4: New file.
29597         * modules/nproc (Files): Add m4/nproc.m4.
29598         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29599         (Makefile.am): Instead, augment lib_SOURCES.
29600
29601 2009-10-18  Bruno Haible  <bruno@clisp.org>
29602
29603         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29604         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29605         sys/param.h.
29606
29607 2009-10-16  Eric Blake  <ebb9@byu.net>
29608
29609         utimensat: new module
29610         * modules/utimensat: New file.
29611         * lib/utimensat.c (utimensat): Likewise.
29612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29613         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29614         so we can work around Linux bugs.
29615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29616         * modules/sys_stat (Makefile.am): Substitute them.
29617         * lib/sys_stat.in.h (utimensat): Declare it.
29618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29619         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29620         * modules/utimensat-tests: New test.
29621         * tests/test-utimensat.c: Likewise.
29622
29623         utimens: let lutimens work on non-symlinks
29624         * lib/utimens.c (lutimens): Fall back to utimens rather than
29625         failing with ENOSYS, when file is not a symlink.
29626         (utimens): Reduce redirection.
29627         * tests/test-lutimens.h (test_lutimens): Update test to cover
29628         non-symlinks.
29629         * tests/test-utimens.h (test_utimens): Update test to cover
29630         symlinks.
29631         * tests/test-utimens.c (main): Update caller.
29632
29633         utimens: cache whether utimensat syscall works
29634         * lib/utimens.c (utimensat_works_really): New cache variable.
29635         (fdutimens, lutimens): Use it to avoid failing syscall.
29636
29637         test-stat-time, test-utimens: improve portability
29638         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29639         ext4 on alpha, and for cygwin.
29640         * tests/test-utimens-common.h: New file.
29641         (nap): Factor delays into single function.
29642         * tests/test-lutimens.h (test_lutimens): Use new header.
29643         * tests/test-futimens.h (test_futimens): Likewise.
29644         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29645         timestamps to occur from same machine, as was done previously for
29646         test_utimens.
29647         * modules/utimens-tests (Files): Ship new file.
29648         * modules/futimens-tests (Files): Likewise.
29649         Reported in part by Jim Meyering.
29650
29651         sys_stat: sort replacement declarations
29652         * lib/sys_stat.in.h: Sort declarations.
29653         * lib/futimens.c (futimens): Fix typo.
29654
29655 2009-10-15  Jim Meyering  <meyering@redhat.com>
29656
29657         don't let environment settings perturb build
29658         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29659         could cause a configure-time and/or build-time malfunction.
29660         Typically, a configure-time function-in-library test is performed
29661         via code like this:
29662
29663           LIB_VAR=
29664           AC_SUBST([LIB_VAR])
29665           prefix_saved_LIBS=$LIBS
29666             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29667                        [test "$ac_cv_search_FUNC" = "none required" ||
29668                         LIB_VAR=$ac_cv_search_FUNC])
29669           LIBS=$prefix_saved_LIBS
29670
29671         However, in each of the files affected by this change, the LIB_VAR=
29672         initialization was omitted.  Thus, when set in the environment, its
29673         value would propagate into generated Makefiles when FUNC is not found
29674         in LIB_NAME.
29675         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29676         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29678
29679 2009-10-14  Eric Blake  <ebb9@byu.net>
29680
29681         fchdir: avoid infinite recursion in mingw
29682         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29683         recursing.
29684
29685         test-stat-time: port to mingw
29686         * tests/test-stat-time.c (force_unlink): Return a value.
29687         (test_ctime) [W32]: Fix compilation error.
29688         (nap): Don't call usleep with too large an argument.  Use
29689         force_unlink.
29690         * doc/pastposix-functions/usleep.texi (usleep): Document the
29691         portability issue.
29692
29693 2009-10-13  Jim Meyering  <meyering@redhat.com>
29694
29695         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29696         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29697         * modules/pipe-filter-ii: Likewise.
29698         * modules/sys_socket-tests: Likewise.
29699         * modules/tsearch-tests: Likewise.
29700         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29701         (check): Depend on it.
29702
29703 2009-10-12  Eric Blake  <ebb9@byu.net>
29704
29705         utimens-tests: port to NFS file systems
29706         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29707         comparisons to avoid spurious failures from timestamp drift
29708         between NFS machines.
29709
29710 2009-10-12  Eric Blake  <ebb9@byu.net>
29711
29712         stat-time-tests: minor cleanups
29713         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29714         * tests/test-stat-time.c (nap): Separate assignment from call.
29715         Suggested by Paolo Bonzini and Bruno Haible.
29716
29717         sys_stat: guarantee struct timespec
29718         * lib/sys_stat.in.h (includes): Always include <time.h>
29719         * modules/sys_stat (Depends-on): Add time.
29720         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29721         mode_t permission values.
29722         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29723         get at subsecond timestamps.
29724
29725 2009-10-10  Eric Blake  <ebb9@byu.net>
29726
29727         futimens: new module
29728         * modules/futimens: New file.
29729         * lib/futimens.c (futimens): Likewise.
29730         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29731         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29732         we can work around Linux bugs.
29733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29734         * modules/sys_stat (Makefile.am): Substitute them.
29735         * lib/sys_stat.in.h (futimens): Declare it.
29736         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29737         * doc/posix-functions/futimens.texi (futimens): Likewise.
29738         * modules/futimens-tests: New test.
29739         * tests/test-futimens.c: Likewise.
29740
29741         utimens: introduce fdutimens
29742         * lib/utimens.h (fdutimens): New prototype.
29743         * lib/utimens.c (gl_futimens): Move guts...
29744         (fdutimens): ...to new interface.
29745         * tests/test-utimens.c (do_fdutimens): Use it.
29746
29747         utimens: add UTIME_NOW and UTIME_OMIT support
29748         * lib/utimens.c (validate_timespec, update_timespec): New helper
29749         functions.
29750         (gl_futimens, lutimens): Use them.
29751         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29752         stdbool, sys_stat.
29753         (Link): Mention resulting library dependency.
29754         * modules/utimecmp (Link): Likewise.
29755         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29756         (Makefile.am): Pick up library dependency.
29757         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29758         definition.
29759         * tests/test-sys_stat.c: Test the definitions.
29760         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29761         * NEWS: Document library dependency.
29762
29763         utimecmp: support symlink timestamps
29764         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29765         hashing when possible.  Use pathconf when available.
29766         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29767         * modules/utimecmp (Depends-on): Add lstat.
29768
29769         utimens: add lutimens interface
29770         * lib/utimens.c (lutimens): New function.
29771         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29772         * lib/utimens.h (lutimens): Declare new interface.
29773         * tests/test-utimens.c (main): Enhance test.
29774         * tests/test-lutimens.h (test_lutimens): New file.
29775         * modules/utimens-tests (Files): Distribute it.
29776         (Depends-on): Add symlink.
29777         (configure.ac): Check for usleep.
29778
29779         utimens: validate futimens usage
29780         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29781         fewer syscalls on failure later on.  Avoid compiler warning on
29782         mingw.
29783         * modules/utimens (Depends-on): Add dup2.
29784
29785         utimens: add test
29786         * modules/utimens-tests: New test.
29787         * tests/test-utimens.h: New file.
29788         * tests/test-futimens.h: Likewise.
29789         * tests/test-utimens.c: Likewise.
29790
29791         doc: mention timestamp portability issues
29792         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29793         instead.
29794         * doc/posix-functions/utime.texi (utime): Likewise.
29795         * doc/posix-functions/utimes.texi (utimes): Likewise.
29796         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29797         instead.
29798         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29799         module.
29800         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29801         Mention weakness with symlink timestamps.
29802         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29803         to utimensat/futimens instead.
29804         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29805
29806         test-dup2: enhance test
29807         * tests/test-dup2.c (main): Also check AT_FDCWD.
29808
29809         test-stat-time: avoid more spurious failures
29810         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29811         xfs; and avoid race if the two timestamps cross quantization edge.
29812
29813         relocatable: prefer 'file system' over 'filesystem'
29814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29815         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29816         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29817         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29818         * lib/relocatable.c (compute_curr_prefix): Likewise.
29819
29820 2009-10-10  Jim Meyering  <meyering@redhat.com>
29821
29822         stat-time-tests: check for the usleep function
29823         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29824
29825 2009-10-10  Bruno Haible  <bruno@clisp.org>
29826
29827         * modules/xnanosleep: Put the Link section after the Include section.
29828
29829 2009-10-09  Eric Blake  <ebb9@byu.net>
29830
29831         dup2: work around FreeBSD 6.1 bug
29832         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29833         * doc/posix-functions/dup2.texi (dup2): Document it.
29834         Reported by Nelson H. F. Beebe and Jim Meyering.
29835
29836         test-stat-time: port to buggy NFS clients
29837         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29838         (test_ctime): Also skip test if mtime and ctime are skewed.
29839
29840         maint: prefer 'file system' over 'filesystem'
29841         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29842         * doc/posix-functions/lstat.texi (lstat): Likewise.
29843         * lib/file-has-acl.c (file_has_acl): Likewise.
29844         * lib/fwriteerror.c [TEST]: Likewise.
29845         * tests/test-areadlink.h (test_areadlink): Likewise.
29846         * tests/test-areadlinkat-with-size.c (main): Likewise.
29847         * tests/test-areadlinkat.c (main): Likewise.
29848         * tests/test-canonicalize-lgpl.c (main): Likewise.
29849         * tests/test-canonicalize.c (main): Likewise.
29850         * tests/test-fstatat.c (main): Likewise.
29851         * tests/test-linkat.c (main): Likewise.
29852         * tests/test-lstat.h (test_lstat_func): Likewise.
29853         * tests/test-mkdir.h (test_mkdir): Likewise.
29854         * tests/test-readlink.h (test_readlink): Likewise.
29855         * tests/test-remove.c (main): Likewise.
29856         * tests/test-rename.h (test_rename): Likewise.
29857         * tests/test-renameat.c (main): Likewise.
29858         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29859         * tests/test-symlink.h (test_symlink): Likewise.
29860         * tests/test-symlinkat.c (main): Likewise.
29861         * tests/test-unlink.h (test_unlink_func): Likewise.
29862         * tests/test-unlinkat.c (main): Likewise.
29863
29864         maint: make realtime library usage explicit
29865         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29866         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29867         * modules/settime (Link): Likewise.
29868         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29869
29870         test-stat-time: speed up execution
29871         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29872         warning on mingw.
29873         (nap): New helper function.
29874         (prepare_test): Use it to reduce sleep time.
29875         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29876         execution.
29877         * modules/stat-time-tests (configure.ac): Check for usleep.
29878
29879 2009-10-09  Jim Meyering  <meyering@redhat.com>
29880
29881         selinux-h: always use getfilecon wrappers
29882         * lib/getfilecon.c: New file.
29883         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29884         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29885         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29886         (fgetfilecon): Provide a stub.
29887         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29888         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29889         file unconditionally.
29890         When <selinux/selinux.h> is found, arrange to use wrappers.
29891         * modules/selinux-h (Files): Add getfilecon.c.
29892         (Makefile.am): Substitute include-next-related bits
29893         into the now-always-generated selinux/selinux.h file.
29894         * doc/glibc-functions/lgetfilecon.texi: New file.
29895         * doc/glibc-functions/fgetfilecon.texi: New file.
29896         * doc/glibc-functions/getfilecon.texi: New file.
29897         * doc/glibc-functions/getfilecon-desc.texi: New file.
29898         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29899         which to pull in the new files.
29900         * MODULES.html.sh (Misc): Add selinux-h.
29901
29902 2009-10-08  Jim Meyering  <meyering@redhat.com>
29903
29904         unistd: fix comment typo
29905         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29906
29907 2009-10-08  Eric Blake  <ebb9@byu.net>
29908
29909         areadlink: use SIZE_MAX consistently
29910         * modules/areadlink (Depends-on): Add stdint.
29911         * modules/areadlink-with-size (Depends-on): Likewise.
29912         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29913         gives NULL; drop sys/types, since unistd gives size_t; and add
29914         stdint for SIZE_MAX.
29915         (SIZE_MAX): Rely on headers.
29916         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29917         and add stdint.
29918         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29919         (SIZE_MAX): Likewise.
29920         (INITIAL_BUF_SIZE): Turn into enum.
29921         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29922
29923 2009-10-08  Jim Meyering  <meyering@redhat.com>
29924
29925         areadlinkat: avoid compilation failure
29926         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29927         Fix typo in comment.
29928
29929 2009-10-07  Eric Blake  <ebb9@byu.net>
29930
29931         areadlinkat-with-size: new module
29932         * modules/areadlinkat-with-size: New module.
29933         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29934         * lib/areadlink.h (areadlinkat): Declare it.
29935         * MODULES.html.sh (File system functions): Mention it.
29936         * modules/areadlinkat-with-size-tests: New test.
29937         * tests/test-areadlinkat-with-size.c: New file.
29938
29939         xreadlinkat: new module
29940         * modules/xreadlinkat: New module.
29941         * lib/xreadlinkat.c (xreadlinkat): New file.
29942         * lib/xreadlink.h (xreadlinkat): Declare it.
29943         * MODULES.html.sh (File system functions): Mention it.
29944
29945         areadlinkat: new module
29946         * lib/at-func.c (FUNC_FAIL): New define.
29947         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29948         * modules/areadlinkat: New module.
29949         * lib/linkat.c (areadlinkat): Move...
29950         * lib/areadlinkat.c (areadlinkat): ...to new file.
29951         * lib/areadlink.h (areadlinkat): Declare it.
29952         * modules/linkat (Depends-on): Add areadlinkat.
29953         * MODULES.html.sh (File system functions): Mention it.
29954         * modules/areadlinkat-tests: New test.
29955         * tests/test-areadlinkat.c: New file.
29956
29957         areadlink, areadlink-with-size: add tests
29958         * modules/areadlink-tests: New test.
29959         * modules/areadlink-with-size-tests: Likewise.
29960         * tests/test-areadlink.h: New file.
29961         * tests/test-areadlink.c: Likewise.
29962         * tests/test-areadlink-with-size.c: Likewise.
29963
29964         maint: minor cleanups
29965         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29966         _UNUSED_PARAMETER_ instead.
29967         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29968         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29969         * modules/linkat-tests (Files): Distribute test-link.h.
29970
29971         openat, utimens: whitespace cleanup
29972         * lib/openat.c: Prefer space throughout, rather than mix of 8
29973         spaces vs. tabs.
29974         * lib/at-func.c: Likewise.
29975         * lib/utimens.c: Likewise.
29976
29977         openat: avoid using wrong fd
29978         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29979         working directory chooses same fd.
29980         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29981
29982         mkdir, mkdirat: fix cygwin 1.5.x bug
29983         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29984         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29985         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29986         bug.
29987         (gl_PREREQ_MKDIR): Delete unused macro.
29988         * modules/mkdir (Files): Track file rename.
29989         (configure.ac): Update macro name.
29990         * modules/openat (Depends-on): Add mkdir.
29991         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29992
29993         mkdir, mkdirat: add tests
29994         * modules/mkdir-tests: New test.
29995         * tests/test-mkdir.h: New file.
29996         * tests/test-mkdir.c: Likewise.
29997         * tests/test-mkdirat.c: Likewise.
29998         * modules/openat-tests (Files): Add new files.
29999         (Makefile.am): Run new test.
30000
30001 2009-10-06  Eric Blake  <ebb9@byu.net>
30002
30003         doc: tweak *at function documentation
30004         * doc/posix-functions/faccessat.texi (faccessat): Mention
30005         known issue with replacement.
30006         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30007         * doc/posix-functions/linkat.texi (linkat): Likewise.
30008         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30009         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30010         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30011         * doc/posix-functions/renameat.texi (renameat): Likewise.
30012         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30013
30014         openat: fix GNU/Hurd bug in unlinkat
30015         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30016         broken.
30017         * doc/posix-functions/unlink.texi (unlink): Document this.
30018         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30019
30020         fdopendir: fix GNU/Hurd bug
30021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30022         allowing non-directory fds.
30023         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30025         * modules/dirent (Makefile.am): Substitute it.
30026         * lib/dirent.in.h (fdopendir): Declare replacement.
30027         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30028         * tests/test-fdopendir.c (main): Test something other than
30029         /dev/null, since on Hurd that behaves like a directory.
30030
30031         test-symlink: port to GNU/Hurd
30032         * tests/test-symlink.h (test_symlink): Relax expected errno.
30033
30034         doc: tweak more cygwin information
30035         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30036         now compatible with glibc.
30037         * doc/posix-functions/getopt.texi (getopt): Likewise.
30038
30039         getopt-gnu: add another test
30040         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30041         guarantee behavior relied on by m4.
30042         * tests/test-getopt.c (main): Use it.
30043         * modules/getopt-posix-tests (Depends-on): Add setenv.
30044         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30045
30046         getopt: fix compilation on darwin
30047         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30048         include.
30049         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30050         Reported by Ludovic Courtès.
30051
30052 2009-10-06  Bruno Haible  <bruno@clisp.org>
30053
30054         * modules/size_max (Description): Discourage its use.
30055         Reported by Simon Josefsson.
30056
30057 2009-10-06  Jim Meyering  <meyering@redhat.com>
30058
30059         linkat: avoid compilation failure
30060         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30061
30062 2009-10-05  Eric Blake  <ebb9@byu.net>
30063
30064         linkat: support Linux 2.6.17
30065         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30066         linkat on Linux, but allow cache variable override.
30067         * lib/linkat.c (rpl_linkat): Define override.
30068         * modules/linkat (Depends-on): Add symlinkat.
30069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30070         * modules/unistd (Makefile.am): Substitute it.
30071         * lib/unistd.in.h (linkat): Declare replacement.
30072         Reported by Pádraig Brady.
30073
30074         quotearg: port test to systems with C.UTF-8 locale
30075         * tests/test-quotearg.c (struct result_strings): Add another
30076         member, differentiating between C.ASCII and C.UTF-8 handling.
30077         (compare_strings): Add parameter.
30078         (main): Adjust all callers.
30079
30080         getopt: avoid clash with FreeBSD _getopt_internal
30081         * lib/getopt.in.h (_getopt_internal): Override the name.
30082         * lib/getopt_int.h (includes): Pick up any overrides.
30083         Reported by Reuben Thomas.
30084
30085         hash: allow C89 compilation
30086         * lib/hash.c (check_tuning): Move declaration before statement.
30087         Reported by Reuben Thomas.
30088
30089 2009-10-05  Karl Berry  <karl@gnu.org>
30090
30091         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30092
30093 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30094             Bruno Haible  <bruno@clisp.org>
30095
30096         * lib/uname.c (uname): Use a table-driven algorithm to compute
30097         Windows NT versions.
30098
30099 2009-10-04  Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30102         program_invocation_short_name.
30103         * modules/progname (configure.ac): Test for presence of
30104         program_invocation_short_name.
30105         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30106
30107 2009-10-04  Bruno Haible  <bruno@clisp.org>
30108
30109         * lib/progname.c (set_program_name): Fix comment.
30110         Reported by Jim Meyering.
30111
30112 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30113             Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/uname.c: Include <string.h>.
30116         (uname): Do only one call to GetVersionEx in the common case.
30117
30118 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30119             Bruno Haible  <bruno@clisp.org>
30120
30121         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30122         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30123         (uname): Add support for Windows CE and various non-x86 CPU types.
30124
30125 2009-10-03  Bruno Haible  <bruno@clisp.org>
30126
30127         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30128         invocation to tests/configure.ac.
30129         Reported by Ian Beckwith <ianb@erislabs.net>.
30130
30131 2009-10-02  Eric Blake  <ebb9@byu.net>
30132
30133         fchdir: avoid compiler warning
30134         * lib/fchdir.c (canonicalize_file_name)
30135         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30136
30137         test-open: support mingw errno values
30138         * tests/test-open.h (test_open): Relax test.
30139         * tests/test-fopen.h (test_fopen): Likewise.
30140         * tests/test-openat-safer.c (main): Likewise.
30141
30142         open: fix opening directory on mingw
30143         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30144
30145         test-open: on GNU/Hurd, /dev/null is a directory
30146         * tests/test-fopen.h (main): Rename...
30147         (test_fopen): ...to this.  Use a guaranteed non-directory when
30148         confirming open behavior on trailing slash.
30149         * tests/test-openat-safer.c (main): Likewise.
30150         * tests/test-open.h (main): Likewise....
30151         (test_open): ...to this.
30152         * tests/test-fopen.c (main): Adjust caller.
30153         * tests/test-fopen-safer.c (main): Likewise.
30154         * tests/test-open.c (main): Likewise.
30155         * tests/test-fcntl-safer.c (main): Likewise.
30156         Reported by Samuel Thibault.
30157
30158         rename, fchdir: don't ignore chdir failure
30159         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30160         * lib/rename.c (rpl_rename) [W32]: Likewise.
30161         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30162         an empty destination directory if source cannot be renamed,
30163         although there is still possibility for failure.
30164         * doc/posix-functions/rename.texi (rename): Document the race.
30165         Reported by Jim Meyering.
30166
30167         maint: cleanup whitespace in recent commits
30168         * lib/rename.c (rpl_rename): Remove tabs.
30169         * tests/test-link.h (test_link): Likewise.
30170         * lib/fchdir.c (get_name): Likewise.
30171         Reported by Jim Meyering.
30172
30173 2009-10-02  Ben Pfaff  <blp@gnu.org>
30174
30175         relocatable-prog-wrapper: Add missing dependency on
30176         double-slash-root.
30177         * modules/relocatable-prog-wrapper: Add dependency.
30178         Reported by Ian Beckwith <ianb@erislabs.net>.
30179
30180 2009-10-02  Eric Blake  <ebb9@byu.net>
30181
30182         renameat: fix Solaris bugs
30183         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30184         needed fixing.
30185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30186         * modules/stdio (Makefile.am): Substitute it.
30187         * lib/stdio.in.h (renameat): Declare replacement.
30188         * lib/renameat.c (rpl_renameat): Implement fix.
30189
30190         renameat: new module
30191         * modules/renameat: New file.
30192         * lib/renameat.c (renameat): Likewise.
30193         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30195         * modules/stdio (Makefile.am): Substitute them.
30196         * lib/stdio.in.h (renameat): Declare it.
30197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30198         * doc/posix-functions/renameat.texi (renameat): Likewise.
30199         * modules/renameat-tests: New test.
30200         * tests/test-renameat.c: Likewise.
30201
30202         rename: fix mingw bugs
30203         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30204         directory overwrite bugs.
30205
30206         rename: fix another cygwin 1.5 bug
30207         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30208         checks.
30209         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30210         unnecessary cygwin workarounds.  Also work around bug with moving
30211         full directory onto an empty one.
30212         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30213
30214         rename-dest-slash: merge into rename module
30215         * modules/rename-dest-slash (Status): Mark obsolete.
30216         (Depends-on): Add rename.
30217         (Files): Let rename do it all.
30218         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30219         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30220         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30221         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30222         * lib/rename.c (rpl_rename): Update comments.
30223
30224         rename: fix cygwin 1.5.x bugs
30225         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30226         * lib/rename.c (rpl_rename): Work around them.
30227         * modules/rename (Depends-on): Add same-inode.
30228
30229         rename: fix Solaris 10 bug
30230         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30231         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30232         was the only bug.
30233
30234         rename: fix Solaris 9 bug
30235         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30236         on non-directory.  Avoid calling exit.
30237         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30238         strdup.
30239         * modules/rename-tests (Depends-on): Drop lstat.
30240         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30241         (gl_PREREQ_RENAME): Delete unused macro.
30242
30243         rename-dest-slash: fix NetBSD bug
30244         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30245         links.
30246         * modules/rename-dest-slash (Depends-on): Add same-inode.
30247
30248         rename-tests: new test, exposes several platform bugs
30249         * modules/rename-tests: New file.
30250         * tests/test-rename.h: Likewise.
30251         * tests/test-rename.c: Likewise.
30252         * doc/posix-functions/rename.texi (rename): Improve documentation,
30253         including bugs that will eventually be fixed in gnulib.
30254
30255 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30256
30257         * lib/uname.c: Include <stdlib.h>
30258         (uname): Assume version info is available.
30259
30260 2009-10-02  Jim Meyering  <meyering@redhat.com>
30261
30262         gnu-web-doc-update: correct --help output
30263         * build-aux/gnu-web-doc-update: Make --help output relevant.
30264
30265         gnu-web-doc-update: add standard options
30266         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30267
30268         gnu-web-doc-update: New module.
30269         Use this script to automatically update the on-line web documentation
30270         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30271         * modules/gnu-web-doc-update: New file, from coreutils.
30272         * build-aux/gnu-web-doc-update: New script.
30273
30274 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30275
30276         link: LoadLibrary is not needed.
30277         * lib/link.c: Use GetModuleHandle.
30278
30279 2009-10-01  Eric Blake  <ebb9@byu.net>
30280
30281         getopt: bump serial number
30282         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30283         change.
30284
30285         tests: tighten link, rmdir, and remove tests
30286         * tests/test-link.h (includes): No need to use <config.h> here.
30287         Clean up if directory hard link was created, otherwise test for
30288         trailing '.'.
30289         * tests/test-linkat.c (main): Simplify.
30290         * tests/test-remove.c (main): Enhance test for trailing '.'.
30291         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30292
30293 2009-10-01  Jim Meyering  <meyering@redhat.com>
30294
30295         maint.mk: requiring "make major" was annoying, for a "minor" release.
30296         What is intended is "stable", to contrast with alpha and beta,
30297         so require "make stable", not "make major".
30298         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30299         (get_tool_versions): Likewise.
30300         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30301
30302 2009-09-30  Ben Pfaff  <blp@gnu.org>
30303
30304         Fix broken build of replacement for Windows tmpfile().
30305         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30306         flags argument added along with the 'mkostemp' module.
30307
30308 2009-09-28  Bruno Haible  <bruno@clisp.org>
30309
30310         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30311         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30312         to 'remove_elt'.
30313         (gl_list_remove): Update.
30314         * lib/gl_list.c (gl_list_remove): Update.
30315         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30316         to 'remove_elt'.
30317         (gl_oset_remove): Update.
30318         * lib/gl_list.c (gl_oset_remove): Update.
30319         Reported by Eric Blake.
30320
30321 2009-09-28  Eric Blake  <ebb9@byu.net>
30322
30323         doc: mention yet more cygwin 1.7 status
30324         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30325         cygwin.
30326         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30327         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30328
30329         argp: fix test failure
30330         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30331         that are not upper-case.  Pass correct range to tolower.
30332
30333 2009-09-27  Jim Meyering  <meyering@redhat.com>
30334
30335         test-yesno: work around sparc-dash here-document infelicity
30336         Without this change, the literal \177 byte in a here document
30337         would make dash 0.5.5.1-3 access uninitialized memory.
30338         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30339         Instead, use a marker, "@", and filter through tr to create the desired
30340         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30341
30342 2009-09-27  Bruno Haible  <bruno@clisp.org>
30343
30344         Disable untested support for new flavours of ACLs on AIX.
30345         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30346         progress.
30347         * lib/set-mode-acl.c (qset_acl): Likewise.
30348
30349 2008-12-07  Bruno Haible  <bruno@clisp.org>
30350
30351         Add support for new flavours of ACLs on AIX. (Untested.)
30352         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30353         (file_has_acl): Add support for newer AIX.
30354         * lib/set-mode-acl.c (qset_acl): Likewise.
30355         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30356         Rainer Tammer <tammer@tammer.net>.
30357
30358 2009-09-26  Eric Blake  <ebb9@byu.net>
30359
30360         argp: fix compilation of getopt
30361         * lib/getopt.in.h (includes): Use different guard than glibc.
30362         Reported by Sergey Poznyakoff.
30363
30364         doc: mention more cygwin 1.7 status
30365         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30366         bug.
30367         * doc/posix-functions/execl.texi (execl): Likewise.
30368         * doc/posix-functions/execle.texi (execle): Likewise.
30369         * doc/posix-functions/execlp.texi (execlp): Likewise.
30370         * doc/posix-functions/execv.texi (execv): Likewise.
30371         * doc/posix-functions/execve.texi (execve): Likewise.
30372         * doc/posix-functions/execvp.texi (execvp): Likewise.
30373         * doc/glibc-functions/canonicalize_file_name.texi
30374         (canonicalize_file_name): Cygwin 1.7 now provides this.
30375         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30376         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30377         on AT_SYMLINK_NOFOLLOW.
30378
30379 2009-09-24  Eric Blake  <ebb9@byu.net>
30380
30381         test-linkat: make test more robust
30382         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30383
30384         getopt: fix inclusion guards for cygwin
30385         * modules/getopt-posix (Depends-on): Add include-next.
30386         (Makefile.am): Substitute more items in replacement header.
30387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30388         <getopt.h>.
30389         * lib/getopt.in.h (includes): Use split inclusion guard, and
30390         prefer <getopt.h> over include <unistd.h> when one is present.
30391         (option): Also override name of 'struct option'.
30392
30393         same-inode: revert prior change; it is not yet ready
30394         * NEWS: Undo mention of this change.
30395         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30396         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30397         * lib/cycle-check.c (cycle_check): Likewise.
30398         * lib/same.c (same_name): Likewise.
30399         * lib/at-func2.c (at_func2): Likewise.
30400
30401 2009-09-23  Eric Blake  <ebb9@byu.net>
30402
30403         linkat: new module
30404         * modules/linkat: New file.
30405         * lib/at-func2.c (at_func2): Likewise.
30406         * lib/linkat.c (linkat): Likewise.
30407         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30408         * lib/openat-priv.h (at_func2): Add declaration.
30409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30410         * modules/unistd (Makefile.am): Substitute them.
30411         * lib/unistd.in.h (linkat): Declare it.
30412         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30413         * doc/posix-functions/linkat.texi (linkat): Likewise.
30414         * doc/posix-functions/link.texi (link): Tweak wording.
30415         * tests/test-link.c (main): Move guts...
30416         * tests/test-link.h (test_link): ...into new file.
30417         * modules/linkat-tests: New test.
30418         * tests/test-linkat.c: Likewise.
30419         * modules/link-tests (Files): Ship new file.
30420         (Depends-on): Add stdbool.
30421
30422         dirname: add library-safe mdir_name
30423         * lib/dirname.h (mdir_name): New prototype.
30424         * lib/dirname.c (dir_name): Move guts...
30425         (mdir_name): ...to new function that avoids xalloc_die.
30426
30427         fchdir: another mingw fix
30428         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30429         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30430         on mingw (where it has not yet been ported), and make it optional
30431         elsewhere.
30432         (_gl_register_fd): Use it.
30433
30434         same-inode: make SAME_INODE tri-state, to port to mingw
30435         * NEWS: Mention this change.
30436         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30437         st_ino always being 0.
30438         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30439         * lib/cycle-check.c (cycle_check): Likewise.
30440         * lib/same.c (same_name): Likewise.
30441
30442         lstat: avoid mingw compilation error
30443         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30444         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30445         lstat ourselves.
30446         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30447         was adequate.
30448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30449         the checks for lstat.
30450         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30451
30452         link: fix test failure on Solaris 9
30453         * lib/link.c (rpl_link): Don't assume link will catch bogus
30454         trailing slash on source.
30455
30456         test-symlinkat: enhance test
30457         * tests/test-readlink.c (main): Move guts...
30458         * tests/test-readlink.h (test_readlink): ...into new file.
30459         * tests/test-symlink.c (main): Move guts...
30460         * tests/test-symlink.h (test_symlink): ...into new file.
30461         * tests/test-symlinkat.c (main): Use new files for further
30462         coverage.
30463         (do_symlink, do_readlink): New helper functions.
30464         * modules/symlink-tests (Files): Ship new file.
30465         (Depends-on): Add stdbool.
30466         * modules/readlink-tests (Files): Ship new file.
30467         (Depends-on): Add stdbool.
30468         * modules/symlinkat-tests (Files): Use new files.
30469
30470 2009-09-23  Eric Blake  <ebb9@byu.net>
30471
30472         readlink: document portability issue with symlink length
30473         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30474         systems have bogus st_size on symlinks, and mention the
30475         areadlink-with-size module.
30476         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30477         * doc/posix-functions/readlink.texi (readlink): Mention the
30478         areadlink module, and ERANGE failure.
30479         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30480         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30481
30482         readlink: fix Solaris 9 bug with trailing slash
30483         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30484         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30485         * doc/posix-functions/readlink.texi (readlink): Document this.
30486         * modules/readlink-tests: New test.
30487         * tests/test-readlink.c: Likewise.
30488
30489         readlink: fix cygwin 1.5.x bug with return type
30490         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30491         * lib/unistd.in.h (readlink): Use ssize_t.
30492         * lib/readlink.c (readlink): Likewise.
30493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30494         * modules/unistd (Makefile.am): Substitute it.
30495         * lib/unistd.in.h (readlink): Declare replacement.
30496         * doc/posix-functions/readlink.texi (readlink): Document this.
30497
30498         symlink: use throughout gnulib
30499         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30500         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30501         symlink is not used.
30502         * modules/symlinkat (Depends-on): Add symlink.
30503         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30504         * modules/canonicalize-tests (Depends-on): Likewise.
30505         * modules/lstat-tests (Depends-on): Likewise.
30506         * modules/openat-tests (Depends-on): Likewise.
30507         * modules/remove-tests (Depends-on): Likewise.
30508         * modules/rmdir-tests (Depends-on): Likewise.
30509         * modules/unlink-tests (Depends-on): Likewise.
30510         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30511         * tests/test-canonicalize.c (symlink): Likewise.
30512         * tests/test-fstatat.c (symlink): Likewise.
30513         * tests/test-lstat.c (symlink): Likewise.
30514         * tests/test-remove.c (symlink): Likewise.
30515         * tests/test-rmdir.c (symlink): Likewise.
30516         * tests/test-unlink.c (symlink): Likewise.
30517         * tests/test-unlinkat.c (symlink): Likewise.
30518
30519         symlink: new module, for Solaris 9 bug
30520         * modules/symlink: New file.
30521         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30522         * lib/symlink.c: Likewise.
30523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30524         * modules/unistd (Makefile.am): Substitute them.
30525         * lib/unistd.in.h (symlink): Declare replacement.
30526         * MODULES.html.sh (File system functions): Mention it.
30527         * doc/posix-functions/symlink.texi (symlink): Likewise.
30528         * modules/symlink-tests: New test.
30529         * tests/test-symlink.c: Likewise.
30530
30531 2009-09-23  Bruno Haible  <bruno@clisp.org>
30532
30533         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30534         when needed.
30535         Test case: gnulib-tool --import --with-tests atexit inttypes.
30536         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30537
30538 2009-09-23  Bruno Haible  <bruno@clisp.org>
30539
30540         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30541         subcommand, not in a subshell.
30542
30543 2009-09-22  Eric Blake  <ebb9@byu.net>
30544
30545         unistd: sort replacement declarations
30546         * lib/unistd.in.h: Sort declarations.
30547
30548         open, openat: minor optimization
30549         * lib/open.c (open): If open succeeded, len is non-zero.
30550         * lib/openat.c (rpl_openat): Likewise.
30551
30552         link-follow: ensure correct result
30553         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30554         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30555         distinguish between possible failures.
30556
30557 2009-09-21  Eric Blake  <ebb9@byu.net>
30558
30559         fts: avoid compiler warning
30560         * lib/fts.c (dirent_inode_sort_may_be_useful)
30561         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30562
30563 2009-09-19  Bruno Haible  <bruno@clisp.org>
30564
30565         * lib/progreloc.c (canonicalize_file_name): New declaration.
30566
30567 2009-09-19  Eric Blake  <ebb9@byu.net>
30568
30569         link: fix quoting
30570         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30571
30572         openat: fix openat bugs on Solaris 9
30573         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30574         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30575         * modules/openat (Depends-on): Add open.
30576         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30577         * modules/fcntl-h (Makefile.am): Substitute it.
30578         * lib/fcntl.in.h (openat): Declare replacement.
30579         * doc/posix-functions/openat.texi (openat): Document this.
30580
30581         openat: move fstatat and unlinkat into correct files
30582         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30583         compiled.
30584         * lib/openat.c (fstatat, unlinkat): Move...
30585         * lib/fstatat.c (fstatat): ...into correct files.
30586         * lib/unlinkat.c (unlinkat): Likewise.
30587
30588         openat: fix unlinkat bugs on Solaris 9
30589         * lib/unlinkat.c (unlinkat): New file.
30590         * modules/openat (Depends-on): Add unlink.
30591         (Files): Distribute it.
30592         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30593         trailing slash behavior is broken.
30594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30595         * modules/unistd (Makefile.am): Substitute it.
30596         * lib/unistd.in.h (unlinkat): Declare replacement.
30597         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30598
30599         openat: fix fstatat bugs on Solaris 9
30600         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30601         stat.
30602         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30603
30604         test-unlinkat: enhance test, to expose Solaris 9 bug
30605         * tests/test-unlink.c (main): Factor guts...
30606         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30607         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30608         * tests/test-rmdir.c (main): Adjust caller.
30609         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30610         (unlinker): New helper function.
30611         (rmdirat): Enhance check.
30612         * modules/rmdir-tests (Depends-on): Add stdbool.
30613         * modules/unlink-tests (Depends-on): Likewise.
30614         (Files): Add test-unlink.h.
30615         * modules/openat-tests (Files): Likewise.
30616         (Depends-on): Add unlinkdir.
30617
30618         test-fstatat: new test, to expose Solaris 9 bugs
30619         * tests/test-stat.c (main): Factor guts...
30620         * tests/test-stat.h (test_stat_func): ...into new file.
30621         * tests/test-lstat.c (main): Factor guts...
30622         * tests/test-lstat.h (test_lstat_func): ...into new file.
30623         * tests/test-fstatat.c: New file.
30624         * modules/stat-tests (Files): Add test-stat.h.
30625         * modules/lstat-tests (Files): Add test-lstat.h.
30626         (Depends-on): Add stdbool.
30627         * modules/openat-tests (Depends-on): Add pathmax.
30628         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30629         (Makefile.am): Run new test.
30630
30631         remove: new module, for mingw and Solaris 9 bugs
30632         * modules/remove: New file.
30633         * lib/remove.c: Likewise.
30634         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30636         * modules/stdio (Makefile.am): Use them.
30637         * lib/stdio.in.h (remove): Declare replacement.
30638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30639         * doc/posix-functions/remove.texi (remove): Likewise.
30640         * modules/remove-tests: New test.
30641         * tests/test-remove.c: Likewise.
30642
30643         unlink: new module, for Solaris 9 bug
30644         * modules/unlink: New file.
30645         * lib/unlink.c: Likewise.
30646         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30648         * modules/unistd (Makefile.am): Use them.
30649         * lib/unistd.in.h (stat): Declare replacement.
30650         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30651         * doc/posix-functions/unlink.texi (unlink): Likewise.
30652         * modules/unlink-tests: New test.
30653         * tests/test-unlink.c: Likewise.
30654
30655         lstat: fix Solaris 9 bug
30656         * lib/lstat.c (lstat): Also check for trailing slash on
30657         non-symlink, non-directories.  Use stat module to simplify logic.
30658         * doc/posix-functions/lstat.texi (lstat): Document it.
30659         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30660         (configure.ac): Check for symlink.
30661         * tests/test-lstat.c (main): Add more tests.
30662
30663         stat: add as dependency to other modules
30664         * modules/chown (Depends-on): Add stat.
30665         * modules/euidaccess (Depends-on): Likewise.
30666         * modules/fchdir (Depends-on): Likewise.
30667         * modules/isdir (Depends-on): Likewise.
30668         * modules/link (Depends-on): Likewise.
30669         * modules/lstat (Depends-on): Likewise.
30670         * modules/mkdir-p (Depends-on): Likewise.
30671         * modules/modechange (Depends-on): Likewise.
30672         * modules/open (Depends-on): Likewise.
30673         * modules/readlink (Depends-on): Likewise.
30674         * modules/same (Depends-on): Likewise.
30675
30676         stat: fix Solaris 9 bug
30677         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30678         slash.
30679         * lib/stat.c (rpl_stat): Work around it.
30680         * doc/posix-functions/stat.texi (stat): Update documentation.
30681
30682         stat: new module, for mingw bug
30683         * modules/stat: New file.
30684         * lib/stat.c: Likewise.
30685         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30687         * modules/sys_stat (Makefile.am): Use them.
30688         * lib/sys_stat.in.h (stat): Declare replacement.
30689         * lib/openat.c (fstatat): Deal with lstat and stat being function
30690         macros.
30691         * modules/openat (Depends-on): Add inline.
30692         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30693         * doc/posix-functions/stat.texi (stat): Likewise.
30694         * modules/stat-tests: New test.
30695         * tests/test-stat.c: Likewise.
30696
30697 2009-09-19  Jim Meyering  <meyering@redhat.com>
30698
30699         syntax-check: detect unnecessary inclusion of canonicalize.h
30700         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30701
30702 2009-09-19  Eric Blake  <ebb9@byu.net>
30703
30704         canonicalize-lgpl: adjust clients to use correct header
30705         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30706         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30707         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30708         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30709         * lib/progreloc.c (includes): Likewise.
30710
30711 2009-09-19  Jim Meyering  <meyering@redhat.com>
30712
30713         test-posixtm.c: correct a comment
30714         * tests/test-posixtm.c: Correct first-line comment.
30715         Spotted by Eric Blake.
30716
30717 2009-09-16  Jim Meyering  <meyering@redhat.com>
30718
30719         posixtm-tests: make T const-correct; add a test case
30720         * tests/test-posixtm.c (T): Declare const.
30721         Add a test for -(2^31+1).
30722         Remove useless can-succeed-only-in-2002 test.
30723
30724         posixtm-tests: adjust the sole failing test
30725         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30726         expected output matches what mktime now produces.  Cross-checked via
30727         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30728
30729         posixtm: move #ifdef'd tests into a new module
30730         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30731         * tests/test-posixtm.c: ... this new file.
30732         * modules/posixtm-tests: New module.
30733
30734 2009-09-19  Eric Blake  <ebb9@byu.net>
30735
30736         openat: simplify use of at-func.c
30737         * lib/at-func.c (includes): Include prerequisites here, to
30738         simplify requirements on client files.
30739         * lib/openat-priv.h: Add double-inclusion guard.
30740         * lib/faccessat.c (includes): Simplify.
30741         * lib/fchmodat.c (includes): Likewise.
30742         * lib/fchownat.c (includes): Likewise.
30743         * lib/mkdirat.c (includes): Likewise.
30744         * lib/mkfifoat.c (includes): Likewise.
30745         * lib/symlinkat.c (includes): Likewise.
30746
30747         openat: allow return of fd 0
30748         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30749         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30750         unistd-safer.
30751         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30752         <fcntl.h>; this module does not leak fds.
30753         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30754         must be allowed to return 0, leaving openat_safer to add the
30755         safety.
30756         (openat_permissive): Avoid writing to just-opened fd 2 if
30757         restoring the current directory fails.
30758         * lib/openat-die.c (openat_restore_fail): Add comment.
30759         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30760         (save_cwd): Guarantee safe fd, but without use of open_safer.
30761         * tests/test-openat.c: New test.
30762         * modules/openat-tests (Files, Makefile.am): Distribute and build
30763         new file.
30764
30765         relocatable-prog-wrapper: fix build
30766         * modules/relocatable-prog-wrapper (Files): Update name of
30767         canonicalize m4 file, broken on 2009-09-17.
30768         Reported by emad hajjar <aleppos@hotmail.com>.
30769
30770 2009-09-19  Bruno Haible  <bruno@clisp.org>
30771
30772         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30773         * lib/safe-alloc.c: Likewise.
30774         Reported by Ian Beckwith <ianb@erislabs.net>.
30775
30776 2009-09-18  Bruno Haible  <bruno@clisp.org>
30777
30778         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30779         Reported by <erobles@sensacd.com.mx>.
30780
30781 2009-09-17  Eric Blake  <ebb9@byu.net>
30782
30783         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30784         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30785         slashes when checking if last component is missing.
30786         * tests/test-canonicalize.c (main): Test this.
30787
30788         canonicalize, canonicalize-lgpl: honor // if distinct from /
30789         * modules/canonicalize (Files): Add double-slash-root.m4.
30790         * modules/canonicalize-lgpl (Files): Likewise.
30791         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30792         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30793         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30794         fallback definition.
30795         (canonicalize_filename_mode): Use it to protect //.
30796         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30797         (__realpath): Likewise.
30798         * tests/test-canonicalize.c (main): Test this.
30799         * tests/test-canonicalize-lgpl.c (main): Likewise.
30800         * modules/canonicalize-tests (Depends-on): Add same-inode.
30801         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30802
30803         canonicalize-lgpl: fix glibc bug with trailing slash
30804         * m4/canonicalize-lgpl.m4: Move contents...
30805         * m4/canonicalize.m4: ...here.
30806         (gl_CANONICALIZE_LGPL): Factor realpath check...
30807         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30808         glibc 2.3.5 bug, fixed 2005-04-27.
30809         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30810         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30811         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30812         * modules/canonicalize-lgpl (Files): Manage file rename.
30813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30814         * modules/stdlib (Makefile.am): Substitute witness.
30815         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30816         is needed.
30817         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30818         replacement is required.
30819         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30820         * doc/glibc-functions/canonicalize_file_name.texi
30821         (canonicalize_file_name): Document this.
30822         * doc/posix-functions/realpath.texi (realpath): Likewise.
30823
30824         canonicalize-lgpl: reject non-directory with trailing slash
30825         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30826         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30827         catches failures in glibc 2.3.5.
30828         * tests/test-canonicalize.c (main): Likewise.
30829
30830         canonicalize-lgpl: use native realpath if it works
30831         * lib/canonicalize-lgpl.c (realpath): Guard with
30832         FUNC_REALPATH_WORKS.
30833         * lib/stdlib.in.h (realpath): Make declaration optional based on
30834         HAVE_REALPATH.
30835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30836         native realpath works.
30837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30838         * modules/stdlib (Makefile.am): Substitute witness.
30839
30840         canonicalize, canonicalize-lgpl: use <stdlib.h>
30841         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30842         (Include): Mention <stdlib.h>.
30843         (configure.ac): Mention functions we provide.
30844         * modules/canonicalize (configure.ac): Likewise.
30845         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30846         realpath if canonicalize_file_name is missing.
30847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30848         * modules/stdlib (Makefile.am): Substitute witnesses.
30849         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30850         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30851         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30852         * NEWS: Document this.
30853         * doc/glibc-functions/canonicalize_file_name.texi
30854         (canonicalize_file_name): Likewise.
30855         * doc/posix-functions/realpath.texi (realpath): Likewise.
30856         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30857
30858         test-canonicalize: consolidate into single C program
30859         * tests/test-canonicalize.sh: Delete; move setup into...
30860         * tests/test-canonicalize.c (main): ...the program, making it
30861         easier to run in debugger.  Add some tests.
30862         * modules/canonicalize-tests (Files): Remove unused file.
30863         (Depends-on): Add progname.
30864         (configure.ac, Makefile.am): Simplify.
30865
30866         test-canonicalize-lgpl: consolidate into single C program
30867         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30868         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30869         easier to run in debugger.  Add some tests.
30870         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30871         (configure.ac, Makefile.am): Simplify.
30872
30873         canonicalize: avoid resolvepath
30874         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30875         unnecessary checks.
30876         * lib/canonicalize.c (includes): Simplify.
30877         (canonicalize_file_name): Drop resolvepath implementation.
30878         * modules/canonicalize (Depends-on): Drop filenamecat.
30879
30880         canonicalize: don't lose errno
30881         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30882         over calls to free.
30883
30884         canonicalize: simplify errno handling
30885         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30886         assignment.
30887
30888         canonicalize, canonicalize-lgpl: update module dependencies
30889         * modules/canonicalize (Depends-on): Add extensions, lstat,
30890         pathmax, stdlib.
30891         (Files): Drop pathmax.h.
30892         (configure.ac): Adjust macro name.
30893         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30894         lstat, stdlib, sys_stat.
30895         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30896         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30897         extensions.
30898         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30899         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30900         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30901         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30902         declaration, if available.
30903         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30904         we can rely on the readlink module.
30905         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30906         (includes): Use <unistd.h> unconditionally.
30907
30908 2009-09-17  Eric Blake  <ebb9@byu.net>
30909
30910         maint: make Include sections of modules consistent
30911         * modules/alloca: Use only header name; no need to list #include.
30912         * modules/alloca-opt: Likewise.
30913         * modules/arpa_inet: Likewise.
30914         * modules/canon-host: Likewise.
30915         * modules/configmake: Likewise.
30916         * modules/dirent: Likewise.
30917         * modules/eealloc: Likewise.
30918         * modules/environ: Likewise.
30919         * modules/fchdir: Likewise.
30920         * modules/fcntl: Likewise.
30921         * modules/fcntl-h: Likewise.
30922         * modules/gethrxtime: Likewise.
30923         * modules/gettime: Likewise.
30924         * modules/ignore-value: Likewise.
30925         * modules/inet_ntop: Likewise.
30926         * modules/inet_pton: Likewise.
30927         * modules/inttypes: Likewise.
30928         * modules/isnand-nolibm: Likewise.
30929         * modules/isnanf-nolibm: Likewise.
30930         * modules/mbchar: Likewise.
30931         * modules/mbfile: Likewise.
30932         * modules/mbiter: Likewise.
30933         * modules/mbuiter: Likewise.
30934         * modules/netdb: Likewise.
30935         * modules/netinet_in: Likewise.
30936         * modules/nproc: Likewise.
30937         * modules/pagealign_alloc: Likewise.
30938         * modules/poll: Likewise.
30939         * modules/printf-frexp: Likewise.
30940         * modules/pthread: Likewise.
30941         * modules/putenv: Likewise.
30942         * modules/random_r: Likewise.
30943         * modules/relocatable-prog: Likewise.
30944         * modules/search: Likewise.
30945         * modules/select: Likewise.
30946         * modules/selinux-h: Likewise.
30947         * modules/settime: Likewise.
30948         * modules/signal: Likewise.
30949         * modules/size_max: Likewise.
30950         * modules/socklen: Likewise.
30951         * modules/ssize_t: Likewise.
30952         * modules/stdarg: Likewise.
30953         * modules/stdbool: Likewise.
30954         * modules/stddef: Likewise.
30955         * modules/stdint: Likewise.
30956         * modules/stdio: Likewise.
30957         * modules/stdlib: Likewise.
30958         * modules/string: Likewise.
30959         * modules/strings: Likewise.
30960         * modules/sys_file: Likewise.
30961         * modules/sys_ioctl: Likewise.
30962         * modules/sys_select: Likewise.
30963         * modules/sys_socket: Likewise.
30964         * modules/sys_stat: Likewise.
30965         * modules/sys_time: Likewise.
30966         * modules/sys_times: Likewise.
30967         * modules/sys_utsname: Likewise.
30968         * modules/sys_wait: Likewise.
30969         * modules/sysexits: Likewise.
30970         * modules/time: Likewise.
30971         * modules/times: Likewise.
30972         * modules/tmpfile: Likewise.
30973         * modules/trim: Likewise.
30974         * modules/unistd: Likewise.
30975         * modules/wchar: Likewise.
30976         * modules/wctype: Likewise.
30977
30978 2009-09-17  Bruno Haible  <bruno@clisp.org>
30979
30980         Make getdate.y compile on QNX and NetBSD 5 / i386.
30981         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30982         TIME_T_FITS_IN_LONG_INT.
30983         * lib/getdate.y (long_time_t): New type.
30984         (relative_time): Change type of 'seconds' field to long_time_t.
30985         (get_date): Update types of local variables. Check against overflow
30986         during conversion from long_time_t to time_t.
30987         Reported by Matt Kraai <kraai@ftbfs.org>
30988         and Hasso Tepper <hasso@netbsd.org>.
30989
30990 2009-09-17  Bruno Haible  <bruno@clisp.org>
30991
30992         * modules/COPYING: Update copyright years.
30993         * modules/README: Likeiwse.
30994         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30995         Reported by Ian Beckwith <ianb@erislabs.net>.
30996
30997 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30998
30999         * users.txt: Update references for gnuit package.
31000
31001 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31002
31003         * m4/getdelim.m4: Fix typo in copyright line.
31004
31005 2009-09-17  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/atoll.c: Use the standard header with GPL copyright.
31008         * lib/argz.in.h: Likewise.
31009         * lib/glob.c: Likewise.
31010         * lib/glob-libc.h: Likewise.
31011         * lib/random_r.c: Likewise.
31012         * lib/siglist.h: Likewise.
31013         * lib/strsignal.c: Likewise.
31014         Reported by Ian Beckwith <ianb@erislabs.net>.
31015
31016 2009-09-17  Eric Blake  <ebb9@byu.net>
31017
31018         rmdir: ensure correct dependency order
31019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31020
31021 2009-09-17  Bruno Haible  <bruno@clisp.org>
31022
31023         Disable assertion that fails on NetBSD 5 / i386.
31024         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31025         Reported by Sam Steingold <sds@gnu.org>
31026         and Hasso Tepper <hasso@netbsd.org>.
31027
31028 2009-09-16  Eric Blake  <ebb9@byu.net>
31029
31030         unlinkdir: port to mingw
31031         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31032         on which no one can unlink a directory.
31033
31034         stdlib: sort witness names
31035         * modules/stdlib (Makefile.am): Sort replacements.
31036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31037         * lib/stdlib.in.h: Likewise.
31038
31039         parse-duration-tests: avoid link failure
31040         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31041         LIBINTL.
31042         Reported by Tom G. Christensen.
31043
31044         openat-tests: ensure unlinkat behaves like rmdir
31045         * tests/test-rmdir.c (main): Factor guts...
31046         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31047         * modules/rmdir-tests (Files): Ship new file.
31048         * modules/openat-tests: New test.
31049         * tests/test-unlinkat.c: Likewise.
31050
31051         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31052         * modules/rmdir-errno (Status, Notice): Now obsolete.
31053
31054         rmdir: work around cygwin 1.5.x and mingw bugs
31055         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31056         * lib/rmdir.c (rmdir): Work around it.
31057         * modules/rmdir (Status, Notice): No longer obsolete.
31058         (Files): Add dos.m4.
31059         (Depends-on): Add unistd.
31060         (configure.ac): Set witnesses.
31061         (License): Relax to LGPLv2+.
31062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31063         * modules/unistd (Makefile.am): Substitute witnesses.
31064         * lib/unistd.in.h (rmdir): Declare replacement.
31065         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31066         * modules/rmdir-tests: New tests.
31067         * tests/test-rmdir.c: Likewise.
31068
31069 2009-09-15  Eric Blake  <ebb9@byu.net>
31070
31071         fchdir: improve use of replacement functions
31072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31075         REPLACE_CLOSEDIR.
31076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31077         * modules/sys_stat (Makefile.am): Substitute correct witness.
31078         * modules/dirent (Makefile.am): Likewise.
31079         * modules/unistd (Makefile.am): Likewise.
31080         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31081         * lib/unistd.in.h (dup): Likewise.
31082         * lib/sys_stat.in.h (fstat): Likewise.
31083
31084         maint: ignore gnulib-tool temp files
31085         * .gitignore: Ignore files created during gnulib-tool --test.
31086
31087 2009-09-13  Jim Meyering  <meyering@redhat.com>
31088
31089         posixtm: don't reject a time that specify "60" as the number of seconds
31090         * lib/posixtm.c (posixtime): The code to reject invalid dates
31091         would also reject a time specified with the .60 suffix.
31092         But POSIX allows that, in order to accommodate leap seconds.
31093         So don't reject it.
31094         (main): Adjust tests accordingly.
31095         * modules/posixtm (Depends-on): Add stpcpy.
31096
31097 2009-09-11  Jim Meyering  <meyering@redhat.com>
31098
31099         announce-gen: include [$release_type] in emitted Subject:
31100         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31101         e.g., [stable] in the emitted Subject: line.
31102
31103 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31104
31105         Remove obsolete macros from several modules.
31106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31107         obsolete Autoconf macros with their modern counterparts.
31108         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31109         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31111         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31112         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31113         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31116         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31117         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31118         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31120         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31121         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31122         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31123         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31124         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31125         * m4/time_r.m4 (gl_TIME_R): Likewise.
31126         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31127         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31128         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31129
31130         Fix copyright header in build-aux scripts.
31131         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31132         recommendation.
31133         * build-aux/ncftpput-ftp: Likewise.
31134         * build-aux/update-copyright: Likewise.
31135
31136 2009-09-09  Eric Blake  <ebb9@byu.net>
31137
31138         test-link: allow Linux choice of errno
31139         * tests/test-link.c (main): Relax test for alternate error.
31140
31141         strndup: fix improper m4 caching
31142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31143         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31144         (gl_PREREQ_STRNDUP): Delete.
31145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31146         * modules/string (Makefile.am): Substitute it.
31147         * lib/string.in.h (strndup): Modernize prototype.
31148
31149         getcwd: port to mingw
31150         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31151         different from the POSIX assumptions made throughout the getcwd
31152         module; fortunately, the mingw getcwd does not need replacement.
31153         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31154         * modules/getcwd-tests: New test.
31155         * tests/test-getcwd.c: Likewise.
31156
31157         link: fix platform bugs
31158         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31159         * lib/link.c (link): Work around them.  Fix related mingw bug.
31160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31161         * modules/unistd (Makefile.am): Substitute it.
31162         * lib/unistd.in.h (link): Declare replacement.
31163         * doc/posix-functions/link.texi (link): Document this.
31164         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31165
31166         test-link: consolidate into single C program, test more cases
31167         * tests/test-link.sh: Delete.
31168         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31169         at least Cygwin and Solaris.
31170         * modules/link-tests (Files): Remove unused file.
31171         (Depends-on): Add errno, sys_stat.
31172         (Makefile.am): Simplify.
31173
31174 2009-09-08  Bruno Haible  <bruno@clisp.org>
31175
31176         Work around towlower, towupper bug on mingw.
31177         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31178         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31179         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31180         * doc/posix-functions/towupper.texi: Likewise.
31181         Reported by Eric Blake.
31182
31183 2009-09-08  Jim Meyering  <meyering@redhat.com>
31184
31185         build: don't try to run autoheader if we don't use it
31186         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31187         is not used in configure.ac.
31188
31189 2009-09-08  Eric Blake  <ebb9@byu.net>
31190
31191         euidaccess: fix compilation error
31192         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31193
31194         rawmemchr: relax license
31195         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31196         okay.
31197         Reported by Jim Meyering.
31198
31199         mkfifoat: new module
31200         * modules/mkfifoat: New file.
31201         * lib/mkfifoat.c: Likewise.
31202         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31203         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31204         * modules/sys_stat (Makefile.am): Use them.
31205         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31206         * MODULES.html.sh (File system functions): Mention module.
31207         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31208         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31209         * modules/mkfifoat-tests: New test.
31210         * tests/test-mkfifoat.c: Likewise.
31211
31212         strchrnul: relax license
31213         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31214         okay.
31215         Reported by Jim Meyering.
31216
31217 2009-09-08  Eric Blake  <ebb9@byu.net>
31218
31219         fstatat: fix compilation on Solaris
31220         * lib/fstatat.c (includes): Add fcntl.h.
31221         Reported by Pádraig Brady.
31222
31223 2009-09-07  Eric Blake  <ebb9@byu.net>
31224
31225         rename: modernize replacement
31226         * modules/rename (Depends-on): Add stdio.
31227         (configure.ac): Declare witness.
31228         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31229         stdio take care of replacement.
31230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31231         * modules/stdio (Makefile.am): Substitute them.
31232         * lib/stdio.in.h (rename): Declare replacement.
31233         * lib/rename.c (includes): Allow cross-compilation to non-windows
31234         machines.
31235         * doc/posix-functions/rename.texi (rename): Improve
31236         documentation.
31237
31238         stdio: sort witness names
31239         * modules/stdio (Makefile.am): Sort replacements.
31240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31241         * lib/stdio.in.h: Likewise.
31242
31243         getcwd: minor cleanups
31244         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31245         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31246
31247         openat: provide more convenience names
31248         * modules/faccessat (configure.ac): Add C witness.
31249         * lib/unistd.in.h (readlinkat): Fix typo.
31250         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31251         convenience wrappers.
31252         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31253         wrappers in syntax checks.
31254
31255 2009-09-06  Eric Blake  <ebb9@byu.net>
31256
31257         doc: fix comments in recent patches
31258         * lib/faccessat.c: Mention correct function.
31259         * lib/fchmodat.c: Likewise.
31260         * lib/fchownat.c: Likewise.
31261         * lib/symlinkat.c: Likewise.
31262         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31263         constants.
31264
31265         faccessat, symlinkat: continue cleanup of previous patch
31266         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31267         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31268         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31270         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31271         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31272         set.
31273
31274 2009-09-06  Bruno Haible  <bruno@clisp.org>
31275
31276         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31277         (fstatat): Declare if GNULIB_FSTATAT is set.
31278         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31279         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31280         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31281         * modules/fcntl-h (Files): Remove m4/openat.m4.
31282         * modules/sys_stat (Files): Remove m4/openat.m4.
31283         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31284         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31285         * modules/unistd (Files): Remove m4/openat.m4.
31286         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31287         GNULIB_OPENAT.
31288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31289         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31291         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31292         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31293         gl_OPENAT_DEFAULTS.
31294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31295         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31296         Don't require gl_OPENAT_DEFAULTS.
31297         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31298         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31299         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31300         (gl_OPENAT_DEFAULTS): Remove macro.
31301
31302 2009-09-06  Bruno Haible  <bruno@clisp.org>
31303
31304         * modules/openat (configure.ac): Remove unneeded witness.
31305
31306 2009-09-06  Bruno Haible  <bruno@clisp.org>
31307
31308         Set errno to ENOSYS when a function is entirely unsupported.
31309         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31310         EOPNOTSUPP.
31311         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31312         * modules/chown (Depends-on): Remove errno.
31313
31314 2009-09-06  Bruno Haible  <bruno@clisp.org>
31315
31316         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31317
31318 2009-09-06  Bruno Haible  <bruno@clisp.org>
31319
31320         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31321
31322 2009-09-06  Ben Pfaff  <blp@gnu.org>
31323             Bruno Haible  <bruno@clisp.org>
31324
31325         Work around a glibc bug in strtok_r.
31326         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31327         Undefine if UNDEFINE_STRTOK_R is set.
31328         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31330         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31331         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31332         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31333         UNDEFINE_STRTOK_R.
31334         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31335
31336 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31337
31338         exclude: minor fix
31339         * lib/exclude.c: Include wctype.h
31340
31341 2009-09-06  Akim Demaille  <demaille@gostai.com>
31342
31343         bootstrap: improve error message
31344         * build-aux/bootstrap (find_tool): Upon failure, report the list
31345         of candidates.
31346         Honor the initial value of the envvar.
31347
31348 2009-09-05  Eric Blake  <ebb9@byu.net>
31349
31350         symlinkat: new module
31351         * modules/symlinkat: New file.
31352         * lib/symlinkat.c: Likewise.
31353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31355         * modules/unistd (Makefile.am): Use them.
31356         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31357         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31358         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31359         * MODULES.html.sh (File system functions): Mention module.
31360         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31361         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31362         * modules/symlinkat-tests: New test.
31363         * tests/test-symlinkat.c: Likewise.
31364
31365         test-openat-safer: add more checks
31366         * tests/test-openat-safer.c (main): Check more code paths.
31367
31368 2009-09-05  Jim Meyering  <meyering@redhat.com>
31369
31370         syntax-check: detect unnecessary inclusion of openat.h
31371         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31372
31373 2009-09-05  Bruno Haible  <bruno@clisp.org>
31374
31375         Support towlower, towupper.
31376         * doc/posix-functions/towlower.texi: Mention module wctype.
31377         * doc/posix-functions/towupper.texi: Likewise.
31378         * lib/wctype.in.h (towlower, towupper): New functions.
31379         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31380         (ASSERT): New macro.
31381         (e): New variable.
31382         (main): Test also towlower, towupper. Test WEOF argument.
31383         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31384
31385 2009-09-05  Bruno Haible  <bruno@clisp.org>
31386
31387         Fix conversion behaviour when the input is invalid.
31388         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31389         mark occurring in first pass of indirect conversion.
31390         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31391         input.
31392         Found by clang's static analyzer.
31393
31394 2009-09-05  Bruno Haible  <bruno@clisp.org>
31395
31396         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31397         where direct conversion is possible.
31398
31399 2009-09-04  Eric Blake  <ebb9@byu.net>
31400
31401         openat: fail with ENOENT on empty name
31402         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31403         buffer.
31404
31405         link-follow: fix logic bug in prior patch
31406         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31407         reversed sense of yes and no in prior patch.  Avoid confusing
31408         compilation failure with desired semantics.
31409
31410         link-follow: accomodate mingw and cross-compilation
31411         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31412         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31413         cross-compilation results to -1, to make linkat easier to
31414         implement when cross-compiling.  Trivially support mingw.
31415         * modules/link-follow (configure.ac): Call new name.
31416         * NEWS: Mention this.
31417
31418 2009-09-03  Eric Blake  <ebb9@byu.net>
31419
31420         faccessat: compile replacement
31421         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31422         needed.
31423
31424         fts: fix compilation error
31425         * lib/fts.c (includes): Re-add "openat.h", for
31426         openat_needs_fchdir.
31427
31428         faccessat: new module
31429         * modules/faccessat: New file.
31430         * lib/faccessat.c: Likewise.
31431         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31433         * modules/unistd (Makefile.am): Use it.
31434         * lib/unistd.in.h (faccessat): Declare it.
31435         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31436         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31437         * MODULES.html.sh (File system functions): Mention it.
31438         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31439         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31440
31441         euidaccess: prefer POSIX over non-standard implementation
31442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31443         * lib/euidaccess.c (euidaccess): Use it if available.
31444
31445         openat: make template easier to use
31446         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31447         AT_FUNC_F2 to be undefined.
31448         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31449         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31450         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31451         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31452         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31453         Likewise.
31454         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31455         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31456         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31457         Likewise.
31458
31459         openat: declare in POSIX headers
31460         * NEWS: Mention this.
31461         * modules/openat (configure.ac): Declare witnesses.
31462         (Depends-on): Add fcntl-h, sys_stat, unistd.
31463         (Include): Mention correct headers.
31464         * modules/fcntl-h (Depends-on): Add link-warning.
31465         (Files): Add openat.m4.
31466         (Makefile.am): Substitute witnesses.
31467         * modules/sys_stat (Files, Makefile.am): Likewise.
31468         * modules/unistd (Files, Makefile.am): Likewise.
31469         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31470         (gl_OPENAT_DEFAULTS): New macro.
31471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31473         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31474         (SYS_STAT_H): Remove unused variable.
31475         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31476         * lib/fcntl--.h (includes): Remove unneeded header.
31477         * lib/openat-safer.c (includes): Likewise.
31478         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31479         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31480         appropriate headers.
31481         (__OPENAT_PREFIX): Delete.
31482         * lib/fcntl.in.h (openat): Provide declaration.
31483         (AT_FDCWD): Fix Solaris bug.
31484         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31485         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31486         * lib/fchmodat.c (includes):  Adjust to find declaration.
31487         * lib/fchownat.c (includes): Likewise.
31488         * lib/mkdirat.c (includes): Likewise.
31489         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31490         still visible.
31491
31492 2009-09-02  Eric Blake  <ebb9@byu.net>
31493
31494         errno: use consistently
31495         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31496         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31497         * lib/canonicalize.c (ELOOP): Likewise.
31498         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31499         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31500         * lib/lchown.c (EOPNOTSUPP): Likewise.
31501         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31502         * lib/savewd.c (ESTALE): Likewise.
31503         * lib/settime.c (ENOSYS): Likewise.
31504         * lib/utimens.c (ENOSYS): Likewise.
31505         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31506         * lib/chdir-safer.c (ELOOP): Likewise.
31507         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31508         * modules/c-stack (Depends-on): Add errno.
31509         * modules/canonicalize (Depends-on): Likewise.
31510         * modules/chdir-safer (Depends-on): Likewise.
31511         * modules/fdopendir (Depends-on): Likewise.
31512         * modules/inet_ntop (Depends-on): Likewise.
31513         * modules/inet_pton (Depends-on): Likewise.
31514         * modules/lchown (Depends-on): Likewise.
31515         * modules/openat (Depends-on): Likewise.
31516         * modules/savewd (Depends-on): Likewise.
31517         * modules/settime (Depends-on): Likewise.
31518         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31519
31520         fts: avoid leaking fds
31521         * modules/fts (Depends-on): Add cloexec.
31522         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31523         flag.
31524
31525         fts: make directory fds more robust
31526         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31527         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31528
31529         backupfile, chdir-long, fts, savedir: make safer
31530         * lib/backupfile.c (includes): Use "dirent--.h", since
31531         numbered_backup can write to stderr during readdir.
31532         * lib/savedir.c (includes): Likewise.
31533         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31534         emulation can write to stderr on failure.
31535         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31536         * lib/getcwd.c: Document why opendir_safer is unused.
31537         * lib/glob.c: Likewise.
31538         * lib/scandir.c: Likewise.
31539         * lib/openat-proc.c: Likewise, for open_safer.
31540         * modules/backupfile (Depends-on): Add dirent-safer.
31541         * modules/savedir (Depends-on): Likewise.
31542         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31543         * modules/chdir-long (Depends-on): Add openat-safer.
31544
31545         openat-safer: new module
31546         * modules/openat-safer: New file.
31547         * lib/openat-safer.c: Likewise.
31548         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31549         * lib/fcntl-safer.h (openat_safer): Declare.
31550         * lib/fcntl--.h (openat): Override.
31551         * MODULES.html.sh (File descriptor based I/O): Mention it.
31552         * lib/openat.h: Add double-inclusion guards.
31553         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31554         "fcntl--.h", so we can implement openat.
31555         * modules/openat-safer-tests: New test.
31556         * tests/test-openat-safer.c: New file.
31557
31558         dirent-safer: new module
31559         * modules/dirent-safer: New file.
31560         * lib/dirent--.h: Likewise.
31561         * lib/dirent-safer.h: Likewise.
31562         * lib/opendir-safer.c: Likewise.
31563         * m4/dirent-safer.m4: Likewise.
31564         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31565         * modules/dirent-safer-tests: New test.
31566         * tests/test-dirent-safer.c: New file.
31567         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31568
31569         fdopendir: optimize on mingw
31570         * lib/unistd.in.h (_gl_directory_name): New prototype.
31571         * lib/fchdir.c (_gl_directory_name): Implement it.
31572         (fchdir): Use it to simplify implementation.
31573         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31574         fchdir, when available, to avoid calling [f]chdir().
31575
31576         fdopendir: split into its own module
31577         * lib/openat.c (fdopendir): Move...
31578         * lib/fdopendir.c: ...into new file.
31579         * modules/fdopendir: New module.
31580         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31581         * modules/openat (Depends-on): Add fdopendir.
31582         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31583         fdopendir here.
31584         * modules/savedir (Depends-on): Only need fdopendir, not full
31585         openat.
31586         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31587         * lib/openat.h (fdopendir): Drop prototype.
31588         * lib/dirent.in.h (fdopendir): Provide prototype.
31589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31590         * modules/dirent (Makefile.am): Substitute them.
31591         * MODULES.html.sh (File system functions): Mention it.
31592         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31593         * modules/fdopendir-tests: New file.
31594         * tests/test-fdopendir.c: Likewise.
31595
31596         fchdir: use more consistent macro convention
31597         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31598         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31599         REPLACE_FCHDIR, rather than relying on config.h macros.
31600         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31601         inside a single make-time REPLACE_FCHDIR block, rather than using
31602         the config.h FCHDIR_REPLACEMENT.
31603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31604         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31605         Manage fstat replacement.
31606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31607         REPLACE_FCHDIR.
31608         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31609         (Makefile.am): Substitute REPLACE_FCHDIR.
31610         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31611         FCHDIR_REPLACEMENT.
31612         * lib/dup-safer.c (dup_safer): Likewise.
31613         * lib/dup2.c (rpl_dup2): Likewise.
31614         * lib/dup3.c (rpl_dup3): Likewise.
31615         * lib/open.c (rpl_open): Likewise.
31616
31617         fchdir: simplify error handling, and support dup3
31618         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31619         stdbool, malloc-posix, realloc-posix.
31620         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31621         (ensure_dirs_slot): Return false on allocation failure.
31622         (rpl_dup2): Delete.
31623         (_gl_register_dup): New function.
31624         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31625         (_gl_register_fd): Close fd on allocation failure.
31626         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31627         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31628         prototype.
31629         (rpl_dup2_fchdir): Delete prototype.
31630         * lib/open.c (open): Update caller.
31631         * lib/dup2.c (dup2): Track fchdir metadata.
31632         * lib/dup3.c (dup3): Likewise.
31633         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31635
31636 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31637
31638         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31639         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31640         don't pass arguments to AC_OUTPUT.
31641
31642 2009-09-02  Bruno Haible  <bruno@clisp.org>
31643
31644         * modules/mkdtemp (License): Relicense under LGPLv2+.
31645         Reported by Paolo Bonzini.
31646
31647 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31648
31649         Replace uses of obsolete autoconf macros in Jim's modules.
31650         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31651         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31652         can evoke a warning from autoconf when run with -Wobsolete
31653         enabled.  They were declared obsolete for good reasons (see
31654         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31655         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31656         should not continue using the deprecated macros.
31657         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31658         obsolete Autoconf macros with modern counterparts.
31659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31660         * m4/dos.m4 (gl_AC_DOS): Likewise.
31661         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31662         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31663         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31664         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31665         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31666         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31667         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31668         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31669         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31670         Likewise.
31671         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31673         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31674         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31675         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31676         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31677
31678 2009-09-01  Eric Blake  <ebb9@byu.net>
31679
31680         fchdir: fix off-by-one bug in previous patch
31681         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31682         (_gl_unregister_fd): Delete useless if.
31683
31684 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31685
31686         maint.mk: sort the list of syntax-check rules
31687         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31688         easier to get a sense of progress when the rules are run sequentially
31689         and take a long time.
31690
31691 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31692
31693         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31694         * modules/netinet_in: Likewise.
31695         * modules/sys_file: Likewise.
31696         * modules/sys_ioctl: Likewise.
31697         * modules/sys_select: Likewise.
31698         * modules/sys_socket: Likewise.
31699         * modules/sys_stat: Likewise.
31700         * modules/sys_time: Likewise.
31701         * modules/sys_times: Likewise.
31702         * modules/sys_utsname: Likewise.
31703         * modules/sys_wait: Likewise.
31704
31705 2009-09-01  Jim Meyering  <meyering@redhat.com>
31706
31707         fts: help ensure that return values are not ignored
31708         * lib/fts_.h (__GNUC_PREREQ): Define.
31709         (__attribute_warn_unused_result__): Define.
31710         (fts_children, fts_close, fts_open, fts_read): Declare with
31711         __attribute_warn_unused_result__.
31712
31713         fts: fts_close now fails also when closing a dir file descriptor fails
31714         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31715         and propagate to caller, along with errno.
31716
31717         announce-gen: correct formatting in --help output
31718         * build-aux/announce-gen (usage): Move the one-line description in
31719         --help output "up", to where it belongs, just after Usage:.
31720
31721 2009-08-31  Eric Blake  <ebb9@byu.net>
31722
31723         fchdir: port to mingw
31724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31725         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31726         opened, then use a substitute.
31727         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31728         replacement.
31729         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31730         (_gl_register_fd): No need to check stat if open already filters
31731         all directories.
31732         (fchdir): Fix error condition to match POSIX.
31733         * modules/fchdir (Depends-on): Add sys_stat.
31734         * doc/posix-functions/open.texi (open): Document the limitation.
31735         * modules/fchdir-tests: New file.
31736         * tests/test-fchdir.c: Likewise.
31737
31738         canonicalize: allow cross-testing from cygwin to mingw
31739         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31740         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31741         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31742         Likewise.
31743         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31744         target does not support symlinks.
31745         * tests/test-canonicalize-lgpl.sh: Likewise.
31746
31747         chown: avoid compilation warning on mingw
31748         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31749         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31750         mingw.
31751         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31752         * modules/chown (Depends-on): Add errno.
31753
31754 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31755
31756         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31757         command.
31758
31759 2009-08-31  Jim Meyering  <meyering@redhat.com>
31760
31761         canonicalize: remove useless initialization
31762         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31763         initialization of local, "end".
31764
31765 2009-08-30  Bruno Haible  <bruno@clisp.org>
31766
31767         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31768         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31769         ENOSYS.
31770
31771 2009-08-30  Bruno Haible  <bruno@clisp.org>
31772
31773         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31774         /usr/xpg4/bin/tr when it exists.
31775         * tests/test-pipe-filter-gi1.sh: Likewise.
31776
31777 2009-08-30  Bruno Haible  <bruno@clisp.org>
31778
31779         Work around deficient /usr/bin/id program on Solaris.
31780         * tests/test-file-has-acl.sh (ID): New variable.
31781         * tests/test-set-mode-acl.sh (ID): Likewise.
31782         * tests/test-copy-acl.sh (ID): Likewise.
31783         * tests/test-copy-file.sh (ID): Likewise.
31784
31785 2009-08-30  Bruno Haible  <bruno@clisp.org>
31786
31787         New module 'xstriconveh'.
31788         * lib/xstriconveh.h: New file.
31789         * lib/xstriconveh.c: New file.
31790         * modules/xstriconveh: New file.
31791
31792 2009-08-30  Bruno Haible  <bruno@clisp.org>
31793
31794         Make it easier to use mem_cd_iconveh.
31795         * lib/striconveh.h (iconveh_t): New type.
31796         (iconveh_open, iconveh_close): New declarations.
31797         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31798         with a single 'const iconveh_t *' argument.
31799         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31800         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31801         with a single 'const iconveh_t *' argument.
31802         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31803         * tests/test-striconveh.c (main): Update.
31804         * NEWS: Mention the change.
31805
31806 2009-08-30  Bruno Haible  <bruno@clisp.org>
31807
31808         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31809         problem.
31810
31811 2009-08-30  Bruno Haible  <bruno@clisp.org>
31812
31813         Work around iconv_open problem on Solaris.
31814         * lib/iconv_open-solaris.gperf: New file.
31815         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31817         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31818         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31819         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31820         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31821
31822 2009-08-29  Jim Meyering  <meyering@redhat.com>
31823
31824         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31825         * top/maint.mk (cvs-check): Remove target; it was just an alias
31826         to the better-named vc-diff-check.
31827         (maintainer-distcheck): Remove rule.  It was used only from
31828         the (alpha/beta/major) target, and all of its commands but one
31829         were coreutils-specific.
31830         (vc-dist): Remove rule.
31831         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31832         Run vc-diff-check, not vc-dist.
31833         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31834
31835 2009-08-27  Bruno Haible  <bruno@clisp.org>
31836
31837         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31838         of 0.
31839
31840 2009-08-27  Bruno Haible  <bruno@clisp.org>
31841
31842         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31843         compilers.
31844         * doc/func.texi: Document the SunPRO C bug.
31845
31846 2009-08-27  Bruno Haible  <bruno@clisp.org>
31847
31848         Fix link error on Solaris.
31849         * tests/test-parse-duration.c (xstrdup): Remove function.
31850
31851 2009-08-26  Pádraig Brady  <P@draigbrady.com>
31852
31853         ignore-value: handle pointer types, too
31854         * lib/ignore-value.h (__attribute__): Remove definition.
31855         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31856         of a more concise and more-often effective "(void) i" statement.
31857         (ignore_ptr): New function to suppress warnings from functions that
31858         return pointers, and to make it explicit that one function doesn't
31859         handle all cases.
31860
31861 2009-08-25  Bruno Haible  <bruno@clisp.org>
31862
31863         dup2: work around a Linux bug.
31864         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31865         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31866         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31867         Reported by Simon Josefsson.
31868
31869 2009-08-25  Jim Meyering  <meyering@redhat.com>
31870
31871         libguestfs uses gnulib
31872         * users.txt: Add libguestfs.
31873
31874 2009-08-24  Eric Blake  <ebb9@byu.net>
31875
31876         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31877         * lib/pipe2.c (includes): Add binary-io.h.
31878         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31879
31880 2009-08-24  Bruno Haible  <bruno@clisp.org>
31881
31882         Tolerate declared but missing accept4 syscall.
31883         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31884         available.
31885         * lib/sys_socket.in.h (accept4): If the function is already present,
31886         override it.
31887         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31888         * modules/accept4 (Makefile.am): Compile accept4.c always.
31889         Reported by Paolo Bonzini and Eric Blake.
31890
31891 2009-08-23  Bruno Haible  <bruno@clisp.org>
31892
31893         New module 'accept4'.
31894         * lib/sys_socket.in.h (accept4): New declaration.
31895         * lib/accept4.c: New file.
31896         * m4/accept4.m4: New file.
31897         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31898         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31899         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31900         HAVE_ACCEPT4.
31901         * modules/accept4: New file.
31902         * doc/glibc-functions/accept4.texi: Mention the new module.
31903
31904 2009-08-24  Jim Meyering  <meyering@redhat.com>
31905
31906         progname: also set global program_invocation_name, when possible
31907         Before this change, a libtool-enabled program that calls glibc's
31908         error function would report the program name as
31909         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31910         * modules/progname (configure.ac): Check for a declaration of
31911         program_invocation_name.
31912         * lib/progname.c:  Include <errno.h>.
31913         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31914         Set program_invocation_name.
31915
31916 2009-08-23  Bruno Haible  <bruno@clisp.org>
31917
31918         * lib/dup3.c: Include <string.h>.
31919
31920 2009-08-23  Bruno Haible  <bruno@clisp.org>
31921
31922         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31923         * lib/pipe2.c (pipe2): Likewise.
31924         Suggested by Eric Blake.
31925
31926 2009-08-23  Bruno Haible  <bruno@clisp.org>
31927
31928         Tolerate declared but missing dup3 syscall.
31929         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31930         * lib/unistd.in.h (dup3): If the function is already present,
31931         override it.
31932         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31933         * modules/dup3 (Makefile.am): Compile dup3.c always.
31934         Reported by Paolo Bonzini.
31935
31936 2009-08-23  Bruno Haible  <bruno@clisp.org>
31937
31938         Tolerate declared but missing pipe2 syscall.
31939         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31940         available.
31941         * lib/unistd.in.h (pipe2): If the function is already present,
31942         override it.
31943         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31944         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31945         Reported by Paolo Bonzini.
31946
31947 2009-08-23  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/pipe2.c (pipe2): Move #ifs inside function.
31950
31951 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31952
31953         quotearg: document limitations of quote_these_too
31954         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31955         those limitations are created.
31956         * lib/quotearg.h (set_char_quoting): Document that digits and
31957         letters that are special after backslash are not permitted.
31958         (quotearg_char): Cross-reference set_char_quoting documentation.
31959
31960 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31961
31962         quotearg: implement custom_quoting_style
31963         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31964         right_quote fields.
31965         (set_custom_quoting): New public function.
31966         (quotearg_buffer_restyled): Add left_quote and right_quote
31967         arguments, handle them very much like locale quoting, and update
31968         all uses.
31969         (quotearg_n_custom): New public function.
31970         (quotearg_n_custom_mem): New public function.
31971         (quotearg_custom): New public function.
31972         (quotearg_custom_mem): New public function.
31973         * lib/quotearg.h: Prototype and document new public functions.
31974         (enum quoting_style): For escape_quoting_style and
31975         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31976         ignored even though they're otherwise like c_quoting_style.
31977         Add custom_quoting_style member and document with comparison to
31978         clocale_quoting_style.
31979         * tests/test-quotearg.c (custom_quotes): New array.
31980         (custom_results): New array.
31981         (main): Extend to test custom quoting.
31982
31983 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31984
31985         quotearg: fix right quote escaping when it's in quote_these_too
31986         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31987         quote, be sure to prepend only one backslash.
31988         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31989         (main): Test it.
31990
31991 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31992
31993         quotearg-tests: test escaping of embedded locale quotes
31994         * tests/test-quotearg.c (struct result_strings): Add member for
31995         new input.
31996         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31997         (inputs): Add new input.
31998         (results_g): Add expected results.
31999         (flag_results): Likewise.
32000         (locale_results): Likewise.
32001         (compare_strings): Check those.
32002
32003 2009-08-23  Bruno Haible  <bruno@clisp.org>
32004
32005         Tests for module 'dup3'.
32006         * modules/dup3-tests: New file.
32007         * tests/test-dup3.c: New file.
32008
32009         New module 'dup3'.
32010         * lib/unistd.in.h (dup3): New declaration.
32011         * lib/dup3.c: New file.
32012         * m4/dup3.m4: New file.
32013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32014         HAVE_DUP3.
32015         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32016         * modules/dup3: New file.
32017         * doc/glibc-functions/dup3.texi: Mention the new module.
32018
32019 2009-08-23  Bruno Haible  <bruno@clisp.org>
32020
32021         Tweak the dup2 test.
32022         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32023         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32024         the test file is still empty. Fix argument order of lseek.
32025
32026 2009-08-23  Bruno Haible  <bruno@clisp.org>
32027
32028         Avoid test link errors when the modules getopt-gnu, gettext are used.
32029         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32031
32032 2009-08-23  Bruno Haible  <bruno@clisp.org>
32033
32034         Fix getdtablesize() on mingw.
32035         * lib/getdtablesize.c (getdtablesize): Implement differently.
32036         * lib/unistd.in.h (getdtablesize): Improve comment.
32037
32038 2009-08-23  Bruno Haible  <bruno@clisp.org>
32039
32040         New module 'mkostemp'.
32041         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32042         * lib/stdlib.in.h (mksotemp): New declaration.
32043         * lib/mkostemp.c: New file, from glibc with modifications.
32044         * lib/tempname.h (GT_FILE): Remove outdated comment.
32045         (gen_tempname): Add flags argument.
32046         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32047         (__GT_FILE): Map to 1.
32048         (small_open, large_open): Remove macros.
32049         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32050         * lib/mkstemp.c (mkstemp): Update.
32051         * lib/mkdtemp.c (mkdtemp): Likewise.
32052         * m4/mkostemp.m4: New file.
32053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32054         HAVE_MKOSTEMP.
32055         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32056         HAVE_MKOSTEMP.
32057         * modules/mkostemp: New file, based on modules/mkstemp.
32058         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32059         * NEWS: Mention the change.
32060
32061 2009-08-23  Bruno Haible  <bruno@clisp.org>
32062
32063         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32064         Reported by Eric Blake.
32065
32066 2009-08-23  Bruno Haible  <bruno@clisp.org>
32067
32068         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32069         Reported by Eric Blake.
32070
32071 2009-08-23  Bruno Haible  <bruno@clisp.org>
32072
32073         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32074         * modules/pipe2 (Depends-on): Likewise.
32075
32076 2009-08-23  Eric Blake  <ebb9@byu.net>
32077
32078         fcntl-h: add O_TTY_INIT support
32079         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32080         * tests/test-fcntl-h.c (o): Test it.
32081         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32082
32083         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32084         * modules/fcntl: Move <fcntl.h> header replacement...
32085         * modules/fcntl-h: ...to new name, so as not to collide with
32086         like-named function.
32087         * tests/test-fcntl.c: Rename...
32088         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32089         * modules/fcntl-tests: Rename...
32090         * modules/fcntl-h-tests: ...to this.  Update test file name.
32091         * modules/chdir-long (Depends-on): Update clients.
32092         * modules/chdir-safer (Depends-on): Likewise.
32093         * modules/fcntl-safer (Depends-on): Likewise.
32094         * modules/fts (Depends-on): Likewise.
32095         * modules/mkancesdirs (Depends-on): Likewise.
32096         * modules/mkdir-p (Depends-on): Likewise.
32097         * modules/open (Depends-on): Likewise.
32098         * modules/savewd (Depends-on): Likewise.
32099         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32100         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32101
32102 2009-08-22  Bruno Haible  <bruno@clisp.org>
32103
32104         * modules/binary-io (License): Relicense under LGPL.
32105         * modules/pipe2 (License): Likewise.
32106
32107 2009-08-22  Bruno Haible  <bruno@clisp.org>
32108
32109         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32110         return value.
32111         * lib/pipe-filter-gi.c (filter_init): Likewise.
32112         Reported by Eric Blake.
32113
32114 2009-08-22  Bruno Haible  <bruno@clisp.org>
32115
32116         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32117         * modules/pipe (Depends-on): Add pipe2.
32118
32119 2009-08-22  Bruno Haible  <bruno@clisp.org>
32120
32121         Tests for module 'pipe2'.
32122         * modules/pipe2-tests: New file.
32123         * tests/test-pipe2.c: New file.
32124
32125         New module 'pipe2'.
32126         * lib/unistd.in.h (pipe2): New declaration.
32127         * lib/pipe2.c: New file.
32128         * m4/pipe2.m4: New file.
32129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32130         HAVE_PIPE2.
32131         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32132         * modules/pipe2: New file.
32133         * doc/glibc-functions/pipe2.texi: Mention the new module.
32134
32135 2009-08-22  Bruno Haible  <bruno@clisp.org>
32136
32137         Reference some new glibc functions.
32138         * doc/glibc-functions/accept4.texi: New file.
32139         * doc/glibc-functions/dup3.texi: New file.
32140         * doc/glibc-functions/mkostemp.texi: New file.
32141         * doc/glibc-functions/pipe2.texi: New file.
32142         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32143         (Glibc sys/socket.h): Refer to accept4.
32144         (Glibc unistd.h): Refer to dup3, pipe2.
32145         Reported by Eric Blake.
32146
32147 2009-08-22  Jim Meyering  <meyering@redhat.com>
32148             Bruno Haible  <bruno@clisp.org>
32149
32150         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32151         This makes it so packages using automake-1.11's silent-rules option
32152         can print e.g., a single "GEN    configmake.h" line, rather than
32153         the 30+ statements that perform the job.  If you want to see the
32154         actual commands, you can still run "make V=1".
32155         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32156         so that make output is abbreviated when those variables are defined
32157         appropriately.
32158         * modules/argz: Likewise.
32159         * modules/arpa_inet: Likewise.
32160         * modules/byteswap: Likewise.
32161         * modules/configmake: Likewise.
32162         * modules/dirent: Likewise.
32163         * modules/errno: Likewise.
32164         * modules/fcntl: Likewise.
32165         * modules/float: Likewise.
32166         * modules/fnmatch: Likewise.
32167         * modules/getopt-posix: Likewise.
32168         * modules/glob: Likewise.
32169         * modules/iconv_open: Likewise.
32170         * modules/inttypes: Likewise.
32171         * modules/localcharset: Likewise.
32172         * modules/locale: Likewise.
32173         * modules/math: Likewise.
32174         * modules/netdb: Likewise.
32175         * modules/netinet_in: Likewise.
32176         * modules/poll: Likewise.
32177         * modules/posix_spawnp-tests: Likewise.
32178         * modules/sched: Likewise.
32179         * modules/search: Likewise.
32180         * modules/selinux-h: Likewise.
32181         * modules/signal: Likewise.
32182         * modules/spawn: Likewise.
32183         * modules/stdarg: Likewise.
32184         * modules/stdbool: Likewise.
32185         * modules/stddef: Likewise.
32186         * modules/stdint: Likewise.
32187         * modules/stdio: Likewise.
32188         * modules/stdlib: Likewise.
32189         * modules/string: Likewise.
32190         * modules/strings: Likewise.
32191         * modules/sys_file: Likewise.
32192         * modules/sys_ioctl: Likewise.
32193         * modules/sys_select: Likewise.
32194         * modules/sys_socket: Likewise.
32195         * modules/sys_stat: Likewise.
32196         * modules/sys_time: Likewise.
32197         * modules/sys_times: Likewise.
32198         * modules/sys_utsname: Likewise.
32199         * modules/sys_wait: Likewise.
32200         * modules/sysexits: Likewise.
32201         * modules/time: Likewise.
32202         * modules/unistd: Likewise.
32203         * modules/wchar: Likewise.
32204         * modules/wctype: Likewise.
32205
32206 2009-08-22  Jim Meyering  <meyering@redhat.com>
32207
32208         announce-gen: detect write failure
32209         * build-aux/announce-gen: Add Coda at end.
32210         Remove equivalent-but-more-verbose block at top.
32211
32212 2009-08-19  Akim Demaille  <demaille@gostai.com>
32213
32214         bootstrap: --help to stdout.
32215         * bootstrap (usage): Don't send --help to stderr.
32216         Use a here doc instead of a long string.
32217
32218 2009-08-21  Eric Blake  <ebb9@byu.net>
32219
32220         test-popen-safer: split from test-popen
32221         * tests/test-popen.c (main): Move...
32222         * tests/test-popen.h: ...into new file.
32223         * tests/test-popen-safer2.c: New file.
32224         * modules/popen-tests (Files): Add test-popen.h.
32225         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32226         Suggested by Bruno Haible.
32227
32228         test-fcntl-safer: split from test-open
32229         * tests/test-open.c (main): Move...
32230         * tests/test-open.h: ...into new file.
32231         * tests/test-fcntl-safer.c: New file.
32232         * modules/open-tests (Files): Add test-open.h.
32233         * modules/fcntl-safer-tests: New file.
32234         Suggested by Bruno Haible.
32235
32236         test-fopen-safer: split from test-fopen
32237         * tests/test-fopen.c (main): Move...
32238         * tests/test-fopen.h: ...into new file.
32239         * tests/test-fopen-safer.c: New file.
32240         * modules/fopen-tests (Files): Add test-fopen.h.
32241         * modules/fopen-safer-tests: New file.
32242         Suggested by Bruno Haible.
32243
32244 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32245
32246         popen-safer: test O_CLOEXEC at run-time.
32247         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32248
32249 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32250
32251         fcntl: move more flags to the header
32252         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32253         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32254         * lib/fcntl.in.h: Do both things here.
32255
32256 2009-08-21  Jim Meyering  <meyering@redhat.com>
32257
32258         consistently remove $@-t before redirecting to it
32259         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32260         * modules/alloca-opt: Likewise.
32261         * modules/byteswap: Likewise.
32262         * modules/fnmatch: Likewise.
32263         * modules/getopt-posix: Likewise.
32264         * modules/glob: Likewise.
32265         * modules/poll: Likewise.
32266         * modules/posix_spawnp-tests: Likewise.
32267         * modules/sys_socket: Likewise.
32268         * modules/sysexits: Likewise.
32269
32270 2009-08-21  Eric Blake  <ebb9@byu.net>
32271
32272         popen: simplify access to original popen
32273         * lib/popen.c (rpl_popen): No need to worry about popen being a
32274         macro.
32275         Reported by Bruno Haible.
32276
32277 2009-08-20  Eric Blake  <ebb9@byu.net>
32278
32279         build: avoid some compiler warnings
32280         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32281         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32282         type.
32283         (new_exclude_segment, excluded_file_pattern_p)
32284         (excluded_file_name_p): Reduce scope.
32285         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32286         old-style declaration.
32287
32288 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32289
32290         * tests/test-exclude1.sh: Handle Windows EOL.
32291         * tests/test-exclude2.sh: Likewise.
32292         * tests/test-exclude3.sh: Likewise.
32293         * tests/test-exclude4.sh: Likewise.
32294         * tests/test-exclude5.sh: Likewise.
32295         * tests/test-exclude6.sh: Likewise.
32296         * tests/test-exclude7.sh: Likewise.
32297
32298 2009-08-19  Akim Demaille  <demaille@gostai.com>
32299
32300         bootstrap: find sha1sum when named gsha1sum.
32301         * bootstrap (find_tool): New.
32302         ($SHA1SUM): New.
32303         Use it.
32304
32305 2009-08-20  Jim Meyering  <meyering@redhat.com>
32306
32307         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32308         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32309         expression that converts "." in a file name to "\." in the resulting
32310         regexp.  Start with a dummy statement, so that prior shell variable
32311         definitions are expanded portably.  Reported by Simon Josefsson.
32312
32313 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32314
32315         Fix polling for writeability of a screen buffer.
32316         * lib/poll.c: Distinguish input and screen buffers for the
32317         Win32 implementation.
32318         * lib/select.c: Likewise.
32319
32320 2009-08-19  Eric Blake  <ebb9@byu.net>
32321
32322         popen-safer: prevent popen from clobbering std descriptors
32323         * modules/popen-safer: New file.
32324         * lib/popen-safer.c: Likewise.
32325         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32326         * lib/stdio--.h (popen): Provide override.
32327         * lib/stdio-safer.h (popen_safer): Provide declaration.
32328         * tests/test-popen.c (includes): Partially test this.
32329         * modules/popen-safer-tests: New file, for more tests.
32330         * tests/test-popen-safer.c: Likewise.
32331         * MODULES.html.sh (file stream based Input/Output): Mention it.
32332
32333         tests: test some of the *-safer modules
32334         * modules/fopen-safer (Depends-on): Add fopen.
32335         * modules/fcntl-safer (Depends-on): Add fcntl.
32336         * modules/stdlib-safer (Depends-on): Add stdlib.
32337         (configure.ac): Set indicator.
32338         * modules/unistd-safer (configure.ac): Likewise.
32339         * modules/tmpfile-safer (configure.ac): Likewise.
32340         (Depends-on): Add tmpfile.
32341         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32342         active.
32343         * tests/test-fopen.c (includes): Test safer versions when they are
32344         in use.
32345         * tests/test-open.c (includes): Likewise.
32346
32347         popen: fix cygwin 1.5 bug when stdin closed
32348         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32349         * modules/popen: New file.
32350         * modules/popen-tests: Likewise.
32351         * tests/test-popen.c: Likewise.
32352         * m4/popen.m4: Likewise.
32353         * lib/popen.c: Likewise.
32354         * lib/stdio.in.h (popen): New declaration.
32355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32356         * modules/stdio (Makefile.am): Likewise.
32357         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32358
32359 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32360
32361         maint.mk: give full control over update-copyright exclusions
32362         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32363         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32364         (update-copyright): Don't force inclusion of top-level
32365         ChangeLog.  Don't force exclusion of all COPYING files, but make
32366         them the default exclusion instead.
32367
32368 2009-08-16  Bruno Haible  <bruno@clisp.org>
32369
32370         Fix test failures on Solaris 10.
32371         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32372         tests when Solaris iconv() is used.
32373         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32374         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32375         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32376         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32377         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32378
32379 2009-08-16  Bruno Haible  <bruno@clisp.org>
32380
32381         Fix test failures on Solaris 10.
32382         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32383         'tr' program and pass it as first argument.
32384         * tests/test-pipe-filter-gi1.sh: Likewise.
32385         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32386         program as first argument.
32387         * tests/test-pipe-filter-gi1.c (main): Likewise.
32388
32389 2009-08-16  Eric Blake  <ebb9@byu.net>
32390
32391         fpurge: fix previous commits
32392         * modules/fpurge (Makefile.am): Make replacement conditional,
32393         partially reverting 2007-04-29 change; missed in previous
32394         attempt.
32395         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32396         is missing.
32397
32398 2009-08-16  Bruno Haible  <bruno@clisp.org>
32399
32400         Clarify fpurge's effect on the file position.
32401         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32402         * tests/test-fpurge.c (main): Make a second pass for checking the file
32403         position.
32404
32405 2009-08-16  Bruno Haible  <bruno@clisp.org>
32406
32407         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32408         declaration of fpurge is missing.
32409         * tests/test-fpurge.c (main): Check that the file has not more contents
32410         than expected. Close the file before removing it.
32411
32412 2009-08-15  Eric Blake  <ebb9@byu.net>
32413
32414         fpurge: don't wrap working cygwin implementation
32415         * lib/fpurge.c (fpurge): Fix comment typo.
32416         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32417         1.7 to avoid replacement.
32418         * tests/test-fpurge.c (main): Enhance test.
32419
32420 2009-08-15  Eric Blake  <ebb9@byu.net>
32421         and Jim Meyering  <meyering@redhat.com>
32422
32423         test-update-copyright: skip if perl is insufficient
32424         * tests/test-update-copyright.sh: Failure to run maintainer tool
32425         should not cause testsuite failure on cygwin 1.5.
32426
32427 2009-08-14  Eric Blake  <ebb9@byu.net>
32428
32429         doc: mention more functions added in cygwin 1.7.0
32430         * doc/posix-headers/limits.texi (limits.h): Update for recent
32431         cygwin additions.
32432         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32433         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32434         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32435         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32436         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32437
32438 2009-08-14  Eric Blake  <ebb9@byu.net>
32439
32440         maint.mk: simplify update-copyright rule
32441         * top/maint.mk (update-copyright-local): Delete, and document how
32442         to do it in cfg.mk instead.
32443         (update-copyright-exclude-regexp): Delete, and document how to do
32444         it in .x-update-copyright instead.
32445         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32446         exclude ChangeLog.
32447
32448 2009-08-14  Bruno Haible  <bruno@clisp.org>
32449
32450         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32451
32452 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32453
32454         maint.mk: support update-copyright-env
32455         * top/maint.mk (update-copyright-env): Define place-holder.
32456         (update-copyright): Expand $(update-copyright-env) before
32457         invoking update-copyright.
32458
32459 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32460
32461         update-copyright: implement forced reformatting
32462         * build-aux/update-copyright: Implement and document
32463         UPDATE_COPYRIGHT_FORCE.
32464         * tests/test-update-copyright.sh: Test it.
32465
32466 2009-08-14  Eric Blake  <ebb9@byu.net>
32467         and Bruno Haible  <bruno@clisp.org>
32468
32469         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32470         * tests/test-locale.c: Revert previous patch related to NULL.
32471         * tests/test-stdio.c: Likewise.
32472         * tests/test-stdlib.c: Likewise.
32473         * tests/test-string.c: Likewise.
32474         * tests/test-unistd.c: Likewise.
32475         * modules/time-tests (Depends-on): Add verify.
32476         * modules/wchar-tests (Depends-on): Likewise.
32477         * tests/test-time.c: Test for NULL compliance.
32478         * tests/test-wchar.c: Likewise.
32479         * modules/locale (Depends-on): Add stddef.
32480         * modules/stdio (Depends-on): Likewise.
32481         * modules/stdlib (Depends-on): Likewise.
32482         * modules/string (Depends-on): Likewise.
32483         * modules/time (Depends-on): Likewise.
32484         * modules/unistd (Depends-on): Likewise.
32485         * modules/wchar (Depends-on): Likewise.
32486         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32487         * lib/stdlib.in.h (includes): Likewise.
32488         * lib/string.in.h (includes): Likewise.
32489         * lib/time.in.h (includes): Likewise.
32490         * lib/unistd.in.h (includes): Likewise.
32491         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32492         replaced.
32493         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32494         * m4/stddef_h.m4: New file.
32495         * modules/stddef: Likewise.
32496         * lib/stddef.in.h: Likewise.
32497         * modules/stddef-tests: Likewise.
32498         * tests/test-stddef.c: Likewise.
32499         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32500         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32501         * doc/posix-headers/locale.texi (locale.h): Likewise.
32502         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32503         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32504         * doc/posix-headers/string.texi (string.h): Likewise.
32505         * doc/posix-headers/time.texi (time.h): Likewise.
32506         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32507         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32508
32509 2009-08-14  Eric Blake  <ebb9@byu.net>
32510
32511         doc: improve git diff of texinfo files
32512         * .gitattributes: Add rule for *.texi files, with hint on how to
32513         use it.
32514         Copied from m4, and based on a report by Bruno Haible.
32515
32516 2009-08-14  Bruno Haible  <bruno@clisp.org>
32517
32518         Disable multithread support by default on Cygwin 1.5.x for real.
32519         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32520
32521 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32522
32523         update-copyright: much ado about intervals
32524         * build-aux/update-copyright: Implement and document
32525         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32526         of copyright year intervals.
32527         Also, document UPDATE_COPYRIGHT_YEAR.
32528         * tests/test-update-copyright.sh: Test it.
32529
32530         update-copyright: convert 2-digit to 4-digit years
32531         * build-aux/update-copyright: Implement and document.
32532         * tests/test-update-copyright.sh: Update.
32533
32534 2009-08-14  Jim Meyering  <meyering@redhat.com>
32535
32536         test-exclude: avoid coreutils "make check" failure
32537         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32538         just as in test-argmatch.c.
32539
32540 2009-08-13  Eric Blake  <ebb9@byu.net>
32541
32542         test-dup2: fix bad assumption
32543         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32544         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32545
32546         test-version-etc: fix CRLF portability issue
32547         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32548         recognize \r.
32549         * tests/test-argp-version-etc-1.sh: Likewise.
32550
32551         getopt: update client modules
32552         * modules/argp (Depends-on): Use getopt-gnu.
32553         * modules/git-merge-changelog (Depends-on): Likewise.
32554         * modules/long-options (Depends-on): Likewise.
32555         * modules/xstrtol (Depends-on): Likewise.
32556
32557 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32558
32559         * tests/test-version-etc.sh: Don't fail on different
32560         project/version.  Don't fail on CRLF differences.  Rewrite to use
32561         multiple -e instead of multiple sed forks, suggested by Eric Blake
32562         <ebb9@byu.net>.
32563         * tests/test-argp-version-etc-1.sh: Likewise.
32564
32565 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32566
32567         * tests/test-version-etc.sh: Don't fail on different
32568         project/version.
32569
32570 2009-08-12  Bruno Haible  <bruno@clisp.org>
32571
32572         Tests for modules 'getopt-posix', 'getopt-gnu'.
32573         * modules/getopt-posix-tests: New file.
32574         * tests/test-getopt.c: New file.
32575         * tests/test-getopt.h: New file.
32576         * tests/test-getopt_long.h: New file.
32577
32578         New modules 'getopt-posix', 'getopt-gnu'.
32579         * modules/getopt-gnu: New file, renamed from modules/getopt.
32580         * modules/getopt-posix: New file.
32581         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32582         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32583         (gl_GETOPT): Remove macro.
32584         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32585         Disable the test against BSD systems that declare optreset. Test
32586         against mingw bug. Test against lack of support of optional arguments
32587         on many platforms.
32588         * doc/glibc-headers/getopt.texi: Update module name and list of
32589         relevant platforms.
32590         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32591         'getopt-gnu' and more portability problems.
32592         * NEWS: Mention the changes.
32593
32594 2009-08-12  Bruno Haible  <bruno@clisp.org>
32595
32596         Ensure that optarg etc. get declared by <unistd.h>.
32597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32598         AC_USE_SYSTEM_EXTENSIONS.
32599         * modules/getopt (Depends-on): Add 'extensions'.
32600
32601 2009-08-12  Bruno Haible  <bruno@clisp.org>
32602
32603         Avoid test link errors.
32604         * modules/pipe-filter-ii-tests (Makefile.am): Define
32605         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32606         * modules/pipe-filter-gi-tests (Makefile.am): Define
32607         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32609
32610 2009-08-12  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32613         gl_GETOPT_SUBSTITUTE before.
32614         (gl_GETOPT): Use it.
32615         * m4/argp.m4 (gl_ARGP): Update.
32616         Reported by Sergey Poznyakoff.
32617
32618         * m4/getopt.m4: Reorder macros.
32619         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32620         (gl_GETOPT_SUBSTITUTE): Remove macro.
32621
32622 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32623
32624         Minor improvement in gitlog-to-changelog
32625
32626         * build-aux/gitlog-to-changelog: New option `--format' makes
32627         output format string configurable.
32628
32629 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32630
32631         Optimize exclude: use hash tables for non-wildcard patterns.
32632
32633         * lib/exclude.c: Include hash.h and mbuiter.h
32634         (struct exclude_pattern, exclude_segment): New data types.
32635         (struct exclude): Rewrite.
32636         (fnmatch_pattern_has_wildcards): New function.
32637         (new_exclude_segment, free_exclude_segment): New functions.
32638         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32639         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32640         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32641         * modules/exclude: Depend on hash and mbuiter.
32642
32643         * modules/exclude-tests: New file.
32644         * tests/test-exclude.c: New file.
32645         * tests/test-exclude1.sh: New file.
32646         * tests/test-exclude2.sh: New file.
32647         * tests/test-exclude3.sh: New file.
32648         * tests/test-exclude4.sh: New file.
32649         * tests/test-exclude5.sh: New file.
32650         * tests/test-exclude6.sh: New file.
32651         * tests/test-exclude7.sh: New file.
32652
32653 2009-08-12  Bruno Haible  <bruno@clisp.org>
32654
32655         Ensure that getopt() gets declared by <unistd.h>.
32656         * lib/unistd.in.h: Conditionally include getopt.h.
32657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32658         Set GNULIB_UNISTD_H_GETOPT.
32659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32660         GNULIB_UNISTD_H_GETOPT.
32661         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32662
32663 2009-08-12  Bruno Haible  <bruno@clisp.org>
32664
32665         Clarify logic.
32666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32667         gl_replace_getopt instead of GETOPT_H.
32668
32669 2009-08-12  Bruno Haible  <bruno@clisp.org>
32670
32671         * m4/getopt.m4: Add comments.
32672
32673 2009-08-12  Bruno Haible  <bruno@clisp.org>
32674
32675         Disable multithread support by default on Cygwin 1.5.x.
32676         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32677         set gl_use_threads=no if not specified otherwise.
32678
32679 2009-08-11  Bruno Haible  <bruno@clisp.org>
32680
32681         Avoid compilation error on NetBSD 5.0.
32682         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32683         * tests/test-stdio.c: Likewise.
32684         * tests/test-stdlib.c: Likewise.
32685         * tests/test-string.c: Likewise.
32686         * tests/test-unistd.c: Likewise.
32687         Reported by Greg Troxel <gdt@ir.bbn.com>
32688         at <https://savannah.gnu.org/support/?106973>.
32689
32690 2009-08-11  Bruno Haible  <bruno@clisp.org>
32691
32692         * modules/dup2-tests (Depends-on): Remove close.
32693
32694         Undo 2009-07-19 commit.
32695         * modules/acl-tests (Depends-on): Remove close.
32696         * modules/binary-io-tests (Depends-on): Likewise.
32697         * modules/closein-tests (Depends-on): Likewise.
32698         * modules/flock-tests (Depends-on): Likewise.
32699         * modules/fsync-tests (Depends-on): Likewise.
32700         * modules/lseek-tests (Depends-on): Likewise.
32701         * modules/pipe-tests (Depends-on): Likewise.
32702         * modules/posix_spawn-tests (Depends-on): Likewise.
32703         * modules/posix_spawnp-tests (Depends-on): Likewise.
32704         * modules/stat-time-tests (Depends-on): Likewise.
32705         * modules/yesno-tests (Depends-on): Likewise.
32706
32707 2009-08-10  Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32710
32711 2009-08-10  Bruno Haible  <bruno@clisp.org>
32712
32713         Fix a gcc warning.
32714         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32715
32716 2009-08-10  Bruno Haible  <bruno@clisp.org>
32717
32718         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32719         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32720         not only the first time.
32721         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32722         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32723         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32724         is 1, not only the the first time.
32725
32726 2009-08-10  Bruno Haible  <bruno@clisp.org>
32727
32728         Make it possible to use module 'gethostname' without module 'close'.
32729         * lib/unistd.in.h (close): Evoke a link error only if
32730         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32732         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32733         * modules/unistd (Makefile.am): Substitute
32734         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32735         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32736         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32737         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32738         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32739         * modules/sys_ioctl (Makefile.am): Substitute
32740         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32741         * modules/socket (configure.ac): On native Windows, set
32742         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32743         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32744         Reported by Sam Steingold <sds@gnu.org>.
32745
32746 2009-08-10  Bruno Haible  <bruno@clisp.org>
32747
32748         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32749         * modules/ioctl (configure.ac): Likewise.
32750
32751 2009-08-10  Bruno Haible  <bruno@clisp.org>
32752
32753         Avoid collision between gnulib wrapper and libintl wrapper.
32754         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32755         already defined in intl/printf.c.
32756         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32757         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32758
32759 2009-08-09  Bruno Haible  <bruno@clisp.org>
32760
32761         Make <sys/select.h> really self-contained, also on Solaris 10.
32762         * lib/sys_select.in.h: Include <string.h>.
32763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32764         Solaris 10 problem.
32765         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32766         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32767         Reported by Jim Meyering.
32768
32769 2009-08-09  Bruno Haible  <bruno@clisp.org>
32770
32771         Avoid warnings from 'aclocal' that are due to a use of macro name
32772         AM_XGETTEXT_OPTION that is not defined in automake.
32773         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32774         automake.
32775         * modules/error (configure.ac): Likewise.
32776         * modules/propername (configure.ac): Likewise.
32777         * modules/vasprintf (configure.ac): Likewise.
32778         * modules/verror (configure.ac): Likewise.
32779         * modules/xprintf (configure.ac): Likewise.
32780         * modules/xvasprintf (configure.ac): Likewise.
32781
32782 2009-08-08  Bruno Haible  <bruno@clisp.org>
32783
32784         Avoid compilation error in C++ mode.
32785         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32786         Reported by Sam Steingold <sds@gnu.org>.
32787
32788 2009-08-08  Bruno Haible  <bruno@clisp.org>
32789
32790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32791         for the various Unix platforms.
32792         * doc/posix-headers/limits.texi: Update platforms list regarding
32793         HOST_NAME_MAX.
32794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32795
32796 2009-08-07  Jim Meyering  <meyering@redhat.com>
32797
32798         selinux-at: fix typo in a comment
32799         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32800         Spotted by Paolo Bonzini.
32801
32802         selinux-at: remove redundant m4 code, add documentation
32803         * modules/selinux-at (configure.ac): Remove redundant code.
32804         LIB_SELINUX is already set via the dependent module, selinux-h.
32805         (Include): Add quotes around selinux-at.h.
32806         * lib/selinux-at.h: Add documentation.
32807         Reported by Bruno Haible in
32808         http://marc.info/?l=gnulib-bug&m=124958988300749
32809
32810 2009-08-07  Bruno Haible  <bruno@clisp.org>
32811
32812         Avoid link error on MacOS X 10.3 and 10.4.
32813         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32814         on non-ELF systems.
32815         * lib/argp-pv.c (argp_program_version): Likewise.
32816         Reported by Simon Josefsson.
32817
32818 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32819
32820         * tests/test-version-etc.sh: Use $EXEEXT.
32821
32822 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32823
32824         update-copyright: update documentation to point to maint.mk
32825         * build-aux/update-copyright: Here.
32826
32827 2009-08-06  Jim Meyering  <meyering@redhat.com>
32828
32829         maint.mk: support update-copyright-local
32830         * top/maint.mk (update-copyright-local): Define place-holder.
32831         (update-copyright): Depend on $(update-copyright-local).
32832
32833 2009-08-06  Jim Meyering  <meyering@redhat.com>
32834
32835         selinux-at: new module
32836         Initially written for coreutils, this module will soon be
32837         used by findutils, too.
32838         * MODULES.html.sh [Misc]: Add selinux-at.
32839         * lib/selinux-at.h: New file, from coreutils.
32840         * lib/selinux-at.c: Likewise.
32841         * modules/selinux-at: Likewise.
32842         (License): Change from LGPL to GPL, since it depends
32843         on the GPL'd openat module.
32844
32845         doc: update README
32846         * README: Remove references to cogito.
32847         Remove cvs-repo-updating instructions from 2007.
32848         Don't imply that CVS is better if you have limited disk space.
32849
32850 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32851
32852         update-copyright: support C-style comments
32853         * build-aux/update-copyright: Implement and document.
32854         * tests/test-update-copyright.sh: Test.
32855
32856 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32857
32858         update-copyright: support omitted "(C)"
32859         * build-aux/update-copyright: Implement and document.  Also,
32860         allow variable whitespace before "(C)".
32861         * tests/test-update-copyright.sh: Test.
32862
32863 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32864
32865         update-copyright: don't trip on non-FSF copyright statements
32866         * build-aux/update-copyright: Fix so that the first correctly
32867         formatted FSF copyright statement is recognized no matter what
32868         appears before it.  Update documentation.
32869         * tests/test-update-copyright.sh: Test that.
32870
32871 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32872
32873         update-copyright: clean up code a little
32874         * build-aux/update-copyright: Append "_re" to the name of any
32875         variable holding a regular expression.
32876         Replace "old" and "new" with "stmt" in variable names.
32877         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32878         handled correctly.
32879         Format code more consistently.
32880
32881 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32882
32883         update-copyright-tests: improve portability
32884         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32885         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32886
32887 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32888
32889         update-copyright: support @copyright{} and &copy;
32890         * build-aux/update-copyright: Implement and document.
32891         * tests/test-update-copyright.sh: Test.
32892
32893 2009-08-04  Jim Meyering  <meyering@redhat.com>
32894
32895         update-copyright-tests: correctly test EOL=\r\n handling
32896         * tests/test-update-copyright.sh: Put \r at the end of some lines
32897         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32898
32899         maint.mk: make update-copyright exclusion list more configurable
32900         * top/maint.mk (update-copyright): Default to excluding COPYING,
32901         but allow an override, in case someone does want to update that file.
32902
32903         maint.mk: don't update copyright date in COPYING
32904         * top/maint.mk (update-copyright): Exclude COPYING.
32905
32906         maint.mk: add a copyright-updating rule
32907         * top/maint.mk (update-copyright): New rule.
32908         Derived from coreutils/Makefile.am.
32909
32910         update-copyright: rename some variables
32911         * build-aux/update-copyright: Rename a few variables for clarity.
32912         Tweak syntax.  List Joel E. Denny as coauthor.
32913
32914 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32915
32916         update-copyright: fix bug for 2-digit last year and add tests
32917         * build-aux/update-copyright: Fix bug.
32918         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32919         specified.
32920         * modules/update-copyright-tests: New
32921         * tests/test-update-copyright.sh: New.
32922
32923 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32924
32925         update-copyright: handle leading tabs in line prefix
32926         * build-aux/update-copyright: Count leading tabs as 8 spaces
32927         when computing margin.  This helps with the formatting of
32928         ChangeLogs, for example.
32929         Fix documentation a little.
32930
32931 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32932
32933         update-copyright: support EOL=\r\n
32934         * build-aux/update-copyright: Implement that.
32935
32936 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32937
32938         update-copyright: automatically format copyright statements
32939         * build-aux/update-copyright: Implement that.
32940         Also, be a little more predictable and safer by always failing
32941         when the full copyright format is not perfectly recognized as an
32942         unbroken whole.  Discussed at
32943         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32944         Rewrite documentation.
32945
32946 2009-08-03  Bruno Haible  <bruno@clisp.org>
32947
32948         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32949
32950 2009-08-02  Bruno Haible  <bruno@clisp.org>
32951
32952         Tests for module 'uname'.
32953         * modules/uname-tests: New file.
32954         * tests/test-uname.c: New file.
32955
32956         New module 'uname'.
32957         * lib/uname.c: New file.
32958         * m4/uname.m4: New file.
32959         * modules/uname: New file.
32960         * doc/posix-functions/uname.texi: Mention the new module.
32961
32962 2009-08-02  Bruno Haible  <bruno@clisp.org>
32963
32964         Tests for module 'sys_utsname'.
32965         * modules/sys_utsname-tests: New file.
32966         * tests/test-sys_utsname.c: New file.
32967
32968         New module 'sys_utsname'.
32969         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32970         * m4/sys_utsname_h.m4: New file.
32971         * modules/sys_utsname: New file.
32972         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32973
32974 2009-08-02  Bruno Haible  <bruno@clisp.org>
32975
32976         Implicitly initialize the sockets library.
32977         * lib/gethostname.c: Include sockets.h.
32978         (rpl_gethostname): Invoke gl_sockets_startup.
32979         * lib/socket.c: Include sockets.h.
32980         (rpl_socket): Invoke gl_sockets_startup.
32981         * modules/gethostname (Depends-on): Add sockets.
32982         * modules/socket (Depends-on): Likewise.
32983         * tests/test-poll.c: Don't include sockets.h.
32984         (main): Don't invoke gl_sockets_startup.
32985         * tests/test-select.c: Don't include sockets.h.
32986         (main): Don't invoke gl_sockets_startup.
32987
32988 2009-08-02  Bruno Haible  <bruno@clisp.org>
32989
32990         Allow multiple calls to gl_sockets_startup.
32991         * lib/sockets.c (initialized_sockets_version): New variable.
32992         (gl_sockets_startup): Do nothing if already called for this or a higher
32993         version.
32994         (gl_sockets_cleanup): Reset initialized_sockets_version.
32995
32996 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32997
32998         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32999         different project/version.
33000
33001 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33002             Bruno Haible  <bruno@clisp.org>
33003
33004         Tests for module 'pipe-filter-gi'.
33005         * modules/pipe-filter-gi-tests: New file.
33006         * tests/test-pipe-filter-gi1.sh: New file.
33007         * tests/test-pipe-filter-gi1.c: New file.
33008         * tests/test-pipe-filter-gi2.sh: New file.
33009         * tests/test-pipe-filter-gi2-main.c: New file.
33010         * tests/test-pipe-filter-gi2-child.c: New file.
33011
33012         New module 'pipe-filter-gi'.
33013         * lib/pipe-filter-gi.c: New file.
33014         * modules/pipe-filter-gi: New file.
33015
33016 2009-08-02  Bruno Haible  <bruno@clisp.org>
33017             Paolo Bonzini  <bonzini@gnu.org>
33018
33019         Tests for module 'pipe-filter-ii'.
33020         * modules/pipe-filter-ii-tests: New file.
33021         * tests/test-pipe-filter-ii1.sh: New file.
33022         * tests/test-pipe-filter-ii1.c: New file.
33023         * tests/test-pipe-filter-ii2.sh: New file.
33024         * tests/test-pipe-filter-ii2-main.c: New file.
33025         * tests/test-pipe-filter-ii2-child.c: New file.
33026
33027         New module 'pipe-filter-ii'.
33028         * lib/pipe-filter.h: New file.
33029         * lib/pipe-filter-ii.c: New file.
33030         * lib/pipe-filter-aux.h: New file.
33031         * modules/pipe-filter-ii: New file.
33032
33033 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33034
33035         * lib/gc-libgcrypt.c: Change copyright to FSF.
33036         * lib/gc-gnulib.c: Likewise.
33037
33038 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33039
33040         * lib/gethostname.c: Include limits.h.
33041
33042 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33043             Bruno Haible  <bruno@clisp.org>
33044
33045         Ensure HOST_NAME_MAX as part of the gethostname module.
33046         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33047         define also HOST_NAME_MAX.
33048         * tests/test-gethostname.c: Include <limits.h>.
33049         (main): Check also HOST_NAME_MAX.
33050         * doc/posix-headers/limits.texi: Document the mingw problem.
33051
33052 2009-08-02  Bruno Haible  <bruno@clisp.org>
33053
33054         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33055         Add comments.
33056
33057 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33058
33059         * lib/gethostname.c: Add Windows wrapper.
33060         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33061         * modules/gethostname: Depend on sys_socket & errno, for also
33062         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33063         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33064
33065 2009-07-31  Jim Meyering  <meyering@redhat.com>
33066
33067         getloadavg: fix symbol name in comment
33068         * lib/getloadavg.c: Correct a typo I introduced when adding
33069         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33070         Matt Kraai spotted the problem.
33071
33072 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33073
33074         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33075         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33076         code also if ! defined N_NAME_POINTER.
33077         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33078         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33079         but the n_name member is a 12-byte array.
33080
33081 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33082
33083         update-copyright: generalize comment handling
33084         * build-aux/update-copyright: Handle copyright statements
33085         within more comment styles.
33086         Document usage.
33087         Report any file with an external copyright holder or parse failure.
33088
33089 2009-07-29  Jim Meyering  <meyering@redhat.com>
33090
33091         mktime: correct setting of REPLACE_MKTIME
33092         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33093
33094         update-copyright: new module
33095         * modules/update-copyright: New file.
33096         * build-aux/update-copyright: New file.
33097         * MODULES.html.sh (maint+release support): Add update-copyright.
33098
33099 2009-07-27  Bruno Haible  <bruno@clisp.org>
33100
33101         Fix compilation error when <ctime> is used and mktime is replaced.
33102         * lib/time.in.h (mktime): New declaration.
33103         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33104         REPLACE_MKTIME instead of defining mktime in config.h.
33105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33106         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33107         Reported by Ross McFarland <rwmcfa1@neces.com>.
33108
33109 2009-07-27  Bruno Haible  <bruno@clisp.org>
33110
33111         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33112         Reported by Matt Kraai <mkraai@beckman.com>.
33113
33114 2009-07-25  Jim Meyering  <meyering@redhat.com>
33115
33116         maint.mk: avoid warnings about missing files
33117         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33118         diagnostic when .prev-version does not exist.
33119         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33120         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33121         nonexistent cfg.mk.
33122         Suggestions from Simon Josefsson.
33123
33124 2009-07-25  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33127         defined as macros. Needed on QNX 6.4.1.
33128         Reported by Matt Kraai <mkraai@beckman.com>.
33129
33130 2009-07-23  Jim Meyering  <meyering@redhat.com>
33131
33132         maint.mk: invoke "make dist" with a working value of XZ_OPT
33133         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33134
33135 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33136
33137         Make fseeko.c compile on QNX.
33138         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33139
33140 2009-07-22  Peter Simons  <simons@cryp.to>
33141
33142         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33143         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33144         * lib/md4.h: Likewise.
33145         * lib/md5.h: Likewise.
33146         * lib/sha1.h: Likewise.
33147         * lib/sha256.h: Likewise.
33148         * lib/sha512.h: Likewise.
33149
33150         tests-sha1: don't assign literal string to 'char *' variable
33151         * tests/test-sha1.c (main): Declare locals with "const" to match
33152         attributes of the right hand side.
33153
33154 2009-07-21  Eric Blake  <ebb9@byu.net>
33155
33156         dup2: fix more mingw problems
33157         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33158         fd to itself.
33159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33160         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33161         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33162         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33163         care of mingw bugs.
33164
33165 2009-07-21  Jim Meyering  <meyering@redhat.com>
33166
33167         vc-list-files: avoid failure when /bin/sh is dash
33168         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33169         On some Debian based systems, /bin/sh is a symlink to dash, and running
33170         this command would omit the "/" following each 'tests' prefix:
33171           dash -x build-aux/vc-list-files -C . tests
33172         That is because bash and dash work differently:
33173           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33174           bash ok
33175           dash odd
33176
33177 2009-07-21  Eric Blake  <ebb9@byu.net>
33178
33179         dup2-tests: test previous patch
33180         * modules/dup2-tests: New file.
33181         * tests/test-dup2.c: Likewise.
33182         * tests/test-open.c (main): Avoid unspecified behavior.
33183         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33184         test.
33185
33186         dup2: work around mingw and cygwin 1.5 bug
33187         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33189         * modules/unistd (Makefile.am): Substitute it.
33190         * lib/unistd.in.h (dup2): Declare the replacement.
33191         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33192         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33193         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33194         * modules/execute (Depends-on): Add dup2.
33195         * modules/fseterr (Depends-on): Likewise.
33196         * modules/pipe (Depends-on): Likewise.
33197         * modules/posix_spawn-internal (Depends-on): Likewise.
33198
33199 2009-07-21  Bruno Haible  <bruno@clisp.org>
33200
33201         * modules/.gitattributes: New file.
33202
33203 2009-07-20  Bruno Haible  <bruno@clisp.org>
33204
33205         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33206         (main): Use it.
33207
33208 2009-07-20  Eric Blake  <ebb9@byu.net>
33209
33210         test-pipe: make a bit more robust.
33211         * tests/test-pipe.c (myerr): Allow error messages regardless of
33212         what we do to stderr.
33213         (test_pipe): Rearrange to avoid deadlock.
33214         (child_main): Try a larger read, to ensure we avoided deadlock.
33215         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33216         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33217         if misused.
33218
33219 2009-07-19  Jim Meyering  <meyering@redhat.com>
33220
33221         fts: avoid false-positive cycle-detection
33222         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33223         for each new command line argument.
33224
33225 2009-07-19  Bruno Haible  <bruno@clisp.org>
33226
33227         Fix build error on mingw with the modules sys_select and unistd.
33228         * modules/acl-tests (Depends-on): Add close.
33229         * modules/binary-io-tests (Depends-on): Likewise.
33230         * modules/closein-tests (Depends-on): Likewise.
33231         * modules/flock-tests (Depends-on): Likewise.
33232         * modules/fsync-tests (Depends-on): Likewise.
33233         * modules/lseek-tests (Depends-on): Likewise.
33234         * modules/pipe-tests (Depends-on): Likewise.
33235         * modules/posix_spawn-tests (Depends-on): Likewise.
33236         * modules/posix_spawnp-tests (Depends-on): Likewise.
33237         * modules/stat-time-tests (Depends-on): Likewise.
33238         * modules/yesno-tests (Depends-on): Likewise.
33239
33240 2009-07-19  Bruno Haible  <bruno@clisp.org>
33241
33242         Unify conditionals.
33243         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33244         macros, not at the compiler macros.
33245         * lib/pipe.c: Likewise.
33246         * lib/execute.c: Likewise.
33247         * lib/spawni.c: Likewise.
33248
33249 2009-07-19  Bruno Haible  <bruno@clisp.org>
33250
33251         Fix handling of closed stdin/stdout/stderr on mingw.
33252         * lib/w32spawn.h: Include unistd.h.
33253         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33254         file descriptor with O_NOINHERIT flag.
33255         (fd_safer_noinherit): New function, based on fd-safer.c.
33256         (dup_safer_noinherit): New function, based on dup-safer.c.
33257         (undup_safer_noinherit): New function.
33258         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33259         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33260         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33261         instead of fd_safer.
33262         * tests/test-pipe.c: Include <windows.h>.
33263         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33264         result.
33265
33266         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33267         from main.
33268         (test_pipe): Pass an extra argument for disambiguation.
33269         (main): Invoke parent_main or child_main.
33270
33271         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33272         consistently.
33273
33274 2009-07-18  Eric Blake  <ebb9@byu.net>
33275
33276         test-pipe: fix mingw build
33277         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33278
33279 2009-07-18  Bruno Haible  <bruno@clisp.org>
33280
33281         * modules/pipe-tests (Makefile.am): Fix typo.
33282
33283 2009-07-18  Eric Blake  <ebb9@byu.net>
33284
33285         error: fix mingw build
33286         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33287         Reported by Bruno Haible.
33288
33289         error: avoid undefined use of stdout
33290         * lib/error.c (error, error_at_line): Check that fd 1 is open
33291         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33292         is handling faults and the close_stdout module wants to report the
33293         detection of closed stdout as an error.
33294
33295 2009-07-17  Eric Blake  <ebb9@byu.net>
33296
33297         pipe: be robust in face of closed fds
33298         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33299         should cause child to misbehave.
33300         * modules/pipe-tests: New module.
33301         * tests/test-pipe.c: New file.
33302         * tests/test-pipe.sh: New file.
33303         Reported by Akim Demaille.
33304
33305 2009-07-14  Bruno Haible  <bruno@clisp.org>
33306
33307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33308         Reported by anonymous kc.
33309
33310 2009-07-07  Jim Meyering  <meyering@redhat.com>
33311
33312         maint.mk: don't look for translatable strings in *.m4 or *.mk
33313         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33314         when searching for translatable strings.
33315
33316 2009-07-05  Jim Meyering  <meyering@redhat.com>
33317
33318         remove superfluous parentheses in STREQ definition
33319         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33320         * lib/getugroups.c (STREQ): Likewise.
33321         * lib/fnmatch.c (STREQ): Likewise.
33322         Spotted by Bruno Haible.
33323
33324 2009-07-04  Jim Meyering  <meyering@redhat.com>
33325
33326         argv-iter: new module
33327         * MODULES.html.sh: Add argv-iter.
33328         * lib/argv-iter.c, lib/argv-iter.h: New files.
33329         * modules/argv-iter: New file.
33330         * modules/argv-iter-tests: New file.
33331         * tests/test-argv-iter.c: Test it.
33332
33333 2009-07-04  Bruno Haible  <bruno@clisp.org>
33334
33335         Fix assertion.
33336         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33337         contains more exact copies of a given entry than file2, leave the extra
33338         copies unpaired rather than aborting.
33339         Reported by Eric Blake.
33340
33341 2009-07-02  Bruno Haible  <bruno@clisp.org>
33342
33343         Speedup git-merge-changelog for git cherry-pick.
33344         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33345         (entries_mapping_get): New function, extracted from compute_mapping.
33346         (entries_mapping_reverse_get): New function.
33347         (compute_mapping): Add a 'full' argument. Return the result in a
33348         'struct entries_mapping'.
33349         (main): Update. Access the mappings through entries_mapping_get.
33350         Reported by Eric Blake.
33351
33352 2009-07-02  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33355         best_i.
33356
33357 2009-07-02  Bruno Haible  <bruno@clisp.org>
33358
33359         Speed up approximate search for matching ChangeLog entries.
33360         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33361         argument. Call fstrcmp_bounded instead of fstrcmp.
33362         (compute_mapping, try_split_merged_entry, main): Update callers.
33363
33364 2009-07-02  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33367
33368 2009-06-30  Bruno Haible  <bruno@clisp.org>
33369
33370         Reduce the number of uc_is_cased calls.
33371         * lib/unicase.h (casing_suffix_context_t): Add
33372         'first_char_except_ignorable' field.
33373         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33374         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33375         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33376         Update initializer.
33377         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33378         case-ignorable characters.
33379         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33380         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33381         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33382         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33383         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33384
33385 2009-06-30  Bruno Haible  <bruno@clisp.org>
33386
33387         Tests for module 'unicase/ignorable'.
33388         * modules/unicase/ignorable-tests: New file.
33389         * tests/unicase/test-ignorable.c: New file, generated by
33390         gen-uni-tables.
33391
33392         Tests for module 'unicase/cased'.
33393         * modules/unicase/cased-tests: New file.
33394         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33395         * tests/unicase/test-predicate-part1.h: New file, derived from
33396         tests/unictype/test-predicate-part1.h.
33397         * tests/unicase/test-predicate-part2.h: New file, same as
33398         tests/unictype/test-predicate-part2.h.
33399
33400         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33401         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33402         (output_casing_properties): New function.
33403         (main): Call it.
33404         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33405         * lib/unicase/cased.c: Include unictype/bitmap.h.
33406         (uc_is_cased): Define through a bitmap lookup.
33407         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33408         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33409         (uc_is_case_ignorable): Define through a bitmap lookup.
33410         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33411         lib/unictype/bitmap.h.
33412         (Depends-on): Add inline. Clean up.
33413         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33414         lib/unictype/bitmap.h.
33415         (Depends-on): Add inline. Clean up.
33416         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33417         recognition.
33418         * tests/unicase/test-u16-tolower.c (main): Likewise.
33419         * tests/unicase/test-u32-tolower.c (main): Likewise.
33420
33421 2009-06-30  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33424         * lib/unicase/u16-casemap.c: Likewise.
33425         * lib/unicase/u32-casemap.c: Likewise.
33426
33427 2009-06-29  Bruno Haible  <bruno@clisp.org>
33428
33429         Define u32_casefold as a wrapper around u32_ct_casefold.
33430         * lib/unicase/u32-casefold.c: Update.
33431         * modules/unicase/u32-casefold (Depends-on): Add
33432         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33433         unicase/empty-suffix-context. Clean up.
33434
33435         Define u16_casefold as a wrapper around u16_ct_casefold.
33436         * lib/unicase/u16-casefold.c: Update.
33437         * modules/unicase/u16-casefold (Depends-on): Add
33438         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33439         unicase/empty-suffix-context. Clean up.
33440
33441         Define u8_casefold as a wrapper around u8_ct_casefold.
33442         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33443         * lib/unicase/u8-casefold.c: Update.
33444         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33445         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33446
33447         Define u32_totitle as a wrapper around u32_ct_totitle.
33448         * lib/unicase/u32-totitle.c: Update.
33449         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33450         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33451
33452         Define u16_totitle as a wrapper around u16_ct_totitle.
33453         * lib/unicase/u16-totitle.c: Update.
33454         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33455         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33456
33457         Define u8_totitle as a wrapper around u8_ct_totitle.
33458         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33459         functions.
33460         (FUNC): Delegate to U_CT_TOTITLE.
33461         * lib/unicase/u8-totitle.c: Update.
33462         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33463         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33464
33465         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33466         invocation.
33467         * modules/unicase/u32-tolower (Depends-on): Add
33468         unicase/empty-prefix-context, unicase/empty-suffix-context.
33469
33470         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33471         invocation.
33472         * modules/unicase/u16-tolower (Depends-on): Add
33473         unicase/empty-prefix-context, unicase/empty-suffix-context.
33474
33475         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33476         * modules/unicase/u8-tolower (Depends-on): Add
33477         unicase/empty-prefix-context, unicase/empty-suffix-context.
33478
33479         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33480         invocation.
33481         * modules/unicase/u32-toupper (Depends-on): Add
33482         unicase/empty-prefix-context, unicase/empty-suffix-context.
33483
33484         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33485         invocation.
33486         * modules/unicase/u16-toupper (Depends-on): Add
33487         unicase/empty-prefix-context, unicase/empty-suffix-context.
33488
33489         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33490         * modules/unicase/u8-toupper (Depends-on): Add
33491         unicase/empty-prefix-context, unicase/empty-suffix-context.
33492
33493         New module 'unicase/u32-ct-casefold'.
33494         * lib/unicase/u32-ct-casefold.c: New file.
33495         * modules/unicase/u32-ct-casefold: New file.
33496
33497         New module 'unicase/u16-ct-casefold'.
33498         * lib/unicase/u16-ct-casefold.c: New file.
33499         * modules/unicase/u16-ct-casefold: New file.
33500
33501         New module 'unicase/u8-ct-casefold'.
33502         * lib/unicase/u8-ct-casefold.c: New file.
33503         * lib/unicase/u-ct-casefold.h: New file, derived from
33504         lib/unicase/u-casefold.h.
33505         * modules/unicase/u8-ct-casefold: New file.
33506
33507         New module 'unicase/u32-ct-totitle'.
33508         * lib/unicase/u32-ct-totitle.c: New file.
33509         * modules/unicase/u32-ct-totitle: New file.
33510
33511         New module 'unicase/u16-ct-totitle'.
33512         * lib/unicase/u16-ct-totitle.c: New file.
33513         * modules/unicase/u16-ct-totitle: New file.
33514
33515         New module 'unicase/u8-ct-totitle'.
33516         * lib/unicase/u8-ct-totitle.c: New file.
33517         * lib/unicase/u-ct-totitle.h: New file, derived from
33518         lib/unicase/u-totitle.h.
33519         * modules/unicase/u8-ct-totitle: New file.
33520
33521         New module 'unicase/u32-ct-tolower'.
33522         * lib/unicase/u32-ct-tolower.c: New file.
33523         * modules/unicase/u32-ct-tolower: New file.
33524
33525         New module 'unicase/u16-ct-tolower'.
33526         * lib/unicase/u16-ct-tolower.c: New file.
33527         * modules/unicase/u16-ct-tolower: New file.
33528
33529         New module 'unicase/u8-ct-tolower'.
33530         * lib/unicase/u8-ct-tolower.c: New file.
33531         * modules/unicase/u8-ct-tolower: New file.
33532
33533         New module 'unicase/u32-ct-toupper'.
33534         * lib/unicase/u32-ct-toupper.c: New file.
33535         * modules/unicase/u32-ct-toupper: New file.
33536
33537         New module 'unicase/u16-ct-toupper'.
33538         * lib/unicase/u16-ct-toupper.c: New file.
33539         * modules/unicase/u16-ct-toupper: New file.
33540
33541         New module 'unicase/u8-ct-toupper'.
33542         * lib/unicase/u8-ct-toupper.c: New file.
33543         * modules/unicase/u8-ct-toupper: New file.
33544
33545         Add context arguments to u*_casemap functions.
33546         * lib/unicase/unicasemap.h: Include unicase.h.
33547         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33548         suffix_context arguments.
33549         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33550         functions.
33551         (FUNC): Add prefix_context and suffix_context arguments. Use
33552         uc_is_cased and uc_is_case_ignorable.
33553         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33554         * lib/unicase/u16-casemap.c: Likewise.
33555         * lib/unicase/u32-casemap.c: Likewise.
33556         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33557         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33558         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33559         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33560         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33561         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33562
33563         New module 'unicase/u32-suffix-context'.
33564         * lib/unicase/u32-suffix-context.c: New file.
33565         * modules/unicase/u32-suffix-context: New file.
33566
33567         New module 'unicase/u16-suffix-context'.
33568         * lib/unicase/u16-suffix-context.c: New file.
33569         * modules/unicase/u16-suffix-context: New file.
33570
33571         New module 'unicase/u8-suffix-context'.
33572         * lib/unicase/u8-suffix-context.c: New file.
33573         * lib/unicase/u-suffix-context.h: New file.
33574         * modules/unicase/u8-suffix-context: New file.
33575
33576         New module 'unicase/empty-suffix-context'.
33577         * lib/unicase/empty-suffix-context.c: New file.
33578         * modules/unicase/empty-suffix-context: New file.
33579
33580         New module 'unicase/u32-prefix-context'.
33581         * lib/unicase/u32-prefix-context.c: New file.
33582         * modules/unicase/u32-prefix-context: New file.
33583
33584         New module 'unicase/u16-prefix-context'.
33585         * lib/unicase/u16-prefix-context.c: New file.
33586         * modules/unicase/u16-prefix-context: New file.
33587
33588         New module 'unicase/u8-prefix-context'.
33589         * lib/unicase/u8-prefix-context.c: New file.
33590         * lib/unicase/u-prefix-context.h: New file.
33591         * lib/unicase/context.h: New file.
33592         * modules/unicase/u8-prefix-context: New file.
33593
33594         New module 'unicase/empty-prefix-context'.
33595         * lib/unicase/empty-prefix-context.c: New file.
33596         * modules/unicase/empty-prefix-context: New file.
33597
33598         New module 'unicase/ignorable'.
33599         * lib/unicase/ignorable.c: New file.
33600         * modules/unicase/ignorable: New file.
33601
33602         New module 'unicase/cased'.
33603         * lib/unicase/caseprop.h: New file.
33604         * lib/unicase/cased.c: New file.
33605         * modules/unicase/cased: New file.
33606
33607         New functions for case mapping of substrings.
33608         * lib/unicase.h (casing_prefix_context_t): New type.
33609         (unicase_empty_prefix_context): New variable.
33610         (u8_casing_prefix_context, u16_casing_prefix_context,
33611         u32_casing_prefix_context, u8_casing_prefixes_context,
33612         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33613         declarations.
33614         (casing_suffix_context_t): New type.
33615         (unicase_empty_suffix_context): New variable.
33616         (u8_casing_suffix_context, u16_casing_suffix_context,
33617         u32_casing_suffix_context, u8_casing_suffixes_context,
33618         u16_casing_suffixes_context, u32_casing_suffixes_context,
33619         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33620         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33621         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33622         declarations.
33623
33624 2009-06-28  Jim Meyering  <meyering@redhat.com>
33625
33626         boostrap: indent only with spaces
33627         * build-aux/bootstrap: Indent only with spaces, never TABs.
33628
33629         bootstrap: split long lines
33630         * build-aux/bootstrap: Keep line length < 80.
33631
33632         bootstrap: sync from coreutils
33633         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33634         just as autoreconf does.  Verify a list of prerequisite
33635         package-name,version-number pairs if defined in bootstrap.conf.
33636         Refer to README-prereq, if prerequisites are not satisfied.
33637
33638 2009-06-27  Eric Blake  <ebb9@byu.net>
33639
33640         tests: add test for bogus NULL definition
33641         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33642         * tests/test-stdlib.c: Likewise.
33643         * tests/test-string.c: Likewise.
33644         * tests/test-locale.c: Likewise.
33645         * tests/test-unistd.c: Likewise.
33646         * modules/stdio-tests (Depends-on): Add verify.
33647         * modules/stdlib-tests (Depends-on): Likewise.
33648         * modules/string-tests (Depends-on): Likewise.
33649         * modules/locale-tests (Depends-on): Likewise.
33650         * modules/unistd-tests (Depends-on): Likewise.
33651
33652 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33653
33654         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33655         self-explaining comment.
33656         * m4/selinux-selinux-h: Update serial.
33657         (gl_LIBSELINUX): New macro, adding a warning for missing development
33658         packages to code extracted from...
33659         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33660         Add warning for missing development packages here, too.
33661
33662 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33663
33664         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33665
33666 2009-06-25  Eric Blake  <ebb9@byu.net>
33667
33668         version-etc: fix regression
33669         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33670         gcc.
33671         (version_etc): Use it, to catch bugs with trailing NULL.
33672         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33673         (version_etc_va): Fix logic bug.
33674         * modules/version-etc-tests: Add test.
33675         * tests/test-version-etc.c: New file.
33676         * tests/test-version-etc.sh: Likewise.
33677
33678 2009-06-25  Sam Steingold  <sds@gnu.org>
33679
33680         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33681         mbtowc declaration.
33682
33683 2009-06-25  Eric Blake  <ebb9@byu.net>
33684
33685         fpurge: migrate into <stdio.h>
33686         * lib/fpurge.h: Delete...
33687         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33688         * lib/fpurge.c (fpurge): Change declaring header.
33689         * modules/fpurge (Files): Drop deleted file.
33690         (Depends-on): Add stdio.
33691         (configure.ac): Set witness.
33692         * modules/stdio (Makefile.am): Support fpurge macros.
33693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33695         * lib/fflush.c: Update client.
33696         * tests/test-fpurge.c: Likewise.
33697         * NEWS: Mention the change.
33698
33699 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33700
33701         * lib/argp-version-etc.c (program_authors): Add const
33702         qualifier.
33703         * lib/version-etc.c: Fix typos in the comments.
33704         * modules/argp-version-etc: Depends on version-etc.
33705
33706 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33707
33708         argp-version-etc: new module.
33709
33710         * lib/argp-version-etc.c: New file.
33711         * lib/argp-version-etc.h: New file.
33712         * modules/argp-version-etc: New file.
33713         * modules/argp-version-etc-tests: New file.
33714         * tests/test-argp-version-etc.c: New test.
33715         * tests/test-argp-version-etc-1.sh: New test.
33716
33717 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33718
33719         Provide additional interfaces and documentation for version-etc
33720         module.
33721
33722         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33723         interfaces.
33724         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33725         prototypes.
33726
33727 2009-06-24  Bruno Haible  <bruno@clisp.org>
33728
33729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33730         HAVE_LIB${NAME} macro.
33731         Reported by Sam Steingold <sds@gnu.org>.
33732
33733 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33734
33735         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33736         needed.
33737
33738 2009-06-21  Bruno Haible  <bruno@clisp.org>
33739
33740         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33741         work.
33742         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33743         together with LIB${NAME}, LTLIB${NAME}.
33744         Reported by Sam Steingold <sds@gnu.org>.
33745
33746 2009-06-20  Jim Meyering  <meyering@redhat.com>
33747
33748         tests: make sc_require_test_exit_idiom more generic
33749         * top/maint.mk (Exit_witness_file): New overridable variable.
33750         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33751         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33752
33753 2009-06-19  Jim Meyering  <meyering@redhat.com>
33754
33755         hash: reverse order of src/dst parameters in an internal interface
33756         * lib/hash.c (transfer_entries): Reverse order of parameters to
33757         put DST before SRC.  Adjust callers.
33758
33759         tests: test-hash: avoid wholesale duplication
33760         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33761         Instead, use a loop and add a single conditional.
33762
33763         tests: test-hash: allow seed selection via a command line argument
33764         * tests/test-hash.c (get_seed): New function.
33765         (main): Use it.
33766
33767 2009-06-19  Eric Blake  <ebb9@byu.net>
33768
33769         hash: avoid memory leak on allocation failure
33770         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33771         failure.  Factor repeated algorithm...
33772         (transfer_entries): ...into new helper routine.
33773         (hash_delete): React to hash_rehash return value.
33774
33775         hash: reduce memory pressure in hash_rehash no-op case
33776         * lib/hash.c (next_prime): Avoid overflow.
33777         (hash_initialize): Factor bucket size computation...
33778         (compute_bucket_size): ...into new helper function.
33779         (hash_rehash): Use new function and open coding to reduce memory
33780         pressure, and avoid a memory leak in USE_OBSTACK code.
33781         Reported by Jim Meyering.
33782
33783 2009-06-18  Eric Blake  <ebb9@byu.net>
33784
33785         hash: make rotation more obvious
33786         * modules/hash (Depends-on): Add bitrotate and stdint.
33787         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33788         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33789         (SIZE_MAX): Rely on headers for definition.
33790         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33791         (raw_hasher): Use rotr_sz.
33792         Suggested by Jim Meyering.
33793
33794         hash: fix memory leak in last patch
33795         * lib/hash.c (hash_rehash): Avoid memory leak.
33796
33797         hash: avoid no-op rehashing
33798         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33799
33800         hash: provide default callback functions
33801         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33802         (hash_initialize): Use them as defaults.
33803         * tests/test-hash.c (main): Test this.
33804
33805         hash: minor optimization
33806         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33807         when possible.
33808         (hash_initialize): Document this promise.
33809         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33810         * tests/test-hash.c (hash_compare_strings): Test this.
33811
33812 2009-06-18  Bruno Haible  <bruno@clisp.org>
33813
33814         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33815         going to be replaced anyway.
33816
33817 2009-06-18  Bruno Haible  <bruno@clisp.org>
33818
33819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33820         in one place.
33821         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33822         be replaced anyway.
33823
33824 2009-06-18  Eric Blake  <ebb9@byu.net>
33825
33826         hash: check for resize before insertion
33827         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33828         threshold before insertion, so that a pathological hash_rehash
33829         that fills every bucket can still trigger another rehash.
33830
33831 2009-06-18  Jim Meyering  <meyering@redhat.com>
33832
33833         hash-tests: add a loop around the small tests
33834         * tests/test-hash.c (main): Repeat small tests with selected
33835         small initial table sizes.
33836
33837 2009-06-17  Eric Blake  <ebb9@byu.net>
33838
33839         hash: minor cleanups
33840         * lib/hash.h (hash_entry): Make opaque, by moving...
33841         * lib/hash.c (hash_entry): ...here.
33842         (hash_insert): Clarify restrictions on what can be inserted.
33843         (hash_get_next): Clarify when it is safe to remove an element
33844         during traversal.
33845         (check_tuning): Skip verification when tuning is known safe.
33846         (hash_initialize): Clarify restrictions on tuning.
33847
33848 2009-06-17  Jim Meyering  <jim@meyering.net>
33849         and Eric Blake  <ebb9@byu.net>
33850
33851         hash-tests: new module
33852         * modules/hash-tests: New file.
33853         * tests/test-hash.c: New file.
33854
33855 2009-06-17  Eric Blake  <ebb9@byu.net>
33856
33857         strstr-simple: document new module
33858         * MODULES.html.sh: Document new module.
33859
33860         strstr, strcasestr: replace on platforms with broken memchr
33861         * modules/strstr: Split into...
33862         * modules/strstr-simple: ...new module that does not care about
33863         performance, but does care about glibc bug.
33864         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33865         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33866         if platform memchr is broken, per Debian bug 521737.
33867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33868         memchr.
33869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33870         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33871         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33872         * modules/mountlist (Depends-on): Add strstr-simple.
33873         * modules/gen-uni-tables (Depends-on): Likewise.
33874         * modules/argz (Depends-on): Add strstr.
33875
33876 2009-06-17  Bruno Haible  <bruno@clisp.org>
33877
33878         * modules/posix_spawn-internal (Depends-on): Add errno.
33879
33880 2009-06-17  Bruno Haible  <bruno@clisp.org>
33881
33882         Define missing ESTALE on Interix 3.5.
33883         * lib/errno.in.h (ESTALE): Assign a value if missing.
33884         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33886         missing.
33887         * doc/posix-headers/errno.texi: Mention the Interix bug.
33888         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33889
33890 2009-06-15  Eric Blake  <ebb9@byu.net>
33891
33892         memchr, memchr2: add valgrind exception
33893         * lib/memchr.valgrind: New file.
33894         * lib/memchr2.valgrind: New file.
33895         * modules/memchr (Files): Distribute valgrind file.
33896         * modules/memchr2 (Files): Likewise.
33897
33898         docs: memchr is no longer obsolete
33899         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33900         * lib/string.in.h (memchr): Simplify logic.
33901
33902 2009-06-14  Jim Meyering  <meyering@redhat.com>
33903
33904         link-follow: fix the "checking..." message to not mention trailing slash
33905         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33906         never considered trailing slashes.
33907
33908 2009-06-14  Bruno Haible  <bruno@clisp.org>
33909
33910         * m4/memchr.m4: Mention also the bug on IA-64.
33911         * doc/posix-functions/memchr.texi: Likewise.
33912
33913 2009-06-12  Eric Blake  <ebb9@byu.net>
33914
33915         memchr: detect broken x86_64 and alpha implementations
33916         * modules/memchr-tests (Depends-on): Move mmap detection...
33917         * modules/memchr (Depends-on): ...here.
33918         (configure.ac): Set indicator.
33919         * lib/string.in.h (memchr): Declare replacement.
33920         * modules/string (Makefile.am): Trigger replacement.
33921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33922         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33923         bugs.
33924         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33925         * modules/getpagesize (License): Relax license.
33926
33927 2009-06-11  Bruno Haible  <bruno@clisp.org>
33928
33929         * lib/idpriv.h: Add more references.
33930
33931 2009-06-08  Bruno Haible  <bruno@clisp.org>
33932
33933         Tests for module 'idpriv-droptemp'.
33934         * modules/idpriv-droptemp-tests: New file.
33935         * tests/test-idpriv-droptemp.sh: New file.
33936         * tests/test-idpriv-droptemp.su.sh: New file.
33937         * tests/test-idpriv-droptemp.c: New file.
33938
33939         New module 'idpriv-droptemp'.
33940         * lib/idpriv-droptemp.c: New file.
33941         * modules/idpriv-droptemp: New file.
33942
33943 2009-06-08  Bruno Haible  <bruno@clisp.org>
33944
33945         Tests for module 'idpriv-drop'.
33946         * modules/idpriv-drop-tests: New file.
33947         * tests/test-idpriv-drop.sh: New file.
33948         * tests/test-idpriv-drop.su.sh: New file.
33949         * tests/test-idpriv-drop.c: New file.
33950
33951         New module 'idpriv-drop'.
33952         * lib/idpriv.h: New file.
33953         * lib-idpriv-drop.c: New file.
33954         * m4/idpriv.m4: New file.
33955         * modules/idpriv-drop: New file.
33956
33957 2009-06-08  Bruno Haible  <bruno@clisp.org>
33958
33959         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33961         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33962         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33963         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33964         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33965         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33966
33967 2009-06-08  Eric Blake  <ebb9@byu.net>
33968
33969         test-strstr: use memory fence, when possible
33970         * tests/test-strstr.c (main): Use memory fence, in order to be
33971         more likely to trigger Debian bug 521737.
33972         * modules/strstr-tests (Files): Pull in additional files.
33973
33974         memchr: no longer obsolete, for wider field testing
33975         * modules/memchr (Status, Notice): Delete, this module is no
33976         longer obsolete.
33977         * modules/vasnprintf (Depends-on): Add memchr.
33978
33979 2009-06-07  Jim Meyering  <meyering@redhat.com>
33980
33981         hash: declare some functions with the warn_unused_result attribute
33982         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33983
33984 2009-06-07  Bruno Haible  <bruno@clisp.org>
33985
33986         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33987         Reported by Eric Blake.
33988
33989 2009-06-06  Eric Blake  <ebb9@byu.net>
33990
33991         test-alignof: fix typo with long double
33992         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33993         compiler error.
33994
33995 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33996
33997         Escape non-texinfo { and }s.
33998         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33999         markup error.
34000
34001 2009-06-04  Jim Meyering  <meyering@redhat.com>
34002
34003         gitlog-to-changelog: don't infloop on an empty commit log
34004         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34005         Reported by Boris Petersen <transacid@centerim.org>.
34006
34007 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34008
34009         version-etc: extend for packagers
34010         Add three new configure options, intended for packagers:
34011           --with-packager="packager name"
34012           --with-packager-version="packager-specific version"
34013           --with-packager-bug-reports="packager bug reporting"
34014         An example with coreutils:
34015           $ ./configure \
34016             --with-packager=Gentoo \
34017             --with-packager-bug-report=http://bugs.gentoo.org/ \
34018             --with-packager-version="patchset 1.6"
34019           $ ./src/ls --version | head -n2
34020           ls (GNU coreutils) 7.1-dirty
34021           Packaged by Gentoo (patchset 1.6)
34022         Note that the bug reporting info via --help doesn't show up because
34023         coreutils uses its own custom emit_bug_reporting_address() implementation
34024         in src/system.h.  If it didn't, it'd look like:
34025           $ ./src/ls --help | tail -n4
34026           Report bugs to <bug-coreutils@gnu.org>.
34027           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34028           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34029           General help using GNU software: <http://www.gnu.org/gethelp/>.
34030         * lib/version-etc.c: Print new information, if provided.
34031         * m4/version-etc.m4: New file.
34032         * modules/version-etc (Files): Add m4/version-etc.m4.
34033         (configure.ac): Add gl_VERSION_ETC.
34034
34035 2009-05-31  Bruno Haible  <bruno@clisp.org>
34036
34037         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34038         and 'int64_t'.
34039         * modules/alignof-tests (Dependencies): Add stdint.
34040         Reported by Eric Blake.
34041
34042 2009-05-31  Bruno Haible  <bruno@clisp.org>
34043
34044         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34045         restriction due to compiler bugs.
34046         Reported by Eric Blake.
34047
34048 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34049             Bruno Haible  <bruno@clisp.org>
34050
34051         Fix test-alignof failure.
34052         * lib/alignof.h (alignof_slot): New macro.
34053         (alignof_type): New macro, with the same semantics as the previous
34054         'alignof'.
34055         (alignof): Alias to alignof_slot.
34056         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34057         check that the results are usable as constant expressions.
34058
34059 2009-05-31  Bruno Haible  <bruno@clisp.org>
34060
34061         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34062         * tests/test-memchr.c (main): Check that memchr does not read past the
34063         first occurrence of the byte.
34064         * tests/test-strstr.c (main): Update comment.
34065         Suggested by Eric Blake.
34066
34067 2009-05-30  Bruno Haible  <bruno@clisp.org>
34068
34069         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34070         detail how to use dumpbin.
34071         Reported by David Byron <dbyron@dbyron.com>.
34072
34073 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34074
34075         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34076
34077 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34078
34079         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34080
34081 2009-05-28  Bruno Haible  <bruno@clisp.org>
34082
34083         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34084         build-aux/ files.
34085
34086 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34087
34088         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34089
34090 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34091
34092         * gnulib-tool (sed_transform_main_lib_file)
34093         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34094         regexps.
34095
34096 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34097
34098         * tests/test-strstr.c: Add another self-test.
34099         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34100         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34101
34102 2009-05-23  Bruno Haible  <bruno@clisp.org>
34103
34104         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34105         change.
34106
34107 2009-05-21  Bruno Haible  <bruno@clisp.org>
34108
34109         Simplify use of mode_t varargs.
34110         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34111         uses 'mode_t' or 'int'.
34112         * lib/openat.c (openat): Likewise.
34113         * lib/open-safer.c (open_safer): Likewise.
34114         * m4/mode_t.m4: New file.
34115         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34116         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34117         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34118         * modules/open (Files): Add m4/mode_t.m4.
34119         * modules/openat (Files): Likewise.
34120         * modules/fcntl-safer (Files): Likewise.
34121         Suggested by Eric Blake.
34122
34123 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34124
34125         * doc/glibc-functions/fallocate.texi: New file.
34126         * doc/gnulib.texi: Include it.
34127
34128 2009-05-21  Eric Blake  <ebb9@byu.net>
34129             Bruno Haible  <bruno@clisp.org>
34130
34131         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34132         invocations.
34133         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34134
34135 2009-05-21  Eric Blake  <ebb9@byu.net>
34136             Bruno Haible  <bruno@clisp.org>
34137
34138         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34139         include_next. Fix of 2008-11-20 commit.
34140         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34141         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34142         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34143         NEXT_MATH_H.
34144         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34145         instead of NEXT_MATH_H.
34146
34147 2009-05-21  Bruno Haible  <bruno@clisp.org>
34148
34149         Avoid redefinition warnings for SIZE_MAX.
34150         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34151         Reported by Simon Josefsson.
34152
34153 2009-05-21  Bruno Haible  <bruno@clisp.org>
34154
34155         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34156         AC_CACHE_VAL.
34157
34158 2009-05-20  Bruno Haible  <bruno@clisp.org>
34159
34160         Make zeroptr.h work on mingw.
34161         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34162         mprotect.
34163         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34164         * modules/memchr2-tests (configure.ac): Likewise.
34165         * modules/memcmp-tests (configure.ac): Likewise.
34166         * modules/memmem-tests (configure.ac): Likewise.
34167         * modules/memrchr-tests (configure.ac): Likewise.
34168         Reported by Simon Josefsson.
34169
34170 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34171
34172         * tests/test-glob.c: Include string.h for strcmp prototype.
34173
34174 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34175
34176         * modules/getdelim (Depends-on): Add explicit stdint, although it
34177         was implicitly already pulled in via realloc-posix.
34178         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34179
34180 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34181
34182         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34183         G. Christensen" <tgc@jupiterrise.com>.
34184         * m4/sys_socket_h.m4: Check for sa_family_t.
34185         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34186         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34187         * tests/test-sys_socket.c: Check that sa_family_t works.
34188
34189 2009-05-18  Eric Blake  <ebb9@byu.net>
34190
34191         maint.mk: allow gnulib_dir in VPATH build
34192         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34193
34194 2009-05-15  Jim Meyering  <meyering@redhat.com>
34195
34196         maint.mk: Give gnulib_dir a default definition.
34197         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34198         Thus, most packages no longer need to specify this variable in cfg.mk
34199
34200 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34201
34202         rename.m4: fix typos that would make non-mingw cross-configure fail
34203         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34204
34205 2009-05-13  Eric Blake  <ebb9@byu.net>
34206
34207         mmap-anon: avoid out-of-order autoconf expansion
34208         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34209         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34210         * modules/memchr-tests (Depends-on): Add extensions.
34211         * modules/memchr2-tests (Depends-on): Add extensions.
34212         * modules/memcmp-tests (Depends-on): Add extensions.
34213         * modules/memmem-tests (Depends-on): Add extensions.
34214         * modules/memrchr-tests (Depends-on): Add extensions.
34215
34216 2009-05-13  Bruno Haible  <bruno@clisp.org>
34217
34218         Make some tests ISO C 99 compliant.
34219         * tests/zerosize-ptr.h: New file.
34220         * tests/test-memchr.c: Include zerosize-ptr.h.
34221         (main): Use a zero-size object pointer instead of NULL.
34222         * tests/test-memchr2.c: Include zerosize-ptr.h.
34223         (main): Use a zero-size object pointer instead of NULL.
34224         * tests/test-memcmp.c: Include zerosize-ptr.h.
34225         (main): Use a zero-size object pointer instead of NULL.
34226         * tests/test-memmem.c: Include zerosize-ptr.h.
34227         (main): Use a zero-size object pointer instead of NULL.
34228         * tests/test-memrchr.c: Include zerosize-ptr.h.
34229         (main): Use a zero-size object pointer instead of NULL.
34230         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34231         m4/mmap-anon.m4.
34232         (Depends-on): Add getpagesize.
34233         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34234         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34235         m4/mmap-anon.m4.
34236         (Depends-on): Add getpagesize.
34237         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34238         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34239         m4/mmap-anon.m4.
34240         (Depends-on): Add getpagesize.
34241         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34242         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34243         m4/mmap-anon.m4.
34244         (Depends-on): Add getpagesize.
34245         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34246         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34247         m4/mmap-anon.m4.
34248         (Depends-on): Add getpagesize.
34249         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34250
34251 2009-05-12  Bruno Haible  <bruno@clisp.org>
34252
34253         Tests for module 'alignof'.
34254         * modules/alignof-tests: New file.
34255         * tests/test-alignof.c: New file.
34256
34257 2009-05-12  Bruno Haible  <bruno@clisp.org>
34258
34259         Fix alignof macro.
34260         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34261         vendor compilers that are always correct.
34262
34263 2009-05-12  Bruno Haible  <bruno@clisp.org>
34264
34265         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34266         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34267         not whether its fully works.
34268
34269 2009-05-12  Bruno Haible  <bruno@clisp.org>
34270
34271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34272
34273 2009-05-12  Jim Meyering  <meyering@redhat.com>
34274
34275         * top/maint.mk: Adjust backslash alignment.
34276
34277 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34278
34279         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34280
34281 2009-05-11  Eric Blake  <ebb9@byu.net>
34282
34283         argp: avoid undefined behavior
34284         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34285         macros.
34286
34287 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34288
34289         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34290         user.name to prevent git commit from complaining.
34291
34292 2009-05-10  Bruno Haible  <bruno@clisp.org>
34293
34294         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34295         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34296         it rewrites every file name only once.
34297         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34298
34299 2009-05-08  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34302         instead of 'max'.
34303
34304 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34305
34306         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34307         sockaddr_storage test.
34308
34309 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34310
34311         * modules/sys_socket (Makefile.am): Substitute
34312         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34313         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34314         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34315         * tests/test-sys_socket.c: Check sockaddr_storage.
34316
34317 2009-05-08  Bruno Haible  <bruno@clisp.org>
34318
34319         New module 'alignof'.
34320         * lib/alignof.h: New file.
34321         * modules/alignof: New file.
34322
34323 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34324             Bruno Haible  <bruno@clisp.org>
34325
34326         Fix test-file-has-acl on FreeBSD.
34327         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34328         mask is implicitly added.
34329         * tests/test-file-has-acl.c: Include <signal.h>.
34330         (main): Terminate the test after 5 seconds.
34331         * modules/acl-tests (configure.ac): Check for alarm function.
34332
34333 2009-05-04  Bruno Haible  <bruno@clisp.org>
34334
34335         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34337         * modules/errno (configure.ac): Drop AC_REQUIRE.
34338         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34339         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34340
34341 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34342
34343         * modules/glob-tests: New module.
34344         * tests/test-glob.c: Add.
34345
34346 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34347
34348         * modules/fnmatch-tests: New module.
34349         * tests/test-fnmatch.c: Add.
34350
34351 2009-05-04  Eric Blake  <ebb9@byu.net>
34352
34353         maint: make the new no-submodule-changes rule VPATH-safe
34354         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34355
34356 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34357             Bruno Haible  <bruno@clisp.org>
34358
34359         acl: Fix infinite loop on FreeBSD.
34360         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34361         of return value from acl_get_entry.
34362         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34363         Likewise.
34364
34365 2009-05-03  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/acl-internal.h (acl_entries): Clarify return value.
34368         * lib/acl_entries.c (acl_entries): Likewise.
34369
34370 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34371
34372         Bug fix in acl module.
34373         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34374
34375 2009-05-03  Bruno Haible  <bruno@clisp.org>
34376
34377         Create gperf-generated file in the source dir, not in the build dir.
34378         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34379         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34380         * modules/unicase/locale-language (unicase/locale-languages.h):
34381         Likewise.
34382         * modules/unicase/special-casing (unicase/special-casing-table.h):
34383         Likewise.
34384         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34385         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34386         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34387         Reported by Ralf Wildenhues.
34388
34389 2009-05-03  Bruno Haible  <bruno@clisp.org>
34390
34391         * modules/fnmatch (Description, configure.ac): Taken from
34392         fnmatch-posix.
34393         * modules/fnmatch-posix: Turn into a symbolic reference to the
34394         'fnmatch' module, and deprecate.
34395         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34396
34397 2009-05-03  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34400         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34401         Reported by Ralf Wildenhues.
34402
34403 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34404
34405         * m4/fnmatch.m4: Fix fnmatch re-define.
34406
34407 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34408
34409         priv-set: new module and tests; adapt write-any-file
34410         * lib/priv-set.c: New file.
34411         * lib/priv-set.h: New file.
34412         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34413         * lib/write-any-file.c: Simplify by using priv-set module.
34414         * m4/priv-set.m4: New file.
34415         * modules/priv-set: New file.
34416         * modules/unlinkdir: Add dependency on priv-set module.
34417         * modules/write-any-file: Likewise.
34418
34419         Tests for module 'priv-set'.
34420         * modules/priv-set-tests: New file.
34421         * tests/test-priv-set.c: New file.
34422
34423 2009-05-03  Jim Meyering  <meyering@redhat.com>
34424             Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34427         use the converted UTF-8 variant of the name instead.
34428
34429 2009-05-03  Jim Meyering  <meyering@redhat.com>
34430
34431         tests: tighten some getdate tests
34432         * tests/test-getdate.c (main): Tighten tests: require equality,
34433         not just greater than.  Set TZ envvar to UTC0.
34434
34435 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34436
34437         getdate: correctly interpret "next monday" when run on a Monday
34438         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34439         that e.g., "next tues" (when run on a tuesday) results in a date
34440         that is one week in the future, and not today's date.
34441         I.e., add a week when the wday is the same as the current one.
34442         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34443         and earlier by Martin Bernreuther and Jan Minář.
34444         * tests/test-getdate.c (main): Check that "next DAY" is always in
34445         the future and that "last DAY" is always in the past.
34446
34447 2009-05-02  Jim Meyering  <meyering@redhat.com>
34448
34449         build: ensure that a release build fails when a submodule is unclean
34450         * top/maint.mk (no-submodule-changes): New rule.
34451         (alpha beta major): Depend on it.
34452
34453 2009-05-02  Bruno Haible  <bruno@clisp.org>
34454
34455         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34456         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34457         shell variable gl_fnmatch_required to detect which variant is
34458         requested.
34459         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34460         gl_FUNC_FNMATCH_POSIX.
34461         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34462         exclude fnmatch-posix.
34463
34464 2009-05-02  Bruno Haible  <bruno@clisp.org>
34465
34466         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34467         * modules/mbsrtowcs (License): Change to LGPLv2+.
34468         * modules/strnlen1 (License): Likewise.
34469         Reported by Simon Josefsson.
34470
34471 2009-05-02  Bruno Haible  <bruno@clisp.org>
34472
34473         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34474         "cross".
34475         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34476         gnulib-tool was called with option --source-base=lib.
34477
34478 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34479
34480         Use automake *-local hooks without commands, for extensibility.
34481         * modules/localcharset (Makefile.am): Rename install-exec-local
34482         rule to install-exec-localcharset, and make it a prerequisite of
34483         install-exec-local.  Likewise, rename the uninstall-local rule to
34484         uninstall-localcharset, and make it a prerequisite of the former.
34485
34486 2009-05-01  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34489         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34490         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34492         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34493         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34494         m4/locale-zh.m4, m4/codeset.m4.
34495
34496         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34497         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34498         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34499         m4/locale-zh.m4.
34500
34501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34502         REPLACE_WCRTOMB if mbstate_t must be replaced.
34503         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34504         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34505
34506 2009-05-01  Bruno Haible  <bruno@clisp.org>
34507
34508         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34509         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34510         dngettext, dcngettext, textdomain, bindtextdomain,
34511         bind_textdomain_codeset): Undefine before redefining.
34512
34513 2009-04-30  Bruno Haible  <bruno@clisp.org>
34514
34515         Fix bug introduced on 2009-04-25.
34516         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34517         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34518         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34519         is defined.
34520         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34521         is defined.
34522         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34523         is defined.
34524         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34525
34526 2009-04-28  Bruno Haible  <bruno@clisp.org>
34527
34528         Comment tweaks.
34529         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34530         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34531         * lib/unicase.h (u*_casexfrm): Likewise.
34532         Reported by Paolo Bonzini.
34533
34534 2009-04-28  Bruno Haible  <bruno@clisp.org>
34535
34536         Fix a compilation error.
34537         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34538         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34539         Reported by Jim Meyering.
34540
34541 2009-04-27  Bruno Haible  <bruno@clisp.org>
34542
34543         New module 'libunistring'.
34544         * modules/libunistring: New file.
34545         * m4/libunistring.m4: New file.
34546         * MODULES.html.sh (Unicode string functions): Add it.
34547
34548 2009-04-27  Eric Blake  <ebb9@byu.net>
34549
34550         maint.mk: allow package-specific header to provide <config.h>
34551         * top/maint.mk (sc_require_config_h): New variable.
34552         (sc_require_config_h, sc_require_config_h_first): Use it.
34553
34554 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34555
34556         * top/maint.mk (sc_avoid_if_before_free): Except
34557         useless-if-before-free script.
34558
34559 2009-04-27  Eric Blake  <ebb9@byu.net>
34560
34561         maintainer-makefile: depend on all required helper scripts
34562         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34563         useless-if-before-free.
34564         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34565         version, rather than assuming gnulib checkout is available.
34566         Reported by Simen Josefsson.
34567
34568 2009-04-26  Bruno Haible  <bruno@clisp.org>
34569
34570         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34572         "../" or "..".
34573
34574 2009-04-26  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34577         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34578         AC_LIB_HAVE_LINKFLAGS.
34579
34580 2009-04-26  Bruno Haible  <bruno@clisp.org>
34581
34582         Simplify calling convention of u*_conv_from_encoding.
34583         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34584         u32_conv_from_encoding): Expect a resultbuf argument and return the
34585         result directly as a pointer.
34586         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34587         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34588         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34589         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34590         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34591         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34592         Update.
34593         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34594         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34595         * lib/vasnprintf.c (VASNPRINTF): Update.
34596         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34597         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34598         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34599         * NEWS: Mention the change.
34600
34601 2009-04-26  Bruno Haible  <bruno@clisp.org>
34602
34603         Simplify calling convention of u*_conv_to_encoding.
34604         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34605         u32_conv_to_encoding): Expect a resultbuf argument and return the
34606         result directly as a pointer.
34607         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34608         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34609         freeing scaled_offsets if mem_iconveha failed.
34610         * lib/unicase/u-casexfrm.h (FUNC): Update.
34611         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34612         * lib/vasnprintf.c (VASNPRINTF): Update.
34613         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34614         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34615         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34616         * NEWS: Mention the change.
34617
34618 2009-04-26  Bruno Haible  <bruno@clisp.org>
34619
34620         Avoid test failures on AIX and OSF/1.
34621         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34622         malloc(0).
34623         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34624         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34625         Likewise.
34626         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34627         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34628         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34629         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34630         * doc/posix-functions/malloc.texi: Document the portability problem
34631         related to malloc(0).
34632
34633 2009-04-26  Bruno Haible  <bruno@clisp.org>
34634
34635         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34636         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34637         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34638
34639 2009-04-25  Bruno Haible  <bruno@clisp.org>
34640
34641         Avoid link error when creating a namespace clean library.
34642         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34643         as macro with arguments if already defined as an alias.
34644         * lib/signbitf.c (gl_signbitf): Don't undefine.
34645         * lib/signbitd.c (gl_signbitd): Don't undefine.
34646         * lib/signbitl.c (gl_signbitl): Don't undefine.
34647
34648 2009-04-25  Jim Meyering  <meyering@redhat.com>
34649
34650         vc-list-files: fix another quoting bug
34651         * build-aux/vc-list-files: Avoid sed backslash expansion
34652         of pathological directory names.
34653
34654 2009-04-25  Eric Blake  <ebb9@byu.net>
34655
34656         vc-list-files: fix shell quoting error
34657         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34658         timestamp.
34659
34660 2009-04-25  Jim Meyering  <meyering@redhat.com>
34661
34662         vc-list-files: restore lost functionality with subdir argument
34663         * build-aux/vc-list-files: When given a non-"." sub-directory
34664         argument, substitute the $dir/ prefix back onto each resulting name.
34665         Otherwise, coreutils' root_tests check would fail.
34666
34667 2009-04-24  Eric Blake  <ebb9@byu.net>
34668
34669         vc-list-files: ignore git symlinks
34670         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34671         than ls-files, to ignore git symlinks.
34672
34673         maint.mk: import improvements from m4
34674         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34675         (move_if_change): Delete unused macro.
34676         (news-date-check, vc-diff-check): Support VPATH builds.
34677         (announcement): Likewise.  Split --bootstrap-tools list...
34678         (boostrap-tools): ...into separate list, which can be overridden
34679         in cfg.mk.
34680         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34681         requiring dependency on useless-if-before-free module.
34682         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34683         Support VPATH builds.
34684
34685 2009-04-24  Jim Meyering  <meyering@redhat.com>
34686
34687         maint.mk: remove coreutils-specific rules and variables
34688         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34689         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34690         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34691
34692         maint.mk: remove obsolete rule
34693         * top/maint.mk (rel-check): Remove rule.
34694         (WGET, WGETFLAGS): Remove now-unused variables.
34695
34696 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34697
34698         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34699         consistency.
34700
34701         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34702         '$(PATH_SEPARATOR)' instead of ':'.
34703
34704 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34705
34706         * lib/getopt1.c (main): Use 'const' for static array.
34707
34708 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34709
34710         * top/maint.mk: Sync with coreutils.
34711         * NEWS: Explain incompatibilities.
34712
34713 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34714             Bruno Haible  <bruno@clisp.org>
34715
34716         Fix cross-compilation results.
34717         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34718         statement, as third argument of AC_TRY_RUN.
34719         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34720         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34721         Likewise.
34722         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34723         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34724         Likewise.
34725         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34727         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34728
34729 2009-04-20  Bruno Haible  <bruno@clisp.org>
34730
34731         Avoid test failure on mingw.
34732         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34733
34734 2009-04-20  Bruno Haible  <bruno@clisp.org>
34735
34736         Avoid compilation error on mingw.
34737         * modules/localename-tests (Depends-on): Add locale.
34738
34739 2009-04-19  Bruno Haible  <bruno@clisp.org>
34740
34741         Support for building a shared library on Windows platforms.
34742         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34743         (main): Test the presence of UNINORM_NFC here.
34744         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34745         (main): Test the presence of UNINORM_NFD here.
34746         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34747         (main): Test the presence of UNINORM_NFKC here.
34748         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34749         (main): Test the presence of UNINORM_NFKD here.
34750
34751 2009-04-19  Bruno Haible  <bruno@clisp.org>
34752
34753         Avoid a compiler warning.
34754         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34755         Change type of variable 'sequence'.
34756
34757 2009-04-19  Bruno Haible  <bruno@clisp.org>
34758
34759         * modules/configmake (Makefile.am): When the contents of configmake.h
34760         does not change, arrange to preserve its modification time.
34761
34762 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34763
34764         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34765         gettext domain.
34766
34767 2009-04-16  Jim Meyering  <meyering@redhat.com>
34768
34769         useless-if-before-free: improve conversion code
34770         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34771         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34772
34773 2009-04-14  Bruno Haible  <bruno@clisp.org>
34774
34775         * modules/fcntl (Depends-on): Add extensions.
34776         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34777
34778 2009-04-12  Ben Pfaff  <blp@gnu.org>
34779
34780         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34781         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34782
34783 2009-03-20  Ben Pfaff  <blp@gnu.org>
34784
34785         Make rename replace existing destinations on Windows.
34786         * m4/rename.m4: Add test for Mingw.
34787         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34788         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34789         * doc/posix-functions/rename.texi: Document.
34790
34791 2009-04-10  Bruno Haible  <bruno@clisp.org>
34792
34793         New include file "iconveh.h".
34794         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34795         * lib/striconveh.h: Include it.
34796         (enum iconv_ilseq_handler): Remove definition.
34797         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34798         striconveh.h.
34799         * lib/striconveha.c: Include striconveh.h.
34800         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34801         * modules/striconveh (Files): Add lib/iconveh.h.
34802         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34803         lib/striconveh.h.
34804
34805 2009-04-10  Bruno Haible  <bruno@clisp.org>
34806
34807         * lib/uniconv.h: Update comment.
34808
34809 2009-04-10  Bruno Haible  <bruno@clisp.org>
34810
34811         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34812         always.
34813         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34814         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34815         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34816         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34817         "unistring-notinline.h", so that the function gets defined always.
34818         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34819         * lib/unistr/u8-uctomb.c: Likewise.
34820         * lib/unistr/u16-mbtouc.c: Likewise.
34821         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34822         * lib/unistr/u16-uctomb.c: Likewise.
34823         * lib/unistr/u32-mbtouc.c: Likewise.
34824         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34825         * lib/unistr/u32-uctomb.c: Likewise.
34826
34827 2009-04-10  Bruno Haible  <bruno@clisp.org>
34828
34829         Mark 'utime' obsolete.
34830         * modules/utime (Status, Notice): New sections.
34831         Suggested by Jim Meyering.
34832
34833         Fix cross-compile guess for utime test.
34834         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34835         autoconf.
34836         * doc/posix-functions/utime.texi: Give more precisions.
34837         Reported by Jan <ipif@ymail.com>.
34838
34839 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34840
34841         filevercmp: correct today's change
34842         * lib/filevercmp.c: Also handle coreutils' test inputs.
34843         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34844
34845         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34846         for reporting it.
34847         * lib/filevercmp.c: Special handle for "", "." and "..".
34848         * tests/test-filevercmp.c: Enlarge the set suite.
34849
34850 2009-04-07  Jim Meyering  <meyering@redhat.com>
34851
34852         useless-if-before-free: show how to remove braced useless free, too
34853         * build-aux/useless-if-before-free: still only in a comment, though.
34854
34855 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34856
34857         maint.mk: import changes to syntax-check macros from coreutils
34858         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34859         Use them in the relevant macros.
34860
34861 2009-04-06  Bruno Haible  <bruno@clisp.org>
34862
34863         Fix unportable use of bit-fields.
34864         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34865         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34866         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34867
34868 2009-04-06  Bruno Haible  <bruno@clisp.org>
34869
34870         Avoid test failures on AIX and OSF/1.
34871         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34872         that malloc(0) = NULL.
34873         * tests/unicase/test-u8-tolower.c (check): Likewise.
34874         * tests/unicase/test-u8-totitle.c (check): Likewise.
34875         * tests/unicase/test-u8-toupper.c (check): Likewise.
34876         * tests/unicase/test-u16-casefold.c (check): Likewise.
34877         * tests/unicase/test-u16-tolower.c (check): Likewise.
34878         * tests/unicase/test-u16-totitle.c (check): Likewise.
34879         * tests/unicase/test-u16-toupper.c (check): Likewise.
34880         * tests/unicase/test-u32-casefold.c (check): Likewise.
34881         * tests/unicase/test-u32-tolower.c (check): Likewise.
34882         * tests/unicase/test-u32-totitle.c (check): Likewise.
34883         * tests/unicase/test-u32-toupper.c (check): Likewise.
34884         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34885         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34886         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34887         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34888         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34889         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34890         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34891         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34892         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34893         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34894         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34895         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34896
34897 2009-04-05  Bruno Haible  <bruno@clisp.org>
34898
34899         Work around an autoconf limitation.
34900         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34901         comment line if it would be longer than 3 KB.
34902
34903 2009-04-05  Bruno Haible  <bruno@clisp.org>
34904
34905         Avoid test failure with libiconv-1.13.
34906         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34907         of the expected test results.
34908
34909 2009-04-05  Bruno Haible  <bruno@clisp.org>
34910
34911         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34912         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34913         that it should be installed.
34914
34915 2009-04-05  Bruno Haible  <bruno@clisp.org>
34916
34917         * gnulib-tool: New option --copy-file.
34918         (func_usage): Document it.
34919         (func_dest_tmpfilename): Moved out of func_import.
34920         (func_add_file, func_update_file): New functions, extracted from
34921         func_import.
34922         (func_import): Update.
34923
34924 2009-04-05  Karl Berry  <karl@gnu.org>
34925
34926         * README: prominently mention gnulib-tool.
34927         Rearrange sections so getting the code is near the top.
34928
34929 2009-04-05  Bruno Haible  <bruno@clisp.org>
34930
34931         * lib/unicase.h: Mention u*_cmp2.
34932         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34933         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34934         * lib/unicase/ulc-casecmp.c: Likewise.
34935         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34936         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34937         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34938         unistr/u8-cmp.
34939         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34940         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34941         unistr/u16-cmp.
34942         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34943         unistr/u32-cmp.
34944
34945         * lib/uninorm.h: Mention u*_cmp2.
34946         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34947         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34948         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34949         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34950         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34951         unistr/u8-cmp.
34952         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34953         unistr/u16-cmp.
34954         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34955         unistr/u32-cmp.
34956
34957         New module 'unistr/u32-cmp2'.
34958         * lib/unistr/u32-cmp2.c: New file.
34959         * modules/unistr/u32-cmp2: New file.
34960
34961         New module 'unistr/u16-cmp2'.
34962         * lib/unistr/u16-cmp2.c: New file.
34963         * modules/unistr/u16-cmp2: New file.
34964
34965         New module 'unistr/u8-cmp2'.
34966         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34967         * lib/unistr/u8-cmp2.c: New file.
34968         * lib/unistr/u-cmp2.h: New file.
34969         * modules/unistr/u8-cmp2: New file.
34970
34971 2009-04-05  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/unictype.h (uc_property_is_valid): New macro.
34974         * tests/unictype/test-pr_byname.c (main): Use it.
34975
34976         * lib/unistr.h: Doc fixes.
34977         * lib/uniconv.h: Doc fixes.
34978         * lib/unictype.h: Doc fixes.
34979
34980 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34981
34982         Port coreutils 7.2 to Solaris 8.
34983
34984         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34985         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34986         for Solaris 8.  This is a bit of a hack, as it means it's the
34987         caller's responsibility to add -lnsl if needed, but most likely it
34988         won't be needed since only getaddrinfo uses this and getaddrinfo
34989         isn't needed on Solaris 8.
34990
34991         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34992         problem to Solaris 8 encountered with coreutils 7.2, which
34993         resulted in a message "fnmatch.c:292: warning: passing argument 4
34994         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34995         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34996
34997 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34998
34999         * m4/ld-version-script.m4: Add FIXME comment.
35000
35001 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35002
35003         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35004         SOVERSION variable.
35005
35006 2009-04-02  Bruno Haible  <bruno@clisp.org>
35007
35008         * Makefile (info, html, dvi, pdf): Combine the rules.
35009         Suggested by Jim Meyering.
35010
35011 2009-04-01  Bruno Haible  <bruno@clisp.org>
35012
35013         * Makefile (info, html, dvi, pdf): New targets.
35014         Reported by Reuben Thomas <rrt@sc3d.org>.
35015
35016 2009-04-01  Bruno Haible  <bruno@clisp.org>
35017
35018         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35019         can be put into PATH.
35020         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35021
35022 2009-04-01  Bruno Haible  <bruno@clisp.org>
35023
35024         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35025
35026 2009-04-01  Bruno Haible  <bruno@clisp.org>
35027
35028         Rename module 'visibility'.
35029         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35030         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35031         * doc/gnulib.texi: Update.
35032         * MODULES.html.sh (Misc): Update.
35033         * NEWS: Mention the change.
35034
35035 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35036
35037         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35038         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35039         Eric Blake <ebb9@byu.net> for review.
35040         * MODULES.html.sh: Add lib-msvc-compat.
35041         * doc/gnulib.texi: Link to new section.
35042         * m4/ld-output-def.m4: New file.
35043         * doc/ld-output-def.texi: New file.
35044
35045 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35046
35047         Rename ld-version-script to lib-symbol-versions.  Suggested by
35048         Bruno Haible <bruno@clisp.org>.
35049         * modules/ld-version-script: Renamed to lib-symbol-versions.
35050         * doc/ld-version-script.texi: Fix module name.
35051         * MODULES.html.sh: Add lib-symbol-versions.
35052
35053 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35054
35055         * modules/u64-tests: New file.
35056         * tests/test-u64.c: New file.
35057
35058 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35059
35060         * MODULES.html.sh: Mention u64.
35061         * modules/u64: New module.
35062         * modules/crypto/sha512: Depend on u64 module instead of providing
35063         u64.h.
35064
35065 2009-03-27  Eric Blake  <ebb9@byu.net>
35066
35067         test-strerror: make debugging EAI_SYSTEM easier
35068         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35069         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35070         failure was EAI_SYSTEM.
35071
35072 2009-03-25  Bruno Haible  <bruno@clisp.org>
35073
35074         Fix a problem with --enable-relocatable on Solaris 7.
35075         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35076         since 2008-02-24.
35077
35078 2009-03-25  Eric Blake  <ebb9@byu.net>
35079
35080         test-sockets: avoid gcc warning
35081         * tests/test-sockets.c (main): Silence compiler warning.
35082
35083 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35084
35085         New modules nproc, pthread, contributed by Glen Lenker.
35086
35087         * MODULES.html.sh: Add pthread, nproc.
35088         * lib/nproc.c: New file.
35089         * lib/nproc.h: New file.
35090         * lib/pthread.in.h: New file.
35091         * m4/pthread.m4: New file.
35092         * modules/nproc: New file.
35093         * modules/pthread: New file.
35094
35095 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35096
35097         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35098         New variable.
35099
35100 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35101
35102         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35103         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35104         * tests/test-filevercmp.c: Add tests for backup suffixes.
35105
35106 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35107
35108         * modules/stdlib (Depends-on): Add stdint, needed when defining
35109         struct random_data on, for example, HP-UX 10.20.  Reported by
35110         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35111
35112 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35113
35114         * lib/readline.c (readline): Call fflush on stdout after printing
35115         prompt.
35116
35117 2009-03-20  Bruno Haible  <bruno@clisp.org>
35118
35119         Remove dependency from 'close' module to -lws2_32 on native Windows.
35120         * lib/close-hook.h: New file.
35121         * lib/close-hook.c: New file.
35122         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35123         w32sock.h.
35124         (_gl_close_fd_maybe_socket): Remove function.
35125         (rpl_close): Invoke execute_all_close_hooks instead of
35126         _gl_close_fd_maybe_socket.
35127         * lib/sockets.c: Include close-hook.h, w32sock.h.
35128         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35129         (close_sockets_hook): New variable.
35130         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35131         (gl_sockets_cleanup): Unregister it.
35132         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35133         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35134         * modules/close-hook: New file.
35135         * modules/close (Files): Remove lib/w32sock.h.
35136         (Depends-on): Add close-hook.
35137         (Link): Remove section.
35138         * modules/sockets (Files): Add lib/w32sock.h.
35139         (Depends-on): Add close-hook.
35140         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35141         invocation.
35142         * NEWS: Mention that LIB_CLOSE is gone.
35143
35144 2009-03-23  Eric Blake  <ebb9@byu.net>
35145
35146         signal-tests: test previous patch
35147         * tests/test-signal.c: New file.
35148         * modules/signal-tests: Likewise.
35149
35150         signal.h: always support 'volatile sig_atomic_t'
35151         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35152         (gl_SIGNAL_H_DEFAULTS): Add a default.
35153         * modules/signal (Makefile.am): Substitute if needed.
35154         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35155         users can blindly add volatile.
35156         * doc/posix-headers/signal.texi (signal.h): Document it.
35157         Reported by Matthew Woehlke.
35158
35159 2009-03-23  Jim Meyering  <meyering@redhat.com>
35160
35161         pathmax: PATH_MAX: use pathconf only when available
35162         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35163         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35164         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35165         This avoids a link failure in a PSP cross-compilation environment
35166         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35167
35168         * lib/vasnprintf.c (divide): Fix typo in comment.
35169
35170 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35171
35172         * gnulib-tool (func_filter_filelist): Fix comment.
35173
35174 2009-03-20  Bruno Haible  <bruno@clisp.org>
35175
35176         Make sockets.h self-contained.
35177         * lib/sockets.c: Include sockets.h first.
35178         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35179
35180 2009-03-19  Eric Blake  <ebb9@byu.net>
35181
35182         doc: mention more functions added in cygwin 1.7.0
35183         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35184         addition.
35185         * doc/posix-functions/log2f.texi: Likewise.
35186
35187 2009-03-19  Jim Meyering  <meyering@redhat.com>
35188
35189         fsusage: avoid syntax error due to statement-before-declaration
35190         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35191         after all declarations.  Reported by Matthew Woehlke in
35192         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35193
35194 2009-03-18  Eric Blake  <ebb9@byu.net>
35195
35196         build-aux/compile: sync from automake
35197         * build-aux/compile: New file, from automake.
35198         * config/srclist.txt: Mention build-aux/compile.
35199
35200 2009-03-17  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/git-merge-changelog.c: Fix typo in comment.
35203         Reported by Reuben Thomas <rrt@sc3d.org>.
35204
35205 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35206
35207         * m4/regex.m4: update and improve help for
35208         --without-included-regex.
35209
35210 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35211
35212         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35213         failure on missing include files.
35214
35215 2009-03-17  Eric Blake  <ebb9@byu.net>
35216
35217         doc: mention more functions added in cygwin 1.7.0
35218         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35219         addition.
35220         * doc/posix-functions/fwscanf.texi: Likewise.
35221         * doc/posix-functions/swprintf.texi: Likewise.
35222         * doc/posix-functions/swscanf.texi: Likewise.
35223         * doc/posix-functions/vfwprintf.texi: Likewise.
35224         * doc/posix-functions/vfwscanf.texi: Likewise.
35225         * doc/posix-functions/vswprintf.texi: Likewise.
35226         * doc/posix-functions/vswscanf.texi: Likewise.
35227         * doc/posix-functions/vwprintf.texi: Likewise.
35228         * doc/posix-functions/vwscanf.texi: Likewise.
35229         * doc/posix-functions/wcscasecmp.texi: Likewise.
35230         * doc/posix-functions/wcsdup.texi: Likewise.
35231         * doc/posix-functions/wcsftime.texi: Likewise.
35232         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35233         * doc/posix-functions/wprintf.texi: Likewise.
35234         * doc/posix-functions/wscanf.texi: Likewise.
35235         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35236
35237 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35238
35239         maint.mk: really add $(AM_MAKEFLAGS)
35240         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35241         was inadvertently omitted in the last commit.
35242         Spotted by Bruno Haible.
35243
35244         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35245         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35246         $(AM_MAKEFLAGS)' rather than plain `make'.
35247
35248         gnulib-tool: execute $MAKE not make
35249         * gnulib-tool: Default $MAKE to 'make'.
35250         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35251         than make.  Initialize $MAKE in the do-autobuild script.
35252
35253         gnulib-tool: use $MAKE not make in generated files
35254         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35255         make, in generated files.  Initialize $MAKE in the do-autobuild
35256         script.
35257
35258         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35259
35260         GNUmakefile: disable parallelism only for multiple, recursive targets
35261         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35262         additions in the Makefile.
35263         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35264         by Automake.
35265         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35266         are listed on the command line and at least one of them is
35267         listed in $(ALL_RECURSIVE_TARGETS).
35268
35269 2009-03-14  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35272         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35273         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35274         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35275         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35276         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35277         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35278         unistr/u8-uctomb.
35279         * modules/unistr/u8-strchr (Depends-on): Likewise.
35280         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35281         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35282         unistr/u16-uctomb.
35283         * modules/unistr/u16-strchr (Depends-on): Likewise.
35284         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35285
35286 2009-03-12  Bruno Haible  <bruno@clisp.org>
35287
35288         Work around select() bug on Interix 3.5.
35289         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35290         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35291         * m4/select.m4: New file.
35292         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35293         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35294         * modules/select (Files): Add m4/select.m4.
35295         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35296         * modules/nanosleep (Depends-on): Add select.
35297         * modules/poll (Depends-on): Likewise.
35298         * doc/posix-functions/select.texi: Mention the Interix bug.
35299         Reported by Markus Duft <mduft@gentoo.org>.
35300
35301         * lib/select.c: Renamed from lib/winsock-select.c.
35302         * modules/select (Files): Add lib/select.c, remove
35303         lib/winsock-select.c.
35304         (configure.ac): Update.
35305
35306 2009-03-12  Jim Meyering  <meyering@redhat.com>
35307
35308         avoid gcc warnings about unused macro definitions
35309         * lib/readtokens.c (STREQ): Remove unused definition.
35310         * lib/xmalloc.c (SIZE_MAX): Likewise.
35311         * lib/openat-die.c (N_): Likewise.
35312         * lib/mountlist.c (SIZE_MAX): Remove definition.
35313         Instead, include <stdint.h>.
35314         * lib/readutmp.c: Likewise.
35315         * modules/readutmp (Depends-on): Add stdint.
35316         * modules/mountlist (Depends-on): Add stdint.
35317         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35318
35319 2009-03-10  Bruno Haible  <bruno@clisp.org>
35320
35321         Tests for module 'mbmemcasecoll'.
35322         * modules/mbmemcasecoll-tests: New file.
35323         * tests/test-mbmemcasecoll1.sh: New file.
35324         * tests/test-mbmemcasecoll2.sh: New file.
35325         * tests/test-mbmemcasecoll3.sh: New file.
35326         * tests/test-mbmemcasecoll.c: New file.
35327
35328         New module 'mbmemcasecoll'.
35329         * lib/mbmemcasecoll.h: New file.
35330         * lib/mbmemcasecoll.c: New file.
35331         * modules/mbmemcasecoll: New file.
35332
35333         * tests/test-mbmemcasecmp.h: New file, extracted from
35334         tests/test-mbmemcasecmp.c.
35335         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35336         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35337         (main): Update.
35338         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35339
35340 2009-03-09  Bruno Haible  <bruno@clisp.org>
35341
35342         Tests for module 'mbmemcasecmp'.
35343         * modules/mbmemcasecmp-tests: New file.
35344         * tests/test-mbmemcasecmp1.sh: New file.
35345         * tests/test-mbmemcasecmp2.sh: New file.
35346         * tests/test-mbmemcasecmp3.sh: New file.
35347         * tests/test-mbmemcasecmp.c: New file.
35348
35349         New module 'mbmemcasecmp'.
35350         * lib/mbmemcasecmp.h: New file.
35351         * lib/mbmemcasecmp.c: New file.
35352         * modules/mbmemcasecmp: New file.
35353
35354 2009-03-09  Bruno Haible  <bruno@clisp.org>
35355
35356         Tests for module 'unicase/ulc-casecoll'.
35357         * modules/unicase/ulc-casecoll-tests: New file.
35358         * tests/unicase/test-ulc-casecoll1.sh: New file.
35359         * tests/unicase/test-ulc-casecoll2.sh: New file.
35360         * tests/unicase/test-ulc-casecoll.c: New file.
35361
35362         New module 'unicase/ulc-casecoll'.
35363         * lib/unicase.h (ulc_casecoll): New declaration.
35364         * lib/unicase/ulc-casecoll.c: New file.
35365         * modules/unicase/ulc-casecoll: New file.
35366
35367         New module 'unicase/ulc-casexfrm'.
35368         * lib/unicase.h (ulc_casexfrm): New declaration.
35369         * lib/unicase/ulc-casexfrm.c: New file.
35370         * modules/unicase/ulc-casexfrm: New file.
35371
35372 2009-03-09  Bruno Haible  <bruno@clisp.org>
35373
35374         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35375         invocations.
35376
35377         * m4/mbscasecmp.m4: Remove file.
35378         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35379         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35380
35381         * m4/mbscasestr.m4: Remove file.
35382         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35383         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35384
35385         * m4/mbschr.m4: Remove file.
35386         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35387         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35388
35389         * m4/mbscspn.m4: Remove file.
35390         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35391         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35392
35393         * m4/mbslen.m4: Remove file.
35394         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35395         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35396
35397         * m4/mbsncasecmp.m4: Remove file.
35398         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35399         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35400
35401         * m4/mbsnlen.m4: Remove file.
35402         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35403         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35404
35405         * m4/mbspbrk.m4: Remove file.
35406         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35407         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35408
35409         * m4/mbspcasecmp.m4: Remove file.
35410         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35411         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35412
35413         * m4/mbsrchr.m4: Remove file.
35414         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35415         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35416
35417         * m4/mbssep.m4: Remove file.
35418         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35419         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35420
35421         * m4/mbsspn.m4: Remove file.
35422         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35423         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35424
35425         * m4/mbsstr.m4: Remove file.
35426         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35427         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35428
35429         * m4/mbstok_r.m4: Remove file.
35430         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35431         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35432
35433         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35434
35435         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35436         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35437
35438         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35439
35440 2009-03-08  Bruno Haible  <bruno@clisp.org>
35441
35442         Tests for module 'unicase/ulc-casecmp'.
35443         * modules/unicase/ulc-casecmp-tests: New file.
35444         * tests/unicase/test-ulc-casecmp1.sh: New file.
35445         * tests/unicase/test-ulc-casecmp2.sh: New file.
35446         * tests/unicase/test-ulc-casecmp.c: New file.
35447
35448         New module 'unicase/ulc-casecmp'.
35449         * lib/unicase.h (ulc_casecmp): New declaration.
35450         * lib/unicase/ulc-casecmp.c: New file.
35451         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35452         'const SRC_UNIT *'.
35453         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35454         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35455         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35456         * modules/unicase/ulc-casecmp: New file.
35457
35458         Tests for module 'unicase/u32-is-cased'.
35459         * modules/unicase/u32-is-cased-tests: New file.
35460         * tests/unicase/test-u32-is-cased.c: New file.
35461
35462         Tests for module 'unicase/u16-is-cased'.
35463         * modules/unicase/u16-is-cased-tests: New file.
35464         * tests/unicase/test-u16-is-cased.c: New file.
35465
35466         Tests for module 'unicase/u8-is-cased'.
35467         * modules/unicase/u8-is-cased-tests: New file.
35468         * tests/unicase/test-u8-is-cased.c: New file.
35469         * tests/unicase/test-is-cased.h: New file.
35470
35471         New module 'unicase/u32-is-cased'.
35472         * lib/unicase/u32-is-cased.c: New file.
35473         * modules/unicase/u32-is-cased: New file.
35474
35475         New module 'unicase/u16-is-cased'.
35476         * lib/unicase/u16-is-cased.c: New file.
35477         * modules/unicase/u16-is-cased: New file.
35478
35479         New module 'unicase/u8-is-cased'.
35480         * lib/unicase/u8-is-cased.c: New file.
35481         * lib/unicase/u-is-cased.h: New file.
35482         * modules/unicase/u8-is-cased: New file.
35483
35484         Tests for module 'unicase/u32-is-casefolded'.
35485         * modules/unicase/u32-is-casefolded-tests: New file.
35486         * tests/unicase/test-u32-is-casefolded.c: New file.
35487
35488         Tests for module 'unicase/u16-is-casefolded'.
35489         * modules/unicase/u16-is-casefolded-tests: New file.
35490         * tests/unicase/test-u16-is-casefolded.c: New file.
35491
35492         Tests for module 'unicase/u8-is-casefolded'.
35493         * modules/unicase/u8-is-casefolded-tests: New file.
35494         * tests/unicase/test-u8-is-casefolded.c: New file.
35495         * tests/unicase/test-is-casefolded.h: New file.
35496
35497         New module 'unicase/u32-is-casefolded'.
35498         * lib/unicase/u32-is-casefolded.c: New file.
35499         * modules/unicase/u32-is-casefolded: New file.
35500
35501         New module 'unicase/u16-is-casefolded'.
35502         * lib/unicase/u16-is-casefolded.c: New file.
35503         * modules/unicase/u16-is-casefolded: New file.
35504
35505         New module 'unicase/u8-is-casefolded'.
35506         * lib/unicase/u8-is-casefolded.c: New file.
35507         * modules/unicase/u8-is-casefolded: New file.
35508
35509         Tests for module 'unicase/u32-is-titlecase'.
35510         * modules/unicase/u32-is-titlecase-tests: New file.
35511         * tests/unicase/test-u32-is-titlecase.c: New file.
35512
35513         Tests for module 'unicase/u16-is-titlecase'.
35514         * modules/unicase/u16-is-titlecase-tests: New file.
35515         * tests/unicase/test-u16-is-titlecase.c: New file.
35516
35517         Tests for module 'unicase/u8-is-titlecase'.
35518         * modules/unicase/u8-is-titlecase-tests: New file.
35519         * tests/unicase/test-u8-is-titlecase.c: New file.
35520         * tests/unicase/test-is-titlecase.h: New file.
35521
35522         New module 'unicase/u32-is-titlecase'.
35523         * lib/unicase/u32-is-titlecase.c: New file.
35524         * modules/unicase/u32-is-titlecase: New file.
35525
35526         New module 'unicase/u16-is-titlecase'.
35527         * lib/unicase/u16-is-titlecase.c: New file.
35528         * modules/unicase/u16-is-titlecase: New file.
35529
35530         New module 'unicase/u8-is-titlecase'.
35531         * lib/unicase/u8-is-titlecase.c: New file.
35532         * modules/unicase/u8-is-titlecase: New file.
35533
35534         Tests for module 'unicase/u32-is-lowercase'.
35535         * modules/unicase/u32-is-lowercase-tests: New file.
35536         * tests/unicase/test-u32-is-lowercase.c: New file.
35537
35538         Tests for module 'unicase/u16-is-lowercase'.
35539         * modules/unicase/u16-is-lowercase-tests: New file.
35540         * tests/unicase/test-u16-is-lowercase.c: New file.
35541
35542         Tests for module 'unicase/u8-is-lowercase'.
35543         * modules/unicase/u8-is-lowercase-tests: New file.
35544         * tests/unicase/test-u8-is-lowercase.c: New file.
35545         * tests/unicase/test-is-lowercase.h: New file.
35546
35547         New module 'unicase/u32-is-lowercase'.
35548         * lib/unicase/u32-is-lowercase.c: New file.
35549         * modules/unicase/u32-is-lowercase: New file.
35550
35551         New module 'unicase/u16-is-lowercase'.
35552         * lib/unicase/u16-is-lowercase.c: New file.
35553         * modules/unicase/u16-is-lowercase: New file.
35554
35555         New module 'unicase/u8-is-lowercase'.
35556         * lib/unicase/u8-is-lowercase.c: New file.
35557         * modules/unicase/u8-is-lowercase: New file.
35558
35559         Tests for module 'unicase/u32-is-uppercase'.
35560         * modules/unicase/u32-is-uppercase-tests: New file.
35561         * tests/unicase/test-u32-is-uppercase.c: New file.
35562
35563         Tests for module 'unicase/u16-is-uppercase'.
35564         * modules/unicase/u16-is-uppercase-tests: New file.
35565         * tests/unicase/test-u16-is-uppercase.c: New file.
35566
35567         Tests for module 'unicase/u8-is-uppercase'.
35568         * modules/unicase/u8-is-uppercase-tests: New file.
35569         * tests/unicase/test-u8-is-uppercase.c: New file.
35570         * tests/unicase/test-is-uppercase.h: New file.
35571
35572         New module 'unicase/u32-is-uppercase'.
35573         * lib/unicase/u32-is-uppercase.c: New file.
35574         * modules/unicase/u32-is-uppercase: New file.
35575
35576         New module 'unicase/u16-is-uppercase'.
35577         * lib/unicase/u16-is-uppercase.c: New file.
35578         * modules/unicase/u16-is-uppercase: New file.
35579
35580         New module 'unicase/u8-is-uppercase'.
35581         * lib/unicase/u8-is-uppercase.c: New file.
35582         * modules/unicase/u8-is-uppercase: New file.
35583
35584         New module 'unicase/u32-is-invariant'.
35585         * lib/unicase/u32-is-invariant.c: New file.
35586         * modules/unicase/u32-is-invariant: New file.
35587
35588         New module 'unicase/u16-is-invariant'.
35589         * lib/unicase/u16-is-invariant.c: New file.
35590         * modules/unicase/u16-is-invariant: New file.
35591
35592         New module 'unicase/u8-is-invariant'.
35593         * lib/unicase/u8-is-invariant.c: New file.
35594         * lib/unicase/invariant.h: New file.
35595         * lib/unicase/u-is-invariant.h: New file.
35596         * modules/unicase/u8-is-invariant: New file.
35597
35598         Tests for module 'unicase/u32-casecoll'.
35599         * modules/unicase/u32-casecoll-tests: New file.
35600         * tests/unicase/test-u32-casecoll.c: New file.
35601
35602         Tests for module 'unicase/u16-casecoll'.
35603         * modules/unicase/u16-casecoll-tests: New file.
35604         * tests/unicase/test-u16-casecoll.c: New file.
35605
35606         Tests for module 'unicase/u8-casecoll'.
35607         * modules/unicase/u8-casecoll-tests: New file.
35608         * tests/unicase/test-u8-casecoll.c: New file.
35609
35610         New module 'unicase/u32-casecoll'.
35611         * lib/unicase/u32-casecoll.c: New file.
35612         * modules/unicase/u32-casecoll: New file.
35613
35614         New module 'unicase/u16-casecoll'.
35615         * lib/unicase/u16-casecoll.c: New file.
35616         * modules/unicase/u16-casecoll: New file.
35617
35618         New module 'unicase/u8-casecoll'.
35619         * lib/unicase/u8-casecoll.c: New file.
35620         * lib/unicase/u-casecoll.h: New file.
35621         * modules/unicase/u8-casecoll: New file.
35622
35623         New module 'unicase/u32-casexfrm'.
35624         * lib/unicase/u32-casexfrm.c: New file.
35625         * modules/unicase/u32-casexfrm: New file.
35626
35627         New module 'unicase/u16-casexfrm'.
35628         * lib/unicase/u16-casexfrm.c: New file.
35629         * modules/unicase/u16-casexfrm: New file.
35630
35631         New module 'unicase/u8-casexfrm'.
35632         * lib/unicase/u8-casexfrm.c: New file.
35633         * lib/unicase/u-casexfrm.h: New file.
35634         * modules/unicase/u8-casexfrm: New file.
35635
35636         Tests for module 'unicase/u32-casecmp'.
35637         * modules/unicase/u32-casecmp-tests: New file.
35638         * tests/unicase/test-u32-casecmp.c: New file.
35639
35640         Tests for module 'unicase/u16-casecmp'.
35641         * modules/unicase/u16-casecmp-tests: New file.
35642         * tests/unicase/test-u16-casecmp.c: New file.
35643
35644         Tests for module 'unicase/u8-casecmp'.
35645         * modules/unicase/u8-casecmp-tests: New file.
35646         * tests/unicase/test-u8-casecmp.c: New file.
35647         * tests/unicase/test-casecmp.h: New file.
35648
35649         New module 'unicase/u32-casecmp'.
35650         * lib/unicase/u32-casecmp.c: New file.
35651         * modules/unicase/u32-casecmp: New file.
35652
35653         New module 'unicase/u16-casecmp'.
35654         * lib/unicase/u16-casecmp.c: New file.
35655         * modules/unicase/u16-casecmp: New file.
35656
35657         New module 'unicase/u8-casecmp'.
35658         * lib/unicase/u8-casecmp.c: New file.
35659         * lib/unicase/u-casecmp.h: New file.
35660         * modules/unicase/u8-casecmp: New file.
35661
35662         Tests for module 'unicase/u32-casefold'.
35663         * modules/unicase/u32-casefold-tests: New file.
35664         * tests/unicase/test-u32-casefold.c: New file.
35665
35666         Tests for module 'unicase/u16-casefold'.
35667         * modules/unicase/u16-casefold-tests: New file.
35668         * tests/unicase/test-u16-casefold.c: New file.
35669
35670         Tests for module 'unicase/u8-casefold'.
35671         * modules/unicase/u8-casefold-tests: New file.
35672         * tests/unicase/test-u8-casefold.c: New file.
35673
35674         New module 'unicase/u32-casefold'.
35675         * lib/unicase/u32-casefold.c: New file.
35676         * modules/unicase/u32-casefold: New file.
35677
35678         New module 'unicase/u16-casefold'.
35679         * lib/unicase/u16-casefold.c: New file.
35680         * modules/unicase/u16-casefold: New file.
35681
35682         New module 'unicase/u8-casefold'.
35683         * lib/unicase/u8-casefold.c: New file.
35684         * lib/unicase/u-casefold.h: New file.
35685         * modules/unicase/u8-casefold: New file.
35686
35687         New module 'unicase/tocasefold'.
35688         * lib/unicase/casefold.h: New file.
35689         * lib/unicase/tocasefold.c: New file.
35690         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35691         * modules/unicase/tocasefold: New file.
35692
35693         Tests for module 'unicase/u32-totitle'.
35694         * modules/unicase/u32-totitle-tests: New file.
35695         * tests/unicase/test-u32-totitle.c: New file.
35696
35697         Tests for module 'unicase/u16-totitle'.
35698         * modules/unicase/u16-totitle-tests: New file.
35699         * tests/unicase/test-u16-totitle.c: New file.
35700
35701         Tests for module 'unicase/u8-totitle'.
35702         * modules/unicase/u8-totitle-tests: New file.
35703         * tests/unicase/test-u8-totitle.c: New file.
35704
35705         New module 'unicase/u32-totitle'.
35706         * lib/unicase/u32-totitle.c: New file.
35707         * modules/unicase/u32-totitle: New file.
35708
35709         New module 'unicase/u16-totitle'.
35710         * lib/unicase/u16-totitle.c: New file.
35711         * modules/unicase/u16-totitle: New file.
35712
35713         New module 'unicase/u8-totitle'.
35714         * lib/unicase/u8-totitle.c: New file.
35715         * lib/unicase/u-totitle.h: New file.
35716         * modules/unicase/u8-totitle: New file.
35717
35718         Tests for module 'unicase/u32-tolower'.
35719         * modules/unicase/u32-tolower-tests: New file.
35720         * tests/unicase/test-u32-tolower.c: New file.
35721
35722         Tests for module 'unicase/u16-tolower'.
35723         * modules/unicase/u16-tolower-tests: New file.
35724         * tests/unicase/test-u16-tolower.c: New file.
35725
35726         Tests for module 'unicase/u8-tolower'.
35727         * modules/unicase/u8-tolower-tests: New file.
35728         * tests/unicase/test-u8-tolower.c: New file.
35729
35730         New module 'unicase/u32-tolower'.
35731         * lib/unicase/u32-tolower.c: New file.
35732         * modules/unicase/u32-tolower: New file.
35733
35734         New module 'unicase/u16-tolower'.
35735         * lib/unicase/u16-tolower.c: New file.
35736         * modules/unicase/u16-tolower: New file.
35737
35738         New module 'unicase/u8-tolower'.
35739         * lib/unicase/u8-tolower.c: New file.
35740         * modules/unicase/u8-tolower: New file.
35741
35742         Tests for module 'unicase/u32-toupper'.
35743         * modules/unicase/u32-toupper-tests: New file.
35744         * tests/unicase/test-u32-toupper.c: New file.
35745
35746         Tests for module 'unicase/u16-toupper'.
35747         * modules/unicase/u16-toupper-tests: New file.
35748         * tests/unicase/test-u16-toupper.c: New file.
35749
35750         Tests for module 'unicase/u8-toupper'.
35751         * modules/unicase/u8-toupper-tests: New file.
35752         * tests/unicase/test-u8-toupper.c: New file.
35753
35754         New module 'unicase/u32-toupper'.
35755         * lib/unicase/u32-toupper.c: New file.
35756         * modules/unicase/u32-toupper: New file.
35757
35758         New module 'unicase/u16-toupper'.
35759         * lib/unicase/u16-toupper.c: New file.
35760         * modules/unicase/u16-toupper: New file.
35761
35762         New module 'unicase/u8-toupper'.
35763         * lib/unicase/u8-toupper.c: New file.
35764         * modules/unicase/u8-toupper: New file.
35765
35766         New module 'unicase/u32-casemap'.
35767         * lib/unicase/u32-casemap.c: New file.
35768         * modules/unicase/u32-casemap: New file.
35769
35770         New module 'unicase/u16-casemap'.
35771         * lib/unicase/u16-casemap.c: New file.
35772         * modules/unicase/u16-casemap: New file.
35773
35774         New module 'unicase/u8-casemap'.
35775         * lib/unicase/unicasemap.h: New file.
35776         * lib/unicase/u8-casemap.c: New file.
35777         * lib/unicase/u-casemap.h: New file.
35778         * modules/unicase/u8-casemap: New file.
35779
35780         New module 'unicase/special-casing'.
35781         * lib/unicase/special-casing.h: New file.
35782         * lib/unicase/special-casing.c: New file.
35783         * lib/unicase/special-casing-table.gperf: New file, generated by
35784         gen-uni-tables.c.
35785         * modules/unicase/special-casing: New file.
35786
35787         Tests for module 'unicase/locale-language'.
35788         * modules/unicase/locale-language-tests: New file.
35789         * tests/unicase/test-locale-language.sh: New file.
35790         * tests/unicase/test-locale-language.c: New file.
35791
35792         New module 'unicase/locale-language'.
35793         * lib/unicase/locale-language.c: New file.
35794         * lib/unicase/locale-languages.gperf: New file.
35795         * modules/unicase/locale-language: New file.
35796
35797         Generate more tables for case conversion and case folding.
35798         * lib/gen-uni-tables.c (SCC_*): New enum items.
35799         (struct special_casing_rule): New type.
35800         (casing_rules, num_casing_rules, allocated_casing_rules): New
35801         variables.
35802         (add_casing_rule, fill_casing_rules): New functions.
35803         (struct casefold_rule): New type.
35804         (casefolding_rules, num_casefolding_rules,
35805         allocated_casefolding_rules): New variables.
35806         (fill_casefolding_rules): New function.
35807         (unicode_casefold): New variable.
35808         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35809         sort_casing_rules, output_casing_rules): New functions.
35810         (main): Accept to more arguments: SpecialCasing.txt and
35811         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35812         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35813         Output mapping for casefolding.
35814
35815         * lib/unicase.h: Include stdbool.h, uninorm.h.
35816         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35817         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35818         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35819         arguments.
35820         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35821         resultp arguments.
35822         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35823         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35824         resultp arguments.
35825         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35826         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35827         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35828         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35829         declarations.
35830         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35831
35832 2009-03-08  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35835         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35836         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35837         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35838
35839 2009-03-07  Bruno Haible  <bruno@clisp.org>
35840
35841         Adjust u*_normcmp, u*_normcoll API.
35842         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35843         u16_normcoll, u32_normcoll): Change failure conventions.
35844         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35845         errno and return -1.
35846         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35847
35848 2009-03-07  Bruno Haible  <bruno@clisp.org>
35849
35850         Tests for module 'uninorm/u32-normcoll'.
35851         * modules/uninorm/u32-normcoll-tests: New file.
35852         * tests/uninorm/test-u32-normcoll.c: New file.
35853
35854         Tests for module 'uninorm/u16-normcoll'.
35855         * modules/uninorm/u16-normcoll-tests: New file.
35856         * tests/uninorm/test-u16-normcoll.c: New file.
35857
35858         Tests for module 'uninorm/u8-normcoll'.
35859         * modules/uninorm/u8-normcoll-tests: New file.
35860         * tests/uninorm/test-u8-normcoll.c: New file.
35861
35862 2009-03-07  Bruno Haible  <bruno@clisp.org>
35863
35864         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35865         tests/uninorm/test-u32-normcmp.c.
35866         * tests/uninorm/test-u32-normcmp.c: Include it.
35867         (test_nonascii): New function, extracted from main. Add some more
35868         tests.
35869         (main): Invoke test_ascii and test_nonascii.
35870         * modules/uninorm/u32-normcmp-tests (Files): Add
35871         tests/uninorm/test-u32-normcmp.h.
35872         (Depends-on): Remove uninorm/u32-normcmp.
35873
35874         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35875         tests/uninorm/test-u16-normcmp.c.
35876         * tests/uninorm/test-u16-normcmp.c: Include it.
35877         (test_nonascii): New function, extracted from main. Add some more
35878         tests.
35879         (main): Invoke test_ascii and test_nonascii.
35880         * modules/uninorm/u16-normcmp-tests (Files): Add
35881         tests/uninorm/test-u16-normcmp.h.
35882         (Depends-on): Remove uninorm/u16-normcmp.
35883
35884         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35885         tests/uninorm/test-u8-normcmp.c.
35886         * tests/uninorm/test-u8-normcmp.c: Include it.
35887         (test_nonascii): New function, extracted from main. Add some more
35888         tests.
35889         (main): Invoke test_ascii and test_nonascii.
35890         * modules/uninorm/u8-normcmp-tests (Files): Add
35891         tests/uninorm/test-u8-normcmp.h.
35892         (Depends-on): Remove uninorm/u8-normcmp.
35893
35894 2009-03-07  Bruno Haible  <bruno@clisp.org>
35895
35896         New module 'uninorm/u32-normcoll'.
35897         * lib/uninorm/u32-normcoll.c: New file.
35898         * modules/uninorm/u32-normcoll: New file.
35899
35900         New module 'uninorm/u16-normcoll'.
35901         * lib/uninorm/u16-normcoll.c: New file.
35902         * modules/uninorm/u16-normcoll: New file.
35903
35904         New module 'uninorm/u8-normcoll'.
35905         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35906         declarations.
35907         * lib/uninorm/u8-normcoll.c: New file.
35908         * lib/uninorm/u-normcoll.h: New file.
35909         * modules/uninorm/u8-normcoll: New file.
35910
35911         New module 'uninorm/u32-normxfrm'.
35912         * lib/uninorm/u32-normxfrm.c: New file.
35913         * modules/uninorm/u32-normxfrm: New file.
35914
35915         New module 'uninorm/u16-normxfrm'.
35916         * lib/uninorm/u16-normxfrm.c: New file.
35917         * modules/uninorm/u16-normxfrm: New file.
35918
35919         New module 'uninorm/u8-normxfrm'.
35920         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35921         declarations.
35922         * lib/uninorm/u8-normxfrm.c: New file.
35923         * lib/uninorm/u-normxfrm.h: New file.
35924         * modules/uninorm/u8-normxfrm: New file.
35925
35926 2009-03-07  Bruno Haible  <bruno@clisp.org>
35927
35928         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35929         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35930         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35931
35932 2009-03-07  Bruno Haible  <bruno@clisp.org>
35933
35934         New module 'memxfrm'.
35935         * lib/memxfrm.h: New file.
35936         * lib/memxfrm.c: New file.
35937         * modules/memxfrm: New file.
35938
35939 2009-03-07  Bruno Haible  <bruno@clisp.org>
35940
35941         New module 'memcmp2'.
35942         * lib/memcmp2.h: New file.
35943         * lib/memcmp2.c: New file.
35944         * modules/memcmp2: New file.
35945
35946 2009-03-07  Bruno Haible  <bruno@clisp.org>
35947
35948         Tests for module 'uninorm/decomposing-form'.
35949         * modules/uninorm/decomposing-form-tests: New file.
35950         * tests/uninorm/test-decomposing-form.c: New file.
35951
35952         New module 'uninorm/decomposing-form'.
35953         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35954         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35955         Add 'decomposing_variant' field.
35956         * lib/uninorm/decomposing-form.c: New file.
35957         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35958         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35959         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35960         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35961         * modules/uninorm/decomposing-form: New file.
35962         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35963         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35964
35965 2009-03-07  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35968         strings.
35969
35970 2009-03-06  Bruno Haible  <bruno@clisp.org>
35971
35972         Tests for module 'uninorm/u32-normcmp'.
35973         * tests/uninorm/test-u32-normcmp.c: New file.
35974         * modules/uninorm/u32-normcmp-tests: New file.
35975
35976         Tests for module 'uninorm/u16-normcmp'.
35977         * tests/uninorm/test-u16-normcmp.c: New file.
35978         * modules/uninorm/u16-normcmp-tests: New file.
35979
35980         Tests for module 'uninorm/u8-normcmp'.
35981         * tests/uninorm/test-u8-normcmp.c: New file.
35982         * modules/uninorm/u8-normcmp-tests: New file.
35983
35984         New module 'uninorm/u32-normcmp'.
35985         * lib/uninorm/u32-normcmp.c: New file.
35986         * modules/uninorm/u32-normcmp: New file.
35987
35988         New module 'uninorm/u16-normcmp'.
35989         * lib/uninorm/u16-normcmp.c: New file.
35990         * modules/uninorm/u16-normcmp: New file.
35991
35992         New module 'uninorm/u8-normcmp'.
35993         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35994         declarations.
35995         * lib/uninorm/u8-normcmp.c: New file.
35996         * lib/uninorm/u-normcmp.h: New file.
35997         * modules/uninorm/u8-normcmp: New file.
35998
35999 2009-03-06  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36002         Reported by Eric Blake.
36003
36004 2009-03-06  Eric Blake  <ebb9@byu.net>
36005             Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36008         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36009         condition.
36010         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36011         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36012         condition.
36013         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36014
36015 2009-03-06  Eric Blake  <ebb9@byu.net>
36016
36017         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36018         to avoid compiler warnings.
36019         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36020
36021 2009-03-05  Bruno Haible  <bruno@clisp.org>
36022
36023         * tests/test-ftell.c (main): Disable test beyond end of file on
36024         FreeMiNT.
36025         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36026
36027 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36028
36029         * lib/filevercmp.c: Move hidden files up in ordering.
36030         * tests/test-filevercmp.c: Add tests for hidden files.
36031
36032 2009-03-04  Bruno Haible  <bruno@clisp.org>
36033
36034         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36035         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36036         AM_CFLAGS.
36037         Reported by Simon Josefsson.
36038
36039 2009-03-03  Bruno Haible  <bruno@clisp.org>
36040
36041         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36042         Reported by Simon Josefsson.
36043
36044         * doc/ld-version-script.texi: Update node reference.
36045
36046 2009-03-03  Bruno Haible  <bruno@clisp.org>
36047
36048         * modules/visibility (License): Change to 'unlimited'.
36049         Suggested by Simon Josefsson.
36050
36051 2009-03-03  Jim Meyering  <meyering@redhat.com>
36052
36053         unlinkdir: cannot_unlink_dir may modify process state
36054         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36055         it's neither thread-safe nor appropriate for use in a library.
36056
36057 2009-03-03  Eric Blake  <ebb9@byu.net>
36058
36059         test-closein: silence test under Darwin
36060         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36061         care if it dies from EPIPE or EBADF.
36062
36063 2009-03-03  Bruno Haible  <bruno@clisp.org>
36064
36065         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36066         earlier.
36067         * doc/visibility.texi: Fix @node and @section.
36068
36069 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36070
36071         * doc/gnulib.texi: Link to sections for ld version script and
36072         visibility.
36073         * doc/visibility.texi: Add @node and @section.
36074         * modules/ld-version-script: New module.
36075         * m4/ld-version-script.m4: New file.
36076         * doc/ld-version-script.texi: New file.
36077
36078 2009-03-02  David Lutterkort  <lutter@redhat.com>
36079
36080         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36082
36083 2009-03-02  Bruno Haible  <bruno@clisp.org>
36084
36085         * doc/visibility.texi: Mention libtool's -export-symbols option.
36086
36087 2009-03-02  Jim Meyering  <meyering@redhat.com>
36088
36089         announce-gen: new option: --no-print-checksums
36090         * build-aux/announce-gen (usage): Describe it.
36091         (print_checksums): Print a newline here, not in the [*] footnote.
36092         (main): Honor it.
36093
36094 2009-03-01  Bruno Haible  <bruno@clisp.org>
36095
36096         Use socklen_t in the native Windows replacements prototypes.
36097         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36098         instead of 'int'.
36099         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36100         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36101         * modules/getsockopt (Depends-on): Add socklen.
36102         * modules/setsockopt (Depends-on): Add socklen.
36103
36104 2009-03-01  Bruno Haible  <bruno@clisp.org>
36105
36106         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36107         least 4.2.
36108
36109 2009-03-01  Eric Blake  <ebb9@byu.net>
36110             Bruno Haible  <bruno@clisp.org>
36111
36112         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36113         error messages.
36114         * lib/wait-process.c (wait_subprocess): Omit error message about
36115         deadly signal sent to the child of termsigp != NULL.
36116
36117 2009-03-01  Eric Blake  <ebb9@byu.net>
36118
36119         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36120
36121 2009-03-01  Bruno Haible  <bruno@clisp.org>
36122
36123         Avoid a gcc warning.
36124         * tests/test-sched.c (b): Make global.
36125         Reported by Eric Blake.
36126
36127 2009-01-19  Martin Lambers  <marlam@marlam.de>
36128
36129         Provide POSIX semantics for socket timeout options on W32.
36130         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36131         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36132         * modules/setsockopt: Depend on sys_time module for struct timeval.
36133         * modules/getsockopt: Depend on sys_time module for struct timeval.
36134
36135 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36136
36137         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36138         __USE_GNU, for consistency with netdb.in.h.
36139         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36140
36141 2009-03-01  Bruno Haible  <bruno@clisp.org>
36142
36143         More support for FreeMiNT.
36144         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36145         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36146
36147 2009-03-01  Bruno Haible  <bruno@clisp.org>
36148
36149         More support for FreeMiNT.
36150         * lib/fpurge.c (fpurge): Correct last commit.
36151         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36152
36153 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36154
36155         Fix unportable awk script in vc-list-files.
36156         * build-aux/vc-list-files: In the replacement awk script, use
36157         substr with a second argument of 1, not zero.
36158         Report by Simon Josefsson.
36159
36160 2009-02-28  Bruno Haible  <bruno@clisp.org>
36161
36162         More support for FreeMiNT.
36163         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36164         to FreeMiNT today.
36165         * lib/fwriting.c (fwriting): Likewise.
36166         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36167
36168 2009-02-28  Bruno Haible  <bruno@clisp.org>
36169
36170         * tests/test-freadseek.c (main): Disable test beyond end of file on
36171         FreeMiNT.
36172         * tests/test-ftello.c (main): Likewise.
36173         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36174
36175 2009-02-28  Bruno Haible  <bruno@clisp.org>
36176
36177         Add tentative support for FreeMiNT.
36178         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36179         * lib/fpurge.c (fpurge): Likewise.
36180         * lib/freadable.c (freadable): Likewise.
36181         * lib/freading.c (freading): Likewise.
36182         * lib/freadptr.c (freadptr): Likewise.
36183         * lib/freadseek.c (freadptrinc): Likewise.
36184         * lib/fseeko.c (rpl_fseeko): Likewise.
36185         * lib/fseterr.c (fseterr): Likewise.
36186         * lib/fwritable.c (fwritable): Likewise.
36187         * lib/fwriting.c (fwriting): Likewise.
36188         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36189         Hourihane.
36190         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36191
36192 2009-02-28  Bruno Haible  <bruno@clisp.org>
36193
36194         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36195         SIGCHLD.
36196         Reported by Jim Meyering.
36197
36198 2009-02-28  Bruno Haible  <bruno@clisp.org>
36199
36200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36201         Mention the results of these tests on various platforms.
36202         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36203         order.
36204         * doc/posix-functions/printf.texi: Likewise.
36205         * doc/posix-functions/snprintf.texi: Likewise.
36206         * doc/posix-functions/sprintf.texi: Likewise.
36207         * doc/posix-functions/vfprintf.texi: Likewise.
36208         * doc/posix-functions/vprintf.texi: Likewise.
36209         * doc/posix-functions/vsnprintf.texi: Likewise.
36210         * doc/posix-functions/vsprintf.texi: Likewise.
36211         * doc/glibc-functions/obstack_printf.texi: Likewise.
36212         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36213
36214 2009-02-28  Bruno Haible  <bruno@clisp.org>
36215
36216         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36217         Reported by Loïc Minier <lool@dooz.org>.
36218
36219 2009-02-27  Bruno Haible  <bruno@clisp.org>
36220
36221         * gnulib-tool (func_import): Make the sed expression used to create the
36222         sed script for updating the .gitignore file POSIX compliant.
36223         Reported by Eric Blake.
36224
36225 2009-02-27  Bruno Haible  <bruno@clisp.org>
36226
36227         * gnulib-tool (sed): Don't alias as "sed --posix".
36228         Reported by Eric Blake.
36229
36230 2009-02-27  Bruno Haible  <bruno@clisp.org>
36231
36232         Avoid test link errors.
36233         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36234         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36235         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36236         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36238
36239 2009-02-27  Bruno Haible  <bruno@clisp.org>
36240
36241         Avoid spurious "(cached)" in configure output.
36242         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36243         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36244         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36245         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36246         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36247         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36248         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36249         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36250         Reported by Eric Blake.
36251
36252 2009-02-27  Eric Blake  <ebb9@byu.net>
36253
36254         printf: fix regression in previous patch
36255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36256
36257 2009-02-27  Bruno Haible  <bruno@clisp.org>
36258
36259         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36260         value.
36261         * lib/stdint.in.h: Likewise.
36262         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36263
36264 2009-02-27  Eric Blake  <ebb9@byu.net>
36265
36266         doc: mention more functions added in cygwin 1.7.0
36267         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36268         addition.
36269         * doc/posix-functions/open_wmemstream.texi: Likewise.
36270         * doc/posix-functions/wcsnlen.texi: Likewise.
36271         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36272         * doc/posix-functions/wcstod.texi: Likewise.
36273         * doc/posix-functions/wcstof.texi: Likewise.
36274         * doc/posix-functions/wcstoimax.texi: Likewise.
36275         * doc/posix-functions/wcstok.texi: Likewise.
36276         * doc/posix-functions/wcstoumax.texi: Likewise.
36277
36278         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36280         * doc/posix-functions/fprintf.texi: Update.
36281         * doc/posix-functions/printf.texi: Update.
36282         * doc/posix-functions/snprintf.texi: Update.
36283         * doc/posix-functions/sprintf.texi: Update.
36284         * doc/posix-functions/vfprintf.texi: Update.
36285         * doc/posix-functions/vprintf.texi: Update.
36286         * doc/posix-functions/vsnprintf.texi: Update.
36287         * doc/posix-functions/vsprintf.texi: Update.
36288         * doc/glibc-functions/obstack_printf.texi: Update.
36289         * doc/glibc-functions/obstack_vprintf.texi: Update.
36290
36291 2009-02-26  Eric Blake  <ebb9@byu.net>
36292
36293         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36294         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36295         compilation bug by using runtime conversion.
36296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36297         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36298         * modules/ceill-tests (Files): Use nan.h.
36299         * modules/floorl-tests (Files): Likewise.
36300         * modules/frexpl-tests (Files): Likewise.
36301         * modules/isnanl-tests (Files): Likewise.
36302         * modules/ldexpl-tests (Files): Likewise.
36303         * modules/roundl-tests (Files): Likewise.
36304         * modules/truncl-tests (Files): Likewise.
36305         * tests/test-ceill.c (main): Use a working NaN.
36306         * tests/test-floorl.c (main): Likewise.
36307         * tests/test-frexpl.c (main): Likewise.
36308         * tests/test-isnan.c (test_long_double): Likewise.
36309         * tests/test-isnanl.h (main): Likewise.
36310         * tests/test-ldexpl.h (main): Likewise.
36311         * tests/test-roundl.h (main): Likewise.
36312         * tests/test-truncl.h (main): Likewise.
36313         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36314
36315 2009-02-26  Eric Blake  <ebb9@byu.net>
36316             Bruno Haible  <bruno@clisp.org>
36317
36318         Work around a *printf bug with %ls on Solaris.
36319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36320         precision is specified, sprintf stops converting the wide string
36321         argument when the number of bytes that have been produced by this
36322         conversion equals or exceeds the precision.
36323         * doc/posix-functions/fprintf.texi: Update.
36324         * doc/posix-functions/printf.texi: Update.
36325         * doc/posix-functions/snprintf.texi: Update.
36326         * doc/posix-functions/sprintf.texi: Update.
36327         * doc/posix-functions/vfprintf.texi: Update.
36328         * doc/posix-functions/vprintf.texi: Update.
36329         * doc/posix-functions/vsnprintf.texi: Update.
36330         * doc/posix-functions/vsprintf.texi: Update.
36331         * doc/glibc-functions/obstack_printf.texi: Update.
36332         * doc/glibc-functions/obstack_vprintf.texi: Update.
36333
36334 2009-02-26  Eric Blake  <ebb9@byu.net>
36335
36336         stdlib: favor compiler check of random.h
36337         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36338         to avoid an ObjC random.h installed by Swarm.
36339
36340 2009-02-26  Bruno Haible  <bruno@clisp.org>
36341
36342         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36343         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36344         Reported by Gary V. Vaughan <gary@gnu.org>.
36345
36346 2009-02-26  Bruno Haible  <bruno@clisp.org>
36347
36348         Fix *printf behaviour regarding the %ls directive.
36349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36350         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36351         NEED_PRINTF_DIRECTIVE_LS.
36352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36355         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36356         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36357         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36358         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36363         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36367         * doc/posix-functions/fprintf.texi: Update.
36368         * doc/posix-functions/printf.texi: Update.
36369         * doc/posix-functions/snprintf.texi: Update.
36370         * doc/posix-functions/sprintf.texi: Update.
36371         * doc/posix-functions/vfprintf.texi: Update.
36372         * doc/posix-functions/vprintf.texi: Update.
36373         * doc/posix-functions/vsnprintf.texi: Update.
36374         * doc/posix-functions/vsprintf.texi: Update.
36375         * doc/glibc-functions/obstack_printf.texi: Update.
36376         * doc/glibc-functions/obstack_vprintf.texi: Update.
36377         Reported by Eric Blake.
36378
36379 2009-02-25  Bruno Haible  <bruno@clisp.org>
36380
36381         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36382         with known value.
36383         Reported by Gary V. Vaughan <gary@gnu.org>.
36384
36385 2009-02-25  Bruno Haible  <bruno@clisp.org>
36386
36387         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36388         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36389         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36390         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36391         Reported by Gary V. Vaughan <gary@gnu.org>.
36392
36393 2009-02-25  Bruno Haible  <bruno@clisp.org>
36394
36395         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36396         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36397         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36398         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36399         Reported by Gary V. Vaughan <gary@gnu.org>.
36400
36401 2009-02-25  Eric Blake  <ebb9@byu.net>
36402
36403         tests: skip fseek/ftell tests if ungetc is broken
36404         * m4/ungetc.m4: New file.
36405         * modules/fseek-tests: Split test, so ungetc dependency is
36406         separate from rest of test.
36407         * modules/fseeko-tests: Likewise.
36408         * modules/ftell-tests: Likewise.
36409         * modules/ftello-tests: Likewise.
36410         * tests/test-fseek.c (main): Isolate ungetc dependency.
36411         * tests/test-fseeko.c (main): Likewise.
36412         * tests/test-ftell.c (main): Likewise.
36413         * tests/test-ftello.c (main): Likewise.
36414         * tests/test-fseek2.sh: New file.
36415         * tests/test-fseeko2.sh: Likewise.
36416         * tests/test-ftell2.sh: Likewise.
36417         * tests/test-ftello2.sh: Likewise.
36418
36419 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36420
36421         test-getaddrinfo: fix usage of skip return code 77
36422         * tests/test-gettaddrinfo.c: Return skip code 77 only
36423         for first occurance of skip (4x77 is not 77)
36424
36425 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36426
36427         strtod: avoid C99 decl-after-statement
36428         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36429
36430 2009-02-24  Eric Blake  <ebb9@byu.net>
36431
36432         strtod: detect HP-UX 11.31 bug
36433         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36434         Reported by Gary V. Vaughan.
36435
36436 2009-02-23  Bruno Haible  <bruno@clisp.org>
36437
36438         Fix invalid read past end of memory block.
36439         * lib/vasnprintf.c (DCHAR_SET): Define.
36440         (local_wcslen): Define only when needed.
36441         (local_strnlen, local_wcsnlen): New functions.
36442         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36443         directives that involve a conversion ourselves.
36444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36445         wcsnlen, mbrtowc, wcrtomb.
36446         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36447         * tests/test-vasprintf-posix.c (test_function): Likewise.
36448         * tests/test-snprintf-posix.h (test_function): Likewise.
36449         * tests/test-sprintf-posix.h (test_function): Likewise.
36450         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36451
36452 2009-02-22  Bruno Haible  <bruno@clisp.org>
36453
36454         Implement new clarified decomposition of Hangul syllables.
36455         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36456         of type LTV, return only a pairwise decomposition.
36457         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36458         Likewise.
36459         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36460         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36461         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36462
36463 2009-02-22  Bruno Haible  <bruno@clisp.org>
36464
36465         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36466         zero-length results and shrink excess allocated memory.
36467         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36468         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36469         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36470         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36471         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36472         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36473         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36474         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36475         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36476         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36477         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36478         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36479
36480 2009-02-21  Bruno Haible  <bruno@clisp.org>
36481
36482         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36483         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36484         spaces after a period. Put a space between a macro name and its
36485         argument list. Trivial rewordings.
36486         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36487         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36488         (main): Return 0 explicitly.
36489
36490 2009-02-21  Bruno Haible  <bruno@clisp.org>
36491
36492         Tests for module 'uninorm/filter'.
36493         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36494         * modules/uninorm/filter-tests: New file.
36495
36496         New module 'uninorm/filter'.
36497         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36498         uninorm_filter_flush, uninorm_filter_free): New declarations.
36499         * lib/uninorm/uninorm-filter.c: New file.
36500         * modules/uninorm/filter: New file.
36501
36502 2009-02-21  Bruno Haible  <bruno@clisp.org>
36503
36504         Tests for module 'uninorm/nfkc'.
36505         * tests/uninorm/test-nfkc.c: New file.
36506         * tests/uninorm/test-u8-nfkc.c: New file.
36507         * tests/uninorm/test-u16-nfkc.c: New file.
36508         * tests/uninorm/test-u32-nfkc.c: New file.
36509         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36510         * tests/uninorm/test-u32-nfkc-big.c: New file.
36511         * modules/uninorm/nfkc-tests: New file.
36512
36513         New module 'uninorm/nfkc'.
36514         * lib/uninorm/nfkc.c: New file.
36515         * modules/uninorm/nfkc: New file.
36516
36517         Tests for module 'uninorm/nfkd'.
36518         * tests/uninorm/test-nfkd.c: New file.
36519         * tests/uninorm/test-u8-nfkd.c: New file.
36520         * tests/uninorm/test-u16-nfkd.c: New file.
36521         * tests/uninorm/test-u32-nfkd.c: New file.
36522         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36523         * tests/uninorm/test-u32-nfkd-big.c: New file.
36524         * modules/uninorm/nfkd-tests: New file.
36525
36526         New module 'uninorm/nfkd'.
36527         * lib/uninorm/nfkd.c: New file.
36528         * modules/uninorm/nfkd: New file.
36529
36530         Tests for module 'uninorm/nfc'.
36531         * tests/uninorm/test-nfc.c: New file.
36532         * tests/uninorm/test-u8-nfc.c: New file.
36533         * tests/uninorm/test-u16-nfc.c: New file.
36534         * tests/uninorm/test-u32-nfc.c: New file.
36535         * tests/uninorm/test-u32-nfc-big.sh: New file.
36536         * tests/uninorm/test-u32-nfc-big.c: New file.
36537         * modules/uninorm/nfc-tests: New file.
36538
36539         New module 'uninorm/nfc'.
36540         * lib/uninorm/nfc.c: New file.
36541         * modules/uninorm/nfc: New file.
36542
36543         Tests for module 'uninorm/nfd'.
36544         * tests/uninorm/test-nfd.c: New file.
36545         * tests/uninorm/test-u8-nfd.c: New file.
36546         * tests/uninorm/test-u16-nfd.c: New file.
36547         * tests/uninorm/test-u32-nfd.c: New file.
36548         * tests/uninorm/test-u32-nfd-big.sh: New file.
36549         * tests/uninorm/test-u32-nfd-big.c: New file.
36550         * tests/uninorm/test-u32-normalize-big.h: New file.
36551         * tests/uninorm/test-u32-normalize-big.c: New file.
36552         * tests/uninorm/NormalizationTest.txt: New file, created from
36553         Unicode 5.1.0 NormalizationTest.txt.
36554         * modules/uninorm/nfd-tests: New file.
36555
36556         New module 'uninorm/nfd'.
36557         * lib/uninorm/nfd.c: New file.
36558         * modules/uninorm/nfd: New file.
36559
36560         New module 'uninorm/u32-normalize'.
36561         * lib/uninorm/u32-normalize.c: New file.
36562         * modules/uninorm/u32-normalize: New file.
36563
36564         New module 'uninorm/u16-normalize'.
36565         * lib/uninorm/u16-normalize.c: New file.
36566         * modules/uninorm/u16-normalize: New file.
36567
36568         New module 'uninorm/u8-normalize'.
36569         * lib/uninorm/u8-normalize.c: New file.
36570         * lib/uninorm/normalize-internal.h: New file.
36571         * lib/uninorm/u-normalize-internal.h: New file.
36572         * modules/uninorm/u8-normalize: New file.
36573
36574         New module 'uninorm/decompose-internal'.
36575         * lib/uninorm/decompose-internal.c: New file.
36576         * modules/uninorm/decompose-internal: New file.
36577
36578         Tests for module 'uninorm/composition'.
36579         * tests/uninorm/test-composition.c: New file.
36580         * modules/uninorm/composition-tests: New file.
36581
36582         New module 'uninorm/composition'.
36583         * lib/uninorm/composition.c: New file.
36584         * lib/uninorm/composition-table.gperf: New file, generated by
36585         gen-uni-tables.
36586         * modules/uninorm/composition: New file.
36587
36588         Tests for module 'uninorm/compat-decomposition'.
36589         * tests/uninorm/test-compat-decomposition.c: New file.
36590         * modules/uninorm/compat-decomposition-tests: New file.
36591
36592         New module 'uninorm/compat-decomposition'.
36593         * lib/uninorm/decompose-internal.h: New file.
36594         * lib/uninorm/compat-decomposition.c: New file.
36595         * modules/uninorm/compat-decomposition: New file.
36596
36597         Tests for module 'uninorm/canonical-decomposition'.
36598         * tests/uninorm/test-canonical-decomposition.c: New file.
36599         * modules/uninorm/canonical-decomposition-tests: New file.
36600
36601         New module 'uninorm/canonical-decomposition'.
36602         * lib/uninorm/canonical-decomposition.c: New file.
36603         * modules/uninorm/canonical-decomposition: New file.
36604
36605         Tests for module 'uninorm/decomposition'.
36606         * tests/uninorm/test-decomposition.c: New file.
36607         * modules/uninorm/decomposition-tests: New file.
36608
36609         New module 'uninorm/decomposition'.
36610         * lib/uninorm/decomposition.c: New file.
36611         * modules/uninorm/decomposition: New file.
36612
36613         New module 'uninorm/decomposition-table'.
36614         * lib/uninorm/decomposition-table.h: New file.
36615         * lib/uninorm/decomposition-table.c: New file.
36616         * lib/uninorm/decomposition-table1.h: New file, generated by
36617         gen-uni-tables.
36618         * lib/uninorm/decomposition-table2.h: New file, generated by
36619         gen-uni-tables.
36620         * modules/uninorm/decomposition-table: New file.
36621
36622         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36623         (UC_DECOMP_*): New enumeration items.
36624         (get_decomposition): New function.
36625         (struct decomp_table): New type.
36626         (output_decomposition, output_decomposition_tables): New functions.
36627         (unicode_composition_exclusions): New variable.
36628         (fill_composition_exclusions, debug_output_composition_tables): New
36629         functions.
36630         (main): Accept one more argument. Invoke fill_composition_exclusions.
36631         Output decomposition and composition tables.
36632
36633         New module 'uninorm/base'.
36634         * lib/uninorm.h: New file.
36635         * lib/unictype.h: Update comment.
36636         * modules/uninorm/base: New file.
36637
36638 2009-02-21  David Lutterkort  <lutter@redhat.com>
36639
36640         Tests for module 'safe-alloc'.
36641         * tests/test-safe-alloc.c: New file.
36642         * modules/safe-alloc-tests: New file.
36643
36644         New module 'safe-alloc'.
36645         * lib/safe-alloc.h: New file.
36646         * lib/safe-alloc.c: New file.
36647         * m4/safe-alloc.m4: New file.
36648         * modules/safe-alloc: New file.
36649         * doc/safe-alloc.texi: New file.
36650         * doc/gnulib.texi: Include it.
36651         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36652         safe-alloc.
36653
36654 2009-02-18  Bruno Haible  <bruno@clisp.org>
36655
36656         Fix link error on non-glibc systems.
36657         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36658         variable.
36659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36660
36661 2009-02-18  Jim Meyering  <meyering@redhat.com>
36662
36663         fts: avoid used-uninitialized error due to recent change
36664         * lib/fts.c (fts_read): Guard uses of the new member,
36665         parent->fts_n_dirs_remaining, since it's not relevant for
36666         the parent of a directory specified on the command-line.
36667
36668 2009-02-17  James Youngman  <jay@gnu.org>
36669             Bruno Haible  <bruno@clisp.org>
36670
36671         * m4/include_next.m4: Reformulate comment.
36672
36673 2009-02-16  Jim Meyering  <meyering@redhat.com>
36674
36675         fts: add #if guards so that the fts_lgpl module still builds
36676         * lib/fts.c: Guard just-added hash-table-using parts with
36677         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36678         Reported by Simon Josefsson.
36679
36680 2009-02-15  Bruno Haible  <bruno@clisp.org>
36681
36682         * modules/array-mergesort-tests: New file.
36683         * tests/test-array-mergesort.c: New file.
36684
36685         New module 'array-mergesort'.
36686         * modules/array-mergesort: New file.
36687         * lib/array-mergesort.h: New file.
36688
36689 2009-02-15  Bruno Haible  <bruno@clisp.org>
36690
36691         Fix 2009-02-07 commit.
36692         * lib/gen-uni-tables.c (output_predicate, output_category,
36693         output_combclass, output_bidi_category, output_decimal_digit,
36694         output_digit, output_numeric, output_mirror, output_scripts,
36695         output_ident_category, output_simple_mapping): Fix format directives.
36696         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36697
36698 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36699
36700         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36701         fixes are available from IBM.
36702
36703 2009-02-13  Jim Meyering  <meyering@redhat.com>
36704
36705         fts: arrange not to stat non-directories in more cases
36706         This makes GNU find (when it doesn't need to stat each file)
36707         *much* more efficient at traversing reiserfs file systems.
36708         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36709         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36710         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36711         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36712         (leaf_optimization_applies): New function.
36713         (LCO_hash, LCO_compare): New helper functions.
36714         (link_count_optimize_ok): New function.
36715         (fts_stat): Initialize new member (if dir).
36716         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36717         we've just stat'ed a directory.  Skip the stat call when possible.
36718         ---
36719         Note this AFS-related exchange:
36720         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36721         and note find's pioctl call in find/fstype.c.
36722         But that is necessary only if you want to enable the
36723         optimization for AFS, and for now, I don't.
36724
36725         fts: move a function definition "up" (no semantic change)
36726         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36727         "up" to precede upcoming use of a related function.
36728
36729 2009-02-11  Jim Meyering  <meyering@redhat.com>
36730
36731         fts: correct internal computation of nlinks (optimization-related)
36732         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36733         whether the current entry is a directory, so don't test it.
36734
36735 2009-02-10  Bruno Haible  <bruno@clisp.org>
36736
36737         Tests for module 'uniwbrk/ulc-wordbreaks'.
36738         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36739         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36740         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36741
36742         Tests for module 'uniwbrk/u32-wordbreaks'.
36743         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36744         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36745
36746         Tests for module 'uniwbrk/u16-wordbreaks'.
36747         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36748         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36749
36750         Tests for module 'uniwbrk/u8-wordbreaks'.
36751         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36752         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36753
36754 2009-02-10  Bruno Haible  <bruno@clisp.org>
36755
36756         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36757         property.
36758         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36759         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36760         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36761
36762 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36763
36764         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36765         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36766
36767 2009-02-10  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36770         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36771         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36772         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36773         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36774         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36775
36776 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36777
36778         * lib/sockets.h (gl_fd_to_handle): New function.
36779
36780         * tests/test-sockets.c: Call gl_fd_to_handle.
36781
36782 2009-02-09  Bruno Haible  <bruno@clisp.org>
36783
36784         * doc/havelib.texi: Document the conventions on bi-arch systems.
36785
36786 2009-02-08  Bruno Haible  <bruno@clisp.org>
36787
36788         Document the AC_LIB_LINKFLAGS macro.
36789         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36790         * doc/gnulib.texi: Include it.
36791
36792 2009-02-08  Bruno Haible  <bruno@clisp.org>
36793
36794         Fix wrong order of sections, compared to TOC.
36795         * doc/gnulib.texi: Include relocatable-maint.texi after the
36796         "Regular expressions" node, not before.
36797
36798 2009-02-08  Bruno Haible  <bruno@clisp.org>
36799
36800         Tests for module 'unicase/totitle'.
36801         * modules/unicase/totitle-tests: New file.
36802
36803         Tests for module 'unicase/tolower'.
36804         * modules/unicase/tolower-tests: New file.
36805
36806         Tests for module 'unicase/toupper'.
36807         * modules/unicase/toupper-tests: New file.
36808         * tests/unicase/test-mapping-part1.h: New file.
36809         * tests/unicase/test-mapping-part2.h: New file.
36810
36811         New module 'unicase/totitle'.
36812         * modules/unicase/totitle: New file.
36813         * lib/unicase/totitle.c: New file.
36814
36815         New module 'unicase/tolower'.
36816         * modules/unicase/tolower: New file.
36817         * lib/unicase/tolower.c: New file.
36818
36819         New module 'unicase/toupper'.
36820         * modules/unicase/toupper: New file.
36821         * lib/unicase/toupper.c: New file.
36822         * lib/unicase/simple-mapping.h: New file.
36823
36824         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36825         (mapping_table): New structure.
36826         (output_simple_mapping): New function.
36827         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36828         * modules/gen-uni-tables (Description): Update.
36829         * lib/unicase/toupper.h: New file, automatically generated by
36830         gen-uni-tables.
36831         * lib/unicase/tolower.h: New file, automatically generated by
36832         gen-uni-tables.
36833         * lib/unicase/totitle.h: New file, automatically generated by
36834         gen-uni-tables.
36835         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36836         gen-uni-tables.
36837         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36838         gen-uni-tables.
36839         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36840         gen-uni-tables.
36841
36842         New module 'unicase/base'.
36843         * modules/unicase/base: New file.
36844         * lib/unicase.h: New file.
36845
36846 2009-02-08  Bruno Haible  <bruno@clisp.org>
36847
36848         New module 'uniwbrk/ulc-wordbreaks'.
36849         * modules/uniwbrk/ulc-wordbreaks: New file.
36850         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36851
36852         New module 'uniwbrk/u32-wordbreaks'.
36853         * modules/uniwbrk/u32-wordbreaks: New file.
36854         * lib/uniwbrk/u32-wordbreaks.c: New file.
36855
36856         New module 'uniwbrk/u16-wordbreaks'.
36857         * modules/uniwbrk/u16-wordbreaks: New file.
36858         * lib/uniwbrk/u16-wordbreaks.c: New file.
36859
36860         New module 'uniwbrk/u8-wordbreaks'.
36861         * modules/uniwbrk/u8-wordbreaks: New file.
36862         * lib/uniwbrk/u8-wordbreaks.c: New file.
36863         * lib/uniwbrk/u-wordbreaks.h: New file.
36864
36865         New module 'uniwbrk/table'.
36866         * modules/uniwbrk/table: New file.
36867         * lib/uniwbrk/wbrktable.h: New file.
36868         * lib/uniwbrk/wbrktable.c: New file.
36869
36870         New module 'uniwbrk/wordbreak-property'.
36871         * modules/uniwbrk/wordbreak-property: New file.
36872         * lib/uniwbrk/wordbreak-property.c: New file.
36873
36874         * lib/gen-uni-tables.c (WBP_*): New enum items.
36875         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36876         (unicode_org_wbp): New variable.
36877         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36878         New functions.
36879         (wbp_table): New structure.
36880         (output_wbp, output_wbrk_tables): New functions.
36881         (main): Accept additional argument. Invoke fill_org_wbp,
36882         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36883         output_wbrk_tables.
36884         * modules/gen-uni-tables (Description): Update.
36885         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36886         gen-uni-tables.
36887
36888         New module 'uniwbrk/base'.
36889         * modules/uniwbrk/base: New file.
36890         * lib/uniwbrk.h: New file.
36891
36892 2009-02-08  Bruno Haible  <bruno@clisp.org>
36893
36894         Update to Unicode 5.1.0.
36895         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36896         U+2185..U+2188.
36897         (is_property_default_ignorable_code_point): Don't include characters
36898         of category Cc or Cs and not-a-characters.
36899         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36900         U+0D79, U+109E, U+109F, U+A60C.
36901         * lib/unictype/bidi_of.h: Regenerated.
36902         * lib/unictype/blocks.h: Regenerated.
36903         * lib/unictype/categ_C.h: Regenerated.
36904         * lib/unictype/categ_Cf.h: Regenerated.
36905         * lib/unictype/categ_Cn.h: Regenerated.
36906         * lib/unictype/categ_L.h: Regenerated.
36907         * lib/unictype/categ_Ll.h: Regenerated.
36908         * lib/unictype/categ_Lm.h: Regenerated.
36909         * lib/unictype/categ_Lo.h: Regenerated.
36910         * lib/unictype/categ_Lu.h: Regenerated.
36911         * lib/unictype/categ_M.h: Regenerated.
36912         * lib/unictype/categ_Mc.h: Regenerated.
36913         * lib/unictype/categ_Me.h: Regenerated.
36914         * lib/unictype/categ_Mn.h: Regenerated.
36915         * lib/unictype/categ_N.h: Regenerated.
36916         * lib/unictype/categ_Nd.h: Regenerated.
36917         * lib/unictype/categ_Nl.h: Regenerated.
36918         * lib/unictype/categ_No.h: Regenerated.
36919         * lib/unictype/categ_P.h: Regenerated.
36920         * lib/unictype/categ_Pd.h: Regenerated.
36921         * lib/unictype/categ_Pe.h: Regenerated.
36922         * lib/unictype/categ_Pf.h: Regenerated.
36923         * lib/unictype/categ_Pi.h: Regenerated.
36924         * lib/unictype/categ_Po.h: Regenerated.
36925         * lib/unictype/categ_Ps.h: Regenerated.
36926         * lib/unictype/categ_S.h: Regenerated.
36927         * lib/unictype/categ_Sk.h: Regenerated.
36928         * lib/unictype/categ_Sm.h: Regenerated.
36929         * lib/unictype/categ_So.h: Regenerated.
36930         * lib/unictype/categ_of.h: Regenerated.
36931         * lib/unictype/combining.h: Regenerated.
36932         * lib/unictype/ctype_alnum.h: Regenerated.
36933         * lib/unictype/ctype_alpha.h: Regenerated.
36934         * lib/unictype/ctype_graph.h: Regenerated.
36935         * lib/unictype/ctype_lower.h: Regenerated.
36936         * lib/unictype/ctype_print.h: Regenerated.
36937         * lib/unictype/ctype_punct.h: Regenerated.
36938         * lib/unictype/ctype_upper.h: Regenerated.
36939         * lib/unictype/decdigit.h: Regenerated.
36940         * lib/unictype/digit.h: Regenerated.
36941         * lib/unictype/mirror.h: Regenerated.
36942         * lib/unictype/numeric.h: Regenerated.
36943         * lib/unictype/pr_alphabetic.h: Regenerated.
36944         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36945         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36946         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36947         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36948         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36949         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36950         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36951         * lib/unictype/pr_combining.h: Regenerated.
36952         * lib/unictype/pr_dash.h: Regenerated.
36953         * lib/unictype/pr_decimal_digit.h: Regenerated.
36954         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36955         * lib/unictype/pr_deprecated.h: Regenerated.
36956         * lib/unictype/pr_diacritic.h: Regenerated.
36957         * lib/unictype/pr_extender.h: Regenerated.
36958         * lib/unictype/pr_format_control.h: Regenerated.
36959         * lib/unictype/pr_grapheme_base.h: Regenerated.
36960         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36961         * lib/unictype/pr_grapheme_link.h: Regenerated.
36962         * lib/unictype/pr_id_continue.h: Regenerated.
36963         * lib/unictype/pr_id_start.h: Regenerated.
36964         * lib/unictype/pr_ideographic.h: Regenerated.
36965         * lib/unictype/pr_ignorable_control.h: Regenerated.
36966         * lib/unictype/pr_lowercase.h: Regenerated.
36967         * lib/unictype/pr_math.h: Regenerated.
36968         * lib/unictype/pr_numeric.h: Regenerated.
36969         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36970         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36971         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36972         * lib/unictype/pr_other_id_continue.h: Regenerated.
36973         * lib/unictype/pr_other_lowercase.h: Regenerated.
36974         * lib/unictype/pr_other_math.h: Regenerated.
36975         * lib/unictype/pr_punctuation.h: Regenerated.
36976         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36977         * lib/unictype/pr_soft_dotted.h: Regenerated.
36978         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36979         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36980         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36981         * lib/unictype/pr_uppercase.h: Regenerated.
36982         * lib/unictype/pr_xid_continue.h: Regenerated.
36983         * lib/unictype/pr_xid_start.h: Regenerated.
36984         * lib/unictype/pr_zero_width.h: Regenerated.
36985         * lib/unictype/scripts.h: Regenerated.
36986         * lib/unictype/scripts_byname.gperf: Regenerated.
36987         * lib/unictype/sy_java_ident.h: Regenerated.
36988         * lib/unilbrk/lbrkprop1.h: Regenerated.
36989         * lib/unilbrk/lbrkprop2.h: Regenerated.
36990         * tests/unictype/test-categ_C.c: Regenerated.
36991         * tests/unictype/test-categ_Cf.c: Regenerated.
36992         * tests/unictype/test-categ_Cn.c: Regenerated.
36993         * tests/unictype/test-categ_L.c: Regenerated.
36994         * tests/unictype/test-categ_Ll.c: Regenerated.
36995         * tests/unictype/test-categ_Lm.c: Regenerated.
36996         * tests/unictype/test-categ_Lo.c: Regenerated.
36997         * tests/unictype/test-categ_Lu.c: Regenerated.
36998         * tests/unictype/test-categ_M.c: Regenerated.
36999         * tests/unictype/test-categ_Mc.c: Regenerated.
37000         * tests/unictype/test-categ_Me.c: Regenerated.
37001         * tests/unictype/test-categ_Mn.c: Regenerated.
37002         * tests/unictype/test-categ_N.c: Regenerated.
37003         * tests/unictype/test-categ_Nd.c: Regenerated.
37004         * tests/unictype/test-categ_Nl.c: Regenerated.
37005         * tests/unictype/test-categ_No.c: Regenerated.
37006         * tests/unictype/test-categ_P.c: Regenerated.
37007         * tests/unictype/test-categ_Pd.c: Regenerated.
37008         * tests/unictype/test-categ_Pe.c: Regenerated.
37009         * tests/unictype/test-categ_Pf.c: Regenerated.
37010         * tests/unictype/test-categ_Pi.c: Regenerated.
37011         * tests/unictype/test-categ_Po.c: Regenerated.
37012         * tests/unictype/test-categ_Ps.c: Regenerated.
37013         * tests/unictype/test-categ_S.c: Regenerated.
37014         * tests/unictype/test-categ_Sk.c: Regenerated.
37015         * tests/unictype/test-categ_Sm.c: Regenerated.
37016         * tests/unictype/test-categ_So.c: Regenerated.
37017         * tests/unictype/test-ctype_alnum.c: Regenerated.
37018         * tests/unictype/test-ctype_alpha.c: Regenerated.
37019         * tests/unictype/test-ctype_graph.c: Regenerated.
37020         * tests/unictype/test-ctype_lower.c: Regenerated.
37021         * tests/unictype/test-ctype_print.c: Regenerated.
37022         * tests/unictype/test-ctype_punct.c: Regenerated.
37023         * tests/unictype/test-ctype_upper.c: Regenerated.
37024         * tests/unictype/test-decdigit.h: Regenerated.
37025         * tests/unictype/test-digit.h: Regenerated.
37026         * tests/unictype/test-numeric.h: Regenerated.
37027         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37028         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37029         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37030         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37032         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37033         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37034         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37035         * tests/unictype/test-pr_combining.c: Regenerated.
37036         * tests/unictype/test-pr_dash.c: Regenerated.
37037         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37038         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37039         * tests/unictype/test-pr_deprecated.c: Regenerated.
37040         * tests/unictype/test-pr_diacritic.c: Regenerated.
37041         * tests/unictype/test-pr_extender.c: Regenerated.
37042         * tests/unictype/test-pr_format_control.c: Regenerated.
37043         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37044         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37045         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37046         * tests/unictype/test-pr_id_continue.c: Regenerated.
37047         * tests/unictype/test-pr_id_start.c: Regenerated.
37048         * tests/unictype/test-pr_ideographic.c: Regenerated.
37049         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37050         * tests/unictype/test-pr_lowercase.c: Regenerated.
37051         * tests/unictype/test-pr_math.c: Regenerated.
37052         * tests/unictype/test-pr_numeric.c: Regenerated.
37053         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37054         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37055         Regenerated.
37056         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37057         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37058         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37059         * tests/unictype/test-pr_other_math.c: Regenerated.
37060         * tests/unictype/test-pr_punctuation.c: Regenerated.
37061         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37062         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37063         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37064         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37065         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37066         * tests/unictype/test-pr_uppercase.c: Regenerated.
37067         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37068         * tests/unictype/test-pr_xid_start.c: Regenerated.
37069         * tests/unictype/test-pr_zero_width.c: Regenerated.
37070
37071         Update to Unicode 5.1.0.
37072         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37073         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37074         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37075         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37076         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37077         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37078         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37079         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37080         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37081         (nonspacing_table_ind): Update.
37082         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37083
37084         Update to Unicode 5.1.0.
37085         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37086         code transform.
37087         * lib/uniname/uniname.c (unicode_character_name,
37088         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37089         * lib/uniname/uninames.h: Regenerated.
37090         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37091
37092 2009-02-07  Bruno Haible  <bruno@clisp.org>
37093
37094         Merge gen-ctype and gen-lbrk into a single program.
37095         * lib/gen-uni-tables.c: New file, incorporating
37096         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37097         Add directory prefixes to the names of the generated files.
37098         * lib/unictype/gen-ctype.c: Remove file.
37099         * lib/unilbrk/gen-lbrk.c: Remove file.
37100         * modules/gen-uni-tables: New file.
37101         * modules/unictype/gen-ctype: Remove file.
37102         * modules/unilbrk/gen-lbrk: Remove file.
37103
37104 2009-02-07  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37107
37108         New module 'unistr/u32-strcoll'.
37109         * modules/unistr/u32-strcoll: New file.
37110         * lib/unistr/u32-strcoll.c: New file.
37111
37112         New module 'unistr/u16-strcoll'.
37113         * modules/unistr/u16-strcoll: New file.
37114         * lib/unistr/u16-strcoll.c: New file.
37115
37116         New module 'unistr/u8-strcoll'.
37117         * modules/unistr/u8-strcoll: New file.
37118         * lib/unistr/u8-strcoll.c: New file.
37119         * lib/unistr/u-strcoll.h: New file.
37120
37121 2009-02-07  Bruno Haible  <bruno@clisp.org>
37122
37123         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37124         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37125         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37126         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37127         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37128         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37129
37130 2009-02-07  Bruno Haible  <bruno@clisp.org>
37131
37132         Make 64-bit clean.
37133         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37134         output_combclass, output_bidi_category, output_decimal_digit,
37135         output_digit, output_numeric, output_mirror, output_scripts,
37136         output_ident_category): Use proper width specifier in format strings.
37137
37138 2009-02-07  Bruno Haible  <bruno@clisp.org>
37139
37140         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37141         failure behaviour.
37142
37143 2009-02-07  Jim Meyering  <meyering@redhat.com>
37144
37145         regex: avoid compilation failure with upcoming gcc-4.4
37146         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37147         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37148         "... error: integer overflow in preprocessor expression".
37149
37150 2009-02-05  Ben Pfaff  <blp@gnu.org>
37151
37152         Fix link errors on Windows when close module is used.
37153         * modules/close: Add $(LIB_CLOSE) to Link section.
37154         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37155         $(LIB_CLOSE) on Windows.
37156
37157 2009-02-05  Jim Meyering  <meyering@redhat.com>
37158
37159         still avoid unused-parameter warnings, but do it cleanly
37160         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37161         (get_fs_usage): Cast to void instead.
37162         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37163         (dev_from_mount_options, read_file_system_list): Cast to void.
37164         Prompted by Bruno Haible.
37165
37166 2009-02-04  Jim Meyering  <meyering@redhat.com>
37167
37168         fsusage.c: correct copyright year
37169         * lib/fsusage.c: Reflect year in which the change is pushed into
37170
37171         avoid misc. warnings
37172         * lib/fsusage.c (UNUSED_PARAM): Define.
37173         (get_fs_usage): Mark parameter "disk" as unused.
37174         * lib/getugroups.c (getgrent): Use "void" in prototype.
37175         * lib/mountlist.c: Mark unused parameters.
37176         (read_file_system_list): Declare a local with "const".
37177         * lib/nanosleep.c (getnow): Declare static.
37178         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37179
37180         dirfd: set errno upon failure
37181         * lib/dirfd.c: Include <errno.h>.
37182         Set errno to ENOTSUP when returning -1.
37183         * modules/dirfd (Depends-on): Add errno.
37184         Suggested by John Kodis <kodis@comcast.net>.
37185
37186 2009-02-01  Bruno Haible  <bruno@clisp.org>
37187
37188         Don't assume sizeof (long) >= sizeof (void *).
37189         * lib/memcmp.c: Include stdint.h.
37190         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37191         srcp2 to 'const byte *'.
37192         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37193         types to uintptr_t.
37194         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37195         * modules/memcmp (Depends-on): Add stdint.
37196         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37197
37198 2009-01-30  Eric Blake  <ebb9@byu.net>
37199
37200         fix more require-before-expand issues
37201         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37202         expand, AC_PROG_AWK.
37203         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37204
37205 2009-01-28  Eric Blake  <ebb9@byu.net>
37206
37207         version-etc: use consistent URL formatting
37208         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37209         Improve formatting.  Use fputs for string without %.
37210
37211 2009-01-28  Jim Meyering  <meyering@redhat.com>
37212
37213         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37214         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37215         "underquoted definition of NAME" from autoconf-2.59.
37216
37217 2009-01-28  Bruno Haible  <bruno@clisp.org>
37218
37219         * doc/gnulib.texi: Add "Obsolete modules" to index.
37220
37221 2009-01-28  Jim Meyering  <meyering@redhat.com>
37222
37223         useless-if-before-free: recognize more variants
37224         * build-aux/useless-if-before-free: Also recognize e.g.,
37225         if (NULL != p) free (p);
37226
37227 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37228
37229         test-getaddrinfo: skip (don't fail) this test when there's no network
37230         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37231         on the presumption that it means you lack network access.
37232
37233 2009-01-26  Jim Meyering  <meyering@redhat.com>
37234
37235         fflush: avoid warnings on modern systems
37236         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37237         pos and result, into scopes where they're used.
37238
37239 2009-01-26  Eric Blake  <ebb9@byu.net>
37240
37241         Silence warning reintroduced by recent extensions patch.
37242         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37243         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37244         autoconf.
37245
37246         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37247         * m4/00gnulib.m4: New file.
37248         * gnulib-tool (func_get_filelist): Always use it.
37249         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37250         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37251
37252 2009-01-25  Bruno Haible  <bruno@clisp.org>
37253
37254         Make test-quotearg work on MacOS X and AIX.
37255         * tests/test-quotearg.sh: New file.
37256         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37257         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37258         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37259         include <libintl.h>.
37260         (fake_locale): Remove variable.
37261         (gettext, dgettext, dcgettext): Remove functions.
37262         (main): Instead of setting a fake locale, set a real locale. Call
37263         textdomain and bindtextdomain.
37264         * modules/quotearg-tests (Files): Add the new files.
37265         (Depends-on): Add gettext, setenv, unsetenv.
37266         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37267         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37268         Augment TESTS_ENVIRONMENT.
37269
37270 2009-01-25  Bruno Haible  <bruno@clisp.org>
37271
37272         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37273         fr_FR.ISO8859-1 locale on MacOS X.
37274         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37275         ja_JP.eucJP locale on MacOS X.
37276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37277         zh_CN.GB18030 locale on MacOS X.
37278
37279 2009-01-25  Bruno Haible  <bruno@clisp.org>
37280
37281         Avoid link errors on MacOS X 10.3.
37282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37284
37285 2009-01-25  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37288         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37289         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37290         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37291         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37292         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37293         posix_spawnattr_init, posix_spawnattr_setsigmask,
37294         posix_spawnattr_setflags, posix_spawnattr_destroy.
37295
37296         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37297         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37298         * modules/execute (Files): Remove m4/posix_spawn.m4.
37299         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37300         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37301         posix_spawnattr_init, posix_spawnattr_setsigmask,
37302         posix_spawnattr_setflags, posix_spawnattr_destroy.
37303
37304 2009-01-25  Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/glthread/threadlib.c: Include <stdlib.h>.
37307
37308 2009-01-25  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/glthread/threadlib.c (dummy): New declaration.
37311
37312 2009-01-25  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37315         multibyte characters also for the GB18030 encoding. Don't crash when
37316         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37317
37318 2009-01-25  Bruno Haible  <bruno@clisp.org>
37319
37320         Avoid redefining 'struct random_data' on OSF/1 5.1.
37321         * lib/stdlib.in.h: Include <random.h> if it exists.
37322         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37323         HAVE_RANDOM_H. Include <random.h> when testing whether
37324         'struct random_data' exists.
37325         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37326
37327 2009-01-25  Bruno Haible  <bruno@clisp.org>
37328
37329         Don't install charset.alias on MacOS X >= 10.3.
37330         * lib/localcharset.c (DARWIN7): New macro.
37331         (get_charset_aliases): Hardcode the result for Darwin7.
37332         * modules/localcharset (install-exec-local): Don't install
37333         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37334
37335 2009-01-25  Bruno Haible  <bruno@clisp.org>
37336
37337         Don't install charset.alias on mingw and Cygwin.
37338         * modules/localcharset (install-exec-local): Don't install
37339         charset.alias on mingw and Cygwin, if the file does not yet exist.
37340         The result for these platforms is hardcoded in localcharset.c.
37341
37342 2009-01-25  Bruno Haible  <bruno@clisp.org>
37343
37344         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37346         before requiring AC_USE_SYSTEM_EXTENSIONS.
37347
37348 2009-01-25  Jim Meyering  <meyering@redhat.com>
37349
37350         c-strtod: avoid warnings
37351         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37352         "assignment discards qualifiers from pointer target type" warnings.
37353
37354 2009-01-24  Bruno Haible  <bruno@clisp.org>
37355
37356         Add support for non-UTF-8 locales on MacOS X.
37357         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37358         canonical encodings. For Darwin 7 and newer, don't map traditional
37359         encodings to UTF-8.
37360         Reported by Vincent Lefevre <vincent@vinc17.org>
37361         at <http://savannah.gnu.org/bugs/?25235>.
37362
37363 2009-01-24  Bruno Haible  <bruno@clisp.org>
37364
37365         * doc/gnulib.texi (Obsolete modules): New section.
37366         Reported by Mike Frysinger <vapier@gentoo.org>.
37367
37368 2009-01-24  Bruno Haible  <bruno@clisp.org>
37369
37370         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37371         (%.dvi): New rule.
37372
37373 2009-01-24  Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37376         Reported by Eric Blake.
37377
37378 2009-01-24  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37381         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37382         Reported by Gary V. Vaughan <gary@gnu.org>.
37383
37384 2009-01-24  Bruno Haible  <bruno@clisp.org>
37385
37386         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37387
37388 2009-01-23  Bruno Haible  <bruno@clisp.org>
37389
37390         Make c-strtod, c-strtold usable in libraries.
37391         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37392         (C_STRTOD): Call strdup instead of xstrdup.
37393         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37394         * modules/c-strtold (Depends-on): Likewise.
37395         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37396         * NEWS: Mention the change.
37397         Reported by Michael Gold <mgold@ncf.ca>.
37398
37399 2009-01-23  Jim Meyering  <meyering@redhat.com>
37400
37401         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37402         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37403         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37404
37405 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37406
37407         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37408         GNU CoreUtils.
37409         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37410         * modules/version-etc (Description): Update.
37411
37412 2009-01-22  Bruno Haible  <bruno@clisp.org>
37413
37414         Cache the C locale object.
37415         * lib/c-strtod.c (c_locale_cache): New variable.
37416         (c_locale): New function.
37417         (C_STRTOD): Use it, and don't call freelocale.
37418         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37419         Suggested by Paolo Bonzini.
37420
37421 2009-01-21  Bruno Haible  <bruno@clisp.org>
37422
37423         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37424         conditions other than overflow.
37425
37426 2009-01-21  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/c-strtod.c: Include errno.h.
37429         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37430         value from STRTOD_L and STRTOD.
37431
37432 2009-01-21  Bruno Haible  <bruno@clisp.org>
37433         and Jim Meyering  <meyering@redhat.com>
37434
37435         nanosleep: skip configure test (fail it) for apple universal builds
37436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37437         universal builds, assume that nanosleep does not work.
37438         * modules/nanosleep (Depends-on): Add multiarch.
37439
37440         mktime: skip configure test (fail it) for apple universal builds
37441         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37442         universal builds, assume that mktime does not work.
37443         * modules/mktime (Depends-on): Add multiarch.
37444
37445 2009-01-21  Eric Blake  <ebb9@byu.net>
37446
37447         multiarch: avoid expand-before-require warning
37448         * modules/multiarch (configure.ac): Require, rather than expand,
37449         gl_MULTIARCH.
37450         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37451         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37452         enforce that all clients require it.  Partial reversion of
37453         2008-12-29 patch.
37454
37455         error: avoid expand-before-require warning
37456         * modules/errno (configure.ac): Require, rather than expand,
37457         gl_HEADER_ERRNO_H.
37458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37459         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37460         enforce that all clients require it.
37461
37462         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37463         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37464         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37465         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37466
37467 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37468
37469         Revert:
37470         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37471
37472         regex: do not depend on obsolete modules.
37473         * modules/regex: Remove memcmp and memmove.
37474
37475 2009-01-20  Bruno Haible  <bruno@clisp.org>
37476
37477         Make the 'link' module link on Windows NT 4.
37478         * lib/link.c (_WIN32_WINNT): Don't define.
37479         (CreateHardLinkFuncType): New type.
37480         (CreateHardLinkFunc, initialized): New variables.
37481         (initialize): New function.
37482         (link): Invoke CreateHardLink indirectly through the function pointer.
37483
37484 2009-01-20  Bruno Haible  <bruno@clisp.org>
37485
37486         Fix compilation failure on mingw.
37487         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37488
37489 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37490
37491         * doc/c-strtod.texi: Mention a couple of restrictions.
37492
37493 2009-01-20  Jim Meyering  <meyering@redhat.com>
37494
37495         gettimeofday: move more declarations out of functions
37496         * lib/gettimeofday.c: Move extern declarations of tzset and
37497         gmtime out of containing functions.  Prompted by Bruno Haible.
37498
37499 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37500
37501         regex: do not depend on obsolete modules.
37502         * modules/regex: Remove memcmp and memmove.
37503
37504 2009-01-19  Bruno Haible  <bruno@clisp.org>
37505
37506         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37507         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37508         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37509         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37510         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37511
37512 2009-01-19  Bruno Haible  <bruno@clisp.org>
37513
37514         * tests/test-link.c: Include <errno.h>.
37515         (main): Exit with code 77 when a hard link cannot be created due to
37516         the file system.
37517         * tests/test-link.sh: Skip test when a hard link cannot be created due
37518         to the file system.
37519         Suggested by Eric Blake.
37520
37521 2009-01-19  Martin Lambers  <marlam@marlam.de>
37522
37523         * modules/link-tests: New file.
37524         * tests/test-link.sh: New file.
37525         * tests/test-link.c: New file.
37526
37527 2009-01-19  Eric Blake  <ebb9@byu.net>
37528
37529         doc: mention another function added in cygwin 1.7.0
37530         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37531         Another new function in cygwin 1.7.
37532
37533 2009-01-19  Bruno Haible  <bruno@clisp.org>
37534
37535         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37536         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37537         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37538         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37539         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37540         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37541         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37542         * m4/md4.m4 (gl_MD4): Likewise.
37543         * m4/md5.m4 (gl_MD5): Likewise.
37544         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37545         * m4/sha1.m4 (gl_SHA1): Likewise.
37546         * m4/sha256.m4 (gl_SHA256): Likewise.
37547         * m4/sha512.m4 (gl_SHA512): Likewise.
37548
37549 2009-01-19  Bruno Haible  <bruno@clisp.org>
37550
37551         * modules/uniname/uniname-tests (Depends-on): Add progname.
37552         * tests/uniname/test-uninames.c: Include progname.h.
37553         (main): Call set_program_name.
37554
37555         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37556         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37557         (main): Call set_program_name.
37558
37559         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37560         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37561         (main): Call set_program_name.
37562
37563         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37564         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37565         (main): Call set_program_name.
37566
37567         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37568         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37569         (main): Call set_program_name.
37570
37571         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37572         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37573         (main): Call set_program_name.
37574
37575         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37576         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37577         (main): Call set_program_name.
37578
37579         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37580         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37581         (main): Call set_program_name.
37582
37583         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37584         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37585         (main): Call set_program_name.
37586
37587 2009-01-19  Eric Blake  <ebb9@byu.net>
37588
37589         test-unistd: test previous patch
37590         * tests/test-unistd.c: Test *_FILENO macros.
37591
37592         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37593         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37594         Guarantee a definition.
37595         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37596         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37597         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37598         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37599         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37600         Likewise.
37601         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37602         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37603         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37604         Likewise.
37605         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37606         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37607         (STDERR_FILENO): Likewise.
37608         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37609         (STDERR_FILENO): Likewise.
37610         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37611         (STDERR_FILENO): Likewise.
37612         Reported by Elbert Pol.
37613
37614 2009-01-19  Eric Blake  <ebb9@byu.net>
37615
37616         doc: mention more functions added in cygwin 1.7.0
37617         * doc/posix-functions/abort.texi (abort): Update wording related
37618         to cygwin.
37619         * doc/posix-functions/daylight.texi (daylight): Likewise.
37620         * doc/posix-functions/optarg.texi (optarg): Likewise.
37621         * doc/posix-functions/optarg.texi (opterr): Likewise.
37622         * doc/posix-functions/optarg.texi (optind): Likewise.
37623         * doc/posix-functions/optarg.texi (optopt): Likewise.
37624         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37625         worked in 1.5.x, and was withdrawn in 1.7.
37626         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37627         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37628         cygwin versions.
37629         * doc/posix-functions/perror.texi (perror): Likewise.
37630         * doc/posix-functions/printf.texi (printf): Likewise.
37631         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37632         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37633         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37634         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37635         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37636         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37637         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37638         Likewise.
37639         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37640         Likewise.
37641         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37642         this function.
37643         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37644         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37645         Likewise.
37646         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37647         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37648         * doc/posix-functions/confstr.texi (confstr): Likewise.
37649         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37650         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37651         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37652         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37653         * doc/posix-functions/fputws.texi (fputws): Likewise.
37654         * doc/posix-functions/fwide.texi (fwide): Likewise.
37655         * doc/posix-functions/getwc.texi (getwc): Likewise.
37656         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37657         * doc/posix-functions/putwc.texi (putwc): Likewise.
37658         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37659         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37660         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37661         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37662         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37663         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37664         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37665         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37666         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37667         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37668         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37669
37670 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37671
37672         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37673         * lib/ioctl.c: Include <sys/ioctl.h>.
37674
37675 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37676
37677         * modules/getdate-tests (Depends-on): Add progname.
37678         * tests/test-getdate.c: Use progname module, to avoid link errors
37679         on non-glibc systems.
37680
37681 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37682
37683         * modules/filenamecat-tests (Depends-on): Add progname.
37684         * modules/fstrcmp-tests (Depends-on): Likewise.
37685
37686         * tests/test-filenamecat.c: Use progname module, to avoid link
37687         errors on non-glibc systems.
37688         * tests/test-fstrcmp.c: Likewise.
37689
37690 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37691
37692         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37693         * lib/gettimeofday.c: Move extern declaration out of function.
37694
37695 2009-01-18  Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37698         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37699         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37700
37701 2009-01-18  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/strftime.c (MEMPCPY): Remove unused macro.
37704         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37705
37706 2009-01-18  Martin Lambers  <marlam@marlam.de>
37707
37708         New module 'link'.
37709         * lib/unistd.in.h (link): New declaration.
37710         * lib/link.c: New file.
37711         * m4/link.m4: New file.
37712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37713         HAVE_LINK.
37714         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37715         * modules/link: New file.
37716         * doc/posix-functions/link.texi: Mention the new module.
37717
37718 2009-01-18  Bruno Haible  <bruno@clisp.org>
37719
37720         * tests/test-avltree_list.c (main): Call set_program_name.
37721         * tests/test-avltree_oset.c (main): Likewise.
37722         * tests/test-obstack-printf.c: Include progname.h.
37723         (main): Call set_program_name.
37724         * tests/test-quotearg.c: Include progname.h.
37725         (main): Call set_program_name.
37726         * tests/test-xmemdup0.c: Include progname.h.
37727         (main): Call set_program_name.
37728
37729 2009-01-18  Bruno Haible  <bruno@clisp.org>
37730
37731         New module 'alphasort'.
37732         * lib/dirent.in.h (alphasort): New declaration.
37733         * lib/alphasort.c: New file, from glibc with modifications.
37734         * m4/alphasort.m4: New file.
37735         * modules/alphasort: New file.
37736         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37737         HAVE_ALPHASORT.
37738         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37739         HAVE_ALPHASORT.
37740         * doc/posix-functions/alphasort.texi: Mention the new module and the
37741         portability problems.
37742
37743 2009-01-18  Bruno Haible  <bruno@clisp.org>
37744
37745         New module 'scandir'.
37746         * lib/dirent.in.h (scandir): New declaration.
37747         * lib/scandir.c: New file, from glibc with modifications.
37748         * m4/scandir.m4: New file.
37749         * modules/scandir: New file.
37750         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37751         HAVE_SCANDIR.
37752         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37753         HAVE_SCANDIR.
37754         * doc/posix-functions/scandir.texi: Mention the new module and the
37755         portability problems.
37756
37757 2009-01-17  Bruno Haible  <bruno@clisp.org>
37758
37759         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37760         Update documentation.
37761         (func_remove_suffix): Escape all dots in the suffix. Update
37762         documentation.
37763         (func_filter_filelist): Update documentation.
37764         Reported by Ralf Wildenhues.
37765
37766 2009-01-17  Bruno Haible  <bruno@clisp.org>
37767
37768         * modules/dprintf-posix-tests: New file.
37769         * tests/test-dprintf-posix.sh: New file.
37770         * tests/test-dprintf-posix.c: New file.
37771
37772         New modules 'dprintf', 'dprintf-posix'.
37773         * lib/stdio.in.h (dprintf): New declaration.
37774         * lib/dprintf.c: New file.
37775         * m4/dprintf.m4: New file.
37776         * m4/dprintf-posix.m4: New file.
37777         * modules/dprintf: New file.
37778         * modules/dprintf-posix: New file.
37779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37780         HAVE_DPRINTF, REPLACE_DPRINTF.
37781         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37782         HAVE_DPRINTF, REPLACE_DPRINTF.
37783         * doc/posix-functions/dprintf.texi: Mention the new modules.
37784
37785 2009-01-17  Bruno Haible  <bruno@clisp.org>
37786
37787         * modules/vdprintf-posix-tests: New file.
37788         * tests/test-vdprintf-posix.sh: New file.
37789         * tests/test-vdprintf-posix.c: New file.
37790
37791         New modules 'vdprintf', 'vdprintf-posix'.
37792         * lib/stdio.in.h (vdprintf): New declaration.
37793         * lib/vdprintf.c: New file.
37794         * m4/vdprintf.m4: New file.
37795         * m4/vdprintf-posix.m4: New file.
37796         * modules/vdprintf: New file.
37797         * modules/vdprintf-posix: New file.
37798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37799         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37800         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37801         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37802         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37803
37804 2009-01-17  Bruno Haible  <bruno@clisp.org>
37805
37806         Fix replacement of fopen on mingw.
37807         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37808         mingw.
37809
37810 2009-01-17  Bruno Haible  <bruno@clisp.org>
37811
37812         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37813         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37814
37815 2009-01-17  Bruno Haible  <bruno@clisp.org>
37816
37817         Avoid test-fflush2.sh failure on mingw.
37818         * tests/test-fflush2.c: Include binary-io.h.
37819         (main): Put standard input into binary mode.
37820         * modules/fflush-tests (Depends-on): Add binary-io.
37821
37822 2009-01-17  Bruno Haible  <bruno@clisp.org>
37823
37824         * lib/wchar.in.h: In another particular situation, include only the
37825         system's <wchar.h> file.
37826         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37827         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37828         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37829
37830 2009-01-17  Bruno Haible  <bruno@clisp.org>
37831
37832         Support for stripping executables in --enable-relocatable.
37833         * build-aux/install-reloc: Expect one more argument, or an environment
37834         variable RELOC_STRIP_PROG. If set, strip the destination program and
37835         its wrapper.
37836         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37837         RELOC_STRIP_PROG.
37838         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37839         to set RELOCATABLE_STRIP.
37840         * NEWS: Mention the new Makefile requirement.
37841
37842 2009-01-17  Bruno Haible  <bruno@clisp.org>
37843
37844         * build-aux/install-reloc: Remove debugging information left over by
37845         C compiler on MacOS X.
37846
37847 2009-01-17  Bruno Haible  <bruno@clisp.org>
37848
37849         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37850         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37851         _NSGetExecutablePath.
37852
37853 2009-01-16  Jim Meyering  <meyering@redhat.com>
37854
37855         strerror: avoid warnings about discarding "const"
37856         * lib/strerror.c (rpl_strerror): Instead of returning a const
37857         string from each and every "case", use a variable, and add a single
37858         cast after the switch.
37859
37860 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37861
37862         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37863
37864 2009-01-16  Bruno Haible  <bruno@clisp.org>
37865
37866         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37867         array initializer syntax that also works in C++ mode.
37868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37869
37870 2009-01-16  Jim Meyering  <meyering@redhat.com>
37871
37872         poll: suppress a warning
37873         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37874         to ignore "...unsigned expression < 0 is always false" warnings.
37875
37876 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37877
37878         poll: remove declarations of unused variables
37879         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37880         sockbuf and optlen.
37881
37882 2009-01-15  Bruno Haible  <bruno@clisp.org>
37883
37884         Make fflush-after-ungetc POSIX compliant on BSD systems.
37885         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37886         (clear_ungetc_buffer): Implement also for other systems.
37887         (rpl_fflush): On glibc systems, invoke
37888         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37889         clear_ungetc_buffer after fetching the stream's position, not before.
37890
37891 2009-01-15  Bruno Haible  <bruno@clisp.org>
37892
37893         Make fflush-after-ungetc POSIX compliant on glibc systems.
37894         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37895         after ungetc.
37896         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37897         (rpl_fflush): On glibc systems, simply call the system's fflush
37898         function after clearing the ungetc buffer.
37899         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37900         Instead, lseek only to the end of file, then use the system's fseeko
37901         for the rest. On glibc systems, reset the EOF indicator bit.
37902
37903 2009-01-15  Jim Meyering  <meyering@redhat.com>
37904
37905         openmp.m4: revert quote-adding change, for portability to older autoconf
37906         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37907         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37908         Simon Josefsson noticed the problem when using autoconf-2.61.
37909
37910 2009-01-15  Bruno Haible  <bruno@clisp.org>
37911
37912         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37913         * tests/test-fflush2.c (ASSERT): Always fail.
37914         (main): Add two tests for fflush() after ungetc(), taking into account
37915         the Austin Group's clarification.
37916         Suggested by Eric Blake.
37917
37918 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37919
37920         mktime.m4: remove K&R-style function prototypes
37921         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37922         for the Sun C++ compiler.
37923
37924 2009-01-14  Bruno Haible  <bruno@clisp.org>
37925
37926         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37927         while including <wchar.h>.
37928         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37929         the system's <wchar.h> file.
37930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37931
37932 2009-01-14  Bruno Haible  <bruno@clisp.org>
37933
37934         * m4/csharp.m4: Don't mention gettext on the serial number line.
37935         * m4/csharpexec.m4: Likewise.
37936         * m4/eaccess.m4: Likewise.
37937         * m4/javaexec.m4: Likewise.
37938         * m4/sig_atomic_t.m4: Likewise.
37939         * m4/tmpdir.m4: Likewise.
37940         * m4/intldir.m4: Bump gettext version.
37941         * m4/lib-ld.m4: Likewise.
37942
37943 2009-01-14  Bruno Haible  <bruno@clisp.org>
37944
37945         * lib/progname.c (set_program_name): Add more comments.
37946         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37947
37948 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37949
37950         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37951         were sys/stat.h does not define it.
37952
37953 2009-01-14  Jim Meyering  <meyering@redhat.com>
37954
37955         many *.m4 files: improve m4 quoting
37956         99% of this change was performed by running the following commands:
37957         git ls-files | grep '\.m4$' | xargs perl -pi \
37958           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37959           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37960           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37961           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37962         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37963         The remainder were to add Copyright dates, increment serial numbers,
37964         undo some changes in comments, exclude m4/intl.m4, and add quotes
37965         around the "1" in ",1" where the unusual spacing prohibited the
37966         above regexps from doing the job.  For more details, see
37967         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37968         * m4/acl.m4: Modified.
37969         * m4/afs.m4: Likewise.
37970         * m4/alloca.m4: Likewise.
37971         * m4/argp.m4: Likewise.
37972         * m4/argz.m4: Likewise.
37973         * m4/atexit.m4: Likewise.
37974         * m4/bison-i18n.m4: Likewise.
37975         * m4/bison.m4: Likewise.
37976         * m4/byteswap.m4: Likewise.
37977         * m4/c-stack.m4: Likewise.
37978         * m4/c-strtod.m4: Likewise.
37979         * m4/calloc.m4: Likewise.
37980         * m4/canonicalize-lgpl.m4: Likewise.
37981         * m4/chown.m4: Likewise.
37982         * m4/clock_time.m4: Likewise.
37983         * m4/codeset.m4: Likewise.
37984         * m4/copy-file.m4: Likewise.
37985         * m4/csharp.m4: Likewise.
37986         * m4/csharpcomp.m4: Likewise.
37987         * m4/csharpexec.m4: Likewise.
37988         * m4/d-ino.m4: Likewise.
37989         * m4/d-type.m4: Likewise.
37990         * m4/dirfd.m4: Likewise.
37991         * m4/double-slash-root.m4: Likewise.
37992         * m4/eaccess.m4: Likewise.
37993         * m4/eealloc.m4: Likewise.
37994         * m4/environ.m4: Likewise.
37995         * m4/errno_h.m4: Likewise.
37996         * m4/euidaccess.m4: Likewise.
37997         * m4/execute.m4: Likewise.
37998         * m4/fatal-signal.m4: Likewise.
37999         * m4/fchdir.m4: Likewise.
38000         * m4/fcntl_h.m4: Likewise.
38001         * m4/fileblocks.m4: Likewise.
38002         * m4/filenamecat.m4: Likewise.
38003         * m4/findprog.m4: Likewise.
38004         * m4/flexmember.m4: Likewise.
38005         * m4/fnmatch.m4: Likewise.
38006         * m4/fopen.m4: Likewise.
38007         * m4/fpending.m4: Likewise.
38008         * m4/fprintf-posix.m4: Likewise.
38009         * m4/free.m4: Likewise.
38010         * m4/frexp.m4: Likewise.
38011         * m4/frexpl.m4: Likewise.
38012         * m4/fsusage.m4: Likewise.
38013         * m4/ftruncate.m4: Likewise.
38014         * m4/gc-camellia.m4: Likewise.
38015         * m4/gc-random.m4: Likewise.
38016         * m4/gc.m4: Likewise.
38017         * m4/getaddrinfo.m4: Likewise.
38018         * m4/getcwd-abort-bug.m4: Likewise.
38019         * m4/getcwd-path-max.m4: Likewise.
38020         * m4/getdate.m4: Likewise.
38021         * m4/getdomainname.m4: Likewise.
38022         * m4/getgroups.m4: Likewise.
38023         * m4/gethostname.m4: Likewise.
38024         * m4/gethrxtime.m4: Likewise.
38025         * m4/getline.m4: Likewise.
38026         * m4/getloadavg.m4: Likewise.
38027         * m4/getndelim2.m4: Likewise.
38028         * m4/getpass.m4: Likewise.
38029         * m4/gettext.m4: Likewise.
38030         * m4/gettime.m4: Likewise.
38031         * m4/gettimeofday.m4: Likewise.
38032         * m4/gnulib-common.m4: Likewise.
38033         * m4/group-member.m4: Likewise.
38034         * m4/host-os.m4: Likewise.
38035         * m4/iconv.m4: Likewise.
38036         * m4/iconv_open.m4: Likewise.
38037         * m4/inet_ntop.m4: Likewise.
38038         * m4/inet_pton.m4: Likewise.
38039         * m4/inline.m4: Likewise.
38040         * m4/intldir.m4: Likewise.
38041         * m4/intlmacosx.m4: Likewise.
38042         * m4/intmax.m4: Likewise.
38043         * m4/intmax_t.m4: Likewise.
38044         * m4/inttypes.m4: Likewise.
38045         * m4/inttypes_h.m4: Likewise.
38046         * m4/inttypes-pri.m4: Likewise.
38047         * m4/isapipe.m4: Likewise.
38048         * m4/isnand.m4: Likewise.
38049         * m4/isnanf.m4: Likewise.
38050         * m4/isnanl.m4: Likewise.
38051         * m4/javacomp.m4: Likewise.
38052         * m4/javaexec.m4: Likewise.
38053         * m4/jm-winsz1.m4: Likewise.
38054         * m4/jm-winsz2.m4: Likewise.
38055         * m4/lchown.m4: Likewise.
38056         * m4/lcmessage.m4: Likewise.
38057         * m4/ldexpl.m4: Likewise.
38058         * m4/lib-ld.m4: Likewise.
38059         * m4/lib-link.m4: Likewise.
38060         * m4/libsigsegv.m4: Likewise.
38061         * m4/link-follow.m4: Likewise.
38062         * m4/localcharset.m4: Likewise.
38063         * m4/locale-fr.m4: Likewise.
38064         * m4/locale-ja.m4: Likewise.
38065         * m4/locale-tr.m4: Likewise.
38066         * m4/locale-zh.m4: Likewise.
38067         * m4/lock.m4: Likewise.
38068         * m4/longlong.m4: Likewise.
38069         * m4/ls-mntd-fs.m4: Likewise.
38070         * m4/lstat.m4: Likewise.
38071         * m4/malloc.m4: Likewise.
38072         * m4/mathl.m4: Likewise.
38073         * m4/mbrtowc.m4: Likewise.
38074         * m4/mbstate_t.m4: Likewise.
38075         * m4/mbswidth.m4: Likewise.
38076         * m4/memchr.m4: Likewise.
38077         * m4/memcmp.m4: Likewise.
38078         * m4/memcpy.m4: Likewise.
38079         * m4/memmem.m4: Likewise.
38080         * m4/memmove.m4: Likewise.
38081         * m4/mempcpy.m4: Likewise.
38082         * m4/memrchr.m4: Likewise.
38083         * m4/memset.m4: Likewise.
38084         * m4/minmax.m4: Likewise.
38085         * m4/mkdir-slash.m4: Likewise.
38086         * m4/mkdtemp.m4: Likewise.
38087         * m4/mktime.m4: Likewise.
38088         * m4/mmap-anon.m4: Likewise.
38089         * m4/mountlist.m4: Likewise.
38090         * m4/nanosleep.m4: Likewise.
38091         * m4/nls.m4: Likewise.
38092         * m4/nocrash.m4: Likewise.
38093         * m4/open.m4: Likewise.
38094         * m4/openat.m4: Likewise.
38095         * m4/openmp.m4: Likewise.
38096         * m4/pathmax.m4: Likewise.
38097         * m4/perl.m4: Likewise.
38098         * m4/physmem.m4: Likewise.
38099         * m4/pipe.m4: Likewise.
38100         * m4/po.m4: Likewise.
38101         * m4/poll.m4: Likewise.
38102         * m4/posixtm.m4: Likewise.
38103         * m4/posixver.m4: Likewise.
38104         * m4/printf-frexp.m4: Likewise.
38105         * m4/printf-frexpl.m4: Likewise.
38106         * m4/printf-posix.m4: Likewise.
38107         * m4/printf-posix-rpl.m4: Likewise.
38108         * m4/printf.m4: Likewise.
38109         * m4/progtest.m4: Likewise.
38110         * m4/putenv.m4: Likewise.
38111         * m4/readline.m4: Likewise.
38112         * m4/readlink.m4: Likewise.
38113         * m4/readutmp.m4: Likewise.
38114         * m4/realloc.m4: Likewise.
38115         * m4/regex.m4: Likewise.
38116         * m4/relocatable.m4: Likewise.
38117         * m4/relocatable-lib.m4: Likewise.
38118         * m4/rename-dest-slash.m4: Likewise.
38119         * m4/rename.m4: Likewise.
38120         * m4/rmdir-errno.m4: Likewise.
38121         * m4/rmdir.m4: Likewise.
38122         * m4/roundf.m4: Likewise.
38123         * m4/roundl.m4: Likewise.
38124         * m4/rpmatch.m4: Likewise.
38125         * m4/save-cwd.m4: Likewise.
38126         * m4/selinux-selinux-h.m4: Likewise.
38127         * m4/setenv.m4: Likewise.
38128         * m4/settime.m4: Likewise.
38129         * m4/sig2str.m4: Likewise.
38130         * m4/sig_atomic_t.m4: Likewise.
38131         * m4/signalblocking.m4: Likewise.
38132         * m4/signbit.m4: Likewise.
38133         * m4/sigpipe.m4: Likewise.
38134         * m4/sockets.m4: Likewise.
38135         * m4/sockpfaf.m4: Likewise.
38136         * m4/st_dm_mode.m4: Likewise.
38137         * m4/stat-time.m4: Likewise.
38138         * m4/stdbool.m4: Likewise.
38139         * m4/stdint.m4: Likewise.
38140         * m4/stdint_h.m4: Likewise.
38141         * m4/stpcpy.m4: Likewise.
38142         * m4/stpncpy.m4: Likewise.
38143         * m4/strcase.m4: Likewise.
38144         * m4/strchrnul.m4: Likewise.
38145         * m4/strcspn.m4: Likewise.
38146         * m4/strdup.m4: Likewise.
38147         * m4/strftime.m4: Likewise.
38148         * m4/strndup.m4: Likewise.
38149         * m4/strnlen.m4: Likewise.
38150         * m4/strpbrk.m4: Likewise.
38151         * m4/strptime.m4: Likewise.
38152         * m4/strsep.m4: Likewise.
38153         * m4/strtod.m4: Likewise.
38154         * m4/strtoimax.m4: Likewise.
38155         * m4/strtok_r.m4: Likewise.
38156         * m4/strtol.m4: Likewise.
38157         * m4/strtoll.m4: Likewise.
38158         * m4/strtoul.m4: Likewise.
38159         * m4/strtoull.m4: Likewise.
38160         * m4/strtoumax.m4: Likewise.
38161         * m4/strverscmp.m4: Likewise.
38162         * m4/threadlib.m4: Likewise.
38163         * m4/timegm.m4: Likewise.
38164         * m4/tm_gmtoff.m4: Likewise.
38165         * m4/tmpdir.m4: Likewise.
38166         * m4/tmpfile.m4: Likewise.
38167         * m4/tzset.m4: Likewise.
38168         * m4/uintmax_t.m4: Likewise.
38169         * m4/unlinkdir.m4: Likewise.
38170         * m4/unlocked-io.m4: Likewise.
38171         * m4/uptime.m4: Likewise.
38172         * m4/userspec.m4: Likewise.
38173         * m4/utimbuf.m4: Likewise.
38174         * m4/utime.m4: Likewise.
38175         * m4/utimes-null.m4: Likewise.
38176         * m4/utimes.m4: Likewise.
38177         * m4/vararrays.m4: Likewise.
38178         * m4/vasnprintf.m4: Likewise.
38179         * m4/vfprintf-posix.m4: Likewise.
38180         * m4/vprintf-posix.m4: Likewise.
38181         * m4/wait-process.m4: Likewise.
38182         * m4/wchar_t.m4: Likewise.
38183         * m4/wint_t.m4: Likewise.
38184         * m4/write-any-file.m4: Likewise.
38185         * m4/yield.m4: Likewise.
38186
38187 2009-01-13  Bruno Haible  <bruno@clisp.org>
38188
38189         Avoid test-copy-file.sh failures when ACL support insufficient.
38190         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38191         TESTS_ENVIRONMENT.
38192         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38193         Reported by Jim Meyering.
38194
38195 2009-01-13  Bruno Haible  <bruno@clisp.org>
38196
38197         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38198         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38199         * modules/unistdio/u8-printf-parse (Files): Likewise.
38200         * modules/unistdio/u32-printf-parse (Files): Likewise.
38201         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38202
38203 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38204
38205         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38206         and m4/inttypes_h.m4 too.
38207
38208 2009-01-12  Eric Blake  <ebb9@byu.net>
38209
38210         tests: IRIX 6.2 cc can't compile -0.0 into .data
38211         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38212         rather than at compile-time.
38213         * tests/test-floorl.c (minus_zero): Likewise.
38214         * tests/test-frexpl.c (minus_zero): Likewise.
38215         * tests/test-isnan.c (minus_zerol): Likewise.
38216         * tests/test-isnanl.h (minus_zero): Likewise.
38217         * tests/test-ldexpl.c (minus_zero): Likewise.
38218         * tests/test-roundl.c (minus_zero): Likewise.
38219         * tests/test-signbit.c (minus_zerol): Likewise.
38220         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38221         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38222         * tests/test-truncl.c (minus_zero): Likewise.
38223         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38224         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38225         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38226
38227 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38228
38229         regex: fix glibc bug 9697
38230         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38231         handling.
38232
38233 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38234
38235         regex: fix glibc bug 697
38236         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38237         being NULL also if there are no backreferences.
38238
38239 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38240
38241         regex: merge glibc changes
38242         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38243         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38244         re_string_skip_chars, re_string_reconstruct): Likewise.
38245         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38246
38247 2009-01-07  Jim Meyering  <meyering@redhat.com>
38248
38249         poll: filter through cppi
38250         * lib/poll.c: Indent cpp directives to reflect nesting.
38251
38252 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38253
38254         poll: don't return uninitialized
38255         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38256
38257 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38258
38259         avoid compile failure on AIX 6.1
38260         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38261         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38262
38263 2009-01-04  Jim Meyering  <meyering@redhat.com>
38264
38265         remove duplicate inclusion of <stdio.h>
38266         * tests/test-fprintf-posix.c: Likewise.
38267         * tests/test-printf-posix.c: Likewise.
38268         * tests/test-snprintf-posix.c: Likewise.
38269         * tests/test-sprintf-posix.c: Likewise.
38270         * tests/test-vasprintf-posix.c: Likewise.
38271         * tests/test-vfprintf-posix.c: Likewise.
38272         * tests/test-vprintf-posix.c: Likewise.
38273         * tests/test-vsnprintf-posix.c: Likewise.
38274         * tests/test-vsprintf-posix.c: Likewise.
38275
38276 2009-01-03  Jim Meyering  <meyering@redhat.com>
38277
38278         gnulib-tool: fix sed-based filtering
38279         * gnulib-tool (func_filter_filelist): Remove extra backslash
38280         in sed_fff_filter definition.
38281
38282 2009-01-02  Jim Meyering  <meyering@redhat.com>
38283
38284         strftime: avoid compilation failure on Solaris 2.6
38285         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38286         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38287         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38288         be available.  Reported by Tom G. Christensen.  Details in
38289         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38290
38291 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38292             Bruno Haible  <bruno@clisp.org>
38293
38294         Speed up gnulib-tool by doing more string processing through shell
38295         built-ins.
38296         * gnulib-tool (fast_func_append): New variable.
38297         (func_remove_prefix, func_remove_suffix): New functions.
38298         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38299         (func_filter_filelist): New function.
38300         (func_get_dependencies): Use func_remove_suffix instead of sed.
38301         (func_get_automake_snippet): Use func_filter_filelist instead of a
38302         subshell and sed invocation.
38303
38304 2009-01-01  Bruno Haible  <bruno@clisp.org>
38305
38306         Fix a security bug.
38307         * gnulib-tool (func_import, import, update): Don't allow the characters
38308         '"', '$', '`', '\' in macro arguments that become part of commands that
38309         are evaluated.
38310
38311 2009-01-01  Bruno Haible  <bruno@clisp.org>
38312
38313         * gnulib-tool (func_reset_sigpipe): Add more comments.
38314
38315 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38316
38317         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38318         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38319         already know the answer.
38320
38321 2009-01-01  Jim Meyering  <meyering@redhat.com>
38322
38323         * lib/version-etc.c (version_etc_va): Update copyright year.
38324
38325 2008-12-30  Bruno Haible  <bruno@clisp.org>
38326
38327         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38328         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38329         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38330
38331 2008-12-29  Eric Blake  <ebb9@byu.net>
38332
38333         multiarch: avoid autoconf AC_REQUIRE bug
38334         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38335         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38336         2.63 and older.
38337         Reported by Bruno Haible, and analyzed in
38338         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38339
38340 2008-12-29  Bruno Haible  <bruno@clisp.org>
38341
38342         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38343         files in subdirectories correctly.
38344         Reported by Ralf Wildenhues.
38345
38346 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38347
38348         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38349         rather than 'join FILE -', for Solaris join.
38350
38351 2008-12-29  Bruno Haible  <bruno@clisp.org>
38352
38353         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38354         quoting.
38355         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38356         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38357         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38358         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38359         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38360         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38361         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38362         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38363         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38364         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38365         * m4/nls.m4 (AM_NLS): Likewise.
38366         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38367         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38368         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38369         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38370         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38371         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38372         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38373         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38374         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38375         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38376         * m4/xsize.m4 (gl_XSIZE): Likewise.
38377         Suggested by Jim Meyering.
38378
38379 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38380
38381         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38382         * lib/parse-duration.c: use a switch instead of cascading if's.
38383
38384 2008-12-29  Eric Blake  <ebb9@byu.net>
38385
38386         wchar.h: supply WEOF on Irix 5.3
38387         * lib/wchar.in.h (wint_t): Also supply WEOF.
38388         * lib/wctype.in.h (wint_t): Likewise.
38389         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38390         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38391         Reported by Tom G. Christensen.
38392
38393 2008-12-26  Bruno Haible  <bruno@clisp.org>
38394
38395         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38396         i486, i586, i686.
38397
38398 2008-12-26  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38401
38402 2008-12-26  Bruno Haible  <bruno@clisp.org>
38403
38404         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38405         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38406         not __STDC_CONSTANT_MACROS.
38407         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38408
38409 2008-12-25  Bruno Haible  <bruno@clisp.org>
38410
38411         Add support for universal builds to vasnprintf.
38412         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38413         universal builds, guess no.
38414         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38415         * modules/vasprintf-posix (Depends-on): Likewise.
38416         * modules/fprintf-posix (Depends-on): Likewise.
38417         * modules/vfprintf-posix (Depends-on): Likewise.
38418         * modules/snprintf-posix (Depends-on): Likewise.
38419         * modules/vsnprintf-posix (Depends-on): Likewise.
38420         * modules/sprintf-posix (Depends-on): Likewise.
38421         * modules/vsprintf-posix (Depends-on): Likewise.
38422         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38423         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38424         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38425         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38426         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38427         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38428         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38429
38430         Add support for universal builds to <inttypes.h>.
38431         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38432         _SCNu64_PREFIX): In Apple
38433         universal builds, define directly, using _LP64.
38434         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38435         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38436         * modules/inttypes (Depends-on): Add multiarch.
38437         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38438
38439         Add support for universal builds to <stdint.h>.
38440         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38441         universal builds, define directly, using _LP64.
38442         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38443         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38444         and size_t.
38445         * modules/stdint (Depends-on): Add multiarch.
38446         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38447
38448         New module 'multiarch'.
38449         * modules/multiarch: New file.
38450         * m4/multiarch.m4: New file.
38451
38452 2008-12-25  Bruno Haible  <bruno@clisp.org>
38453
38454         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38455
38456 2008-12-25  Bruno Haible  <bruno@clisp.org>
38457
38458         * modules/btowc (License): Relicense under LGPLv2+.
38459         * modules/mbsinit (License): Likewise.
38460         * modules/mbrtowc (License): Likewise.
38461         * modules/wcrtomb (License): Likewise.
38462         * modules/streq (License): Likewise.
38463         Reported by David Lutterkort <lutter@redhat.com>.
38464
38465 2008-12-23  Bruno Haible  <bruno@clisp.org>
38466
38467         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38468
38469 2008-12-23  Bruno Haible  <bruno@clisp.org>
38470
38471         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38473         GETADDRINFO_LIB, not in LIBS.
38474         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38475         * modules/canon-host (Link): Likewise.
38476         * NEWS: Mention the change.
38477         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38478         GETADDRINFO_LIB.
38479
38480 2008-12-22  Bruno Haible  <bruno@clisp.org>
38481
38482         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38483         * doc/posix-functions/iswalpha_l.texi: Likewise.
38484         * doc/posix-functions/iswblank_l.texi: Likewise.
38485         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38486         * doc/posix-functions/iswctype_l.texi: Likewise.
38487         * doc/posix-functions/iswdigit_l.texi: Likewise.
38488         * doc/posix-functions/iswgraph_l.texi: Likewise.
38489         * doc/posix-functions/iswlower_l.texi: Likewise.
38490         * doc/posix-functions/iswprint_l.texi: Likewise.
38491         * doc/posix-functions/iswpunct_l.texi: Likewise.
38492         * doc/posix-functions/iswspace_l.texi: Likewise.
38493         * doc/posix-functions/iswupper_l.texi: Likewise.
38494         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38495         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38496         * doc/posix-functions/open_wmemstream.texi: Likewise.
38497         * doc/posix-functions/swscanf.texi: Likewise.
38498         * doc/posix-functions/towctrans_l.texi: Likewise.
38499         * doc/posix-functions/towlower.texi: Likewise.
38500         * doc/posix-functions/towlower_l.texi: Likewise.
38501         * doc/posix-functions/towupper.texi: Likewise.
38502         * doc/posix-functions/towupper_l.texi: Likewise.
38503         * doc/posix-functions/vfwprintf.texi: Likewise.
38504         * doc/posix-functions/vfwscanf.texi: Likewise.
38505         * doc/posix-functions/vswscanf.texi: Likewise.
38506         * doc/posix-functions/vwprintf.texi: Likewise.
38507         * doc/posix-functions/vwscanf.texi: Likewise.
38508         * doc/posix-functions/wcpcpy.texi: Likewise.
38509         * doc/posix-functions/wcpncpy.texi: Likewise.
38510         * doc/posix-functions/wcscasecmp.texi: Likewise.
38511         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38512         * doc/posix-functions/wcscoll_l.texi: Likewise.
38513         * doc/posix-functions/wcsdup.texi: Likewise.
38514         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38515         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38516         * doc/posix-functions/wcsnlen.texi: Likewise.
38517         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38518         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38519         * doc/posix-functions/wctrans_l.texi: Likewise.
38520         * doc/posix-functions/wctype_l.texi: Likewise.
38521         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38522         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38523         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38524         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38525         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38526         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38527         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38528         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38529         * doc/glibc-functions/wcschrnul.texi: Likewise.
38530         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38531         * doc/glibc-functions/wcstod_l.texi: Likewise.
38532         * doc/glibc-functions/wcstof_l.texi: Likewise.
38533         * doc/glibc-functions/wcstol_l.texi: Likewise.
38534         * doc/glibc-functions/wcstold_l.texi: Likewise.
38535         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38536         * doc/glibc-functions/wcstoq.texi: Likewise.
38537         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38538         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38539         * doc/glibc-functions/wcstouq.texi: Likewise.
38540         * doc/glibc-functions/wmempcpy.texi: Likewise.
38541
38542 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38543             Eric Blake  <ebb9@byu.net>
38544             Paolo Bonzini  <bonzini@gnu.org>
38545             Bruno Haible  <bruno@clisp.org>
38546
38547         Make c-stack work on Haiku.
38548         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38549         (c_stack_action): Use SA_ONSTACK flag.
38550
38551 2008-12-22  Bruno Haible  <bruno@clisp.org>
38552
38553         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38554
38555 2008-12-22  Bruno Haible  <bruno@clisp.org>
38556
38557         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38558         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38559         being overridden.
38560         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38561         New macros.
38562         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38564         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38565         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38566
38567 2008-12-22  Bruno Haible  <bruno@clisp.org>
38568
38569         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38570         from test code.
38571
38572 2008-12-22  Eric Blake  <ebb9@byu.net>
38573
38574         Avoid gcc warnings on cygwin.
38575         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38576         Avoid unused variable.
38577         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38578         Likewise.
38579
38580 2008-12-22  Bruno Haible  <bruno@clisp.org>
38581
38582         Remove HAVE_MBRTOWC conditionals.
38583         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38584         (mbscasecmp): Assume mbrtowc function.
38585         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38586         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38587         * lib/mbschr.c: Include mbuiter.h unconditionally.
38588         (mbschr): Assume mbrtowc function.
38589         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38590         (mbscspn): Assume mbrtowc function.
38591         * lib/mbslen.c: Include mbuiter.h unconditionally.
38592         (mbslen): Assume mbrtowc function.
38593         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38594         (mbsncasecmp): Assume mbrtowc function.
38595         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38596         (mbsnlen): Assume mbrtowc function.
38597         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38598         (mbspbrk): Assume mbrtowc function.
38599         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38600         (mbspcasecmp): Assume mbrtowc function.
38601         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38602         (mbsrchr): Assume mbrtowc function.
38603         * lib/mbssep.c: Include mbuiter.h unconditionally.
38604         (mbssep): Assume mbrtowc function.
38605         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38606         (mbsspn): Assume mbrtowc function.
38607         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38608         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38609         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38610         (mbstok_r): Assume mbrtowc function.
38611         * lib/propername.c: Include mbuiter.h unconditionally.
38612         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38613         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38614         (trim2): Assume mbrtowc function.
38615         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38616         (mbsnwidth): Assume mbrtowc function.
38617         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38618         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38619         fallback definitions.
38620         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38621
38622 2008-12-22  Bruno Haible  <bruno@clisp.org>
38623
38624         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38625
38626 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38627
38628         * modules/regex: Request emulations for the mb*/wc* functions we need.
38629         * m4/regex.m4: Don't look for those functions here.
38630         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38631
38632 2008-12-22  Bruno Haible  <bruno@clisp.org>
38633
38634         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38635
38636 2008-12-21  Bruno Haible  <bruno@clisp.org>
38637
38638         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38639         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38640         (Include): Remove conditionalization.
38641         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38642         (Include): Remove conditionalization.
38643         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38644         (Include): Remove conditionalization.
38645         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38646         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38647         * NEWS: Mention the change.
38648         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38649         via Sergey Poznyakoff <gray@gnu.org.ua>.
38650
38651 2008-12-21  Bruno Haible  <bruno@clisp.org>
38652
38653         * MODULES.html.sh (Extended multibyte and wide character utilities
38654         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38655         wcrtomb, wcsrtombs.
38656         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38657         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38658         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38659         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38660
38661 2008-12-21  Bruno Haible  <bruno@clisp.org>
38662
38663         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38664
38665 2008-12-21  Bruno Haible  <bruno@clisp.org>
38666
38667         * modules/wcsnrtombs-tests: New file.
38668         * tests/test-wcsnrtombs1.sh: New file.
38669         * tests/test-wcsnrtombs2.sh: New file.
38670         * tests/test-wcsnrtombs3.sh: New file.
38671         * tests/test-wcsnrtombs4.sh: New file.
38672         * tests/test-wcsnrtombs.c: New file.
38673
38674         New module 'wcsnrtombs'.
38675         * lib/wchar.in.h (wcsnrtombs): New declaration.
38676         * lib/wcsnrtombs.c: New file.
38677         * lib/wcsrtombs-state.c: New file.
38678         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38679         (internal_state): Remove variable.
38680         * m4/wcsnrtombs.m4: New file.
38681         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38682         compilation units.
38683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38684         HAVE_WCSNRTOMBS.
38685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38686         HAVE_WCSNRTOMBS.
38687         * modules/wcsnrtombs: New file.
38688         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38689         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38690
38691 2008-12-21  Bruno Haible  <bruno@clisp.org>
38692
38693         * modules/wcsrtombs-tests: New file.
38694         * tests/test-wcsrtombs1.sh: New file.
38695         * tests/test-wcsrtombs2.sh: New file.
38696         * tests/test-wcsrtombs3.sh: New file.
38697         * tests/test-wcsrtombs4.sh: New file.
38698         * tests/test-wcsrtombs.c: New file.
38699
38700         New module 'wcsrtombs'.
38701         * lib/wchar.in.h (wcsrtombs): New declaration.
38702         * lib/wcsrtombs.c: New file.
38703         * m4/wcsrtombs.m4: New file.
38704         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38705         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38707         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38708         * modules/wcsrtombs: New file.
38709         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38710         bugs.
38711
38712 2008-12-21  Bruno Haible  <bruno@clisp.org>
38713
38714         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38715         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38716         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38717         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38718         if not correct.
38719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38720         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38721         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38722         m4/locale-zh.m4, m4/codeset.m4.
38723         * doc/posix-functions/wcrtomb.texi: Document the bug.
38724
38725 2008-12-21  Bruno Haible  <bruno@clisp.org>
38726
38727         Work around a btowc() bug on IRIX 6.5.
38728         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38729         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38730         REPLACE_WTOBC if not.
38731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38732         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38733         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38734
38735 2008-12-21  Bruno Haible  <bruno@clisp.org>
38736
38737         * modules/wcrtomb-tests: New file.
38738         * tests/test-wcrtomb.sh: New file.
38739         * tests/test-wcrtomb.c: New file.
38740
38741         New module 'wcrtomb'.
38742         * lib/wchar.in.h (wcrtomb): New declaration.
38743         * lib/wcrtomb.c: New file.
38744         * m4/wcrtomb.m4: New file.
38745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38746         HAVE_WCRTOMB.
38747         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38748         HAVE_WCRTOMB.
38749         * modules/wcrtomb: New file.
38750         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38751
38752 2008-12-21  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38755         * modules/mbsrtowcs (Files): Likewise.
38756         * modules/wctob (Files): Likewise.
38757         * modules/c-strcase-tests (Files): Likewise.
38758         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38759         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38760         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38761         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38762         * modules/vasnprintf-posix-tests (Files): Likewise.
38763
38764 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38765
38766         gitlog-to-changelog: pass all command-line arguments to git-log
38767         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38768         it is sometimes convenient to filter the commits in various ways.
38769         gitlog-to-changelog only allows --since to specify a start date,
38770         but git-log itself supports many other filtering mechanisms.
38771         At the moment, I want to filter by branch name.  Rather than
38772         adding a --branch option to gitlog-to-changelog, it seems more
38773         flexible to simply pass all options directly to git-log and let
38774         git do the work.  Notice that this effectively makes --since a
38775         redundant option for gitlog-to-changelog, but removing it would
38776         require current usage to change since calls would then require
38777         an additional '--'.
38778
38779 2008-12-21  Bruno Haible  <bruno@clisp.org>
38780
38781         * modules/mbsnrtowcs-tests: New file.
38782         * tests/test-mbsnrtowcs1.sh: New file.
38783         * tests/test-mbsnrtowcs2.sh: New file.
38784         * tests/test-mbsnrtowcs3.sh: New file.
38785         * tests/test-mbsnrtowcs4.sh: New file.
38786         * tests/test-mbsnrtowcs.c: New file.
38787
38788         New module 'mbsnrtowcs'.
38789         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38790         * lib/mbsnrtowcs.c: New file.
38791         * lib/mbsrtowcs-state.c: New file.
38792         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38793         (internal_state): Remove variable.
38794         * m4/mbsnrtowcs.m4: New file.
38795         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38796         compilation units.
38797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38798         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38799         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38800         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38801         * modules/mbsnrtowcs: New file.
38802         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38803         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38804         portability problem.
38805
38806 2008-12-21  Bruno Haible  <bruno@clisp.org>
38807
38808         Work around mbsrtowcs bug.
38809         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38810         (gl_FUNC_MBSRTOWCS): Invoke it.
38811         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38812         m4/locale-zh.m4.
38813         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38814
38815 2008-12-21  Bruno Haible  <bruno@clisp.org>
38816
38817         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38818
38819 2008-12-21  Bruno Haible  <bruno@clisp.org>
38820
38821         Update doc for AIX.
38822         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38823         16-bit wchar_t type.
38824         * doc/posix-functions/btowc.texi: Likewise.
38825         * doc/posix-functions/fgetwc.texi: Likewise.
38826         * doc/posix-functions/fgetws.texi: Likewise.
38827         * doc/posix-functions/fputwc.texi: Likewise.
38828         * doc/posix-functions/fputws.texi: Likewise.
38829         * doc/posix-functions/fwide.texi: Likewise.
38830         * doc/posix-functions/fwprintf.texi: Likewise.
38831         * doc/posix-functions/fwscanf.texi: Likewise.
38832         * doc/posix-functions/getwchar.texi: Likewise.
38833         * doc/posix-functions/getwc.texi: Likewise.
38834         * doc/posix-functions/iswalnum.texi: Likewise.
38835         * doc/posix-functions/iswalpha.texi: Likewise.
38836         * doc/posix-functions/iswblank.texi: Likewise.
38837         * doc/posix-functions/iswcntrl.texi: Likewise.
38838         * doc/posix-functions/iswctype.texi: Likewise.
38839         * doc/posix-functions/iswdigit.texi: Likewise.
38840         * doc/posix-functions/iswgraph.texi: Likewise.
38841         * doc/posix-functions/iswlower.texi: Likewise.
38842         * doc/posix-functions/iswprint.texi: Likewise.
38843         * doc/posix-functions/iswpunct.texi: Likewise.
38844         * doc/posix-functions/iswspace.texi: Likewise.
38845         * doc/posix-functions/iswupper.texi: Likewise.
38846         * doc/posix-functions/iswxdigit.texi: Likewise.
38847         * doc/posix-functions/mbrtowc.texi: Likewise.
38848         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38849         * doc/posix-functions/mbstowcs.texi: Likewise.
38850         * doc/posix-functions/mbtowc.texi: Likewise.
38851         * doc/posix-functions/putwchar.texi: Likewise.
38852         * doc/posix-functions/putwc.texi: Likewise.
38853         * doc/posix-functions/swprintf.texi: Likewise.
38854         * doc/posix-functions/tolower.texi: Likewise.
38855         * doc/posix-functions/toupper.texi: Likewise.
38856         * doc/posix-functions/towctrans.texi: Likewise.
38857         * doc/posix-functions/ungetwc.texi: Likewise.
38858         * doc/posix-functions/vswprintf.texi: Likewise.
38859         * doc/posix-functions/wcrtomb.texi: Likewise.
38860         * doc/posix-functions/wcscat.texi: Likewise.
38861         * doc/posix-functions/wcschr.texi: Likewise.
38862         * doc/posix-functions/wcscmp.texi: Likewise.
38863         * doc/posix-functions/wcscoll.texi: Likewise.
38864         * doc/posix-functions/wcscpy.texi: Likewise.
38865         * doc/posix-functions/wcscspn.texi: Likewise.
38866         * doc/posix-functions/wcsftime.texi: Likewise.
38867         * doc/posix-functions/wcslen.texi: Likewise.
38868         * doc/posix-functions/wcsncat.texi: Likewise.
38869         * doc/posix-functions/wcsncmp.texi: Likewise.
38870         * doc/posix-functions/wcsncpy.texi: Likewise.
38871         * doc/posix-functions/wcspbrk.texi: Likewise.
38872         * doc/posix-functions/wcsrchr.texi: Likewise.
38873         * doc/posix-functions/wcsrtombs.texi: Likewise.
38874         * doc/posix-functions/wcsspn.texi: Likewise.
38875         * doc/posix-functions/wcsstr.texi: Likewise.
38876         * doc/posix-functions/wcstod.texi: Likewise.
38877         * doc/posix-functions/wcstof.texi: Likewise.
38878         * doc/posix-functions/wcstoimax.texi: Likewise.
38879         * doc/posix-functions/wcstok.texi: Likewise.
38880         * doc/posix-functions/wcstold.texi: Likewise.
38881         * doc/posix-functions/wcstoll.texi: Likewise.
38882         * doc/posix-functions/wcstol.texi: Likewise.
38883         * doc/posix-functions/wcstombs.texi: Likewise.
38884         * doc/posix-functions/wcstoull.texi: Likewise.
38885         * doc/posix-functions/wcstoul.texi: Likewise.
38886         * doc/posix-functions/wcstoumax.texi: Likewise.
38887         * doc/posix-functions/wcswidth.texi: Likewise.
38888         * doc/posix-functions/wcsxfrm.texi: Likewise.
38889         * doc/posix-functions/wctob.texi: Likewise.
38890         * doc/posix-functions/wctomb.texi: Likewise.
38891         * doc/posix-functions/wctrans.texi: Likewise.
38892         * doc/posix-functions/wctype.texi: Likewise.
38893         * doc/posix-functions/wcwidth.texi: Likewise.
38894         * doc/posix-functions/wmemchr.texi: Likewise.
38895         * doc/posix-functions/wmemcmp.texi: Likewise.
38896         * doc/posix-functions/wmemcpy.texi: Likewise.
38897         * doc/posix-functions/wmemmove.texi: Likewise.
38898         * doc/posix-functions/wmemset.texi: Likewise.
38899         * doc/posix-functions/wprintf.texi: Likewise.
38900         * doc/posix-functions/wscanf.texi: Likewise.
38901
38902 2008-12-21  Bruno Haible  <bruno@clisp.org>
38903
38904         Update doc for HP-UX 11.11.
38905         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38906         in HP-UX version 11.00, not in all versions of HP-UX 11.
38907         * doc/posix-functions/fwide.texi: Likewise.
38908         * doc/posix-functions/fwprintf.texi: Likewise.
38909         * doc/posix-functions/fwscanf.texi: Likewise.
38910         * doc/posix-functions/inet_ntop.texi: Likewise.
38911         * doc/posix-functions/inet_pton.texi: Likewise.
38912         * doc/posix-functions/mbrlen.texi: Likewise.
38913         * doc/posix-functions/mbrtowc.texi: Likewise.
38914         * doc/posix-functions/mbsinit.texi: Likewise.
38915         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38916         * doc/posix-functions/swprintf.texi: Likewise.
38917         * doc/posix-functions/swscanf.texi: Likewise.
38918         * doc/posix-functions/towctrans.texi: Likewise.
38919         * doc/posix-functions/vfwprintf.texi: Likewise.
38920         * doc/posix-functions/vswprintf.texi: Likewise.
38921         * doc/posix-functions/vwprintf.texi: Likewise.
38922         * doc/posix-functions/wcrtomb.texi: Likewise.
38923         * doc/posix-functions/wcsrtombs.texi: Likewise.
38924         * doc/posix-functions/wcsstr.texi: Likewise.
38925         * doc/posix-functions/wctob.texi: Likewise.
38926         * doc/posix-functions/wctrans.texi: Likewise.
38927         * doc/posix-functions/wmemchr.texi: Likewise.
38928         * doc/posix-functions/wmemcmp.texi: Likewise.
38929         * doc/posix-functions/wmemcpy.texi: Likewise.
38930         * doc/posix-functions/wmemmove.texi: Likewise.
38931         * doc/posix-functions/wmemset.texi: Likewise.
38932         * doc/posix-functions/wprintf.texi: Likewise.
38933         * doc/posix-functions/wscanf.texi: Likewise.
38934
38935 2008-12-21  Bruno Haible  <bruno@clisp.org>
38936
38937         Work around a portability problem.
38938         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38939         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38940
38941 2008-12-20  Bruno Haible  <bruno@clisp.org>
38942
38943         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38944         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38945         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38947         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38948
38949         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38950         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38951         set.
38952         (GNULIB_defined_mbstate_t): New macro.
38953         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38954         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38955         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38956         reuses the system's mbrtowc function but works around the bugs.
38957         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38958         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38959         macros.
38960         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38961         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38962         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38963         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38964         REPLACE_MBSINIT if mbsinit needs to be overridden.
38965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38966         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38967         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38968         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38969         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38970         m4/locale-zh.m4.
38971         (Depends): Add mbsinit.
38972         * modules/mbsinit (Depends): Add mbrtowc.
38973         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38974
38975 2008-12-20  Bruno Haible  <bruno@clisp.org>
38976
38977         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38978         so that there are no conversion errors on AIX.
38979         * tests/test-mbsrtowcs.c (main): LIkewise.
38980
38981 2008-12-20  Bruno Haible  <bruno@clisp.org>
38982
38983         Work around wctob bug on Solaris <= 9.
38984         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38985         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38987         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38988         * modules/wctob (Files): Add m4/locale-fr.m4.
38989         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38990
38991 2008-12-20  Bruno Haible  <bruno@clisp.org>
38992
38993         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38994         /dev/null.
38995         * tests/test-select-in.sh: Likewise.
38996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38997
38998 2008-12-20  Bruno Haible  <bruno@clisp.org>
38999
39000         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39001         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39002         Cygwin 1.5.x.
39003
39004 2008-12-20  Bruno Haible  <bruno@clisp.org>
39005
39006         Ensure mbstate_t is defined on HP-UX 11.11.
39007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39008         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39009         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39010         AC_USE_SYSTEM_EXTENSIONS.
39011         * modules/fnmatch (Depends-on): Add extensions.
39012         * modules/mbrlen (Depends-on): Likewise.
39013         * modules/mbrtowc (Depends-on): Likewise.
39014         * modules/mbsinit (Depends-on): Likewise.
39015         * modules/mbsrtowcs (Depends-on): Likewise.
39016         * modules/mbswidth (Depends-on): Likewise.
39017         * modules/quotearg (Depends-on): Likewise.
39018         * modules/strftime (Depends-on): Likewise.
39019
39020 2008-12-20  Bruno Haible  <bruno@clisp.org>
39021
39022         Ensure wctob is declared on IRIX 6.5.
39023         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39024         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39025         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39027         of HAVE_WCTOB.
39028         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39029         HAVE_WCTOB.
39030         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39031
39032 2008-12-19  Bruno Haible  <bruno@clisp.org>
39033
39034         * modules/mbsrtowcs-tests: New file.
39035         * tests/test-mbsrtowcs1.sh: New file.
39036         * tests/test-mbsrtowcs2.sh: New file.
39037         * tests/test-mbsrtowcs3.sh: New file.
39038         * tests/test-mbsrtowcs4.sh: New file.
39039         * tests/test-mbsrtowcs.c: New file.
39040
39041         New module 'mbsrtowcs'.
39042         * lib/wchar.in.h (mbsrtowcs): New declaration.
39043         * lib/mbsrtowcs.c: New file.
39044         * m4/mbsrtowcs.m4: New file.
39045         * modules/mbsrtowcs: New file.
39046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39047         HAVE_MBSRTOWCS.
39048         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39049         HAVE_MBSRTOWCS.
39050         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39051
39052 2008-12-19  Bruno Haible  <bruno@clisp.org>
39053
39054         New module 'mbrlen'.
39055         * lib/wchar.in.h (mbrlen): New declaration.
39056         * lib/mbrlen.c: New file.
39057         * m4/mbrlen.m4: New file.
39058         * modules/mbrlen: New file.
39059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39060         HAVE_MBRLEN.
39061         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39062         HAVE_MBRLEN.
39063         * doc/posix-functions/mbrlen.texi: Document the new module.
39064
39065 2008-12-19  Bruno Haible  <bruno@clisp.org>
39066
39067         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39068         * modules/mbrtowc (Depends-on): Add verify.
39069         Suggested by Paul Eggert.
39070
39071 2008-12-18  Bruno Haible  <bruno@clisp.org>
39072
39073         * modules/mbsinit-tests: New file.
39074         * tests/test-mbsinit.sh: New file.
39075         * tests/test-mbsinit.c: New file.
39076
39077 2008-12-18  Bruno Haible  <bruno@clisp.org>
39078
39079         * modules/mbrtowc-tests: New file.
39080         * tests/test-mbrtowc1.sh: New file.
39081         * tests/test-mbrtowc2.sh: New file.
39082         * tests/test-mbrtowc3.sh: New file.
39083         * tests/test-mbrtowc4.sh: New file.
39084         * tests/test-mbrtowc.c: New file.
39085
39086         New module 'mbrtowc'.
39087         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39088         mbsinit and mbrtowc.
39089         (mbrtowc): New declaration.
39090         * lib/mbrtowc.c: New file.
39091         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39092         * modules/mbrtowc: New file.
39093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39094         HAVE_MBRTOWC.
39095         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39096         HAVE_MBRTOWC.
39097         * doc/posix-functions/mbrtowc.texi: Document the new module.
39098
39099 2008-12-18  Bruno Haible  <bruno@clisp.org>
39100
39101         New module 'wctob'.
39102         * lib/wchar.in.h (wctob): New declaration.
39103         * lib/wctob.c: New file.
39104         * m4/wctob.m4: New file.
39105         * modules/wctob: New file.
39106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39107         HAVE_WCTOB.
39108         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39109         * doc/posix-functions/wctob.texi: Document the new module.
39110
39111 2008-12-18  Bruno Haible  <bruno@clisp.org>
39112
39113         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39114         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39115
39116 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39117
39118         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39119         G. Christensen" <tgc@jupiterrise.com>.
39120
39121         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39122         G. Christensen" <tgc@jupiterrise.com>.
39123
39124         * lib/flock.c: Need to include string.h.  Reported by "Tom
39125         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39126         <ebb9@byu.net>.
39127
39128 2008-12-18  Bruno Haible  <bruno@clisp.org>
39129
39130         * m4/locale-ja.m4: New file, from GNU gettext.
39131
39132 2008-12-17  Bruno Haible  <bruno@clisp.org>
39133
39134         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39135         Suggested by Eric Blake.
39136
39137 2008-12-17  Bruno Haible  <bruno@clisp.org>
39138
39139         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39140
39141 2008-12-17  Bruno Haible  <bruno@clisp.org>
39142
39143         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39144         * modules/mbsinit (Depends-on): Add verify.
39145         Suggested by Paul Eggert.
39146
39147 2008-12-17  Bruno Haible  <bruno@clisp.org>
39148
39149         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39150         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39151         gl_FUNC_MBRTOWC.
39152         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39153         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39154         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39155         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39156         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39157         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39158         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39159         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39160         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39161         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39162         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39163         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39164         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39165         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39166         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39167         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39168         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39169         * modules/trim (configure.ac): Likewise.
39170
39171 2008-12-17  Bruno Haible  <bruno@clisp.org>
39172
39173         * modules/btowc-tests: New file.
39174         * tests/test-btowc1.sh: New file.
39175         * tests/test-btowc2.sh: New file.
39176         * tests/test-btowc.c: New file.
39177
39178         New module 'btowc'.
39179         * lib/wchar.in.h (btowc): New declaration.
39180         * lib/btowc.c: New file.
39181         * m4/btowc.m4: New file.
39182         * modules/btowc: New file.
39183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39184         HAVE_BTOWC.
39185         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39186         * doc/posix-functions/btowc.texi: Document the new module.
39187
39188 2008-12-17  Bruno Haible  <bruno@clisp.org>
39189
39190         New module 'mbsinit'.
39191         * lib/wchar.in.h (mbsinit): New declaration.
39192         * lib/mbsinit.c: New file.
39193         * m4/mbsinit.m4: New file.
39194         * modules/mbsinit: New file.
39195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39196         HAVE_MBSINIT.
39197         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39198         HAVE_MBSINIT.
39199         * doc/posix-functions/mbsinit.texi: Document the new module.
39200
39201 2008-12-16  Bruno Haible  <bruno@clisp.org>
39202
39203         * lib/unistd.in.h: Add comment.
39204         * tests/test-environ.c: Don't include <stdlib.h>.
39205
39206 2008-12-16  Bruno Haible  <bruno@clisp.org>
39207
39208         * lib/parse-duration.h (parse_duration): Document return value
39209         convention.
39210         * lib/parse-duration.c: Include specification header first. Add
39211         comments.
39212         (_): Remove macro.
39213         (parse_year_month_day, parse_hour_minute_second): Move side effects
39214         outside of strchr call.
39215         (parse_non_iso8601): Move side effects outside of isspace call.
39216         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39217         call.
39218
39219 2008-12-16  Bruno Haible  <bruno@clisp.org>
39220
39221         * tests/test-parse-duration.sh: Produce no output when the test
39222         succeeds.
39223
39224 2008-12-16  Bruno Haible  <bruno@clisp.org>
39225
39226         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39227         expressions.
39228
39229 2008-12-15  Bruno Haible  <bruno@clisp.org>
39230
39231         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39232         * doc/glibc-functions/flistxattr.texi: Likewise.
39233         * doc/glibc-functions/fopencookie.texi: Likewise.
39234         * doc/glibc-functions/fremovexattr.texi: Likewise.
39235         * doc/glibc-functions/fsetxattr.texi: Likewise.
39236         * doc/glibc-functions/getxattr.texi: Likewise.
39237         * doc/glibc-functions/lgetxattr.texi: Likewise.
39238         * doc/glibc-functions/listxattr.texi: Likewise.
39239         * doc/glibc-functions/llistxattr.texi: Likewise.
39240         * doc/glibc-functions/lremovexattr.texi: Likewise.
39241         * doc/glibc-functions/lsetxattr.texi: Likewise.
39242         * doc/glibc-functions/removexattr.texi: Likewise.
39243         * doc/glibc-functions/setxattr.texi: Likewise.
39244         * doc/posix-functions/open_memstream.texi: Likewise.
39245
39246 2008-12-15  Eric Blake  <ebb9@byu.net>
39247
39248         Update doc for cygwin 1.7.
39249         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39250         functions.
39251         * doc/posix-functions/fchmodat.texi: Likewise.
39252         * doc/posix-functions/fchownat.texi: Likewise.
39253         * doc/posix-functions/fdopendir.texi: Likewise.
39254         * doc/posix-functions/fmemopen.texi: Likewise.
39255         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39256         * doc/posix-functions/fstatat.texi: Likewise.
39257         * doc/posix-functions/futimens.texi: Likewise.
39258         * doc/posix-functions/gai_strerror.texi: Likewise.
39259         * doc/posix-functions/getaddrinfo.texi: Likewise.
39260         * doc/posix-functions/getnameinfo.texi: Likewise.
39261         * doc/posix-functions/if_freenameindex.texi: Likewise.
39262         * doc/posix-functions/if_indextoname.texi: Likewise.
39263         * doc/posix-functions/if_nameindex.texi: Likewise.
39264         * doc/posix-functions/if_nametoindex.texi: Likewise.
39265         * doc/posix-functions/insque.texi: Likewise.
39266         * doc/posix-functions/linkat.texi: Likewise.
39267         * doc/posix-functions/llrint.texi: Likewise.
39268         * doc/posix-functions/llrintf.texi: Likewise.
39269         * doc/posix-functions/llrintl.texi: Likewise.
39270         * doc/posix-functions/lockf.texi: Likewise.
39271         * doc/posix-functions/lrintl.texi: Likewise.
39272         * doc/posix-functions/mkdirat.texi: Likewise.
39273         * doc/posix-functions/mkfifoat.texi: Likewise.
39274         * doc/posix-functions/mknodat.texi: Likewise.
39275         * doc/posix-functions/mq_close.texi: Likewise.
39276         * doc/posix-functions/mq_getattr.texi: Likewise.
39277         * doc/posix-functions/mq_notify.texi: Likewise.
39278         * doc/posix-functions/mq_open.texi: Likewise.
39279         * doc/posix-functions/mq_receive.texi: Likewise.
39280         * doc/posix-functions/mq_send.texi: Likewise.
39281         * doc/posix-functions/mq_setattr.texi: Likewise.
39282         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39283         * doc/posix-functions/mq_timedsend.texi: Likewise.
39284         * doc/posix-functions/mq_unlink.texi: Likewise.
39285         * doc/posix-functions/open_memstream.texi: Likewise.
39286         * doc/posix-functions/openat.texi: Likewise.
39287         * doc/posix-functions/posix_fadvise.texi: Likewise.
39288         * doc/posix-functions/posix_fallocate.texi: Likewise.
39289         * doc/posix-functions/posix_madvise.texi: Likewise.
39290         * doc/posix-functions/posix_memalign.texi: Likewise.
39291         * doc/posix-functions/posix_openpt.texi: Likewise.
39292         * doc/posix-functions/readlinkat.texi: Likewise.
39293         * doc/posix-functions/remque.texi: Likewise.
39294         * doc/posix-functions/renameat.texi: Likewise.
39295         * doc/posix-functions/rintl.texi: Likewise.
39296         * doc/posix-functions/sem_unlink.texi: Likewise.
39297         * doc/posix-functions/shm_open.texi: Likewise.
39298         * doc/posix-functions/shm_unlink.texi: Likewise.
39299         * doc/posix-functions/signgam.texi: Likewise.
39300         * doc/posix-functions/sigset.texi: Likewise.
39301         * doc/posix-functions/stpcpy.texi: Likewise.
39302         * doc/posix-functions/stpncpy.texi: Likewise.
39303         * doc/posix-functions/strerror.texi: Likewise.
39304         * doc/posix-functions/strtod.texi: Likewise.
39305         * doc/posix-functions/symlinkat.texi: Likewise.
39306         * doc/posix-functions/unlinkat.texi: Likewise.
39307         * doc/posix-functions/utimensat.texi: Likewise.
39308         * doc/glibc-functions/bindresvport.texi: Likewise.
39309         * doc/glibc-functions/dn_expand.texi: Likewise.
39310         * doc/glibc-functions/exp10.texi: Likewise.
39311         * doc/glibc-functions/exp10f.texi: Likewise.
39312         * doc/glibc-functions/fgetxattr.texi: Likewise.
39313         * doc/glibc-functions/flistxattr.texi: Likewise.
39314         * doc/glibc-functions/fopencookie.texi: Likewise.
39315         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39316         * doc/glibc-functions/fremovexattr.texi: Likewise.
39317         * doc/glibc-functions/fsetxattr.texi: Likewise.
39318         * doc/glibc-functions/getifaddrs.texi: Likewise.
39319         * doc/glibc-functions/getxattr.texi: Likewise.
39320         * doc/glibc-functions/lgetxattr.texi: Likewise.
39321         * doc/glibc-functions/listxattr.texi: Likewise.
39322         * doc/glibc-functions/llistxattr.texi: Likewise.
39323         * doc/glibc-functions/lremovexattr.texi: Likewise.
39324         * doc/glibc-functions/lsetxattr.texi: Likewise.
39325         * doc/glibc-functions/pow10.texi: Likewise.
39326         * doc/glibc-functions/pow10f.texi: Likewise.
39327         * doc/glibc-functions/rcmd_af.texi: Likewise.
39328         * doc/glibc-functions/removexattr.texi: Likewise.
39329         * doc/glibc-functions/res_init.texi: Likewise.
39330         * doc/glibc-functions/res_mkquery.texi: Likewise.
39331         * doc/glibc-functions/res_query.texi: Likewise.
39332         * doc/glibc-functions/res_querydomain.texi: Likewise.
39333         * doc/glibc-functions/res_send.texi: Likewise.
39334         * doc/glibc-functions/rresvport_af.texi: Likewise.
39335         * doc/glibc-functions/setxattr.texi: Likewise.
39336         * doc/glibc-functions/strcasestr.texi: Likewise.
39337
39338 2008-12-15  Bruno Haible  <bruno@clisp.org>
39339
39340         Fix compilation error on OSF/1 4.0.
39341         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39342         <sys/time.h>, simply delegate to the system header.
39343         Reported by Daniel Richard G. <oss@teragram.com>.
39344
39345 2008-12-15  Bruno Haible  <bruno@clisp.org>
39346
39347         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39348         * doc/posix-functions/fchmodat.texi: Likewise.
39349         * doc/posix-functions/fchownat.texi: Likewise.
39350         * doc/posix-functions/fdopendir.texi: Likewise.
39351         * doc/posix-functions/fstatat.texi: Likewise.
39352         * doc/posix-functions/mkdirat.texi: Likewise.
39353         * doc/posix-functions/unlinkat.texi: Likewise.
39354
39355 2008-12-14  Bruno Haible  <bruno@clisp.org>
39356
39357         Update doc for POSIX:2008.
39358         * doc/posix-functions/faccessat.texi: New file.
39359         * doc/posix-functions/fchmodat.texi: New file.
39360         * doc/posix-functions/fchownat.texi: New file.
39361         * doc/posix-functions/fdopendir.texi: New file.
39362         * doc/posix-functions/fstatat.texi: New file.
39363         * doc/posix-functions/futimens.texi: New file.
39364         * doc/posix-functions/linkat.texi: New file.
39365         * doc/posix-functions/mkdirat.texi: New file.
39366         * doc/posix-functions/mkfifoat.texi: New file.
39367         * doc/posix-functions/mknodat.texi: New file.
39368         * doc/posix-functions/open_wmemstream.texi: New file.
39369         * doc/posix-functions/openat.texi: New file.
39370         * doc/posix-functions/psiginfo.texi: New file.
39371         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39372         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39373         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39374         * doc/posix-functions/readlinkat.texi: New file.
39375         * doc/posix-functions/renameat.texi: New file.
39376         * doc/posix-functions/strerror_l.texi: New file.
39377         * doc/posix-functions/symlinkat.texi: New file.
39378         * doc/posix-functions/unlinkat.texi: New file.
39379         * doc/posix-functions/utimensat.texi: New file.
39380         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39381
39382 2008-12-14  Bruno Haible  <bruno@clisp.org>
39383
39384         Update doc for POSIX:2008.
39385         * doc/posix-functions/alphasort.texi: Renamed from
39386         doc/glibc-functions/alphasort.texi.
39387         * doc/posix-functions/dirfd.texi: Renamed from
39388         doc/glibc-functions/dirfd.texi.
39389         * doc/posix-functions/dprintf.texi: Renamed from
39390         doc/glibc-functions/dprintf.texi.
39391         * doc/posix-functions/duplocale.texi: Renamed from
39392         doc/glibc-functions/duplocale.texi.
39393         * doc/posix-functions/fexecve.texi: Renamed from
39394         doc/glibc-functions/fexecve.texi.
39395         * doc/posix-functions/fmemopen.texi: Renamed from
39396         doc/glibc-functions/fmemopen.texi.
39397         * doc/posix-functions/freelocale.texi: Renamed from
39398         doc/glibc-functions/freelocale.texi.
39399         * doc/posix-functions/getdate_err.texi: Renamed from
39400         doc/glibc-functions/getdate_err.texi.
39401         * doc/posix-functions/isalnum_l.texi: Renamed from
39402         doc/glibc-functions/isalnum_l.texi.
39403         * doc/posix-functions/isalpha_l.texi: Renamed from
39404         doc/glibc-functions/isalpha_l.texi.
39405         * doc/posix-functions/isblank_l.texi: Renamed from
39406         doc/glibc-functions/isblank_l.texi.
39407         * doc/posix-functions/iscntrl_l.texi: Renamed from
39408         doc/glibc-functions/iscntrl_l.texi.
39409         * doc/posix-functions/isdigit_l.texi: Renamed from
39410         doc/glibc-functions/isdigit_l.texi.
39411         * doc/posix-functions/isgraph_l.texi: Renamed from
39412         doc/glibc-functions/isgraph_l.texi.
39413         * doc/posix-functions/islower_l.texi: Renamed from
39414         doc/glibc-functions/islower_l.texi.
39415         * doc/posix-functions/isprint_l.texi: Renamed from
39416         doc/glibc-functions/isprint_l.texi.
39417         * doc/posix-functions/ispunct_l.texi: Renamed from
39418         doc/glibc-functions/ispunct_l.texi.
39419         * doc/posix-functions/isspace_l.texi: Renamed from
39420         doc/glibc-functions/isspace_l.texi.
39421         * doc/posix-functions/isupper_l.texi: Renamed from
39422         doc/glibc-functions/isupper_l.texi.
39423         * doc/posix-functions/iswalnum_l.texi: Renamed from
39424         doc/glibc-functions/iswalnum_l.texi.
39425         * doc/posix-functions/iswalpha_l.texi: Renamed from
39426         doc/glibc-functions/iswalpha_l.texi.
39427         * doc/posix-functions/iswblank_l.texi: Renamed from
39428         doc/glibc-functions/iswblank_l.texi.
39429         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39430         doc/glibc-functions/iswcntrl_l.texi.
39431         * doc/posix-functions/iswctype_l.texi: Renamed from
39432         doc/glibc-functions/iswctype_l.texi.
39433         * doc/posix-functions/iswdigit_l.texi: Renamed from
39434         doc/glibc-functions/iswdigit_l.texi.
39435         * doc/posix-functions/iswgraph_l.texi: Renamed from
39436         doc/glibc-functions/iswgraph_l.texi.
39437         * doc/posix-functions/iswlower_l.texi: Renamed from
39438         doc/glibc-functions/iswlower_l.texi.
39439         * doc/posix-functions/iswprint_l.texi: Renamed from
39440         doc/glibc-functions/iswprint_l.texi.
39441         * doc/posix-functions/iswpunct_l.texi: Renamed from
39442         doc/glibc-functions/iswpunct_l.texi.
39443         * doc/posix-functions/iswspace_l.texi: Renamed from
39444         doc/glibc-functions/iswspace_l.texi.
39445         * doc/posix-functions/iswupper_l.texi: Renamed from
39446         doc/glibc-functions/iswupper_l.texi.
39447         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39448         doc/glibc-functions/iswxdigit_l.texi.
39449         * doc/posix-functions/isxdigit_l.texi: Renamed from
39450         doc/glibc-functions/isxdigit_l.texi.
39451         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39452         doc/glibc-functions/mbsnrtowcs.texi.
39453         * doc/posix-functions/mkdtemp.texi: Renamed from
39454         doc/glibc-functions/mkdtemp.texi.
39455         * doc/posix-functions/newlocale.texi: Renamed from
39456         doc/glibc-functions/newlocale.texi.
39457         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39458         doc/glibc-functions/nl_langinfo_l.texi.
39459         * doc/posix-functions/open_memstream.texi: Renamed from
39460         doc/glibc-functions/open_memstream.texi.
39461         * doc/posix-functions/opterr.texi: Renamed from
39462         doc/glibc-functions/opterr.texi.
39463         * doc/posix-functions/optind.texi: Renamed from
39464         doc/glibc-functions/optind.texi.
39465         * doc/posix-functions/optopt.texi: Renamed from
39466         doc/glibc-functions/optopt.texi.
39467         * doc/posix-functions/psignal.texi: Renamed from
39468         doc/glibc-functions/psignal.texi.
39469         * doc/posix-functions/scandir.texi: Renamed from
39470         doc/glibc-functions/scandir.texi.
39471         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39472         doc/glibc-functions/sched_get_priority_min.texi.
39473         * doc/posix-functions/signgam.texi: Renamed from
39474         doc/glibc-functions/signgam.texi.
39475         * doc/posix-functions/stpcpy.texi: Renamed from
39476         doc/glibc-functions/stpcpy.texi.
39477         * doc/posix-functions/stpncpy.texi: Renamed from
39478         doc/glibc-functions/stpncpy.texi.
39479         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39480         doc/glibc-functions/strcasecmp_l.texi.
39481         * doc/posix-functions/strcoll_l.texi: Renamed from
39482         doc/glibc-functions/strcoll_l.texi.
39483         * doc/posix-functions/strfmon_l.texi: Renamed from
39484         doc/glibc-functions/strfmon_l.texi.
39485         * doc/posix-functions/strftime_l.texi: Renamed from
39486         doc/glibc-functions/strftime_l.texi.
39487         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39488         doc/glibc-functions/strncasecmp_l.texi.
39489         * doc/posix-functions/strndup.texi: Renamed from
39490         doc/glibc-functions/strndup.texi.
39491         * doc/posix-functions/strnlen.texi: Renamed from
39492         doc/glibc-functions/strnlen.texi.
39493         * doc/posix-functions/strsignal.texi: Renamed from
39494         doc/glibc-functions/strsignal.texi.
39495         * doc/posix-functions/strxfrm_l.texi: Renamed from
39496         doc/glibc-functions/strxfrm_l.texi.
39497         * doc/posix-functions/timer_gettime.texi: Renamed from
39498         doc/glibc-functions/timer_gettime.texi.
39499         * doc/posix-functions/tolower_l.texi: Renamed from
39500         doc/glibc-functions/tolower_l.texi.
39501         * doc/posix-functions/toupper_l.texi: Renamed from
39502         doc/glibc-functions/toupper_l.texi.
39503         * doc/posix-functions/towctrans_l.texi: Renamed from
39504         doc/glibc-functions/towctrans_l.texi.
39505         * doc/posix-functions/towlower_l.texi: Renamed from
39506         doc/glibc-functions/towlower_l.texi.
39507         * doc/posix-functions/towupper_l.texi: Renamed from
39508         doc/glibc-functions/towupper_l.texi.
39509         * doc/posix-functions/uselocale.texi: Renamed from
39510         doc/glibc-functions/uselocale.texi.
39511         * doc/posix-functions/vdprintf.texi: Renamed from
39512         doc/glibc-functions/vdprintf.texi.
39513         * doc/posix-functions/wcpcpy.texi:
39514         Renamed from doc/glibc-functions/wcpcpy.texi.
39515         * doc/posix-functions/wcpncpy.texi: Renamed from
39516         doc/glibc-functions/wcpncpy.texi.
39517         * doc/posix-functions/wcscasecmp.texi: Renamed from
39518         doc/glibc-functions/wcscasecmp.texi.
39519         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39520         doc/glibc-functions/wcscasecmp_l.texi.
39521         * doc/posix-functions/wcscoll_l.texi: Renamed from
39522         doc/glibc-functions/wcscoll_l.texi.
39523         * doc/posix-functions/wcsdup.texi: Renamed from
39524         doc/glibc-functions/wcsdup.texi.
39525         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39526         doc/glibc-functions/wcsncasecmp.texi.
39527         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39528         doc/glibc-functions/wcsncasecmp_l.texi.
39529         * doc/posix-functions/wcsnlen.texi: Renamed from
39530         doc/glibc-functions/wcsnlen.texi.
39531         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39532         doc/glibc-functions/wcsnrtombs.texi.
39533         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39534         doc/glibc-functions/wcsxfrm_l.texi.
39535         * doc/posix-functions/wctrans_l.texi: Renamed from
39536         doc/glibc-functions/wctrans_l.texi.
39537         * doc/posix-functions/wctype_l.texi: Renamed from
39538         doc/glibc-functions/wctype_l.texi.
39539         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39540         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39541         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39542         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39543         these subsections.
39544         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39545         Remove sections.
39546
39547 2008-12-14  Bruno Haible  <bruno@clisp.org>
39548
39549         Update doc for POSIX:2008.
39550         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39551
39552 2008-12-14  Bruno Haible  <bruno@clisp.org>
39553
39554         Update doc for POSIX:2008.
39555         * doc/pastposix-functions/bcmp.texi: Renamed from
39556         doc/posix-functions/bcmp.texi.
39557         * doc/pastposix-functions/bcopy.texi: Renamed from
39558         doc/posix-functions/bcopy.texi.
39559         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39560         doc/posix-functions/bsd_signal.texi.
39561         * doc/pastposix-functions/bzero.texi: Renamed from
39562         doc/posix-functions/bzero.texi.
39563         * doc/pastposix-functions/ecvt.texi: Renamed from
39564         doc/posix-functions/ecvt.texi.
39565         * doc/pastposix-functions/fcvt.texi: Renamed from
39566         doc/posix-functions/fcvt.texi.
39567         * doc/pastposix-functions/ftime.texi: Renamed from
39568         doc/posix-functions/ftime.texi.
39569         * doc/pastposix-functions/gcvt.texi: Renamed from
39570         doc/posix-functions/gcvt.texi.
39571         * doc/pastposix-functions/getcontext.texi: Renamed from
39572         doc/posix-functions/getcontext.texi.
39573         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39574         doc/posix-functions/gethostbyaddr.texi.
39575         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39576         doc/posix-functions/gethostbyname.texi.
39577         * doc/pastposix-functions/getwd.texi: Renamed from
39578         doc/posix-functions/getwd.texi.
39579         * doc/pastposix-functions/h_errno.texi: Renamed from
39580         doc/posix-functions/h_errno.texi.
39581         * doc/pastposix-functions/index.texi: Renamed from
39582         doc/posix-functions/index.texi.
39583         * doc/pastposix-functions/makecontext.texi: Renamed from
39584         doc/posix-functions/makecontext.texi.
39585         * doc/pastposix-functions/mktemp.texi: Renamed from
39586         doc/posix-functions/mktemp.texi.
39587         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39588         doc/posix-functions/pthread_attr_getstackaddr.texi.
39589         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39590         doc/posix-functions/pthread_attr_setstackaddr.texi.
39591         * doc/pastposix-functions/rindex.texi: Renamed from
39592         doc/posix-functions/rindex.texi.
39593         * doc/pastposix-functions/scalb.texi: Renamed from
39594         doc/posix-functions/scalb.texi.
39595         * doc/pastposix-functions/setcontext.texi: Renamed from
39596         doc/posix-functions/setcontext.texi.
39597         * doc/pastposix-functions/swapcontext.texi: Renamed from
39598         doc/posix-functions/swapcontext.texi.
39599         * doc/pastposix-functions/ualarm.texi: Renamed from
39600         doc/posix-functions/ualarm.texi.
39601         * doc/pastposix-functions/usleep.texi: Renamed from
39602         doc/posix-functions/usleep.texi.
39603         * doc/pastposix-functions/vfork.texi: Renamed from
39604         doc/posix-functions/vfork.texi.
39605         * doc/pastposix-functions/wcswcs.texi: Renamed from
39606         doc/posix-functions/wcswcs.texi.
39607         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39608         (Function Substitutes): Update.
39609
39610 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39611
39612         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39613         m4/strerror.m4.
39614
39615 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39616             Bruno Haible  <bruno@clisp.org>
39617
39618         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39619
39620 2008-12-13  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/strtoull (Depends-on): Remove unistd.
39623
39624 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39625
39626         * modules/strtoull (Depends-on): Add stdlib.
39627
39628 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39629
39630         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39631
39632 2008-12-10  Jim Meyering  <meyering@redhat.com>
39633
39634         gl_ASSERT: don't say assertions are disabled when they're not
39635         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39636         "checking whether to enable assertions... no", when they are in
39637         fact enabled.  This is solely a bug in the output of configure.
39638         In spite of saying "no", NDEBUG was not defined in that case.
39639         Also, as noted by Eric Blake, leave assertions enabled upon
39640         --enable-assert=INVALID.
39641
39642 2008-12-10  Bruno Haible  <bruno@clisp.org>
39643
39644         Change MODULES.html to refer to POSIX:2008 where possible.
39645         * MODULES.html.sh (POSIX2008_URL): New variable.
39646         (posix_headers): Remove sys/timeb, ucontext.
39647         (posix2001_headers): New variable.
39648         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39649         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39650         index, makecontext, mktemp, pthread_attr_getstackaddr,
39651         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39652         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39653         (posix2001_functions): New variable.
39654         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39655         otherwise.
39656
39657 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39658
39659         add missing include to parse-duration.c
39660         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39661         * modules/parse-duration (Depends-on): Add xalloc.
39662
39663         fix sed script reading maint.mk
39664         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39665         (syntax-check-rules): Use it.
39666
39667 2008-12-09  Bruno Haible  <bruno@clisp.org>
39668
39669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39670         MacOS X 10.4/PowerPC.
39671         Reported by Simon Josefsson.
39672
39673 2008-12-08  Jim Meyering  <meyering@redhat.com>
39674
39675         work around mingw's lack of some S_IF definitions
39676         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39677         Reported by Simon Josefsson.
39678
39679 2008-12-08  Bruno Haible  <bruno@clisp.org>
39680
39681         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39682         applied to variables. Needed on MacOS X 10.4/PowerPC.
39683         Reported by Simon Josefsson.
39684
39685 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39686         and Eric Blake  <ebb9@byu.net>
39687
39688         assert: honor --enable-assert
39689         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39690         order to honor --enable-assert, rather than treating it as a
39691         synonym for --disable-assert.
39692
39693 2008-12-08  Jim Meyering  <meyering@redhat.com>
39694
39695         * lib/posixtm.c: Remove now-useless declaration of mktime.
39696
39697         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39698
39699 2008-12-07  Bruno Haible  <bruno@clisp.org>
39700
39701         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39702         test_once): Mark functions as static.
39703         * tests/test-tls.c (test_tls): Likewise.
39704
39705 2008-12-07  Bruno Haible  <bruno@clisp.org>
39706
39707         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39708         iconv_register_autodetect.
39709
39710 2008-12-07  Jim Meyering  <meyering@redhat.com>
39711
39712         posixtm.c: avoid a warning
39713         * lib/posixtm.c (posixtime): Don't initialize tm0.
39714         It's no longer needed to placate gcc4's -Wuninitialized,
39715         and the attempt to placate would elicit a new warning.
39716
39717         unicodeio.c: mark unused parameters
39718         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39719         (fallback_failure_callback): Likewise.
39720
39721 2008-12-07  Bruno Haible  <bruno@clisp.org>
39722
39723         * gnulib-tool (func_create_testdir): When building the tests
39724         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39725         Reported by Simon Josefsson.
39726
39727 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39728
39729         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39730
39731 2008-12-06  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39734         Suggested by Eric Blake.
39735
39736 2008-12-06  Bruno Haible  <bruno@clisp.org>
39737
39738         Fix a c-stack test failure on MacOS X.
39739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39740         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39741         handler for SIGBUS as well.
39742         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39743         install a signal handler for SIGBUS as well.
39744         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39745
39746 2008-12-06  Bruno Haible  <bruno@clisp.org>
39747
39748         Advocacy documentation.
39749         * doc/gnulib-intro.texi (Benefits): New section.
39750         * doc/gnulib.texi: Update.
39751
39752 2008-12-06  Bruno Haible  <bruno@clisp.org>
39753
39754         Document the 'manywarnings' module.
39755         * doc/manywarnings.texi: New file.
39756         * doc/gnulib.texi: Include it.
39757
39758 2008-12-05  Eric Blake  <ebb9@byu.net>
39759
39760         tests: silence some gcc warnings
39761         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39762         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39763         type mismatches.
39764
39765 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39766             Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39769
39770 2008-11-29  Jim Meyering  <meyering@redhat.com>
39771
39772         unicodeio.c: mark unused parameters
39773         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39774         (fallback_failure_callback): Likewise.
39775
39776         fts: fix a thinko
39777         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39778         (set_stat_type): Return S_IF*-valued "type" directly.
39779         Prompted by James Youngman's spotting a related bug.
39780         Confirmed by further testing through find.
39781
39782         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39783         * lib/fts.c (D_TYPE): Define.
39784         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39785         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39786         (s_ifmt_shift_bits): New function.
39787         (set_stat_type): New function.
39788         (fts_build): When not calling fts_stat, call set_stat_type
39789         to propagate dirent.d_type info to fts_read caller.
39790         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39791         fts_statp->st_mode type information may be valid.
39792
39793 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39794
39795         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39796         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39797         <sds@gnu.org>.
39798
39799 2008-11-20  Bruno Haible  <bruno@clisp.org>
39800
39801         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39802         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39803         INCLUDE_NEXT.
39804         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39805         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39806         * modules/math (Makefile.am): Substitute
39807         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39809
39810 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39811             Bruno Haible  <bruno@clisp.org>
39812
39813         * lib/stdint.in.h: Define all type macros so that their expansion is
39814         a single typedef'ed token. Fixes a compilation failure in Boost which
39815         does "using ::int8_t;".
39816
39817 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39818
39819         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39820         gl_MANYWARN_ALL_GCC.
39821         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39822         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39823         * modules/manywarnings: New file.
39824         * MODULES.html.sh: Mention manywarnings module.
39825
39826 2008-11-18  Bruno Haible  <bruno@clisp.org>
39827
39828         * doc/gnulib-tool.texi (Unit tests): New section.
39829
39830 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39831
39832         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39833         paths like 'lib/po/foo.po'.
39834
39835 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39836
39837         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39838         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39839
39840 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39841
39842         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39843         parameter works.
39844
39845 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39846
39847         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39848
39849 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39850
39851         * modules/parse-duration-tests: New file.
39852         * tests/test-parse-duration.sh: New file.
39853         * tests/test-parse-duration.c: New file.
39854
39855         New module 'parse-duration'.
39856         * lib/parse-duration.h: New file.
39857         * lib/parse-duration.c: New file.
39858         * modules/parse-duration: New file.
39859
39860 2008-11-17  Bruno Haible  <bruno@clisp.org>
39861
39862         * tests/test-select-out.sh: Comment out the first pipe test.
39863         Reported by Simon Josefsson.
39864
39865 2008-11-17  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39869         gl_HOSTENT.
39870
39871 2008-11-17  Bruno Haible  <bruno@clisp.org>
39872
39873         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39874         -lnetwork and -lnet. Needed for Haiku and BeOS.
39875
39876 2008-11-16  Bruno Haible  <bruno@clisp.org>
39877
39878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39879
39880 2008-11-16  Bruno Haible  <bruno@clisp.org>
39881
39882         Avoid test failure on Haiku.
39883         * tests/test-fsync.c: Include <errno.h>.
39884         (main): Don't require that fsync (0) fails.
39885
39886 2008-11-15  Bruno Haible  <bruno@clisp.org>
39887
39888         New module 'hostent'.
39889         * modules/hostent: New file.
39890         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39891
39892 2008-11-15  Bruno Haible  <bruno@clisp.org>
39893
39894         New module 'servent'.
39895         * modules/servent: New file.
39896         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39897
39898 2008-11-15  Bruno Haible  <bruno@clisp.org>
39899
39900         Avoid generating same test program with two different rules.
39901         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39902         test-frexp to test-frexp-nolibm.
39903         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39904         test-frexpl to test-frexpl-nolibm.
39905
39906 2008-11-15  Bruno Haible  <bruno@clisp.org>
39907
39908         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39909         $(FREXPL_LIBM).
39910
39911 2008-11-15  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/netdb.in.h: Activate the definitions also when the system's
39914         <netdb.h> has 'struct addrinfo'.
39915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39916         EAI_OVERFLOW or AI_NUMERICSERV.
39917         * doc/posix-headers/netdb.texi: Document the problem.
39918
39919 2008-11-15  Bruno Haible  <bruno@clisp.org>
39920
39921         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39922
39923         Make the 'sched' module work on platforms where <sched.h> exists but
39924         is incomplete (such as Haiku).
39925         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39926         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39927         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39928         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39929         HAVE_STRUCT_SCHED_PARAM.
39930         * modules/sched (Depends-on): Add include_next.
39931         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39932         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39933         * doc/posix-headers/sched.texi: Document the issue.
39934
39935 2008-11-13  Jim Meyering  <meyering@redhat.com>
39936
39937         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39938         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39939         test would fail due to the difference in the Report bugs to ...
39940         line.  The expected address is empty, "<>", while the actual
39941         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39942
39943 2008-11-12  Bruno Haible  <bruno@clisp.org>
39944
39945         lstat: don't compile lstat.c on systems lacking lstat
39946         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39947         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39948         Reported by Daniel P. Berrange via Jim Meyering.
39949
39950 2008-11-12  Jim Meyering  <meyering@redhat.com>
39951
39952         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39953
39954 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39955
39956         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39957         instead.
39958
39959 2008-11-12  Bruno Haible  <bruno@clisp.org>
39960
39961         * lib/unicodeio.c: Include unistr.h.
39962         (utf8_wctomb): Remove function.
39963         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39964
39965 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39966
39967         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39968         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39969         <bruno@clisp.org>.
39970         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39971
39972 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39973
39974         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39975         * doc/gnulib.texi: Add section for warnings.
39976
39977 2008-11-11  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/sockets.h: Add a comment.
39980
39981 2008-11-11  Karl Berry  <karl@gnu.org>
39982
39983         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39984
39985 2008-11-11  Eric Blake  <ebb9@byu.net>
39986
39987         fdl.texi: avoid git symlinks
39988         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39989
39990 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39991
39992         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39993
39994 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39995
39996         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39997         (gl_WARN_ADD): Substitute $2 if literal.
39998
39999 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40000
40001         * m4/warning.m4: Remove.
40002
40003 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40004
40005         * m4/warnings.m4: Almost complete rewrite. :-)
40006
40007 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40008
40009         * modules/warnings: New module.
40010         * m4/warnings.m4: New file.
40011         * MODULES.html.sh: Mention warnings module.
40012         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40013         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40014
40015 2008-11-10  Eric Blake  <ebb9@byu.net>
40016
40017         fdl.texi: make a symlink to the latest version
40018         * doc/standards.texi: Revert today's earlier change.
40019         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40020         * doc/fdl.texi: ...and replace this with a symlink to the newer
40021         fdl-1.3.texi.
40022
40023 2008-11-10  Bruno Haible  <bruno@clisp.org>
40024
40025         * tests/test-select-fd.c (main): Accept the result file name as fourth
40026         argument.
40027         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40028         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40029
40030 2008-11-10  Bruno Haible  <bruno@clisp.org>
40031
40032         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40033         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40034         as autoconf-substituted macros.
40035         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40037         gl_NETDB_H_DEFAULTS. Set these variables.
40038         * modules/netdb (Makefile.am): Substitute these variables.
40039
40040 2008-11-10  Eric Blake  <ebb9@byu.net>
40041
40042         standards.texi: include correct file for FDL 1.3
40043         * doc/standards.texi (GNU Free Documentation License): Change
40044         include file to pull in FDL 1.3, not 1.2.
40045
40046         fdl.texi: revert accidental change to license
40047         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40048
40049 2008-11-10  Bruno Haible  <bruno@clisp.org>
40050
40051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40052         cross-compiling guesses also when the native compile gives no result.
40053
40054 2008-11-10  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/spawni.c (__spawni): Force variable into the stack.
40057
40058 2008-11-10  Bruno Haible  <bruno@clisp.org>
40059
40060         Add support for Haiku.
40061         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40062         glibc and BeOS, but also on Haiku.
40063         * lib/fpurge.c (fpurge): Likewise.
40064         * lib/freadable.c (freadable): Likewise.
40065         * lib/freadahead.c (freadahead): Likewise.
40066         * lib/freading.c (freading): Likewise.
40067         * lib/freadptr.c (freadptr): Likewise.
40068         * lib/freadseek.c (freadptrinc): Likewise.
40069         * lib/fseeko.c (rpl_fseeko): Likewise.
40070         * lib/fseterr.c (fseterr): Likewise.
40071         * lib/fwritable.c (fwritable): Likewise.
40072         * lib/fwriting.c (fwriting): Likewise.
40073         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40074
40075 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40076
40077         * lib/config.charset: Treat Haiku like BeOS.
40078
40079 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40080
40081         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40082         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40083
40084 2008-11-08  Bruno Haible  <bruno@clisp.org>
40085
40086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40087         AC_CACHE_CHECK.
40088
40089 2008-11-08  Bruno Haible  <bruno@clisp.org>
40090
40091         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40092
40093 2008-11-08  Bruno Haible  <bruno@clisp.org>
40094
40095         * tests/test-select-fd.c: New file.
40096         * tests/test-select-in.sh: New file.
40097         * tests/test-select-out.sh: New file.
40098         * tests/test-select-stdin.c: New file.
40099         * modules/select-tests (Files): Add the new files.
40100         (Depends-on): Add gettimeofday.
40101         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40102         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40103         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40104
40105 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40106             Bruno Haible  <bruno@clisp.org>
40107
40108         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40109
40110 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40111
40112         * build-aux/pmccabe2html: Added support for C++ source files.
40113
40114 2008-11-05  Ben Pfaff  <blp@gnu.org>
40115
40116         Fix lib/close.c build on Windows.
40117         * modules/close (Files): Add lib/w32sock.h.
40118
40119 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40120
40121         Accept Bison's NEWS format.
40122         * build-aux/announce-gen (print_news_deltas): Tweak
40123         $re_prefix.
40124
40125 2008-11-04  Bruno Haible  <bruno@clisp.org>
40126
40127         * modules/random_r (Maintainer): Add glibc.
40128
40129 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40130
40131         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40132         by karl@freefriends.org (Karl Berry).
40133         * doc/alloca.texi: Likewise.
40134         * doc/c-ctype.texi: Likewise.
40135         * doc/c-strcase.texi: Likewise.
40136         * doc/c-strcaseeq.texi: Likewise.
40137         * doc/c-strcasestr.texi: Likewise.
40138         * doc/c-strstr.texi: Likewise.
40139         * doc/c-strtod.texi: Likewise.
40140         * doc/c-strtold.texi: Likewise.
40141         * doc/ctime.texi: Likewise.
40142         * doc/error.texi: Likewise.
40143         * doc/fdl.texi: Likewise.
40144         * doc/gcd.texi: Likewise.
40145         * doc/getdate.texi: Likewise.
40146         * doc/gnulib-intro.texi: Likewise.
40147         * doc/gnulib-tool.texi: Likewise.
40148         * doc/gnulib.texi: Likewise.
40149         * doc/inet_ntoa.texi: Likewise.
40150         * doc/maintain.texi: Likewise.
40151         * doc/make-stds.texi: Likewise.
40152         * doc/quote.texi: Likewise.
40153         * doc/regexprops-generic.texi: Likewise.
40154         * doc/standards.texi: Likewise.
40155         * doc/verify.texi: Likewise.
40156         * doc/visibility.texi: Likewise.
40157         * doc/gnulib.texi (GNU Free Documentation License): Include
40158         fdl-1.3.texi instead of fdl.texi.
40159
40160 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40161
40162         * doc/fdl-1.3.texi: New file, from
40163         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40164         * modules/fdl-1.3: Add.
40165         * MODULES.html.sh: Add fdl-1.3.
40166
40167 2008-11-03  Bruno Haible  <bruno@clisp.org>
40168
40169         Make determination of absolute name of header file work with AIX xlc.
40170         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40171         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40172         preprocessing.
40173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40174         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40175
40176 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40177
40178         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40179         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40180         <ludo@gnu.org>.
40181
40182 2008-11-02  Bruno Haible  <bruno@clisp.org>
40183
40184         Mark 'strpbrk' obsolete.
40185         * modules/strpbrk (Status, Notice): New sections.
40186         * modules/strtok_r (Depends-on): Add strpbrk.
40187
40188 2008-11-02  Bruno Haible  <bruno@clisp.org>
40189
40190         Mark 'strdup' obsolete.
40191         * modules/strdup (Status, Notice): New sections.
40192         * modules/findprog (Depends-on): Add strdup.
40193         * modules/getaddrinfo (Depends-on): Likewise.
40194         * modules/localename (Depends-on): Likewise.
40195         * modules/relocatable-lib (Depends-on): Likewise.
40196         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40197         * modules/relocatable-prog (Depends-on): Likewise.
40198         * modules/trim (Depends-on): Likewise.
40199         * modules/unictype/gen-ctype (Depends-on): Likewise.
40200         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40201
40202 2008-11-02  Bruno Haible  <bruno@clisp.org>
40203
40204         Mark 'strcspn' obsolete.
40205         * modules/strcspn (Status, Notice): New sections.
40206
40207 2008-11-02  Bruno Haible  <bruno@clisp.org>
40208
40209         Mark 'rmdir' obsolete.
40210         * modules/rmdir (Status, Notice): New sections.
40211         * modules/clean-temp (Depends-on): Add rmdir.
40212         * modules/openat (Depends-on): Likewise.
40213
40214 2008-11-02  Bruno Haible  <bruno@clisp.org>
40215
40216         Mark 'raise' obsolete.
40217         * modules/raise (Status, Notice): New sections.
40218         (Include): Specify <signal.h>.
40219         * modules/stdio (Depends-on): Add raise.
40220         * modules/write (Depends-on): Likewise.
40221
40222 2008-11-02  Bruno Haible  <bruno@clisp.org>
40223
40224         Mark 'memset' obsolete.
40225         * modules/memset (Status, Notice): New sections.
40226
40227 2008-11-02  Bruno Haible  <bruno@clisp.org>
40228
40229         Mark 'memmove' obsolete.
40230         * modules/memmove (Status, Notice): New sections.
40231         * modules/argp (Depends-on): Add memmove.
40232         * modules/argz (Depends-on): Likewise.
40233         * modules/canonicalize (Depends-on): Likewise.
40234         * modules/canonicalize-lgpl (Depends-on): Likewise.
40235         * modules/fts (Depends-on): Likewise.
40236         * modules/getcwd (Depends-on): Likewise.
40237         * modules/human (Depends-on): Likewise.
40238         * modules/regex (Depends-on): Likewise.
40239         * modules/striconveh (Depends-on): Likewise.
40240         * modules/trim (Depends-on): Likewise.
40241         * modules/unistr/u8-move (Depends-on): Likewise.
40242         * modules/unistr/u16-move (Depends-on): Likewise.
40243         * modules/unistr/u32-move (Depends-on): Likewise.
40244
40245 2008-11-02  Bruno Haible  <bruno@clisp.org>
40246
40247         Mark 'memcpy' obsolete.
40248         * modules/memcpy (Status, Notice): New sections.
40249
40250 2008-11-02  Bruno Haible  <bruno@clisp.org>
40251
40252         Mark 'memcmp' obsolete.
40253         * modules/memcmp (Status, Notice): New sections.
40254         * modules/argmatch (Depends-on): Add memchr.
40255         * modules/backupfile (Depends-on): Likewise.
40256         * modules/c-strcasestr (Depends-on): Likewise.
40257         * modules/crypto/des (Depends-on): Likewise.
40258         * modules/csharpcomp (Depends-on): Likewise.
40259         * modules/fnmatch (Depends-on): Likewise.
40260         * modules/git-merge-changelog (Depends-on): Likewise.
40261         * modules/isnand (Depends-on): Likewise.
40262         * modules/isnand-nolibm (Depends-on): Likewise.
40263         * modules/isnanf (Depends-on): Likewise.
40264         * modules/isnanf-nolibm (Depends-on): Likewise.
40265         * modules/isnanl (Depends-on): Likewise.
40266         * modules/isnanl-nolibm (Depends-on): Likewise.
40267         * modules/mbchar (Depends-on): Likewise.
40268         * modules/memcoll (Depends-on): Likewise.
40269         * modules/quotearg (Depends-on): Likewise.
40270         * modules/regex (Depends-on): Likewise.
40271         * modules/relocatable-prog (Depends-on): Likewise.
40272         * modules/same (Depends-on): Likewise.
40273         * modules/signbit (Depends-on): Likewise.
40274         * modules/strcasestr-simple (Depends-on): Likewise.
40275         * modules/unictype/gen-ctype (Depends-on): Likewise.
40276         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40277         * modules/uniname/uniname (Depends-on): Likewise.
40278         * modules/unistr/u8-cmp (Depends-on): Likewise.
40279
40280 2008-11-02  Bruno Haible  <bruno@clisp.org>
40281
40282         Mark 'memchr' obsolete.
40283         * modules/memchr (Status, Notice): New sections.
40284         * modules/argp (Depends-on): Add memchr.
40285         * modules/base64 (Depends-on): Likewise.
40286         * modules/c-strcasestr (Depends-on): Likewise.
40287         * modules/chdir-long (Depends-on): Likewise.
40288         * modules/fnmatch (Depends-on): Likewise.
40289         * modules/getsubopt (Depends-on): Likewise.
40290         * modules/git-merge-changelog (Depends-on): Likewise.
40291         * modules/glob (Depends-on): Likewise.
40292         * modules/strcasestr-simple (Depends-on): Likewise.
40293         * modules/strnlen (Depends-on): Likewise.
40294
40295 2008-11-02  Bruno Haible  <bruno@clisp.org>
40296
40297         Mark 'atexit' obsolete.
40298         * modules/atexit (Status, Notice): New sections.
40299         * modules/chdir-long (Depends-on): Add atexit.
40300         * modules/wait-process (Depends-on): Likewise.
40301
40302 2008-11-02  Bruno Haible  <bruno@clisp.org>
40303
40304         * gnulib-tool: New option --with-obsolete.
40305         (func_usage): Document it.
40306         (func_modules_transitive_closure): Drop obsolete dependencies if
40307         incobsolete is not true.
40308         (func_import): Read and save the incobsolete variable to the cache.
40309
40310 2008-11-02  Bruno Haible  <bruno@clisp.org>
40311
40312         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40313         * gnulib-tool: New option --extract-status.
40314         (func_usage): Document it.
40315         (sed_extract_prog): Recognize it.
40316         (func_get_status): New function.
40317
40318 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40319
40320         * modules/sockets (License): Change from LGPL to LGPLv2+.
40321
40322 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40323
40324         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40325
40326 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40327
40328         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40329         Mention times and sys_times.
40330         * modules/sys_times, modules/sys_times-tests: New modules.
40331         * modules/times, modules/times-tests: Likewise
40332         * m4/sys_times_h.m4: New file.
40333         * lib/sys_times.in.h: Likewise
40334         * lib/times.c: Likewise.
40335         * tests/test-sys_times.c: Likewise.
40336         * tests/test-times.c: Likewise.
40337         * doc/posix-headers/sys_times.texi: Update.
40338         * doc/posix-functions/times.texi: Update.
40339
40340 2008-10-28  Jim Meyering  <meyering@redhat.com>
40341
40342         * modules/tempname (Depends-on): Add lstat.
40343
40344         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40345
40346 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40347
40348         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40349         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40350         using idiom used elsewhere in gnulib.
40351
40352 2008-10-27  Jim Meyering  <meyering@redhat.com>
40353
40354         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40355
40356 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40357
40358         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40359         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40360         programs.
40361         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40362
40363 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40364
40365         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40366
40367 2008-10-27  Bruno Haible  <bruno@clisp.org>
40368
40369         * tests/test-lstat.c: Include <stdio.h>.
40370
40371 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40372
40373         * modules/lstat-tests: New module.
40374         * tests/test-lstat.c: New file.
40375
40376 2008-10-26  Jim Meyering  <meyering@redhat.com>
40377
40378         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40379
40380 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40381             Bruno Haible  <bruno@clisp.org>
40382
40383         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40384         * modules/configmake (Include): Add a note that the include must come
40385         after all system headers.
40386         * lib/javaversion.c: Include configmake.h after all other includes.
40387
40388 2008-10-26  Bruno Haible  <bruno@clisp.org>
40389
40390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40391         HAVE_STRUCT_RANDOM_DATA to 1.
40392         (gl_STDLIB_H): Simplify.
40393
40394 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40395
40396         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40397         substitute HAVE_STRUCT_RANDOM_DATA.
40398         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40399         random_data.
40400         * modules/stdlib (Makefile.am): Substitute
40401         HAVE_STRUCT_RANDOM_DATA.
40402
40403 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40404
40405         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40406         * doc/gnulib-intro.texi (Copyright): Likewise.
40407
40408 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40409
40410         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40411         findings.
40412
40413 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40414             Bruno Haible  <bruno@clisp.org>
40415
40416         * lib/unistd.in.h: Include <winsock2.h>.
40417         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40418         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40419         Provide dummy declarations.
40420         (gethostname): Override.
40421         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40423         gl_PREREQ_SYS_H_WINSOCK2.
40424         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40425         * doc/posix-functions/gethostname.texi: More details.
40426
40427 2008-10-25  Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40430         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40431         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40432
40433         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40434         here ...
40435         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40437         gl_UNISTD_H_DEFAULTS.
40438
40439 2008-10-25  Eric Blake  <ebb9@byu.net>
40440
40441         signbit: avoid spurious compiler failure
40442         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40443         declarations inside function.
40444
40445 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40446             Bruno Haible  <bruno@clisp.org>
40447
40448         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40449         * modules/random_r (Depends-on): Add stdint.
40450
40451 2008-10-24  Bruno Haible  <bruno@clisp.org>
40452
40453         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40454         Eggert.
40455         * modules/strerror (License): Likewise.
40456
40457 2008-10-24  Jim Meyering  <meyering@redhat.com>
40458
40459         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40460         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40461
40462 2008-10-24  Eric Blake  <ebb9@byu.net>
40463
40464         getgroups: fix compilation when getgroups is available
40465         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40466         but with <config.h> override of getgroups disabled.
40467
40468 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40469
40470         * doc/gnulib.texi (Header files): Add note about C++ problems.
40471         Explained by Bruno Haible <bruno@clisp.org>.
40472
40473 2008-10-23  Bruno Haible  <bruno@clisp.org>
40474
40475         Define a dummy SA_NODEFER macro on Interix.
40476         * lib/signal.in.h (SA_NODEFER): Define fallback.
40477         Reported by Aleksey Cheusov <cheusov@tut.by> via
40478         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40479
40480 2008-10-23  Bruno Haible  <bruno@clisp.org>
40481
40482         * modules/freadahead (License): Change to LGPLv2+.
40483         Suggested by Simon Josefsson.
40484
40485 2008-10-23  Jim Meyering  <meyering@redhat.com>
40486
40487         random_r: new module
40488         * modules/random_r: New file.
40489         * m4/random_r.m4: New file.
40490         * lib/random_r.c: New file, from glibc.
40491         * modules/random_r-tests: New file.
40492         * tests/test-random_r.c: New file.
40493         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40494          Declare.
40495         (RAND_MAX): Define.
40496         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40497         * modules/stdlib: Substitute them, too.
40498         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40499         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40500         * doc/glibc-functions/random_r.texi: Likewise.
40501         * doc/glibc-functions/setstate_r.texi: Likewise.
40502         * doc/glibc-functions/srandom_r.texi: Likewise.
40503         * config/srclist.txt: Mention it.
40504
40505 2008-10-23  David Lutterkort  <lutter@redhat.com>
40506
40507         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40508         link requirement
40509
40510 2008-10-23  Jim Meyering  <meyering@redhat.com>
40511
40512         selinux-h: mark parameters of stub functions as intentionally unused
40513         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40514         * lib/se-context.in.h: Likewise.
40515
40516 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40517
40518         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40519
40520 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40521
40522         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40523
40524 2008-10-22  Eric Blake  <ebb9@byu.net>
40525
40526         glthread/thread: avoid compiler warning
40527         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40528         Add unreachable abort to silence compiler.
40529
40530 2008-10-22  Eric Blake  <ebb9@byu.net>
40531
40532         netdb: also supply struct addrinfo for cygwin 1.5.x
40533         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40534         older cygwin.
40535         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40536         cygwin.
40537         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40538
40539 2008-10-22  Bruno Haible  <bruno@clisp.org>
40540
40541         * users.txt: Update entry about pspp.
40542
40543 2008-10-21  Bruno Haible  <bruno@clisp.org>
40544
40545         Simplification.
40546         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40547         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40548
40549         Simplification.
40550         * lib/ioctl.c (ioctl): Don't undefine.
40551         * lib/socket.c (socket): Don't undefine.
40552
40553         Remove unused module indicator macros.
40554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40555         GNULIB_$1 as a C macro.
40556
40557         * doc/posix-functions/close.texi: Undo last change.
40558         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40559         Windows platforms.
40560
40561 2008-10-21  Bruno Haible  <bruno@clisp.org>
40562
40563         Add gethostname() declaration to <unistd.h>.
40564         * lib/unistd.in.h (gethostname): New declaration.
40565         * lib/gethostname.c: Include <unistd.h>.
40566         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40567         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40569         and HAVE_GETHOSTNAME.
40570         * modules/gethostname (Depends-on): Add unistd.
40571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40572         (Include): Specify <unistd.h>.
40573         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40574         HAVE_GETHOSTNAME.
40575         * tests/test-gethostname.c: Include <unistd.h> first.
40576
40577 2008-10-21  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40580         * modules/select-tests (Depends-on): Likewise.
40581         Reported by Simon Josefsson.
40582
40583 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40584
40585         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40586         * lib/accept.c: New file, based on winsock.c.
40587         * lib/bind.c: New file, based on winsock.c.
40588         * lib/connect.c: New file, based on winsock.c.
40589         * lib/getpeername.c: New file, based on winsock.c.
40590         * lib/getsockname.c: New file, based on winsock.c.
40591         * lib/getsockopt.c: New file, based on winsock.c.
40592         * lib/ioctl.c: New file, based on winsock.c.
40593         * lib/listen.c: New file, based on winsock.c.
40594         * lib/recv.c: New file, based on winsock.c.
40595         * lib/recvfrom.c: New file, based on winsock.c.
40596         * lib/send.c: New file, based on winsock.c.
40597         * lib/sendto.c: New file, based on winsock.c.
40598         * lib/setsockopt.c: New file, based on winsock.c.
40599         * lib/shutdown.c: New file, based on winsock.c.
40600         * lib/socket.c: New file, based on winsock.c.
40601         * lib/w32sock.h: New file, based on winsock.c.
40602         * lib/winsock.c: Remove file.
40603         * modules/accept: Likewise.
40604         * modules/bind: Likewise.
40605         * modules/connect: Likewise.
40606         * modules/getpeername: Likewise.
40607         * modules/getsockname: Likewise.
40608         * modules/getsockopt: Likewise.
40609         * modules/ioctl: Likewise.
40610         * modules/listen: Likewise.
40611         * modules/recv: Likewise.
40612         * modules/recvfrom: Likewise.
40613         * modules/send: Likewise.
40614         * modules/sendto: Likewise.
40615         * modules/setsockopt: Likewise.
40616         * modules/shutdown: Likewise.
40617         * modules/socket: Use socket.c instead of winsock.c.
40618         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40619         * doc/posix-functions/accept.texi: Doc fix.
40620         * doc/posix-functions/bind.texi: Doc fix.
40621         * doc/posix-functions/close.texi: Doc fix.
40622         * doc/posix-functions/connect.texi: Doc fix.
40623         * doc/posix-functions/getpeername.texi: Doc fix.
40624         * doc/posix-functions/getsockname.texi: Doc fix.
40625         * doc/posix-functions/getsockopt.texi: Doc fix.
40626         * doc/posix-functions/ioctl.texi: Doc fix.
40627         * doc/posix-functions/listen.texi: Doc fix.
40628         * doc/posix-functions/recv.texi: Doc fix.
40629         * doc/posix-functions/recvfrom.texi: Doc fix.
40630         * doc/posix-functions/send.texi: Doc fix.
40631         * doc/posix-functions/sendto.texi: Doc fix.
40632         * doc/posix-functions/setsockopt.texi: Doc fix.
40633         * doc/posix-functions/shutdown.texi: Doc fix.
40634         * doc/posix-functions/socket.texi: Doc fix.
40635
40636 2008-10-20  Bruno Haible  <bruno@clisp.org>
40637
40638         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40639         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40640         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40641         as an alias for SIGABRT.
40642         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40643         (sigaction): Map it to SIGABRT.
40644         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40645
40646 2008-10-20  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/fts.c: Don't include lstat.h.
40649         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40650
40651         Move the lstat() declaration to <sys/stat.h>.
40652         * lib/lstat.h: Remove file.
40653         * lib/sys_stat.in.h: Add special invocation convention.
40654         (lstat): New declaration.
40655         * lib/lstat.c (orig_lstat): New function.
40656         (rpl_lstat): Use orig_lstat instead of lstat.
40657         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40658         AC_C_INLINE. Set REPLACE_LSTAT.
40659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40660         and REPLACE_LSTAT.
40661         * modules/lstat (Files): Remove lib/lstat.h.
40662         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40663         (Include): Specify <sys/stat.h> instead of lstat.h.
40664         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40665         REPLACE_LSTAT.
40666         * NEWS: Mention the change.
40667
40668 2008-10-20  Bruno Haible  <bruno@clisp.org>
40669
40670         * modules/posix_spawn-tests: New file.
40671         * tests/test-posix_spawn3.c: New file.
40672
40673 2008-10-20  Bruno Haible  <bruno@clisp.org>
40674
40675         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40676         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40677         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40678         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40679         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40680
40681 2008-10-20  Bruno Haible  <bruno@clisp.org>
40682
40683         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40684         of posix_spawn on AIX 5.3.
40685
40686 2008-10-20  Bruno Haible  <bruno@clisp.org>
40687
40688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40689
40690 2008-10-20  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40693         of AC_LANG_PROGRAM.
40694
40695 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40696
40697         * lib/netdb.in.h: Don't define GNU specific constants until they
40698         are supported or needed.  Reported by Bruno Haible
40699         <bruno@clisp.org>.
40700
40701 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40702
40703         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40704
40705 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40706
40707         * lib/getaddrinfo.h: Remove file.
40708         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40709         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40710         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40711         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40712         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40713         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40714         * tests/test-getaddrinfo.c: Likewise.
40715         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40716         * NEWS: Mention change.
40717
40718 2008-10-19  Bruno Haible  <bruno@clisp.org>
40719
40720         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40721
40722 2008-10-19  Bruno Haible  <bruno@clisp.org>
40723
40724         * lib/wait-process.c: Include simply <sys/wait.h>.
40725         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40726         WIFSTOPPED): Remove fallback definitions.
40727         * modules/wait-process (Depends-on): Add sys_wait.
40728
40729         New module 'sys_wait'.
40730         * modules/sys_wait: New file.
40731         * lib/sys_wait.in.h: New file, partially copied from
40732         lib/wait-process.c.
40733         * m4/sys_wait_h.m4: New file.
40734         * doc/posix-headers/sys_wait.texi: Mention the new module.
40735
40736 2008-10-19  Bruno Haible  <bruno@clisp.org>
40737
40738         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40739
40740 2008-10-19  Bruno Haible  <bruno@clisp.org>
40741
40742         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40743         * lib/wait-process.c (WAIT_T): Remove type.
40744         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40745         (wait_subprocess): Update.
40746
40747 2008-10-19  Bruno Haible  <bruno@clisp.org>
40748
40749         New module 'atoll'.
40750         * modules/atoll: New file.
40751         * lib/stdlib.in.h (atoll): New declaration.
40752         * lib/atoll.c: New file, from glibc with modifications.
40753         * m4/atoll.m4: New file.
40754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40755         HAVE_ATOLL.
40756         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40757         * doc/posix-functions/atoll.texi: Mention the new module.
40758
40759 2008-10-19  Bruno Haible  <bruno@clisp.org>
40760
40761         Add strtoull() declaration to <stdlib.h>.
40762         * lib/stdlib.in.h (strtoull): New declaration.
40763         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40764         Set HAVE_STRTOULL.
40765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40766         HAVE_STRTOULL.
40767         * modules/strtoull (Depends-on): Add stdlib.
40768         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40769         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40770         HAVE_STRTOULL.
40771
40772 2008-10-19  Bruno Haible  <bruno@clisp.org>
40773
40774         Add strtoll() declaration to <stdlib.h>.
40775         * lib/stdlib.in.h (strtoll): New declaration.
40776         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40777         Set HAVE_STRTOLL.
40778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40779         HAVE_STRTOLL.
40780         * modules/strtoll (Depends-on): Add stdlib.
40781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40782         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40783
40784 2008-10-19  Bruno Haible  <bruno@clisp.org>
40785
40786         * modules/bcopy (Depends-on): Add strings.
40787         (Include): Specify <strings.h>.
40788
40789 2008-10-19  Bruno Haible  <bruno@clisp.org>
40790
40791         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40792
40793 2008-10-19  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40796         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40797         mingw.
40798
40799 2008-10-19  Bruno Haible  <bruno@clisp.org>
40800
40801         * lib/atanl.c: Don't include isnanl.h.
40802         * lib/cosl.c: Likewise.
40803         * lib/ldexpl.c: Likewise.
40804         * lib/logl.c: Likewise.
40805         * lib/sinl.c: Likewise.
40806         * lib/sqrtl.c: Likewise.
40807         * lib/tanl.c: Likewise.
40808
40809         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40810         * lib/isnanf.h: Remove file.
40811         * lib/isnand.h: Remove file.
40812         * lib/isnanl.h: Remove file.
40813         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40814         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40815         macros.
40816         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40817         HAVE_ISNANF, don't define it as a C macro.
40818         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40819         HAVE_ISNAND, don't define it as a C macro.
40820         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40821         HAVE_ISNANL, don't define it as a C macro.
40822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40823         HAVE_ISNAN[FDL].
40824         * modules/isnanf (Files): Remove lib/isnanf.h.
40825         (Depends-on): Add math.
40826         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40827         (Include): Specify <math.h> instead of isnanf.h.
40828         * modules/isnand (Files): Remove lib/isnand.h.
40829         (Depends-on): Add math.
40830         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40831         (Include): Specify <math.h> instead of isnand.h.
40832         * modules/isnanl (Files): Remove lib/isnanl.h.
40833         (Depends-on): Add math.
40834         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40835         (Include): Specify <math.h> instead of isnanl.h.
40836         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40837         HAVE_ISNAN[FDL].
40838         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40839         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40840         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40841         * NEWS: Mention the change.
40842
40843 2008-10-18  Bruno Haible  <bruno@clisp.org>
40844
40845         Add getusershell(), setusershell(), endusershell() declarations to
40846         <unistd.h>.
40847         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40848         declarations.
40849         * lib/getusershell.c: Include unistd.h.
40850         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40851         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40852         HAVE_GETUSERSHELL.
40853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40854         and HAVE_GETUSERSHELL.
40855         * modules/getusershell (Depends-on): Add unistd, extensions.
40856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40857         (Include): Specify <unistd.h>.
40858         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40859         HAVE_GETUSERSHELL.
40860
40861 2008-10-18  Bruno Haible  <bruno@clisp.org>
40862
40863         Add a getloadavg() declaration to <stdlib.h>.
40864         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40865         getloadavg declaration.
40866         (getloadavg): New declaration.
40867         * lib/getloadavg.c: Include <stdlib.h> first.
40868         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40869         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40870         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40872         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40873         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40875         (Include): Specify <stdlib.h>.
40876         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40877         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40878
40879 2008-10-18  Bruno Haible  <bruno@clisp.org>
40880
40881         * lib/dirchownmod.c: Don't include lchmod.h.
40882
40883         Move the lchmod() declaration to <sys/stat.h>.
40884         * lib/lchmod.h: Remove file.
40885         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40886         (lchmod): New declaration, moved here from lib/lchown.h.
40887         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40888         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40890         and HAVE_LCHMOD.
40891         * modules/lchmod (Files): Remove lib/lchmod.h.
40892         (Depends-on): Add sys_stat, extensions.
40893         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40894         (Include): Specify <sys/stat.h> instead of lchmod.h.
40895         * modules/sys_stat (Depends-on): Add link-warning.
40896         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40897         definition of GL_LINK_WARNING.
40898         * NEWS: Mention the change.
40899
40900 2008-10-18  Bruno Haible  <bruno@clisp.org>
40901
40902         * lib/fchdir.c: Don't include dirfd.h.
40903         * lib/fts.c: Likewise.
40904         * lib/getcwd.c: Likewise.
40905         * lib/glob.c: Likewise.
40906
40907         Move the dirfd() declaration to <dirent.h>.
40908         * lib/dirfd.h: Remove file.
40909         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40910         (dirfd): New declaration.
40911         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40912         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40913         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40914         HAVE_DECL_DIRFD.
40915         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40916         HAVE_DECL_DIRFD.
40917         * modules/dirfd (Files): Remove lib/dirfd.h.
40918         (Depends-on): Add dirent, extensions.
40919         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40920         (Include): Specify <dirent.h> instead of dirfd.h.
40921         * modules/dirent (Depends-on): Add link-warning.
40922         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40923         definition of GL_LINK_WARNING.
40924         * NEWS: Mention the change.
40925
40926 2008-10-18  Bruno Haible  <bruno@clisp.org>
40927
40928         Move the euidaccess() declaration to <unistd.h>.
40929         * lib/euidaccess.h: Remove file.
40930         * lib/unistd.in.h (euidaccess): New declaration.
40931         * lib/euidaccess.c: Don't include euidaccess.h.
40932         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40933         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40935         and HAVE_EUIDACCESS.
40936         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40937         (Depends-on): Add unistd.
40938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40939         (Include): Specify <unistd.h> instead of euidaccess.h.
40940         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40941         HAVE_EUIDACCESS.
40942         * NEWS: Mention the change.
40943
40944 2008-10-18  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40947
40948         Move the getdomainname() declaration to <unistd.h>.
40949         * lib/getdomainname.h: Remove file.
40950         * lib/unistd.in.h (getdomainname): New declaration.
40951         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40952         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40953         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40954         HAVE_GETDOMAINNAME.
40955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40956         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40957         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40958         (Depends-on): Add unistd, extensions.
40959         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40960         (Includes): Specify <unistd.h> instead of getdomainname.h.
40961         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40962         HAVE_GETDOMAINNAME.
40963         * NEWS: Mention the change.
40964
40965 2008-10-18  Bruno Haible  <bruno@clisp.org>
40966
40967         * modules/dirent: New file.
40968         * m4/dirent_h.m4: New file.
40969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40970         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40971         * modules/fchdir (Files): Remove lib/dirent.in.h.
40972         (Depends-on): Add dirent.
40973         (Makefile.am): Move rules to modules/dirent.
40974         * doc/posix-headers/dirent.texi: Mention the new module.
40975
40976 2008-10-18  Bruno Haible  <bruno@clisp.org>
40977
40978         Avoid -Wunused-parameter warnings in public gnulib header files.
40979         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40980         macro.
40981         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40982
40983 2008-10-18  Bruno Haible  <bruno@clisp.org>
40984
40985         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40986         * doc/glibc-functions/error.texi: Mention the module 'error'.
40987         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40988         * doc/glibc-functions/getdomainname.texi: Mention the module
40989         'getdomainname'.
40990         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40991         * doc/glibc-functions/getpagesize.texi: Mention the module
40992         'getpagesize'.
40993         * doc/glibc-functions/getusershell.texi: Mention the module
40994         'getusershell'.
40995         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40996         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40997         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40998         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40999         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41000         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41001         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41002         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41003         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41004         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41005         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41006         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41007         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41008         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41009
41010 2008-10-17  Bruno Haible  <bruno@clisp.org>
41011
41012         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41013         HP-UX and IRIX, use -0.0L.
41014         * tests/test-ceill.c (minus_zero): Likewise.
41015         * tests/test-floorl.c (minus_zero): Likewise.
41016         * tests/test-frexpl.c (minus_zero): Likewise.
41017         * tests/test-isnan.c (minus_zerol): Likewise.
41018         * tests/test-isnanl.h (minus_zero): Likewise.
41019         * tests/test-ldexpl.c (minus_zero): Likewise.
41020         * tests/test-roundl.c (minus_zero): Likewise.
41021         * tests/test-signbit.c (minus_zerol): Likewise.
41022         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41023         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41024         * tests/test-truncl.c (minus_zero): Likewise.
41025         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41026         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41027         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41028         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41029
41030 2008-10-17  Bruno Haible  <bruno@clisp.org>
41031
41032         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41033         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41034         that it gets activated only for gcc >= 3.0.
41035         * lib/dirent.in.h: Likewise.
41036         * lib/errno.in.h: Likewise.
41037         * lib/fcntl.in.h: Likewise.
41038         * lib/float.in.h: Likewise.
41039         * lib/iconv.in.h: Likewise.
41040         * lib/inttypes.in.h: Likewise.
41041         * lib/locale.in.h: Likewise.
41042         * lib/math.in.h: Likewise.
41043         * lib/netdb.in.h: Likewise.
41044         * lib/netinet_in.in.h: Likewise.
41045         * lib/search.in.h: Likewise.
41046         * lib/signal.in.h: Likewise.
41047         * lib/spawn.in.h: Likewise.
41048         * lib/stdarg.in.h: Likewise.
41049         * lib/stdint.in.h: Likewise.
41050         * lib/stdio.in.h: Likewise.
41051         * lib/stdlib.in.h: Likewise.
41052         * lib/string.in.h: Likewise.
41053         * lib/strings.in.h: Likewise.
41054         * lib/sys_file.in.h: Likewise.
41055         * lib/sys_ioctl.in.h: Likewise.
41056         * lib/sys_select.in.h: Likewise.
41057         * lib/sys_socket.in.h: Likewise.
41058         * lib/sys_stat.in.h: Likewise.
41059         * lib/sys_time.in.h: Likewise.
41060         * lib/sysexits.in.h: Likewise.
41061         * lib/time.in.h: Likewise.
41062         * lib/unistd.in.h: Likewise.
41063         * lib/wchar.in.h: Likewise.
41064         * lib/wctype.in.h: Likewise.
41065         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41066
41067 2008-10-17  Jim Meyering  <meyering@redhat.com>
41068
41069         ignore-value: don't depend on inline module
41070         * modules/ignore-value (Depends-on): Remove 'inline'.
41071         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41072         Suggestion from Bruno Haible.
41073
41074 2008-10-17  Bruno Haible  <bruno@clisp.org>
41075
41076         New implementation of condition variables for Win32.
41077         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41078         (gl_linked_waitqueue_t): New type.
41079         (gl_cond_t): Use it.
41080         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41081         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41082         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41083         (glthread_cond_init_func, glthread_cond_wait_func,
41084         glthread_cond_timedwait_func, glthread_cond_signal_func,
41085         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41086         Reimplemented on the basis of gl_linked_waitqueue_t.
41087         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41088         gl_waitqueue_t.
41089         (gl_rwlock_t): Update.
41090         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41091
41092 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41093
41094         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41095         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41096
41097 2008-10-17  Jim Meyering  <meyering@redhat.com>
41098
41099         ignore-value: new module
41100         * modules/ignore-value: New file.
41101         * lib/ignore-value.h: New file.
41102         * MODULES.html.sh (Compiler warning management): New section,
41103         just for this module.  More to come.
41104
41105 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41106
41107         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41108         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41109         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41110
41111 2008-10-16  Jim Meyering  <meyering@redhat.com>
41112
41113         openat-die.c: avoid 'no previous prototype' warning
41114         * lib/openat-die.c: Include "openat.h".
41115         Reported by Reuben Thomas <rrt@sc3d.org>.
41116
41117 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41118
41119         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41120         * lib/netdb.in.h: Fix typo.
41121         Reported by Bruno Haible  <bruno@clisp.org>
41122
41123         * lib/netdb.in.h: Include sys/socket.h for platforms without
41124         netdb.h, to get structures like hostent on MinGW.
41125         * modules/netdb (Depends-on): Add sys_socket.
41126
41127 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41128
41129         * modules/netdb, modules/netdb-tests: New file.
41130         * m4/netdb_h.m4: New file.
41131         * lib/netdb.in.h: Add, currently just an empty file pending
41132         definitions.
41133         * tests/test-netdb.c: New file.
41134         * doc/posix-headers/netdb.texi: Mention that we replace it if
41135         needed.
41136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41137         netdb.
41138
41139 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41140
41141         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41142         with code.
41143
41144 2008-10-13  Bruno Haible  <bruno@clisp.org>
41145
41146         * lib/glthread/cond.c (glthread_cond_wait_func,
41147         glthread_cond_timedwait_func): Add a comment.
41148
41149 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41150
41151         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41152         * tests/test-select.c: Likewise,
41153
41154 2008-10-13  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/glthread/cond.c (glthread_cond_wait_func,
41157         glthread_cond_timedwait_func): Fix variable name.
41158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41159
41160 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41161
41162         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41164         struct sockaddr.sa_len.
41165         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41166
41167 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41168
41169         * build-aux/pmccabe2html: Add css and css_url parameters.
41170
41171 2008-10-12  Bruno Haible  <bruno@clisp.org>
41172
41173         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41174         calling aclx_get.
41175         Reported by Rainer Tammer <tammer@tammer.net>.
41176
41177 2008-10-12  Bruno Haible  <bruno@clisp.org>
41178
41179         Use msvcrt aware primitives for creation/termination of Win32 threads.
41180         * lib/glthread/thread.c: Include <process.h>.
41181         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41182         (wrapper_func): Update signature.
41183         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41184
41185 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41186             Bruno Haible  <bruno@clisp.org>
41187
41188         Provide a Win32 implementation of the 'cond' module.
41189         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41190         * lib/glthread/cond.c (glthread_cond_init_func,
41191         glthread_cond_wait_func, glthread_cond_timedwait_func,
41192         glthread_cond_signal_func, glthread_cond_broadcast_func,
41193         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41194         * modules/cond (Dependencies): Add gettimeofday.
41195
41196 2008-10-11  Bruno Haible  <bruno@clisp.org>
41197
41198         Make sleep work on older versions of mingw.
41199         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41200         only whether it exists.
41201         * doc/posix-functions/sleep.texi: Mention the problem with older
41202         versions of mingw.
41203
41204 2008-10-11  Bruno Haible  <bruno@clisp.org>
41205
41206         New module 'shutdown'.
41207         * modules/shutdown: New file.
41208         * lib/sys_socket.in.h (shutdown): New declaration.
41209         * lib/winsock.c (shutdown): New function.
41210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41211         GNULIB_SHUTDOWN.
41212         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41213         * doc/posix-functions/shutdown.texi: Document the new module.
41214
41215 2008-10-11  Jim Meyering  <meyering@redhat.com>
41216
41217         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41218
41219 2008-10-11  Bruno Haible  <bruno@clisp.org>
41220
41221         New module 'fclose'.
41222         * modules/fclose: New file.
41223         * lib/stdio.in.h (fclose): New declaration.
41224         * lib/fclose.c: New file.
41225         * m4/fclose.m4: New file.
41226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41227         REPLACE_FCLOSE.
41228         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41229         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41230         REPLACE_FCLOSE.
41231         * modules/close (Depends-on): fclose.
41232         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41233
41234 2008-10-11  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41237         set errno and don't call _close.
41238
41239 2008-10-10  Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41242         ACL, not afterwards. Fixes test failure on Cygwin.
41243
41244 2008-10-09  Ben Pfaff  <blp@gnu.org>
41245
41246         * build-aux/announce-gen: Fix gnulib version related part of usage
41247         message.  Die with a useful error message if no tarballs are
41248         found.
41249
41250 2008-10-10  Jim Meyering  <meyering@redhat.com>
41251
41252         bootstrap: use git's --depth=N option only if it's supported
41253         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41254         recognize the --depth option.  Reported by Pádraig Brady.
41255
41256 2008-10-09  Bruno Haible  <bruno@clisp.org>
41257
41258         New module 'ioctl'.
41259         * modules/ioctl: New file.
41260         * lib/sys_socket.in.h (ioctl): Remove declaration.
41261         * lib/winsock.c: Include <sys/ioctl.h>.
41262         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41264         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41265         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41266         * doc/posix-functions/ioctl.texi: Mention the new module.
41267
41268 2008-10-09  Bruno Haible  <bruno@clisp.org>
41269
41270         New module 'sys_ioctl'.
41271         * lib/sys_ioctl.in.h: New file.
41272         * m4/sys_ioctl_h.m4: New file.
41273         * modules/sys_ioctl: New file.
41274         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41275
41276 2008-10-09  Bruno Haible  <bruno@clisp.org>
41277
41278         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41279         * lib/winsock.c: Include <stdarg.h>.
41280         (rpl_ioctl): Change to second argument 'int' and then varargs.
41281
41282 2008-10-09  Bruno Haible  <bruno@clisp.org>
41283
41284         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41285         when the sys_socket module is present and the system has <winsock2.h>.
41286
41287 2008-10-09  Bruno Haible  <bruno@clisp.org>
41288
41289         * doc/posix-functions/close.texi: Mention module 'close' instead of
41290         module 'sys_socket'.
41291
41292 2008-10-09  Bruno Haible  <bruno@clisp.org>
41293
41294         * doc/glibc-headers/sys_ioctl.texi: New file.
41295         * doc/gnulib.texi: Include it.
41296
41297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41298             Bruno Haible  <bruno@clisp.org>
41299
41300         Combine the two replacements of 'close'.
41301         * lib/sys_socket.in.h (close): Define to a reminder to include
41302         <unistd.h>.
41303         (_gl_close_fd_maybe_socket): New declaration.
41304         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41305         * lib/winsock.c (close): Remove undefinition.
41306         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41307         needed for the gnulib module 'close'.
41308         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41309         define to an error symbol or to a warning, if suitable.
41310         * lib/close.c: Include <sys/socket.h>.
41311         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41312         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41313         UNISTD_H_HAVE_WINSOCK2_H.
41314         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41316         UNISTD_H_HAVE_WINSOCK2_H.
41317         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41318         (configure.ac): Set a module indicator.
41319         (Makefile.am): Substitute GNULIB_CLOSE.
41320         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41321         * modules/poll-tests (Depends-on): Add close.
41322         * modules/select-tests (Depends-on): Likewise.
41323
41324 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41325             Bruno Haible  <bruno@clisp.org>
41326
41327         New module 'close'.
41328         * modules/close: New file.
41329         * lib/unistd.in.h (close): Move declaration out of the
41330         FCHDIR_REPLACEMENT scope.
41331         (_gl_unregister_fd): New declaration.
41332         * lib/close.c: New file.
41333         * lib/fchdir.c (rpl_close): Remove function.
41334         * m4/close.m4: New file.
41335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41336         close.
41337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41338         REPLACE_CLOSE.
41339         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41340         REPLACE_CLOSE.
41341         * modules/fchdir (Depends-on): Add close.
41342
41343 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41344             Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/fcntl.in.h (open): Simplify conditionals.
41347         (_gl_register_fd): New declaration.
41348         * lib/fchdir.c (rpl_open): Remove function.
41349         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41350         also.
41351         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41353         open.
41354
41355 2008-10-09  Jim Meyering  <meyering@redhat.com>
41356
41357         GNUmakefile: use the more name-space-friendly "_version"
41358         * top/GNUmakefile (_dummy): Update.
41359         (_version): Rename from "version".
41360
41361 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41362             Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41365         rpl_close.
41366         (_gl_register_fd): New function, extracted from rpl_open.
41367         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41368         (rpl_open, rpl_opendir): Use _gl_register_fd.
41369
41370 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41371
41372         Fix organization of 'open' replacement.
41373         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41374         (gl_FUNC_OPEN): Use it.
41375         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41376
41377 2008-10-08  Bruno Haible  <bruno@clisp.org>
41378
41379         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41380
41381 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41382
41383         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41384         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41385         listen).
41386
41387 2008-10-08  Eric Blake  <ebb9@byu.net>
41388
41389         GNUmakefile: add 'make version' target
41390         * top/GNUmakefile (_curr-ver): Split version update rules...
41391         (version): ...into a target.
41392
41393 2008-10-07  Bruno Haible  <bruno@clisp.org>
41394
41395         Use a more portable replacement expression for -0.0L.
41396         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41397         instead of -0.0L. Fix m4 quotation.
41398
41399         * tests/test-signbit.c: Include <float.h>.
41400         (minus_zero): New variable.
41401         (test_signbitl): Use minus_zero instead of -zero.
41402         * modules/signbit-tests (Depends-on): Add float.
41403
41404         * tests/test-ceill.c: Include <float.h>.
41405         (zero): Remove variable.
41406         (minus_zero): New variable.
41407         (main): Use minus_zero instead of -zero.
41408         * modules/ceill-tests (Depends-on): Add float.
41409
41410         * tests/test-floorl.c: Include <float.h>.
41411         (zero): Remove variable.
41412         (minus_zero): New variable.
41413         (main): Use minus_zero instead of -zero.
41414         * modules/floorl-tests (Depends-on): Add float.
41415
41416         * tests/test-roundl.c: Include <float.h>.
41417         (zero): Remove variable.
41418         (minus_zero): New variable.
41419         (main): Use minus_zero instead of -zero.
41420         * modules/roundl-tests (Depends-on): Add float.
41421
41422         * tests/test-truncl.c: Include <float.h>.
41423         (zero): Remove variable.
41424         (minus_zero): New variable.
41425         (main): Use minus_zero instead of -zero.
41426         * modules/truncl-tests (Depends-on): Add float.
41427
41428         * tests/test-frexpl.c (zero): Remove variable.
41429         (minus_zero): New variable.
41430         (main): Use minus_zero instead of -zero.
41431         * modules/frexpl-tests (Depends-on): Add float.
41432
41433         * tests/test-isnan.c (zerol): Remove variable.
41434         (minus_zerol): New variable.
41435         (test_long_double): Use minus_zerol instead of -zerol.
41436         * modules/isnan-tests (Depends-on): Add float.
41437
41438         * tests/test-isnanl.h (zero): Remove variable.
41439         (minus_zero): New variable.
41440         (main): Use minus_zero instead of -zero.
41441         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41442         * modules/isnanl-tests (Depends-on): Add float.
41443
41444         * tests/test-ldexpl.c (zero): Remove variable.
41445         (minus_zero): New variable.
41446         (main): Use minus_zero instead of -zero.
41447         * modules/ldexpl-tests (Depends-on): Add float.
41448
41449         * tests/test-snprintf-posix.h (zerol): Remove variable.
41450         (minus_zerol): New variable.
41451         (test_function): Use minus_zerol instead of -zerol.
41452         * modules/snprintf-posix-tests (Depends-on): Add float.
41453         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41454
41455         * tests/test-sprintf-posix.h (zerol): Remove variable.
41456         (minus_zerol): New variable.
41457         (test_function): Use minus_zerol instead of -zerol.
41458         * modules/sprintf-posix-tests (Depends-on): Add float.
41459         * modules/vsprintf-posix-tests (Depends-on): Add float.
41460
41461         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41462         (minus_zerol): New variable.
41463         (test_function): Use minus_zerol instead of -zerol.
41464         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41465
41466         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41467         (minus_zerol): New variable.
41468         (test_function): Use minus_zerol instead of -zerol.
41469         * modules/vasprintf-posix-tests (Depends-on): Add float.
41470
41471 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41472
41473         * MODULES.html.sh (Support for building documentation): Mention
41474         pmccabe2html.  Sort entries.
41475
41476         Add pmccabe2html module, from gnupdf.
41477         * build-aux/pmccabe.css: New file.
41478         * build-aux/pmccabe2html: New file.
41479         * m4/pmccabe2html.m4: New file.
41480         * modules/pmccabe2html: New file.
41481
41482 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41483
41484         flock: new module
41485         * MODULES.html.sh: Add to list of modules.
41486         * lib/flock.c: flock implementation for Windows and Unix systems
41487         which have fcntl.
41488         * doc/glibc-functions/flock.texi: Update documentation.
41489         * lib/sys_file.in.h: <sys/file.h> header file.
41490         * m4/flock.m4: M4 macros.
41491         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41492         * modules/flock: flock module.
41493         * modules/flock-tests: flock tests module.
41494         * modules/sys_file: sys/file.h module.
41495         * tests/test-flock.c: test suite for flock.
41496
41497 2008-10-06  Jim Meyering  <meyering@redhat.com>
41498
41499         bootstrap: check for LT_INIT more portably still ;-)
41500         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41501         Spotted by Bruno Haible.
41502
41503 2008-10-06  Eric Blake  <ebb9@byu.net>
41504
41505         test-signbit: avoid tripping Irix cc bug on -0.0L
41506         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41507         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41508         entire testsuite consistent and avoids an Irix 6.2 bug.
41509
41510 2008-10-05  Bruno Haible  <bruno@clisp.org>
41511             Jim Meyering  <jim@meyering.net>
41512
41513         Add an option for ignoring EPIPE during close_stdout.
41514         * lib/closeout.h: Include <stdbool.h>.
41515         (close_stdout_set_ignore_EPIPE): New declaration.
41516         * lib/closeout.c: Include <stdbool.h>.
41517         (ignore_EPIPE): New variable.
41518         (close_stdout_set_ignore_EPIPE): New function.
41519         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41520         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41521         failure.
41522         * modules/closeout (Depends-on): Add stdbool.
41523
41524 2008-10-05  Bruno Haible  <bruno@clisp.org>
41525
41526         * modules/accept: New file.
41527         * modules/bind: New file.
41528         * modules/connect: New file.
41529         * modules/getpeername: New file.
41530         * modules/getsockname: New file.
41531         * modules/getsockopt: New file.
41532         * modules/listen: New file.
41533         * modules/recv: New file.
41534         * modules/recvfrom: New file.
41535         * modules/send: New file.
41536         * modules/sendto: New file.
41537         * modules/setsockopt: New file.
41538         * modules/socket: New file.
41539         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41540         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41541         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41542         the particular module is requested. Add a link warning when the
41543         particular module is not requested.
41544         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41545         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41546         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41547         the particular module is requested.
41548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41549         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41550         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41551         * modules/sys_socket (Depends-on): Add link-warning.
41552         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41553         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41554         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41555         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41556         GL_LINK_WARNING.
41557         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41558         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41559         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41560         * doc/posix-functions/getpeername.texi: Mention the new module
41561         'getpeername'.
41562         * doc/posix-functions/getsockname.texi: Mention the new module
41563         'getsockname'.
41564         * doc/posix-functions/getsockopt.texi: Mention the new module
41565         'getsockopt'.
41566         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41567         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41568         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41569         * doc/posix-functions/send.texi: Mention the new module 'send'.
41570         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41571         * doc/posix-functions/setsockopt.texi: Mention the new module
41572         'setsockopt'.
41573         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41574         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41575         listen, connect, accept.
41576         * modules/select-tests (Depends-on): Likewise.
41577
41578 2008-10-05  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/winsock.c (strerror): Remove unused #undef.
41581         (rpl_close): Remove unused local variable.
41582
41583         * modules/sys_socket (Depends-on); Add errno.
41584
41585 2008-10-05  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41588         (select): Add a link warning when the 'select' module is not used.
41589         * modules/sys_select (Depends-on): Add link-warning.
41590         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41591         Suggested by Paolo Bonzini.
41592
41593 2008-10-05  Jim Meyering  <meyering@redhat.com>
41594
41595         bootstrap: check for LT_INIT more portably
41596         * build-aux/bootstrap: Avoid using grep -E, since it's not
41597         portable enough.  Suggestion from Bruno Haible.
41598
41599 2008-10-05  Bruno Haible  <bruno@clisp.org>
41600
41601         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41602         as being fixed by gnulib.
41603
41604 2008-10-05  Bruno Haible  <bruno@clisp.org>
41605
41606         * modules/select-tests: New file, mostly copied from
41607         modules/sys_select-tests.
41608         * tests/test-select.c: New file, mostly copied from
41609         tests/test-sys_select.c.
41610         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41611         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41612         (Makefile.am): Remove test_sys_select_LDADD.
41613
41614         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41615         to an undefined symbol, for an error message.
41616         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41617         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41618         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41619         winsock-select.c here.
41620         * modules/sys_select (Files): Remove lib/winsock-select.c.
41621         (Depends-on): Remove alloca.
41622         (Makefile.am): Substitute GNULIB_SELECT.
41623         * modules/select: New file.
41624         * doc/posix-functions/select.texi: Update.
41625
41626 2008-10-05  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41629         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41630         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41631         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41632         getdtablesize.
41633         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41634         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41635
41636 2008-10-05  Bruno Haible  <bruno@clisp.org>
41637
41638         * modules/getdtablesize-tests: New file.
41639         * tests/test-getdtablesize.c: New file.
41640
41641         New module 'getdtablesize'.
41642         * lib/unistd.in.h (getdtablesize): New declaration.
41643         * lib/getdtablesize.c: New file.
41644         * m4/getdtablesize.m4: New file.
41645         * modules/getdtablesize: New file.
41646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41647         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41648         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41649         HAVE_GETDTABLESIZE.
41650         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41651
41652 2008-10-05  Bruno Haible  <bruno@clisp.org>
41653
41654         * modules/sched (Makefile.am): Fix typo.
41655         Reported by Simon Josefsson.
41656
41657 2008-10-05  Jim Meyering  <meyering@redhat.com>
41658
41659         bootstrap: check for LT_INIT, too
41660         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41661         are deprecated.  Suggestion from Ralf Wildenhues.
41662
41663 2008-10-05  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41666         overriding them by ours.
41667         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41668
41669 2008-10-05  Jim Meyering  <meyering@redhat.com>
41670
41671         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41672         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41673         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41674
41675 2008-10-04  Bruno Haible  <bruno@clisp.org>
41676
41677         * modules/dup2 (License): Change to LGPLv2+.
41678         * modules/sleep (License): Likewise.
41679         * modules/perror (License): Likewise.
41680         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41681         Blake.
41682         * modules/signal (License): Likewise.
41683         * modules/sigprocmask (License): Likewise.
41684         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41685         Meyering.
41686
41687 2008-10-04  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41690         Reported by Rainer Tammer <tammer@tammer.net>.
41691
41692 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41693             Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41696         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41697         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41698
41699 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41700
41701         filevercmp: new module
41702         * lib/filevercmp.h: New function filevercmp comparing version strings.
41703         * lib/filevercmp.c: Implementation of filevercmp function.
41704         * modules/filevercmp: Module metadata.
41705         * tests/test-filevercmp.c: Unit test for new module.
41706         * modules/filevercmp-tests: Unit test metadata.
41707         * MODULES.html.sh: Add filevercmp module.
41708
41709 2008-10-03  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/c-ctype.h: Add comment.
41712         Reported by Jim Meyering.
41713
41714 2008-10-02  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41717
41718 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41719
41720         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41721         name of bootstrap.conf accordingly.
41722
41723 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41724
41725         * build-aux/bootstrap: Install git-merge-changelog configuration
41726         items into .gitconfig if needed.
41727
41728 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41729
41730         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41731         git repository, and initialize/update it accordingly.
41732
41733 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41734
41735         * modules/fsync-tests: New file.
41736         * tests/test-fsync.c: New file.
41737
41738         New module 'fsync'.
41739         * lib/fsync.c: New file.
41740         * m4/fsync.m4: New file.
41741         * modules/fsync: New file.
41742         * lib/unistd.in.h (fsync): New declaration.
41743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41744         GNULIB_FSYNC and HAVE_FSYNC.
41745         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41746         * MODULES.html.sh (posix_functions): Add fsync.
41747         * doc/posix-functions/fsync.texi: Mention the new module.
41748
41749 2008-10-02  Jim Meyering  <meyering@redhat.com>
41750
41751         fts.c: sync with similar code from coreutils' remove.c
41752         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41753         Guard also with "#if defined __linux__", since for now at least,
41754         this code is Linux-kernel-specific.
41755
41756 2008-10-02  Jim Meyering  <meyering@redhat.com>
41757
41758         fts: bug fixes
41759         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41760         Include <sys/vfs.h>, not <sys/statfs.h>.
41761
41762         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41763         Include <sys/vfs.h>, not <sys/statfs.h>.
41764
41765 2008-10-01  Bruno Haible  <bruno@clisp.org>
41766
41767         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41769         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41770         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41771         * doc/posix-functions/posix_spawnp.texi: Likewise.
41772         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41773         whether posix_spawn actually works.
41774         * m4/pipe.m4 (gl_PIPE): Likewise.
41775         * modules/execute (Files): Add m4/posix_spawn.m4.
41776         * modules/pipe (Files): Add m4/posix_spawn.m4.
41777         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41778
41779 2008-10-01  Jim Meyering  <meyering@redhat.com>
41780
41781         remove trailing spaces
41782         * NEWS: Likewise.
41783         * lib/poll.c (poll): Likewise.
41784         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41785         * lib/winsock.c (rpl_close): Likewise.
41786         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41787         * modules/yield: Likewise.
41788         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41789         * tests/test-sys_select.c (connect_to_socket): Likewise.
41790
41791         fts.c: adjust a new interface to be more generally useful
41792         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41793         (fts_build): Adjust caller.
41794
41795 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41796
41797         * modules/cond-tests: New file.
41798         * tests/test-cond.c: New file.
41799
41800 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41801             Bruno Haible  <bruno@clisp.org>
41802
41803         * modules/cond (Dependencies): Add errno, time.
41804         * lib/glthread/cond.h: Include <time.h>.
41805         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41806         across platforms.
41807
41808 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41809             Bruno Haible  <bruno@clisp.org>
41810
41811         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41812
41813 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41814             Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/tls-tests (Depends-on): Add thread, yield.
41817         (configure.ac): Remove all checks.
41818         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41819         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41820         gl_thread_self): Remove definitions. Include glthread/thread.h and
41821         glthread/yield.h instead.
41822         (test_tls): Pass an additional NULL argument to gl_thread_join.
41823
41824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41825             Bruno Haible  <bruno@clisp.org>
41826
41827         * modules/lock-tests (Depends-on): Add thread, yield.
41828         (configure.ac): Remove all checks.
41829         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41830         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41831         gl_thread_self): Remove definitions. Include glthread/thread.h and
41832         glthread/yield.h instead.
41833         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41834         additional NULL argument to gl_thread_join.
41835
41836 2008-09-30  Bruno Haible  <bruno@clisp.org>
41837
41838         Fix the Win32 implementation of the 'thread' module.
41839         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41840         pointer type.
41841         (gl_thread_self): Invoke gl_thread_self_func.
41842         (gl_thread_self_func): New declaration.
41843         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41844         (do_init_self_key, init_self_key): New functions.
41845         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41846         Remove some fields.
41847         (running_threads, running_lock): Remove variables.
41848         (get_current_thread_handle): New function.
41849         (gl_thread_self_func, wrapper_func, glthread_create_func,
41850         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41851         simplified.
41852
41853 2008-09-30  Bruno Haible  <bruno@clisp.org>
41854
41855         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41856         files.
41857
41858 2008-09-30  Jim Meyering  <meyering@redhat.com>
41859
41860         fts.m4: correct the test for statfs.f_type
41861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41862         when checking for statfs.f_type.
41863
41864 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41865
41866         tests: avoid some compiler warnings
41867         * tests/test-memchr.c (main): Pass NULL indirectly.
41868         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41869
41870 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
41871
41872         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41873         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41874         exactly specified dayshifts.
41875         (dayshift): New rule.
41876         (rel): Add dayshift.
41877         (relative_time_table) [tomorrow, yesterday, today, now]:
41878         Use tDAY_SHIFT in place of tDAY_UNIT.
41879         * tests/test-getdate.c: Add tests for now-disallowed countable
41880         dayshifts, e.g., "4 yesterday ago".
41881
41882 2008-09-29  Bruno Haible  <bruno@clisp.org>
41883
41884         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41885         * tests/test-posix_spawn1.in.sh: Renamed from
41886         tests/test-posix_spawn.in.sh.
41887         * tests/test-posix_spawn2.c: New file.
41888         * tests/test-posix_spawn2.in.sh: New file.
41889         * modules/posix_spawnp-tests (Files): Update.
41890         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41891
41892 2008-09-29  Bruno Haible  <bruno@clisp.org>
41893
41894         Propagate effects of putenv/setenv/unsetenv to child processes.
41895         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41896         * lib/pipe.c (create_pipe): Likewise.
41897
41898 2008-09-29  Bruno Haible  <bruno@clisp.org>
41899
41900         Enable use of shell scripts as executables in mingw.
41901         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41902         run the program as a shell script.
41903         * lib/pipe.c (create_pipe): Likewise.
41904         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41905         resulting array.
41906
41907 2008-09-29  Eric Blake  <ebb9@byu.net>
41908
41909         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41910
41911 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41912
41913         * doc/posix-functions/accept.texi: Update mingw problems.
41914         * doc/posix-functions/bind.texi: Update mingw problems.
41915         * doc/posix-functions/close.texi: Update mingw problems.
41916         * doc/posix-functions/connect.texi: Update mingw problems.
41917         * doc/posix-functions/getpeername.texi: Update mingw problems.
41918         * doc/posix-functions/getsockname.texi: Update mingw problems.
41919         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41920         * doc/posix-functions/ioctl.texi: Update mingw problems.
41921         * doc/posix-functions/listen.texi: Update mingw problems.
41922         * doc/posix-functions/recv.texi: Update mingw problems.
41923         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41924         * doc/posix-functions/select.texi: Update mingw problems.
41925         * doc/posix-functions/send.texi: Update mingw problems.
41926         * doc/posix-functions/sendto.texi: Update mingw problems.
41927         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41928         * doc/posix-functions/socket.texi: Update mingw problems.
41929
41930 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41931             Bruno Haible  <bruno@clisp.org>
41932
41933         * lib/sys_select.in.h: Include sys/time.h.
41934         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41935         * modules/sys_select: Depend on sys_time.
41936         * tests/test-sys_select.c: Test that sys/select.h defines struct
41937         timeval fully.
41938
41939 2008-09-29  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41942         * lib/sys_select.in.h: Likewise.
41943
41944 2008-09-29  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41947
41948 2008-09-29  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41951         Set LIBSOCKET instead of augmenting LIBS.
41952         * modules/sockets (Link): New section.
41953         * modules/sockets-tests (test_sockets_LDADD): New variable.
41954         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41955         * modules/poll-tests (test_poll_LDADD): New variable.
41956         * NEWS: Document the change.
41957
41958 2008-09-29  Bruno Haible  <bruno@clisp.org>
41959
41960         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41961         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41962         ARPA_INET_H directly.
41963         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41964
41965 2008-09-28  Bruno Haible  <bruno@clisp.org>
41966
41967         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41968         from gl_HEADER_SYS_SOCKET.
41969         (gl_HEADER_SYS_SOCKET): Invoke it.
41970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41971
41972 2008-09-28  Bruno Haible  <bruno@clisp.org>
41973
41974         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41975         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41976         Needed on OSF/1 4.0.
41977
41978 2008-09-28  Bruno Haible  <bruno@clisp.org>
41979
41980         Override open more carefully.
41981         * lib/open.c (orig_open): New function.
41982         (rpl_open): Use orig_open instead of open.
41983         * lib/fcntl.in.h: Add special invocation convention.
41984         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41985         (gl_FUNC_OPEN): Invoke it.
41986
41987         Override freopen more carefully.
41988         * lib/freopen.c (orig_freopen): New function.
41989         (rpl_freopen): Use orig_freopen instead of freopen.
41990         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41991         (gl_FUNC_FREOPEN): Invoke it.
41992
41993         Override fopen more carefully.
41994         * lib/fopen.c (orig_fopen): New function.
41995         (rpl_fopen): Use orig_fopen instead of fopen.
41996         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41997         (gl_FUNC_FOPEN): Invoke it.
41998         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41999
42000 2008-09-28  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42003         SIGPIPE.
42004
42005 2008-09-28  Bruno Haible  <bruno@clisp.org>
42006
42007         * tests/test-sigaction.c (handler, main): Disable the check whether
42008         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42009         glibc systems with LinuxThreads.
42010
42011 2008-09-28  Bruno Haible  <bruno@clisp.org>
42012
42013         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42014
42015         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42016         with AIX xlc.
42017         * lib/fcntl.in.h (open): Likewise.
42018         Reported by Rainer Tammer <tammer@tammer.net>.
42019
42020 2008-09-28  Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/posix_spawnp-tests: New file.
42023         * tests/test-posix_spawn.c: New file.
42024         * tests/test-posix_spawn.in.sh: New file.
42025
42026         New module 'posix_spawnp'.
42027         * modules/posix_spawnp: New file.
42028         * lib/spawnp.c: New file, from GNU libc with modifications.
42029         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42030
42031         New module 'posix_spawn'.
42032         * modules/posix_spawn: New file.
42033         * lib/spawn.c: New file, from GNU libc with modifications.
42034         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42035
42036         New module 'posix_spawnattr_destroy'.
42037         * modules/posix_spawnattr_destroy: New file.
42038         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42039         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42040         module.
42041
42042         New module 'posix_spawnattr_setsigmask'.
42043         * modules/posix_spawnattr_setsigmask: New file.
42044         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42045         modifications.
42046         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42047         new module.
42048
42049         New module 'posix_spawnattr_getsigmask'.
42050         * modules/posix_spawnattr_getsigmask: New file.
42051         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42052         modifications.
42053         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42054         new module.
42055
42056         New module 'posix_spawnattr_setsigdefault'.
42057         * modules/posix_spawnattr_setsigdefault: New file.
42058         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42059         modifications.
42060         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42061         new module.
42062
42063         New module 'posix_spawnattr_getsigdefault'.
42064         * modules/posix_spawnattr_getsigdefault: New file.
42065         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42066         modifications.
42067         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42068         new module.
42069
42070         New module 'posix_spawnattr_setschedpolicy'.
42071         * modules/posix_spawnattr_setschedpolicy: New file.
42072         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42073         modifications.
42074         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42075         new module.
42076
42077         New module 'posix_spawnattr_getschedpolicy'.
42078         * modules/posix_spawnattr_getschedpolicy: New file.
42079         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42080         modifications.
42081         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42082         new module.
42083
42084         New module 'posix_spawnattr_setschedparam'.
42085         * modules/posix_spawnattr_setschedparam: New file.
42086         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42087         modifications.
42088         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42089         new module.
42090
42091         New module 'posix_spawnattr_getschedparam'.
42092         * modules/posix_spawnattr_getschedparam: New file.
42093         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42094         modifications.
42095         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42096         new module.
42097
42098         New module 'posix_spawnattr_setpgroup'.
42099         * modules/posix_spawnattr_setpgroup: New file.
42100         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42101         modifications.
42102         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42103         module.
42104
42105         New module 'posix_spawnattr_getpgroup'.
42106         * modules/posix_spawnattr_getpgroup: New file.
42107         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42108         modifications.
42109         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42110         module.
42111
42112         New module 'posix_spawnattr_setflags'.
42113         * modules/posix_spawnattr_setflags: New file.
42114         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42115         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42116         module.
42117
42118         New module 'posix_spawnattr_getflags'.
42119         * modules/posix_spawnattr_getflags: New file.
42120         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42121         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42122         module.
42123
42124         New module 'posix_spawnattr_init'.
42125         * modules/posix_spawnattr_init: New file.
42126         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42127         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42128         module.
42129
42130         New module 'posix_spawn_file_actions_destroy'.
42131         * modules/posix_spawn_file_actions_destroy: New file.
42132         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42133         modifications.
42134         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42135         the new module.
42136
42137         New module 'posix_spawn_file_actions_addopen'.
42138         * modules/posix_spawn_file_actions_addopen: New file.
42139         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42140         modifications.
42141         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42142         the new module.
42143
42144         New module 'posix_spawn_file_actions_adddup2'.
42145         * modules/posix_spawn_file_actions_adddup2: New file.
42146         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42147         modifications.
42148         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42149         the new module.
42150
42151         New module 'posix_spawn_file_actions_addclose'.
42152         * modules/posix_spawn_file_actions_addclose: New file.
42153         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42154         modifications.
42155         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42156         the new module.
42157
42158         New module 'posix_spawn_file_actions_init'.
42159         * modules/posix_spawn_file_actions_init: New file.
42160         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42161         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42162         new module.
42163
42164         New module 'posix_spawn-internal'.
42165         * modules/posix_spawn-internal: New file.
42166         * lib/spawn_int.h: New file, from GNU libc with modifications.
42167         * lib/spawni.c: New file, from GNU libc with modifications.
42168         * m4/posix_spawn.m4: New file.
42169
42170         New module 'spawn'.
42171         * modules/spawn: New file.
42172         * lib/spawn.in.h: New file, from GNU libc with modifications.
42173         * m4/spawn_h.m4: New file.
42174         * doc/posix-headers/spawn.texi: Mention the new module.
42175
42176 2008-09-28  Bruno Haible  <bruno@clisp.org>
42177
42178         * modules/sched-tests: New file.
42179         * tests/test-sched.c: New file.
42180
42181         New module 'sched'.
42182         * modules/sched: New file.
42183         * lib/sched.in.h: New file.
42184         * m4/sched_h.m4: New file.
42185         * doc/posix-headers/sched.texi: Mention the new module.
42186
42187 2008-09-27  Eric Blake  <ebb9@byu.net>
42188
42189         Fix previous patch, and tweak references to $0.
42190         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42191         (func_version, func_gnulib_dir): Don't call this program
42192         gnulib-tool.
42193         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42194         with using $0 in function.
42195         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42196         (func_fatal_error): Reuse the name the user invoked us with.
42197
42198 2008-09-27  Bruno Haible  <bruno@clisp.org>
42199
42200         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42201         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42202         (gl_ICONV_H): Not here.
42203         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42204         instead of assigning ICONV_H directly.
42205
42206         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42208         WCHAR_H directly.
42209
42210 2008-09-27  Bruno Haible  <bruno@clisp.org>
42211
42212         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42213         * modules/arpa_inet (Depends-on): Add link-warning.
42214         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42215         * modules/unistd (Makefile.am): Likewise.
42216
42217 2008-09-26  Bruno Haible  <bruno@clisp.org>
42218
42219         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42220         variables.
42221         (func_version): Essentially copied from gnulib-tool.
42222         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42223         func_readlink): Copied from gnulib-tool.
42224
42225 2008-09-26  Bruno Haible  <bruno@clisp.org>
42226
42227         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42228         invoking git-version-gen.
42229
42230 2008-09-26  Bruno Haible  <bruno@clisp.org>
42231
42232         * posix-modules: Update to directory names changed on 2008-01-19.
42233         Remove commas in output before splitting into words. No more need to
42234         avoid 'ftruncate' since 2007-02-19.
42235
42236 2008-09-26  Bruno Haible  <bruno@clisp.org>
42237
42238         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42239
42240 2008-09-26  Bruno Haible  <bruno@clisp.org>
42241
42242         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42243         * modules/fwriteerror (Depends-on): Add errno.
42244
42245 2008-09-26  Bruno Haible  <bruno@clisp.org>
42246
42247         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42248         * tests/test-vc-list-files-cvs.sh: Likewise.
42249
42250 2008-09-26  Bruno Haible  <bruno@clisp.org>
42251
42252         * doc/posix-headers/sys_resource.texi: Reorder items.
42253
42254 2008-09-26  Jim Meyering  <meyering@redhat.com>
42255
42256         fts: tweak inode comparison function
42257         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42258         inode numbers, as documented.
42259
42260         fts: sort dirent entries on inode number before traversing
42261         This avoids a quadratic, seek-related performance penalty when
42262         operating on a directory containing many entries (measurable at 10k;
42263         3.5 hours at 2 million entries with a cold cache) on certain types
42264         of file systems, including ext3 and ext4, but not tmpfs.
42265         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42266         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42267         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42268         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42269         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42270         (fts_build): Set the stat.st_ino member from D_INO.
42271         If it is likely to be useful, sort dirent entries on inode number.
42272
42273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42274         and the struct statfs.f_type member.
42275         * modules/fts (Depends-on): Add d-ino.
42276
42277 2008-09-26  Bruno Haible  <bruno@clisp.org>
42278
42279         * modules/sigpipe-die (Depends-on): Add sigpipe.
42280
42281         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42282         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42283         and GNULIB_STDIO_H_SIGPIPE are set.
42284         * lib/stdio-write.c: New file.
42285         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42286         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42287         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42288         REPLACE_STDIO_WRITE_FUNCS.
42289         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42290         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42291         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42292         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42293         * modules/stdio (Files): Add lib/stdio-write.c.
42294         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42295         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42296         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42297         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42298         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42299         REPLACE_FPRINTF_POSIX.
42300         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42301         REPLACE_PRINTF_POSIX.
42302         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42303         REPLACE_VFPRINTF_POSIX.
42304         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42305         REPLACE_VPRINTF_POSIX.
42306         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42307         SIGPIPE issue.
42308         * doc/posix-functions/fputc.texi: Likewise.
42309         * doc/posix-functions/fputs.texi: Likewise.
42310         * doc/posix-functions/fwrite.texi: Likewise.
42311         * doc/posix-functions/printf.texi: Likewise.
42312         * doc/posix-functions/putc.texi: Likewise.
42313         * doc/posix-functions/putchar.texi: Likewise.
42314         * doc/posix-functions/puts.texi: Likewise.
42315         * doc/posix-functions/vfprintf.texi: Likewise.
42316         * doc/posix-functions/vprintf.texi: Likewise.
42317
42318         * modules/safe-write (Depends-on): Add write.
42319
42320         * modules/sigpipe-tests: New file.
42321         * tests/test-sigpipe.c: New file.
42322         * tests/test-sigpipe.sh: New file.
42323
42324         * modules/write: New file.
42325         * lib/unistd.in.h: Include <sys/types.h>.
42326         (write): New declaration.
42327         * lib/write.c: New file.
42328         * m4/write.m4: New file.
42329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42330         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42331         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42332         GNULIB_WRITE, REPLACE_WRITE.
42333         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42334         and the SIGPIPE issue.
42335
42336         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42337         (raise): New declaration.
42338         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42339         (ext_signal): New function.
42340         (rpl_raise): New function.
42341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42342         GNULIB_SIGNAL_H_SIGPIPE.
42343         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42344         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42345
42346         * modules/sigpipe: New file.
42347         * m4/sigpipe.m4: New file.
42348
42349 2008-09-25  Derek Price  <derek@ximbiot.com>
42350             Bruno Haible  <bruno@clisp.org>
42351
42352         * gnulib-tool (func_import): Report all license incompatibilities, not
42353         just the first one.
42354
42355 2008-09-25  Bruno Haible  <bruno@clisp.org>
42356
42357         * gnulib-tool (func_import): When computing the edits, consider not
42358         only the Makefile.ams that exist but also those that will be generated.
42359
42360 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42361
42362         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42363         fixes gnulib-tool --test warning about duplicate dependency.
42364
42365 2008-09-25  Bruno Haible  <bruno@clisp.org>
42366
42367         * gnulib-tool: Don't ask the user to perform edits in the generated
42368         Makefile.ams.
42369         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42370         apply to the Makefile.am being generated.
42371         (func_emit_tests_Makefile_am): Execute edits that apply to the
42372         Makefile.am being generated.
42373         (func_import): Setup list of Makefile.am edits before emitting the
42374         Makefile.ams, not at the end.
42375         (func_create_testdir): Update.
42376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42377
42378 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42379
42380         * gnulib-tool (func_import): Store the --tests-base option in the
42381         comment in gnulib-cache.m4.
42382
42383 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42384
42385         * NEWS: Document increased portability that sys_select now provides.
42386
42387         * lib/sys_select.in.h: Install select wrapper.
42388         * lib/sys_socket.in.h: Use more descriptive name when there is no
42389         select wrapper.
42390         * lib/winsock-select.c: New.
42391         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42392         Require gl_HEADER_SYS_SOCKET.
42393         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42394         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42395         * tests/test-sys_select.c: Add functional tests.
42396
42397 2008-09-24  Eric Blake  <ebb9@byu.net>
42398
42399         open, fopen: close fd leak in last patch
42400         * lib/open.c (rpl_open): Close fd before returning error.
42401         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42402         * doc/posix-functions/open.texi (open): Document that Irix also
42403         has the bug.
42404         * doc/posix-functions/fopen.texi (fopen): Likewise.
42405         Reported by Paolo Bonzini.
42406
42407 2008-09-24  Bruno Haible  <bruno@clisp.org>
42408
42409         Ensure that a filename ending in a slash cannot be used to access a
42410         non-directory.
42411         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42412         to check whether it's really a directory.
42413         * lib/fopen.c: Include fcntl.h, unistd.h.
42414         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42415         and fdopen().
42416         * modules/fopen (Depends-on): Add unistd.
42417         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42418         * tests/test-fopen.c (main): Likewise.
42419         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42420         * doc/posix-functions/fopen.texi: Likewise.
42421         Reported by Eric Blake.
42422
42423 2008-09-23  Eric Blake  <ebb9@byu.net>
42424
42425         c-stack: avoid compiler optimizations when provoking overflow
42426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42427         recursion harder to optimize, to ensure a stack overflow occurs.
42428         * tests/test-c-stack.c (recurse): Likewise.
42429         Borrowed from libsigsegv.
42430
42431         c-stack: work around Irix sigaltstack bug
42432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42433         whether sigaltstack uses wrong end of stack_t (copied in part from
42434         libsigsegv).
42435         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42436         Irix bug, without requiring an over-allocation.
42437         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42438         bug.
42439
42440         fopen: document mingw bug on directories
42441         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42442         not allowing a stream visiting a directory, even though reading
42443         from such a stream is not portable.
42444
42445 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42446
42447         * lib/poll.c: Rewrite.
42448         * modules/poll: Depend on alloca.
42449
42450 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42451
42452         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42453         instead define prototypes for a full set of wrappers.  Ensure
42454         that Cygwin does not use the compatibility code, which is only
42455         for MinGW.
42456         * lib/winsock.c: New.
42457         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42458         * modules/sys_socket: Add lib/winsock.c.
42459
42460         * modules/poll-tests: Add errno and perror.
42461         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42462
42463 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42464
42465         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42466
42467 2008-09-23  Bruno Haible  <bruno@clisp.org>
42468
42469         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42470         * doc/glibc-functions/*: Likewise.
42471
42472 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42473
42474         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42475         success.
42476
42477 2008-09-22  Eric Blake  <ebb9@byu.net>
42478             Bruno Haible  <bruno@clisp.org>
42479
42480         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42481         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42482         supply %A but mishandle pseudo-NaN.
42483         Reported by Simon Josefsson.
42484
42485 2008-09-21  Bruno Haible  <bruno@clisp.org>
42486
42487         * tests/test-lock.c (main): Tweak skip message.
42488         * tests/test-tls.c (main): Likewise.
42489
42490 2008-09-21  Bruno Haible  <bruno@clisp.org>
42491
42492         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42493         whether 'struct sigaction' has sa_sigaction here...
42494         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42495         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42496
42497 2008-09-21  Bruno Haible  <bruno@clisp.org>
42498
42499         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42500         section.
42501         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42502         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42503         the new section.
42504         (Support for obsolete systems lacking POSIX:2001): New section.
42505         (String handling <string.h>): Move strdup to the new section.
42506         Suggested by Simon Josefsson and Paolo Bonzini.
42507
42508 2008-09-21  Bruno Haible  <bruno@clisp.org>
42509
42510         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42511         exponents in %e and %g results on 'long double'. Needed for mingw's
42512         improved *printf functions.
42513         * tests/test-vasprintf-posix.c (test_function): Likewise.
42514         * tests/test-snprintf-posix.h (test_function): Likewise.
42515         * tests/test-sprintf-posix.h (test_function): Likewise.
42516         Reported by Eric Blake.
42517
42518 2008-09-21  Bruno Haible  <bruno@clisp.org>
42519
42520         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42521         * tests/test-sprintf-posix.h (test_function): Likewise.
42522
42523 2008-09-21  Bruno Haible  <bruno@clisp.org>
42524
42525         * modules/getpass (Depends-on): Add strdup-posix.
42526
42527         New module 'strdup-posix'.
42528         * modules/strdup-posix: New file.
42529         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42530         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42532         REPLACE_STRDUP.
42533         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42534         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42535         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42536         strdup-posix.
42537
42538         * modules/strdup (Depends-on): Remove malloc-posix.
42539
42540 2008-09-20  Bruno Haible  <bruno@clisp.org>
42541
42542         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42543         Wildenhues.
42544
42545 2008-09-20  Bruno Haible  <bruno@clisp.org>
42546
42547         Ensure that wint_t gets defined on IRIX 5.3.
42548         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42549         * lib/wctype.in.h (wint_t): Likewise.
42550         (__wctype_wint_t): Remove type.
42551         (isw*): Use wint_t instead of __wctype_wint_t.
42552         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42553         * modules/wchar (Files): Add m4/wint_t.m4.
42554         (Makefile.am): Substitute HAVE_WINT_T.
42555         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42556         * tests/test-wctype.c: Check that wint_t is defined.
42557         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42558         * doc/posix-headers/wctype.texi: Likewise.
42559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42560
42561 2008-09-18  Bruno Haible  <bruno@clisp.org>
42562
42563         * gnulib-tool (func_exit): Update comment.
42564
42565 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42566
42567         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42568         assumes strdup exists and does not depend on strdup to return
42569         ENOMEM on out of memory conditions.
42570
42571 2008-09-18  Bruno Haible  <bruno@clisp.org>
42572
42573         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42574         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42575         digits for the exponent.
42576
42577 2008-09-18  Jim Meyering  <meyering@redhat.com>
42578             Bruno Haible  <bruno@clisp.org>
42579
42580         * lib/vasnprintf.c (decimal_point_char): Define also if
42581         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42582
42583 2008-09-16  Bruno Haible  <bruno@clisp.org>
42584         and Eric Blake  <ebb9@byu.net>
42585
42586         vasnprintf: support Irix 5.3
42587         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42588         that mishandle long double infinity.
42589         Reported by Tom G. Christensen.
42590
42591 2008-09-16  Bruno Haible  <bruno@clisp.org>
42592
42593         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42594         Solaris 9.
42595         * doc/glibc-functions/alphasort.texi: Likewise.
42596         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42597
42598 2008-09-16  Jim Meyering  <meyering@redhat.com>
42599
42600         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42601         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42602         a umask modification leak out of a subshell.  Otherwise, the
42603         opensolaris /bin/sh would be accepted and thus cause unwarranted
42604         failures in the coreutils test suite.
42605
42606 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42607
42608         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42609         to succeed.
42610
42611 2008-09-16  Jim Meyering  <meyering@redhat.com>
42612
42613         avoid spurious test failure when library is built without ACL support
42614         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42615         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42616         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42617         * tests/test-copy-acl.sh: Likewise.
42618
42619 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42620
42621         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42622         based on character occurrence counts.
42623
42624 2008-09-15  Eric Blake  <ebb9@byu.net>
42625
42626         tests: avoid some compiler warnings
42627         * tests/test-memchr.c (main): Pass NULL indirectly.
42628         * tests/test-closein.c (main): Avoid unused variable.
42629
42630 2008-09-15  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42633         are missing on OpenBSD 4.0 individually.
42634         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42635
42636 2008-09-15  Bruno Haible  <bruno@clisp.org>
42637
42638         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42639         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42640         * doc/posix-functions/perror.texi: Likewise.
42641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42642         is missing.
42643         Reported by Eric Blake.
42644
42645         * lib/errno.in.h: Use replacement values >= 2000.
42646         Reported by Eric Blake.
42647
42648 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42649
42650         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42651         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42652         limit.
42653         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42654         compareseq was aborted.
42655
42656 2008-09-14  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42659         yvec_edit_count.
42660         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42661         (fstrcmp_bounded): Simplify result computation accordingly.
42662
42663 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42664
42665         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42666         (fstrcmp): Define in terms of fstrcmp_bounded.
42667         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42668         lower_bound argument.
42669         Return quickly if the result is certainly < lower_bound.
42670         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42671
42672 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42673
42674         * lib/diffseq.h (EARLY_ABORT): New macro.
42675         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42676         evaluates to true.
42677
42678 2008-09-14  Bruno Haible  <bruno@clisp.org>
42679
42680         * modules/perror-tests: New file.
42681         * tests/test-perror.sh: New file.
42682         * tests/test-perror.c: New file.
42683
42684         New module 'perror'.
42685         * lib/stdio.in.h (perror): New declaration.
42686         * lib/perror.c: New file.
42687         * m4/perror.m4: New file.
42688         * modules/perror: New file.
42689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42690         * doc/posix-functions/perror.texi: Mention the perror module.
42691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42692         REPLACE_PERROR.
42693         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42694         REPLACE_PERROR.
42695
42696 2008-09-14  Bruno Haible  <bruno@clisp.org>
42697
42698         * modules/stdio (Makefile.am): Reorder to match the order in
42699         lib/stdio.in.h.
42700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42701
42702 2008-09-13  Bruno Haible  <bruno@clisp.org>
42703
42704         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42705
42706 2008-09-13  Bruno Haible  <bruno@clisp.org>
42707
42708         Extend strerror to cover the added errno values.
42709         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42710         (rpl_strerror): Provide error messages for the added errno values and
42711         for the WSA* values.
42712         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42713         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42714         strerror.
42715         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42716         * modules/strerror (Depends-on): Add errno.
42717         * doc/posix-functions/strerror.texi: Document the change.
42718         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42719         and EOVERFLOW.
42720
42721 2008-09-13  Bruno Haible  <bruno@clisp.org>
42722
42723         * modules/EOVERFLOW: Remove file.
42724         * m4/eoverflow.m4: Remove file.
42725         * modules/EOVERFLOW-tests: Remove file.
42726         * tests/test-EOVERFLOW.c: Remove file.
42727         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42728         * modules/ftell (Depends-on): Likewise.
42729         * modules/getdelim (Depends-on): Likewise.
42730         * modules/getugroups (Depends-on): Likewise.
42731         * modules/poll (Depends-on): Likewise.
42732         * modules/snprintf (Depends-on): Likewise.
42733         * modules/sprintf-posix (Depends-on): Likewise.
42734         * modules/vasnprintf (Depends-on): Likewise.
42735         * modules/vasprintf (Depends-on): Likewise.
42736         * modules/vfprintf-posix (Depends-on): Likewise.
42737         * modules/vsnprintf (Depends-on): Likewise.
42738         * modules/vsprintf-posix (Depends-on): Likewise.
42739         * modules/xvasprintf (Depends-on): Likewise.
42740         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42741         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42742         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42743         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42745         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42746         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42747         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42748         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42749         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42750         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42751         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42752         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42753         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42754         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42755         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42757         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42758         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42759         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42760         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42761         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42762         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42763         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42764         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42765         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42766         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42767         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42768         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42769         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42770         * MODULES.html.sh: Remove EOVERFLOW.
42771         * NEWS: Mention the change.
42772
42773 2008-09-13  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/errno-tests: New file.
42776         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42777
42778         * lib/errno.in.h: New file.
42779         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42780         * modules/errno: New file.
42781         * doc/posix-headers/errno.texi: Update documentation.
42782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42783
42784 2008-09-13  Bruno Haible  <bruno@clisp.org>
42785
42786         * tests/test-poll.c: Use #if for native Windows, rather than testing
42787         __MSVCRT__.
42788
42789 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42790             Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/glob.c: Don't include <pwd.h> on native Windows.
42793         (WINDOWS32): New macro.
42794         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42795
42796 2008-09-13  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42799         (ETIMEDOUT): Remove macro.
42800         (glthread_cond_timedwait_multithreaded): New declaration.
42801         (glthread_cond_timedwait): Use it.
42802         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42803         (glthread_cond_timedwait_multithreaded): New function.
42804
42805 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42806
42807         * modules/poll-tests: Do not check for io.h.
42808         * tests/test-poll.c: Check for __MSVCRT__ instead.
42809
42810 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42811
42812         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42813         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42814         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42815
42816 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42817
42818         * modules/poll-tests: New.
42819         * tests/test-poll.c: New.
42820
42821 2008-09-12  Eric Blake  <ebb9@byu.net>
42822
42823         frexp: test for NetBSD failure on -0.0
42824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42825         not all, bugs from NetBSD 3.0 have been fixed.
42826         * doc/posix-functions/frexp.texi (frexp): Document bug.
42827         Reported by Thomas Klausner.
42828
42829         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42830         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42831         literal -0.0.
42832         Reported by Jonathan C. Patschke <jp@centtech.com>.
42833
42834 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42835
42836         * lib/glthread/cond.h: Use dummy implementation also if
42837         USE_WIN32_THREADS.
42838
42839 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42840
42841         * modules/fnmatch-posix (License): Change to LGPLv2+.
42842         * modules/fnmatch-gnu (License): Likewise.
42843
42844 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42845
42846         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42847
42848 2008-09-11  Jim Meyering  <meyering@redhat.com>
42849
42850         * users.txt: Add gtk-vnc.
42851
42852 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42853
42854         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42855         rotate amounts.
42856
42857         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42858         required for 16-bit and 8-bit rotates.
42859         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42860         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42861         UINT8_MAX instead of hard-coded constants.
42862         Suggested by Paul Eggert.
42863
42864 2008-09-07  Bruno Haible  <bruno@clisp.org>
42865
42866         * tests/test-striconveh.c (main): Check behaviour when converting from
42867         UTF-7.
42868
42869         Make striconveh work better with stateful encodings.
42870         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42871         that iconv does not increment the inptr when returning -1/EINVAL.
42872
42873 2008-09-07  Bruno Haible  <bruno@clisp.org>
42874
42875         * build-aux/config.rpath: Update according to libtool-2.2.6.
42876         * build-aux/config.libpath: Likewise.
42877
42878 2008-09-06  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42881         * lib/freadptr.c (freadptr): Likewise.
42882         * lib/freadseek.c (freadptrinc): Likewise.
42883         Reported by Simon Josefsson.
42884
42885 2008-09-06  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/freadptr (License): Change to LGPLv2+.
42888         * modules/freadseek (License): Likewise.
42889         Suggested by Eric Blake.
42890
42891         * modules/memchr2 (License): Change to LGPLv2+.
42892         Approved by Eric Blake.
42893
42894 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42895             Bruno Haible  <bruno@clisp.org>
42896
42897         Make gnulib-tool work with native 'sed' on AIX.
42898         * gnulib-tool (sed_noop): New variable.
42899         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42900         func_add_or_update, func_create_testdir): Use it to initialize sed
42901         script variables.
42902         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42903
42904 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42905             Bruno Haible  <bruno@clisp.org>
42906
42907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42908         also works after #include directives.
42909
42910 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
42911
42912         getdate.y: reject an out-of-range timezone value
42913         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42914         the range [-24...+24].  When specified with only one or two digits,
42915         * tests/test-getdate.c: Tests for the fix.
42916         * doc/getdate.texi: Document this change.
42917
42918 2008-09-03  Bruno Haible  <bruno@clisp.org>
42919
42920         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42921
42922 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42923
42924         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42925         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42926         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42927         Blake <ebb9@byu.net>.
42928
42929         * tests/test-bitrotate.c: Add more test vectors.
42930
42931 2008-09-02  Eric Blake  <ebb9@byu.net>
42932
42933         vasnprintf-posix: handle large precision via %.*d
42934         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42935         when handling it ourselves.
42936         * tests/test-vasnprintf-posix.c (test_function): Add test.
42937         * tests/test-snprintf-posix.h (test_function): Likewise.
42938         * tests/test-sprintf-posix.h (test_function): Likewise.
42939         * tests/test-vasprintf-posix.c (test_function): Likewise.
42940         Reported by Alain Guibert.
42941
42942 2008-09-01  Eric Blake  <ebb9@byu.net>
42943
42944         c-stack: make configure-time check more robust
42945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42946         successful sigaction call.
42947         Reported by Tom G. Christensen.
42948
42949 2008-09-01  Bruno Haible  <bruno@clisp.org>
42950
42951         New module 'findprog-lgpl'.
42952         * modules/findprog-lgpl: New file.
42953         * lib/findprog-lgpl.c: New file.
42954         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42955         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42956         to decide whether to use strdup or xstrdup, concatenated_filename or
42957         xconcatenated_filename.
42958
42959 2008-09-01  Bruno Haible  <bruno@clisp.org>
42960
42961         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42962         'xconcat-filename' (GPL).
42963         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42964         (License): Change to LGPLv2+.
42965         * modules/xconcat-filename: New file.
42966         * lib/concat-filename.h (concatenated_filename): Change specification.
42967         (xconcatenated_filename): New declaration.
42968         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42969         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42970         memory situations.
42971         * lib/xconcat-filename.c: New file.
42972         * NEWS: Mention the change.
42973         * lib/findprog.c: Include concat-filename.h, not filename.h.
42974         (find_in_path): Use xconcatenated_filename instead of
42975         concatenated_filename.
42976         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42977         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42978         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42979         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42980         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42981         instead of concatenated_filename.
42982         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42983         (execute_java_class): Use xconcatenated_filename instead of
42984         concatenated_filename.
42985         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42986         * modules/javacomp (Depends-on): Likewise.
42987         * modules/javaexec (Depends-on): Likewise.
42988
42989 2008-09-01  Bruno Haible  <bruno@clisp.org>
42990
42991         Split module 'filename' into 'filename' and 'concat-filename'.
42992         * modules/filename: Keep only lib/filename.h.
42993         (License): Change to LGPLv2+.
42994         * modules/concat-filename: New file, extracted from modules/filename.
42995         * lib/filename.h (concatenated_filename): Remove declaration.
42996         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42997         * lib/concat-filename.c: Include concat-filename.h.
42998         * NEWS: Mention the change.
42999
43000 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43001
43002         * lib/bitrotate.h (rotl8, rotr8): Add.
43003
43004         * modules/bitrotate (configure.ac): Need
43005         AC_REQUIRE([AC_C_INLINE]).
43006         (Description): Mention stdint.h.  Reported by Bruno Haible
43007         <bruno@clisp.org>.
43008
43009         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43010         Paolo Bonzini <bonzini@gnu.org>.
43011
43012 2008-08-31  Bruno Haible  <bruno@clisp.org>
43013
43014         Assume Solaris specific bi-arch conventions on Solaris systems.
43015         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43016         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43017         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43018         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43019         like acl_libdirstem.
43020         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43021         acl_libdirstem.
43022         * NEWS: Mention the change.
43023         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43024
43025 2008-08-31  Jim Meyering  <meyering@redhat.com>
43026
43027         * lib/strftime.h: Add comments describing the two added arguments.
43028
43029         remove duplicate #include directives
43030         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43031         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43032
43033 2008-08-31  Bruno Haible  <bruno@clisp.org>
43034
43035         New module 'sigpipe-die'.
43036         * modules/sigpipe-die: New file.
43037         * lib/sigpipe-die.h: New file.
43038         * lib/sigpipe-die.c: New file.
43039         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43040
43041 2008-08-31  Bruno Haible  <bruno@clisp.org>
43042
43043         Don't override previously installed signal handlers.
43044         * lib/fatal-signal.c (saved_sigactions): New variable.
43045         (uninstall_handlers): Reset the signal to the saved handler, not
43046         to SIG_DFL (except when ignored).
43047         (install_handlers): Save the previous handlers.
43048
43049 2008-08-30  Bruno Haible  <bruno@clisp.org>
43050
43051         * gnulib-tool (func_reset_sigpipe): New function.
43052         (func_get_automake_snippet, func_modules_transitive_closure,
43053         func_import): Invoke it before a join command that reads from stdin,
43054         to avoid "echo: write error: Broken pipe" error messages on stderr.
43055         Reported by Sam Steingold <sds@gnu.org>.
43056
43057 2008-08-30  Bruno Haible  <bruno@clisp.org>
43058
43059         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43060         Code copied from m4/open.m4.
43061         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43062         access and the filename ends in a slash. Code copied from lib/open.c.
43063         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43064         * tests/test-fopen.c (main): Check against bug with trailing slash.
43065
43066 2008-08-29  Bruno Haible  <bruno@clisp.org>
43067
43068         Avoid some "gcc -pedantic" warnings.
43069         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43070         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43071         * lib/dirent.in.h: Likewise.
43072         * lib/fcntl.in.h: Likewise.
43073         * lib/float.in.h: Likewise.
43074         * lib/iconv.in.h: Likewise.
43075         * lib/inttypes.in.h: Likewise.
43076         * lib/locale.in.h: Likewise.
43077         * lib/math.in.h: Likewise.
43078         * lib/netinet_in.in.h: Likewise.
43079         * lib/search.in.h: Likewise.
43080         * lib/signal.in.h: Likewise.
43081         * lib/stdarg.in.h: Likewise.
43082         * lib/stdint.in.h: Likewise.
43083         * lib/stdio.in.h: Likewise.
43084         * lib/stdlib.in.h: Likewise.
43085         * lib/string.in.h: Likewise.
43086         * lib/strings.in.h: Likewise.
43087         * lib/sys_select.in.h: Likewise.
43088         * lib/sys_socket.in.h: Likewise.
43089         * lib/sys_stat.in.h: Likewise.
43090         * lib/sys_time.in.h: Likewise.
43091         * lib/sysexits.in.h: Likewise.
43092         * lib/time.in.h: Likewise.
43093         * lib/unistd.in.h: Likewise.
43094         * lib/wchar.in.h: Likewise.
43095         * lib/wctype.in.h: Likewise.
43096         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43097         * modules/fchdir (Makefile.am): Likewise.
43098         * modules/fcntl (Makefile.am): Likewise.
43099         * modules/float (Makefile.am): Likewise.
43100         * modules/iconv_open (Makefile.am): Likewise.
43101         * modules/inttypes (Makefile.am): Likewise.
43102         * modules/locale (Makefile.am): Likewise.
43103         * modules/math (Makefile.am): Likewise.
43104         * modules/netinet_in (Makefile.am): Likewise.
43105         * modules/search (Makefile.am): Likewise.
43106         * modules/signal (Makefile.am): Likewise.
43107         * modules/stdarg (Makefile.am): Likewise.
43108         * modules/stdint (Makefile.am): Likewise.
43109         * modules/stdio (Makefile.am): Likewise.
43110         * modules/stdlib (Makefile.am): Likewise.
43111         * modules/string (Makefile.am): Likewise.
43112         * modules/strings (Makefile.am): Likewise.
43113         * modules/sys_select (Makefile.am): Likewise.
43114         * modules/sys_socket (Makefile.am): Likewise.
43115         * modules/sys_stat (Makefile.am): Likewise.
43116         * modules/sys_time (Makefile.am): Likewise.
43117         * modules/sysexits (Makefile.am): Likewise.
43118         * modules/time (Makefile.am): Likewise.
43119         * modules/unistd (Makefile.am): Likewise.
43120         * modules/wchar (Makefile.am): Likewise.
43121         * modules/wctype (Makefile.am): Likewise.
43122         Reported by Reuben Thomas <rrt@sc3d.org>.
43123
43124 2008-08-29  Bruno Haible  <bruno@clisp.org>
43125
43126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43127         any more.
43128
43129 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43130
43131         * MODULES.html.sh (Misc): Add bitrotate.
43132
43133         * modules/bitrotate: New file.
43134
43135         * lib/bitrotate.h: New file.
43136
43137         * modules/bitrotate-tests: New file.
43138
43139         * tests/test-bitrotate.c: New file.
43140
43141         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43142         on the bitrotate module.
43143
43144         * lib/arctwo.c: Use new bitrotate module.
43145
43146 2008-08-29  Jim Meyering  <meyering@redhat.com>
43147
43148         bootstrap: merge changes from coreutils
43149         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43150         of copied files.  Remove a kludge, now that this is fixed.
43151         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43152         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43153         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43154
43155 2008-08-29  Bruno Haible  <bruno@clisp.org>
43156
43157         * MODULES.html.sh: Remove --cvs-urls option.
43158
43159 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43160
43161         maint.mk: adjust to file name change
43162         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43163
43164 2008-08-28  Jim Meyering  <meyering@redhat.com>
43165
43166         * modules/getndelim2 (License): Relicense to LGPLv2+.
43167         Approved by Richard Stallman for the version of 1995, and by
43168         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43169
43170 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43171
43172         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43173         dummy if one is not available.  Do not touch them if
43174         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43175         (getc_maybe_unlocked): New.
43176         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43177
43178 2008-08-26  Eric Blake  <ebb9@byu.net>
43179
43180         doc/INSTALL: resync from autoconf
43181         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43182         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43183         moving...
43184         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43185         * INSTALL: Regenerate.
43186         * INSTALL.ISO: New file.
43187         * INSTALL.UTF-8: Likewise.
43188
43189 2008-08-26  Jim Meyering  <meyering@redhat.com>
43190
43191         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43192         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43193         these definitions conditional, so that they may be overridden, too.
43194
43195 2008-08-26  Bruno Haible  <bruno@clisp.org>
43196
43197         Generate INSTALL file variants with prettier quotes.
43198         * doc/Makefile (INSTALL_PRELUDE): New macro.
43199         (INSTALL): Use it.
43200         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43201
43202 2008-08-26  Bruno Haible  <bruno@clisp.org>
43203
43204         Run makeinfo in an English locale.
43205         * doc/Makefile (MAKEINFO): New variable.
43206
43207 2008-08-26  Bruno Haible  <bruno@clisp.org>
43208
43209         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43210         Suggested by Eric Blake.
43211
43212 2008-08-25  Bruno Haible  <bruno@clisp.org>
43213
43214         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43215
43216 2008-08-25  Eric Blake  <ebb9@byu.net>
43217
43218         c-stack: test that stack overflow can be caught
43219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43220         that platform allows handling stack overflow; at least OS/2 EMX
43221         has sigaltstack, but crashes before transferring control to
43222         handler on stack overflow.
43223         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43224         check for HAVE_STACK_OVERFLOW_HANDLING.
43225         Reported by Elbert Pol.
43226
43227 2008-08-25  Bruno Haible  <bruno@clisp.org>
43228
43229         * doc/posix-functions/strftime.texi: Fix description of strftime
43230         module.
43231
43232 2008-08-24  Bruno Haible  <bruno@clisp.org>
43233
43234         * tests/uniwidth/test-uc_width2.c: New file.
43235         * tests/uniwidth/test-uc_width2.sh: New file.
43236         * modules/uniwidth/width-tests (Files): Add the new files.
43237         (TESTS): Add uniwidth/test-uc_width2.sh.
43238         (TESTS_ENVIRONMENT): New variable.
43239         (check_PROGRAMS): Add test-uc_width2.
43240         (test_uc_width2_SOURCES): New variable.
43241
43242         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43243         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43244         not 0x00AB.
43245         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43246
43247 2008-08-22  Eric Blake  <ebb9@byu.net>
43248
43249         test-lock, test-tls: mention why a test is skipped
43250         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43251         skipped.
43252         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43253
43254         count-one-bits: relax license
43255         * modules/count-one-bits (License): Relicense to LGPLv2+.
43256         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43257
43258 2008-08-22  Andreas Schwab  <schwab@suse.de>
43259
43260         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43261         Remove spurious space in assignment.
43262
43263 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43264
43265         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43266         Paul Eggert <eggert@CS.UCLA.EDU>.
43267
43268 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43269
43270         * modules/gettext: Add m4/threadlib.m4.
43271
43272 2008-08-19  Eric Blake  <ebb9@byu.net>
43273
43274         test-c-stack: fix compilation failure on FreeBSD 5.0
43275         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43276         headers before <sys/resource.h>.
43277         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43278         the bug.
43279         Reported by Nelson H. F. Beebe.
43280
43281         strverscmp: migrate from "strverscmp.h" to <string.h>
43282         * modules/string (Makefile.am): Add new hooks.
43283         * modules/strverscmp (Files): Remove strverscmp.h.
43284         (Depends-on): Add string.
43285         (configure.ac): Add indicator.
43286         (Include): Mention new header.
43287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43288         defaults.
43289         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43290         results.
43291         * lib/strverscmp.h: Delete.
43292         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43293         * tests/test-strverscmp.c (includes): Adjust client.
43294         * lib/check-version.c (includes): Likewise.
43295         * NEWS: Document the change.
43296
43297         strverscmp: add unit test
43298         * modules/strverscmp-tests: New file.
43299         * tests/test-strverscmp.c: Likewise.
43300
43301 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43302
43303         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43304         regarding Windows crypto stuff, from Mono.
43305
43306 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43307
43308         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43309         if present, for intel RND.  Return error on failures.
43310
43311 2008-08-18  Ben Pfaff  <blp@gnu.org>
43312
43313         gitlog-to-changelog: give better diagnostic for failed pipe-open
43314         * build-aux/gitlog-to-changelog: Improve error message: suggest
43315         that the version of Git may be too old.
43316
43317 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43318
43319         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43320         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43321
43322 2008-08-18  Bruno Haible  <bruno@clisp.org>
43323
43324         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43325         pthread_in_use().
43326
43327 2008-08-18  Bruno Haible  <bruno@clisp.org>
43328
43329         * lib/glthread/threadlib.c: Include <pthread.h>.
43330
43331 2008-08-18  Bruno Haible  <bruno@clisp.org>
43332
43333         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43334         glthread_recursive_lock_* macros.
43335         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43336         Fix syntax error.
43337
43338 2008-08-18  Bruno Haible  <bruno@clisp.org>
43339
43340         * lib/glthread/thread.c: Avoid forcing a context switch right after
43341         thread creation.
43342
43343 2008-08-17  Bruno Haible  <bruno@clisp.org>
43344
43345         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43346         * lib/glthread/thread.h: Provide Win32 specific implementation.
43347         * modules/thread (Files): Add lib/glthread/thread.c.
43348         (Depends-on): Add lock.
43349         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43350
43351 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43352
43353         New module 'yield'.
43354         * modules/yield: New file.
43355         * lib/glthread/yield.h: New file.
43356         * m4/yield.m4: New file.
43357         * MODULES.html.sh (Multithreading): Add yield.
43358
43359 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43360
43361         New module 'thread'.
43362         * modules/thread: New file.
43363         * lib/glthread/thread.h: New file.
43364         * m4/thread.m4: New file.
43365         * MODULES.html.sh (Multithreading): Add thread.
43366
43367 2008-08-17  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/glthread/lock.h: Include <stdlib.h> always.
43370         * lib/glthread/tls.h: Likewise.
43371         * lib/glthread/cond.h: Likewise.
43372
43373 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43374
43375         New module 'cond'.
43376         * modules/cond: New file.
43377         * lib/glthread/cond.h: New file.
43378         * lib/glthread/cond.c: New file.
43379         * m4/cond.m4: New file.
43380         * MODULES.html.sh (Multithreading): Add cond.
43381
43382 2008-08-16  Eric Blake  <ebb9@byu.net>
43383
43384         c-stack: fix regression on Irix 5.3 from 2008-06-21
43385         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43386         sa_sigaction...
43387         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43388         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43389         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43390         * modules/signal (Makefile.am): Use the value.
43391         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43392         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43393         * doc/posix-headers/signal.texi (signal.h): Document this
43394         portability issue.
43395         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43396         Reported by Tom G. Christensen.
43397
43398 2008-08-17  Bruno Haible  <bruno@clisp.org>
43399
43400         New module 'threadlib'.
43401         * modules/threadlib: New file.
43402         * lib/glthread/threadlib.c: New file, extracted from
43403         lib/glthread/lock.c.
43404         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43405         functions.
43406         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43407         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43408         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43409         macros.
43410         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43411         (gl_DISABLE_THREADS): Remove macro.
43412         * modules/lock (Files): Remove build-aux/config.rpath.
43413         (Depends-on): Remove havelib. Add threadlib.
43414         (configure.ac-early): Remove section.
43415         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43416         * modules/tls (Depends-on): Remove lock. Add threadlib.
43417         (Link): New section, copied from threadlib.
43418         * MODULES.html.sh (Multithreading): Add threadlib.
43419
43420 2008-08-14  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43423         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43424         glthread_rwlock_unlock, glthread_rwlock_destroy,
43425         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43426         glthread_recursive_lock_destroy): Define as macros always.
43427         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43428         glthread_lock_lock.
43429         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43430         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43431         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43432         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43433         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43434         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43435         (glthread_recursive_lock_lock_func): Renamed from
43436         glthread_recursive_lock_lock.
43437         (glthread_recursive_lock_unlock_func): Renamed from
43438         glthread_recursive_lock_unlock.
43439         (glthread_recursive_lock_destroy_func): Renamed from
43440         glthread_recursive_lock_destroy.
43441
43442 2008-08-14  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/glthread/lock.h: Renamed from lib/lock.h.
43445         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43446         * lib/glthread/tls.h: Renamed from lib/tls.h.
43447         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43448         * lib/fstrcmp.c: Update includes.
43449         * lib/strsignal.c: Update includes.
43450         * modules/lock (Files, Makefile.am): Update.
43451         (Include): Change to "glthread/lock.h".
43452         * modules/tls (Files, Makefile.am): Update.
43453         (Include): Change to "glthread/tls.h".
43454         * tests/test-lock.c: Update includes.
43455         * tests/test-tls.c: Update includes.
43456         * NEWS: Mention the renamed header files.
43457
43458 2008-08-11  Jim Meyering  <meyering@redhat.com>
43459
43460         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43461
43462 2008-08-11  Eric Blake  <ebb9@byu.net>
43463
43464         test-c-stack: avoid C99-ism
43465         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43466         before statement.
43467         Reported by Alain Guibert.
43468
43469 2008-08-10  Jim Meyering  <meyering@redhat.com>
43470
43471         ensure that return value of uinttostr et al are not ignored
43472         * lib/inttostr.h (__GNUC_PREREQ): Define.
43473         (__attribute_warn_unused_result__): Define.
43474         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43475
43476 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43477
43478         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43479         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43480
43481 2008-08-07  Jim Meyering  <meyering@redhat.com>
43482
43483         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43484
43485         * modules/mkstemp (License): Relicense under LGPLv2+.
43486         * modules/tempname (License): Likewise.
43487
43488 2008-08-06  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/poll.c (poll): Further micro-optimization.
43491
43492 2008-08-06  Jim Meyering  <meyering@redhat.com>
43493
43494         inet_pton.c: use locale-independent tolower
43495         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43496         (inet_pton6): Use c_tolower rather than tolower.
43497         * modules/inet_pton (Depends-on): Add c-ctype.
43498
43499 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43500
43501         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43502         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43503
43504 2008-08-06  Jim Meyering  <meyering@redhat.com>
43505
43506         * modules/inet_pton (License): Relicense under LGPLv2+.
43507
43508 2008-08-03  Bruno Haible  <bruno@clisp.org>
43509
43510         Additional non-aborting API for lock and tls.
43511         * lib/lock.h: Include <errno.h>.
43512         (glthread_lock_init): New macro/function.
43513         (gl_lock_init): Define as wrapper around glthread_lock_init.
43514         (glthread_lock_lock): New macro/function.
43515         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43516         (glthread_lock_unlock): New macro/function.
43517         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43518         (glthread_lock_destroy): New macro/function.
43519         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43520         (glthread_rwlock_init): New macro/function.
43521         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43522         (glthread_rwlock_rdlock): New macro/function.
43523         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43524         (glthread_rwlock_wrlock): New macro/function.
43525         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43526         (glthread_rwlock_unlock): New macro/function.
43527         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43528         (glthread_rwlock_destroy): New macro/function.
43529         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43530         (glthread_recursive_lock_init): New macro/function.
43531         (gl_recursive_lock_init): Define as wrapper around
43532         glthread_recursive_lock_init.
43533         (glthread_recursive_lock_lock): New macro/function.
43534         (gl_recursive_lock_lock): Define as wrapper around
43535         glthread_recursive_lock_lock.
43536         (glthread_recursive_lock_unlock): New macro/function.
43537         (gl_recursive_lock_unlock): Define as wrapper around
43538         glthread_recursive_lock_unlock.
43539         (glthread_recursive_lock_destroy): New macro/function.
43540         (gl_recursive_lock_destroy): Define as wrapper around
43541         glthread_recursive_lock_destroy.
43542         (glthread_once): New macro/function.
43543         (gl_once): Define as wrapper around glthread_once.
43544         Update function declarations.
43545         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43546         glthread_rwlock_init. Return error code.
43547         (glthread_rwlock_rdlock_multithreaded): Renamed from
43548         glthread_rwlock_rdlock. Return error code.
43549         (glthread_rwlock_wrlock_multithreaded): Renamed from
43550         glthread_rwlock_wrlock. Return error code.
43551         (glthread_rwlock_unlock_multithreaded): Renamed from
43552         glthread_rwlock_unlock. Return error code.
43553         (glthread_rwlock_destroy_multithreaded): Renamed from
43554         glthread_rwlock_destroy. Return error code.
43555         (glthread_recursive_lock_init_multithreaded): Renamed from
43556         glthread_recursive_lock_init. Return error code.
43557         (glthread_recursive_lock_lock_multithreaded): Renamed from
43558         glthread_recursive_lock_lock. Return error code.
43559         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43560         glthread_recursive_lock_unlock. Return error code.
43561         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43562         glthread_recursive_lock_destroy. Return error code.
43563         (glthread_once_call): Make static.
43564         (glthread_once_multithreaded): Renamed from glthread_once.
43565         * lib/tls.h: Include <errno.h>.
43566         (glthread_tls_key_init): New macro/function.
43567         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43568         (glthread_tls_set): New macro/function.
43569         (gl_tls_set): Define as wrapper around glthread_tls_set.
43570         (glthread_tls_key_destroy): New macro/function.
43571         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43572         Update function declarations.
43573         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43574         glthread_tls_get.
43575         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43576
43577 2008-08-04  Eric Blake  <ebb9@byu.net>
43578
43579         gnumakefile: use space, not TAB, outside of targets
43580         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43581
43582 2008-08-02  Jim Meyering  <meyering@redhat.com>
43583
43584         getdate.y: avoid locale-dependent date parsing failure
43585         In Turkish locales, getdate would fail to recognize keywords
43586         containing a lowercase "i".  The solution is not to rely on
43587         locale-sensitive case-conversion.
43588         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43589         (lookup_word): Use c_toupper in place of toupper.
43590         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43591         Reported by Vefa Bicakci <bicave@superonline.com> in
43592         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43593         * modules/getdate (Depends-on): Add c-ctype.
43594
43595 2008-08-02  Bruno Haible  <bruno@clisp.org>
43596
43597         * gnulib-tool (func_import): When updating or creating a .gitignore
43598         file, prepend each added line with a slash, and ignore leading slashes
43599         from the existing lines.
43600         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43601
43602 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43603
43604         Portability fix for GNU make 3.79.1.
43605         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43606         versions do not understand.
43607
43608 2008-08-01  Bruno Haible  <bruno@clisp.org>
43609
43610         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43611         * tests/test-isnanf.h (zero): New variable.
43612         (main): Avoid literal -0.0f.
43613         * tests/test-isnand.h (zero): New variable.
43614         (main): Avoid literal -0.0.
43615         * tests/test-isnanl.h (zero): New variable.
43616         (main): Avoid literal -0.0L.
43617         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43618         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43619         -0.0, -0.0L.
43620         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43621         (test_signbitd): Avoid literal -0.0.
43622         (test_signbitl): Avoid literal -0.0L.
43623         * tests/test-ceilf1.c (zero): New variable.
43624         (main): Avoid literal -0.0f.
43625         * tests/test-ceill.c (zero): New variable.
43626         (main): Avoid literal -0.0L.
43627         * tests/test-floorf1.c (zero): New variable.
43628         (main): Avoid literal -0.0f.
43629         * tests/test-floorl.c (zero): New variable.
43630         (main): Avoid literal -0.0L.
43631         * tests/test-roundf1.c (zero): New variable.
43632         (main): Avoid literal -0.0f.
43633         * tests/test-round1.c (zero): New variable.
43634         (main): Avoid literal -0.0.
43635         * tests/test-roundl.c (zero): New variable.
43636         (main): Avoid literal -0.0L.
43637         * tests/test-truncf1.c (zero): New variable.
43638         (main): Avoid literal -0.0f.
43639         * tests/test-trunc1.c (zero): New variable.
43640         (main): Avoid literal -0.0.
43641         * tests/test-truncl.c (zero): New variable.
43642         (main): Avoid literal -0.0L.
43643         * tests/test-frexp.c (zero): New variable.
43644         (main): Avoid literal -0.0.
43645         * tests/test-frexpl.c (zero): New variable.
43646         (main): Avoid literal -0.0L.
43647         * tests/test-ldexpl.c (zero): New variable.
43648         (main): Avoid literal -0.0L.
43649         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43650         (zerod, zerol): New variables.
43651         (test_function): Avoid literals -0.0, -0.0L.
43652         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43653         (zerod, zerol): New variables.
43654         (test_function): Avoid literals -0.0, -0.0L.
43655         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43656         (zerod, zerol): New variables.
43657         (test_function): Avoid literals -0.0, -0.0L.
43658         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43659         (zerod, zerol): New variables.
43660         (test_function): Avoid literals -0.0, -0.0L.
43661         * tests/test-strtod.c (zero): New variable.
43662         (main): Avoid literal -0.0.
43663         Reported by Jonathan C. Patschke <jp@centtech.com>.
43664
43665 2008-07-31  Jim Meyering  <meyering@redhat.com>
43666
43667         sha256.h: correct definition of SHA224_DIGEST_SIZE
43668         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43669         Reported by Paulie Pena IV <paulie4@gmail.com>.
43670         Define as 224 / 8, rather than as a literal.
43671         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43672         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43673         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43674
43675 2008-07-31  Bruno Haible  <bruno@clisp.org>
43676
43677         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43678         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43679         Reported by Jonathan Patschke <jp@centtech.com>.
43680
43681 2008-07-31  Bruno Haible  <bruno@clisp.org>
43682
43683         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43684         Reported by Paolo Bonzini <bonzini@gnu.org>.
43685
43686 2008-07-30  Eric Blake  <ebb9@byu.net>
43687
43688         test-strtod: allow compilation without -lm
43689         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43690         Reported by Dennis Clarke <blastwave@gmail.com>.
43691
43692 2008-07-28  Jim Meyering  <meyering@redhat.com>
43693
43694         bootstrap: work also when there are no .po files in po/
43695         * build-aux/bootstrap (update_po_files): Complete the change
43696         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43697
43698 2008-07-27  Jim Meyering  <meyering@redhat.com>
43699
43700         * users.txt: Add zile.
43701
43702 2008-07-26  Ben Pfaff  <blp@gnu.org>
43703
43704         Add missing dependencies on new m4/exponent[fdl].m4 files.
43705         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43706         * modules/isnand-nolibm: Add m4/exponentd.m4.
43707         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43708         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43709         m4/isnan[fdl].m4, because the macros actually used moved.
43710         Reported by Jim Meyering.
43711
43712 2008-07-14  Ben Pfaff  <blp@gnu.org>
43713
43714         Add isinf module.
43715         * lib/isinf.c: New file.
43716         * lib/math.in.h: Define isinf macro if we have decided to replace
43717         it.
43718         * m4/isinf.m4: New file.
43719         * m4/math_h.m4: Initialize and substitute variables for isinf
43720         module.
43721         * modules/isinf: New file.
43722         * modules/isinf-tests: New file.
43723         * modules/math: Add substitutions for new module.
43724         * tests/test-isinf.c: New file.
43725         * doc/posix-functions/isinf.texi: Mention new module.
43726         * MODULES.html.sh: Mention new module.
43727
43728 2008-07-14  Ben Pfaff  <blp@gnu.org>
43729
43730         Factor out some macros for use by additional modules.
43731         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43732         exponentf.m4.
43733         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43734         exponentd.m4.
43735         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43736         file exponentl.m4.
43737         * m4/exponentf.m4: New file.
43738         * m4/exponentd.m4: New file.
43739         * m4/exponentl.m4: New file.
43740         * modules/isnanf: Use new file m4/exponentf.m4.
43741         * modules/isnand: Use new file m4/exponentd.m4.
43742         * modules/isnanl: Use new file m4/exponentl.m4.
43743
43744 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43745
43746         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43747         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43748         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43749         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43750
43751         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43752         readlink on platforms without PATH_MAX.
43753
43754 2008-07-21  Eric Blake  <ebb9@byu.net>
43755
43756         Warn, not fail, on stale version.
43757         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43758
43759         Don't allow installation with stale devel version number.
43760         * top/GNUmakefile (_is-install-target): New macro.
43761         (_curr-ver): Forbid installation with stale version number.
43762
43763 2008-07-20  Bruno Haible  <bruno@clisp.org>
43764
43765         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43766         TESTS_ENVIRONMENT.
43767         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43768
43769 2008-07-20  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/c-stack.h (c_stack_action): Add documentation.
43772         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43773
43774 2008-07-20  Bruno Haible  <bruno@clisp.org>
43775
43776         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43777         * modules/readlink (License): Likewise.
43778
43779 2008-07-17  Eric Blake  <ebb9@byu.net>
43780
43781         * modules/c-stack (Link): Fix typo.
43782
43783         Make c-stack use libsigsegv, when available.
43784         * modules/c-stack (Depends-on): Add libsigsegv.
43785         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43786         needed.
43787         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43788         (segv_handler, overflow_handler, c_stack_action)
43789         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43790         implementation when libsigsegv is available, but only when using
43791         the library is necessary.
43792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43793         comment, explaining why XSI check fails on Linux.
43794         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43795         * tests/test-c-stack2.sh: Tweak skip message.
43796         * NEWS: Document new link-time requirements.
43797
43798 2008-07-16  Eric Blake  <ebb9@byu.net>
43799
43800         c-stack: Expose false positives when not using libsigsegv.
43801         * modules/c-stack-tests (Files): Expand test.
43802         * tests/test-c-stack.c (main): Add means to conditionally trigger
43803         non-overflow SIGSEGV.
43804         * tests/test-c-stack2.sh: New file.
43805
43806 2008-07-14  Bruno Haible  <bruno@clisp.org>
43807
43808         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43809         Reported by Eric Blake.
43810
43811 2008-07-14  Sam Steingold  <sds@gnu.org>
43812             Bruno Haible  <bruno@clisp.org>
43813
43814         New module libsigsegv.
43815         * modules/libsigsegv: New file.
43816         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43817         modifications.
43818         * MODULES.html.sh (Signal handling): New section.
43819
43820 2008-07-14  Bruno Haible  <bruno@clisp.org>
43821
43822         * modules/unictype/ctype-* (Description): Add the word "function".
43823         Improves the resulting doc in MODULES.html.
43824
43825 2008-07-12  Ben Pfaff  <blp@gnu.org>
43826
43827         Add longlong module.
43828         * modules/longlong: New file.
43829
43830 2008-07-12  Bruno Haible  <bruno@clisp.org>
43831
43832         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43833         to empty.
43834
43835 2008-07-10  Ben Pfaff  <blp@gnu.org>
43836
43837         Add isnan module.
43838         * doc/posix-functions/isnan.texi: Mention new module.
43839         * lib/math.in.h: Define isnan macro if we have decided to replace
43840         it.
43841         * m4/isnan.m4: New file.
43842         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43843         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43844         also.
43845         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43846         redundancy.
43847         * m4/math_h.m4: Initialize and substitute variables for isnan
43848         module.
43849         * modules/isnan: New file.
43850         * modules/isnan-tests: New file.
43851         * modules/math: Add substitutions for new module.
43852         * tests/test-isnan.c: New file.
43853         * MODULES.html.sh: Mention new module.
43854
43855 2008-07-10  Ben Pfaff  <blp@gnu.org>
43856
43857         Add isnanf module.
43858         * lib/isnanf.m4: New file.
43859         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43860         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43861         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43862         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43863         * modules/isnanf: New file.
43864         * modules/isnanf-tests: New file.
43865         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43866         files.
43867         * tests/test-isnanf-nolibm.c: factored most of its contents into
43868         new file tests/test-isnanf.h.
43869         * tests/test-isnanf.h: New file.
43870         * tests/test-isnanf.c: New file.
43871         * MODULES.html.sh: Mention new module.
43872         * doc/glibc-functions/isnanf.texi: Mention new module.
43873
43874 2008-07-10  Ben Pfaff  <blp@gnu.org>
43875
43876         Add isnand module.
43877         * lib/isnand.h: New file.
43878         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43879         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43880         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43881         functionality also.
43882         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43883         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43884         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43885         * modules/isnand: New file.
43886         * modules/isnand-tests: New file.
43887         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43888         files.
43889         * tests/test-isnand-nolibm.c: factored most of its contents into
43890         new file tests/test-isnand.h.
43891         * tests/test-isnand.h: New file.
43892         * tests/test-isnand.c: New file.
43893         * MODULES.html.sh: Mention new module.
43894
43895 2008-07-10  Ben Pfaff  <blp@gnu.org>
43896
43897         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43898         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43899         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43900         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43901         * modules/isnanf-nolibm: Update references to renamed files.
43902         * modules/isnand-nolibm: Likewise.
43903         * modules/isnanf-nolibm-tests: Likewise.
43904         * modules/isnand-nolibm-tests: Likewise.
43905         * lib/frexp.c: Likewise.
43906         * lib/isfinite.c: Likewise.
43907         * lib/signbitd.c: Likewise.
43908         * lib/signbitf.c: Likewise.
43909         * lib/vasnprintf.c: Likewise.
43910         * tests/test-ceilf1.c: Likewise.
43911         * tests/test-ceilf2.c: Likewise.
43912         * tests/test-floorf1.c: Likewise.
43913         * tests/test-floorf2.c: Likewise.
43914         * tests/test-frexp.c: Likewise.
43915         * tests/test-round1.c: Likewise.
43916         * tests/test-round2.c: Likewise.
43917         * tests/test-roundf1.c: Likewise.
43918         * tests/test-strtod.c: Likewise.
43919         * tests/test-trunc1.c: Likewise.
43920         * tests/test-trunc2.c: Likewise.
43921         * tests/test-truncf1.c: Likewise.
43922         * tests/test-truncf2.c: Likewise.
43923         * NEWS: Mention the renamed header files.
43924
43925 2008-07-11  Jim Meyering  <meyering@redhat.com>
43926
43927         vc-list-files: make the last-resort awk code more portable
43928         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43929         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43930         does not support it.
43931
43932 2008-07-10  Eric Blake  <ebb9@byu.net>
43933
43934         Work with tar's bootstrap.
43935         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43936         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43937         an m4 comment.
43938
43939 2008-07-09  Jim Meyering  <meyering@redhat.com>
43940
43941         posix-shell.m4: fix typo that made this test malfunction
43942         * m4/posix-shell.m4: Remove capitalization in variable name.
43943
43944 2008-07-08  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/onceonly.m4: Update comments.
43947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43948
43949 2008-07-04  Jim Meyering  <meyering@redhat.com>
43950
43951         * users.txt: Add vc-dwim.
43952         (bison, coreutils): Use the gitweb URL.
43953
43954 2008-07-03  Jim Meyering  <meyering@redhat.com>
43955
43956         * users.txt: Add libffcall.  From Sam Steingold.
43957
43958 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
43959
43960         getdate.y: do not ignore TZ with relative day, month or year offset
43961         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43962         relative-date-handling, since otherwise, the latter would clobber the
43963         sole output (an updated Start value) of the tz-handling block.
43964         * tests/test-getdate.c: Tests for the fix
43965
43966 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43967
43968         Recognize 'foo_LIBRARIES += libgnu.a'.
43969         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43970         makefile snippet has already specified an installation location,
43971         also using '+='.
43972
43973 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
43974
43975         getdate.y: factor out common actions
43976         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43977         Use them in place of open-coded actions.
43978
43979 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43980
43981         Add self-test for getdate module.
43982         * modules/getdate-tests: New file.
43983         * tests/test-getdate.c: New file.
43984
43985 2008-06-29  Bruno Haible  <bruno@clisp.org>
43986
43987         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43988         .gitignore.
43989         Reported by Sylvain Beucler <beuc@beuc.net>.
43990
43991 2008-06-29  Bruno Haible  <bruno@clisp.org>
43992
43993         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43994         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43995
43996 2008-06-29  Bruno Haible  <bruno@clisp.org>
43997
43998         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43999         EXTRA_DIST.
44000         Reported by Sylvain Beucler <beuc@beuc.net>.
44001
44002 2008-06-26  Jim Meyering  <meyering@redhat.com>
44003
44004         make several modules depend on the "open" module
44005         This provides slightly increased consistency when opening-for-write
44006         the name of a non-directory spelled with a trailing slash.
44007         * modules/chdir-safer: Likewise.
44008         * modules/chown: Likewise.
44009         * modules/clean-temp: Likewise.
44010         * modules/copy-file: Likewise.
44011         * modules/fchdir: Likewise.
44012         * modules/fcntl-safer: Likewise.
44013         * modules/pipe: Likewise.
44014         * modules/utime: Likewise.
44015         Prompted by Eric Blake and Bruno Haible.
44016
44017 2008-06-24  Andreas Schwab  <schwab@suse.de>
44018
44019         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44020         literals can be used as initializers for global variables.
44021
44022 2008-06-23  Eric Blake  <ebb9@byu.net>
44023
44024         Make gnulib-cache.m4 easier to diff.
44025         * gnulib-tool (func_import): Allow newlines when reading cached
44026         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44027
44028 2008-06-23  Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44031         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44032         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44033         m4/signalblocking.m4.
44034         (gl_PREREQ_SIGACTION): Don't invoke it.
44035         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44036         gl_PREREQ_SIG_HANDLER_H.
44037         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44038         Don't check for sigaction here.
44039
44040 2008-06-23  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44043         (install_handlers): Don't set the SA_RESETHAND flag.
44044
44045 2008-06-23  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/sigaction.m4: Comment fixes.
44048         * lib/signal.in.h: Likewise.
44049
44050 2008-06-23  Eric Blake  <ebb9@byu.net>
44051
44052         Fix typo.
44053         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44054
44055         Avoid SA_ namespace.
44056         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44057         Reported by Ralf Wildenhues.
44058
44059         Avoid test failure due to SA_RESTORER.
44060         * tests/test-sigaction.c (SA_MASK): New macro.
44061         (main): Avoid failing due to extension flags being set.
44062         Reported by Jim Meyering.
44063
44064         Revert use of sig-handler.h in sigprocmask.c.
44065         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44066         it requires the existence of struct sigaction.
44067         * lib/sigprocmask.c (handler_t): Restore typedef.
44068         (rpl_signal, old_handlers): Use local type.
44069
44070 2008-06-22  Bruno Haible  <bruno@clisp.org>
44071
44072         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44073         conditionally.
44074         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44075
44076 2008-06-22  Bruno Haible  <bruno@clisp.org>
44077
44078         * doc/posix-functions/siginterrupt.texi: Move note.
44079
44080         * lib/signal.in.h (SA_RESTART): New macro.
44081         * lib/sigaction.c: Update comment.
44082
44083         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44084
44085         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44086         (gl_PREREQ_SIGPROCMASK): Invoke it.
44087         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44088
44089         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44090
44091         * lib/sigprocmask.c: Update a comment.
44092
44093 2008-06-21  Eric Blake  <ebb9@byu.net>
44094
44095         Use sigaction module rather than signal().
44096         * modules/c-stack (Depends-on): Add sigaction.
44097         * modules/fatal-signal (Depends-on): Likewise.
44098         * modules/nanosleep (Depends-on): Likewise.
44099         * modules/sigprocmask (Files): Add sig-handler.h.
44100         * modules/sigaction (Files): Likewise.
44101         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44102         Eggert.
44103         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44104         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44105         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44106         (init_fatal_signals): Likewise.
44107         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44108         (siginterrupt): Delete fallback.
44109         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44110         instead.
44111         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44112         siginterrupt.
44113
44114         New module sigaction, for mingw.
44115         * modules/sigaction: New module...
44116         * modules/sigaction-tests: ...and its test.
44117         * m4/sigaction.m4: New file.
44118         * lib/sigaction.c: Likewise.
44119         * tests/test-sigaction.c: Likewise.
44120         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44121         * modules/signal (Makefile.am): Likewise.
44122         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44123         needed.
44124         * doc/posix-headers/signal.texi (signal.h): Mention provided
44125         types.
44126         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44127         that sigaction is preferable.
44128         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44129         module.
44130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44131         sigaction.
44132
44133         Improve robustness of sigprocmask by overriding signal.
44134         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44135         is in use.
44136         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44137         (SIGKILL, SIGSTOP): Provide fallbacks.
44138         (rpl_signal): Implement.
44139         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44140         signal can be called inside handlers.
44141
44142         Fix nanosleep module on mingw.
44143         * modules/nanosleep (Depends-on): Add sys_select.
44144         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44145
44146         Fix licensing of sigprocmask.
44147         * modules/raise (License): Relicense as LGPL.
44148
44149 2008-06-21  Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44152         result if it contains question marks.
44153         Reported by Michael Geng <linux@michaelgeng.de>.
44154
44155 2008-06-19  Bruno Haible  <bruno@clisp.org>
44156
44157         Fix CVS-ism.
44158         * doc/gnulib.texi: Include updated-stamp.texi.
44159         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44160         (updated-stamp.texi): New rule.
44161         (gnulib.info): Depend on it.
44162         * doc/.gitignore: Add updated-stamp.texi.
44163         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44164
44165 2008-06-19  Bruno Haible  <bruno@clisp.org>
44166
44167         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44169
44170 2008-06-19  Eric Blake  <ebb9@byu.net>
44171
44172         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44173         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44174         Reported by Stepan Kasal.
44175
44176 2008-06-18  Bruno Haible  <bruno@clisp.org>
44177
44178         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44179         Reported by Eric Blake.
44180
44181 2008-06-18  Eric Blake  <ebb9@byu.net>
44182
44183         Work around cygwin 1.5.25 strsignal bug.
44184         * tests/test-strsignal.c: Allow for const char *.
44185         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44186
44187 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44188
44189         * users.txt: Update URL to article and add author/date
44190         information.
44191
44192 2008-06-17  Bruno Haible  <bruno@clisp.org>
44193
44194         New macro gl_DISABLE_THREADS.
44195         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44196         if the user did not pass --enable-threads or --disable-threads option.
44197         (gl_DISABLE_THREADS): New macro.
44198         Reported by Eric Blake <ebb9@byu.net>.
44199
44200 2008-06-17  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44203         when the macro ignores it.
44204         Based on a patch by Eric Blake <ebb9@byu.net>.
44205
44206 2008-06-17  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/tls (License): Change to LGPLv2+.
44209         Reported by Eric Blake.
44210
44211 2008-06-17  Eric Blake  <ebb9@byu.net>
44212
44213         Simplify c-stack prerequisites.
44214         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44216         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44217         check.
44218         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44219         <sys/resource.h>.
44220
44221         Move c-stack test into testsuite.
44222         * modules/c-stack-tests: New file.
44223         * lib/c-stack.c [DEBUG]: Move test program...
44224         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44225         fail test if sigaltstack is lacking.
44226         * tests/test-c-stack.sh: New driver file.
44227
44228 2008-06-16  Eric Blake  <ebb9@byu.net>
44229
44230         Use raise module consistently.
44231         * modules/fatal-signal (Depends-on): Add raise.
44232         * modules/sigprocmask (Depends-on): Likewise.
44233         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44234         * lib/sigprocmask.c (sigprocmask): Likewise.
44235         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44236         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44237
44238         Fix compliance bug in sigpending.
44239         * lib/sigprocmask.c (sigpending): Return pending array via
44240         parameter, not return value.
44241
44242 2008-06-14  Eric Blake  <ebb9@byu.net>
44243
44244         Improve obstack-printf test code.
44245         * tests/test-obstack-printf.c (test_function): Fix comment, and
44246         simplify usage of obstack_* in macros.  Add a test for coverage.
44247         Reported by Bruno Haible.
44248
44249 2008-06-14  Bruno Haible  <bruno@clisp.org>
44250
44251         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44252         array size as a constant, not as a const variable.
44253         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44254         AC_USE_SYSTEM_EXTENSIONS.
44255         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44256         Test whether the obstack_printf function actually exists.
44257         * modules/obstack-printf (Depends-on): Add extensions.
44258         (Include): Remove obstack.h.
44259         * modules/obstack-printf-posix (Depends-on): Add extensions.
44260         (Include): Remove obstack.h.
44261
44262 2008-06-13  Eric Blake  <ebb9@byu.net>
44263
44264         Add obstack-printf and obstack-printf-posix modules.
44265         * modules/obstack-printf: New file.
44266         * modules/obstack-printf-posix: Likewise.
44267         * MODULES.html.sh (Misc): Mention them.
44268         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44269         Likewise.
44270         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44271         Likewise.
44272         * modules/stdio (Makefile.am): Accomodate new modules.
44273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44274         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44275         Declare.
44276         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44277         functions.
44278         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44279         (gl_REPLACE_OBSTACK_PRINTF): New macros
44280         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44281         * tests/test-obstack-printf.c: New file.
44282         * modules/obstack-printf-tests: Likewise.
44283         * modules/obstack-printf-posix-tests: Likewise.
44284
44285 2008-06-11  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44288         * lib/open.c: Include errno.h.
44289         (open): Fail when attempting to write to a file that has a trailing
44290         slash.
44291         * tests/test-open.c (main): Test against trailing slash bug.
44292         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44293
44294 2008-06-10  Bruno Haible  <bruno@clisp.org>
44295
44296         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44297         for $? to work inside the trap command, with various /bin/sh-s.
44298         * tests/test-vc-list-files-cvs.sh: Likewise.
44299
44300 2008-06-10  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/acl-internal.h: Don't include gettext.h here.
44303         * lib/set-mode-acl.c: Include gettext.h here.
44304         * lib/copy-acl.c: Likewise.
44305
44306 2008-06-10  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44309         * lib/wait-process.c (wait_subprocess): Likewise.
44310         * lib/execute.h (execute): Add termsigp argument.
44311         * lib/execute.c (execute): Likewise.
44312         * lib/csharpcomp.c (compile_csharp_using_pnet,
44313         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44314         * lib/csharpexec.c (execute_csharp_using_pnet,
44315         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44316         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44317         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44318         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44319         is_jikes_present): Update.
44320         * lib/javaexec.c (execute_java_class): Update.
44321         * lib/javaversion.c (execute_and_read_line): Update.
44322         * NEWS: Document the changes.
44323         Reported by Eric Blake.
44324
44325 2008-06-10  Eric Blake  <ebb9@byu.net>
44326
44327         Add missing include.
44328         * tests/test-strstr.c (includes): Add <signal.h>.
44329         * tests/test-strcasestr.c (includes): Likewise.
44330         * tests/test-memmem.c (includes): Likewise.
44331
44332 2008-06-10  Bruno Haible  <bruno@clisp.org>
44333
44334         * lib/wait-process.c (wait_subprocess): Add an assertion.
44335
44336 2008-06-10  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44339
44340 2008-06-10  Bruno Haible  <bruno@clisp.org>
44341
44342         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44343         using alarm().
44344         * tests/test-strcasestr.c (main): Likewise.
44345         * tests/test-strstr.c (main): Likewise.
44346
44347 2008-06-09  Bruno Haible  <bruno@clisp.org>
44348
44349         Work around the Solaris 10 ACE ACLs ABI change.
44350         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44351         declare if ACL_NO_TRIVIAL is present.
44352         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44353         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44354         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44355         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44356         define if ACL_NO_TRIVIAL is present.
44357         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44358         and use the current ABI.
44359         (file_has_acl): Use same #if condition as elsewhere.
44360         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44361         in use, and use the current ABI.
44362         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44363         Reported by Jim Meyering.
44364
44365 2008-06-09  Eric Blake  <ebb9@byu.net>
44366
44367         Work around environments that (stupidly) ignore SIGALRM.
44368         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44369         before using alarm().
44370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44371         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44372         Reported by Ian Beckwith <ianb@erislabs.net>.
44373
44374         Produce autobuild blurb earlier in log.
44375         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44376
44377 2008-06-09  Jim Meyering  <meyering@redhat.com>
44378         and OndÅ™ej Vašík  <ovasik@redhat.com>
44379
44380         utimens.c: correct kernel bug work-around
44381         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44382         failure, not success, and the kernel bug we're trying to work
44383         around affects not just the utimensat call, but also the fallback
44384         futimens call.
44385         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44386         not success.
44387         [HAVE_FUTIMENS]: Use the same work-around, here.
44388
44389 2008-06-09  Jim Meyering  <meyering@redhat.com>
44390
44391         add more guards around definition of ACE_-related code
44392         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44393         ALLOW and ACE_OWNER are also defined.
44394
44395 2008-06-08  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/acl-internal.h: Add me as co-author.
44398         * lib/file-has-acl.c: Likewise.
44399         * lib/set-mode-acl.c: Likewise.
44400         * lib/copy-acl.c: Likewise.
44401
44402 2008-06-08  Bruno Haible  <bruno@clisp.org>
44403
44404         Add support for AIX ACLs.
44405         * lib/acl-internal.h (acl_nontrivial): New declaration.
44406         * lib/file-has-acl.c (acl_nontrivial): New function.
44407         (file_has_acl): Add implementation using AIX 4 ACL API.
44408         * lib/set-mode-acl.c (qset_acl): Likewise.
44409         * lib/copy-acl.c (qcopy_acl): Likewise.
44410
44411 2008-06-08  Bruno Haible  <bruno@clisp.org>
44412
44413         Add support for HP-UX ACLs.
44414         * lib/acl-internal.h (acl_nontrivial): New declaration.
44415         * lib/file-has-acl.c (acl_nontrivial): New function.
44416         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44417         * lib/set-mode-acl.c (qset_acl): Likewise.
44418         * lib/copy-acl.c (qcopy_acl): Likewise.
44419
44420 2008-06-08  Bruno Haible  <bruno@clisp.org>
44421
44422         Add support for Cygwin ACLs.
44423         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44424         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44425         the chmod_or_fchmod call.
44426         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44427
44428 2008-06-08  Bruno Haible  <bruno@clisp.org>
44429
44430         Fix bug with setuid modes in Solaris 10+ code.
44431         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44432         succeeded, when the mode contains some special bits.
44433
44434 2008-06-08  Bruno Haible  <bruno@clisp.org>
44435
44436         Add support for Solaris 7..10 ACLs.
44437         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44438         declarations.
44439         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44440         functions.
44441         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44442         * lib/set-mode-acl.c (qset_acl): Likewise.
44443         * lib/copy-acl.c (qcopy_acl): Likewise.
44444
44445 2008-06-08  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44448         declaration.
44449         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44450         (acl_access_nontrivial): Remove MacOS X case.
44451         (file_has_acl): Use acl_extended_nontrivial.
44452         * lib/copy-acl.c (qcopy_acl): Likewise.
44453
44454 2008-06-08  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44457
44458 2008-06-08  Jim Meyering  <meyering@redhat.com>
44459
44460         * modules/acl (Maintainer): Add Bruno Haible.
44461
44462 2008-06-07  Bruno Haible  <bruno@clisp.org>
44463
44464         Improve support for Tru64 ACLs.
44465         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44466         ACL on OSF/1.
44467
44468 2008-06-07  Bruno Haible  <bruno@clisp.org>
44469
44470         Add support for MacOS X ACLs.
44471         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44472         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44473         * lib/set-mode-acl.c (qset_acl): Likewise.
44474         * lib/copy-acl.c (qcopy_acl): Likewise.
44475
44476 2008-06-07  Bruno Haible  <bruno@clisp.org>
44477
44478         Fix memory leak introduced on 2008-05-22.
44479         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44480         use.
44481
44482 2008-06-07  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44485         to construct an empty ACL.
44486
44487 2008-06-07  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44490         precisely.
44491         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44492
44493 2008-06-07  Bruno Haible  <bruno@clisp.org>
44494
44495         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44496         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44497
44498 2008-06-07  Bruno Haible  <bruno@clisp.org>
44499
44500         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44501         regardless of POSIX.
44502         * doc/posix-functions/_longjmp.texi: Likewise.
44503         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44504         SystemV platform in this case.
44505
44506 2008-06-06  Eric Blake  <ebb9@byu.net>
44507
44508         Document abort() bugs.
44509         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44510
44511         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44512         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44513         sigsetjmp.
44514         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44515         siglongjmp, but only as a macro.
44516         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44517         is obsolete.
44518         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44519
44520         Tweak documentation to cover cygwin argz bugs.
44521         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44522         argz bug fix; no code change needed since no cygwin releases
44523         occurred between the last fix and the bug being tested.
44524         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44525         module and recently fixed cygwin bugs.
44526         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44527         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44528         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44529         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44530         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44531         Likewise.
44532         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44533         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44534         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44535         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44536         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44537         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44538         Likewise.
44539
44540         Avoid gcc warning on cygwin.
44541         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44542         !ACL_NO_TRIVIAL]: Avoid unused variable.
44543
44544 2008-06-05  Eric Blake  <ebb9@byu.net>
44545
44546         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44547         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44548         git-version-gen fails to come up with a version.
44549         Reported by Simon Josefsson.
44550
44551 2008-06-05  Jim Meyering  <meyering@redhat.com>
44552             Paul Eggert  <eggert@cs.ucla.edu>
44553
44554         utimens.c: work around a probable Linux kernel bug
44555         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44556         appears to be a kernel bug that causes utimensat to return 280
44557         instead of 0, indicating success.
44558
44559 2008-06-04  Bruno Haible  <bruno@clisp.org>
44560
44561         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44562         2008-06-01 commit.
44563
44564 2008-06-04  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44567         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44568         (file_has_acl): Use it. Save errno afterwards.
44569         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44570
44571 2008-06-03  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44574         draft code. Simplify #ifs.
44575         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44576         Put Solaris code after POSIX-draft code. Fix comments regarding
44577         Solaris 10, HP-UX. Mention Cygwin.
44578         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44579
44580 2008-06-03  Eric Blake  <ebb9@byu.net>
44581
44582         Provide fallback for older kernels.
44583         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44584         Provide runtime fallback if kernel lacks support.
44585         Reported by Mike Frysinger.
44586
44587 2008-06-02  Bruno Haible  <bruno@clisp.org>
44588
44589         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44590         it exists.
44591
44592 2008-06-02  Bruno Haible  <bruno@clisp.org>
44593
44594         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44595         * lib/copy-acl.c (qcopy_acl): Update comment.
44596
44597 2008-06-02  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44600         like ACL APIs.
44601
44602 2008-06-02  Bruno Haible  <bruno@clisp.org>
44603
44604         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44605         * tests/test-set-mode-acl.sh: Likewise.
44606         * tests/test-copy-acl.sh: Likewise.
44607         * tests/test-copy-file.sh: Likewise.
44608
44609 2008-06-02  Bruno Haible  <bruno@clisp.org>
44610
44611         * tests/test-file-has-acl.sh: Remove unused code.
44612
44613 2008-06-01  Bruno Haible  <bruno@clisp.org>
44614
44615         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44616         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44617         messages.
44618         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44619
44620 2008-06-01  Bruno Haible  <bruno@clisp.org>
44621
44622         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44623         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44624         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44625         APIs.
44626         * modules/acl-tests (configure.ac): Remove tests now contained in
44627         m4/acl.m4.
44628
44629 2008-06-02  Jim Meyering  <meyering@redhat.com>
44630
44631         announce-gen: use a better key-server host name
44632         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44633         it may be more consistently reliable.  Suggested by Werner Koch
44634         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44635
44636 2008-06-01  Bruno Haible  <bruno@clisp.org>
44637
44638         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44639         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44640
44641 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44642
44643         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44644
44645 2008-06-01  Bruno Haible  <bruno@clisp.org>
44646
44647         New ACL tests.
44648         * tests/test-file-has-acl.sh: New file.
44649         * tests/test-file-has-acl.c: New file.
44650         * tests/test-set-mode-acl.sh: New file.
44651         * tests/test-set-mode-acl.c: New file.
44652         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44653         * tests/test-copy-acl.c: New file.
44654         * modules/acl-tests: New file, based on modules/copy-file-tests.
44655         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44656         (Depends-on): Add acl-tests.
44657         (configure.ac): Remove checks.
44658         (Makefile.am): Don't create test-sameacls program here any more.
44659
44660 2008-06-01  Bruno Haible  <bruno@clisp.org>
44661
44662         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44663         * tests/test-sameacls.c: Include progname.h.
44664         (main): Invoke set_program_name. Portability fixes for MacOS X,
44665         Solaris, HP-UX.
44666
44667 2008-06-01  Bruno Haible  <bruno@clisp.org>
44668
44669         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44670         function.
44671         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44672
44673 2008-06-01  Bruno Haible  <bruno@clisp.org>
44674
44675         * modules/rpmatch (Depends-on): Add strdup.
44676
44677 2008-06-01  Bruno Haible  <bruno@clisp.org>
44678
44679         * lib/pipe.c: Include unistd-safer.h.
44680         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44681         * modules/pipe (Depends-on): Add unistd-safer.
44682
44683 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44684
44685         * modules/autobuild (configure.ac): Call AB_INIT.
44686
44687 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44688
44689         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44690         Suggested by Bruno Haible <bruno@clisp.org>.
44691
44692 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44693
44694         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44695         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44696         <bruno@clisp.org>.
44697
44698 2008-05-29  Eric Blake  <ebb9@byu.net>
44699
44700         Prefer new POSIX 200x interfaces over futimesat.
44701         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44702         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44703         when available.
44704         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44705
44706 2008-05-28  Bruno Haible  <bruno@clisp.org>
44707
44708         * modules/stpcpy (License): Change to LGPLv2+.
44709         Requested by David Lutterkort <dlutter@redhat.com>.
44710
44711 2008-05-27  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44714         current mingw.
44715         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44716
44717 2008-05-27  Bruno Haible  <bruno@clisp.org>
44718
44719         * modules/iconv_open (Link): New section, from module 'iconv'.
44720         * modules/striconv (Link): Likewise.
44721         * modules/striconveh (Link): Likewise.
44722         * modules/xstriconv (Link): Likewise.
44723         * modules/unicodeio (Link): Likewise.
44724         * modules/propername (Link): Likewise.
44725         Reported by Jim Meyering.
44726
44727 2008-05-26  Jim Meyering  <meyering@redhat.com>
44728
44729         sha256: do not artificially restrict buffer length to be < 2^32
44730         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44731         uint32_t to size_t.
44732         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44733         to match.
44734
44735         avoid unaligned access errors, e.g., on sparc
44736         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44737         direct access through a possibly-unaligned uint64* pointer.
44738         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44739         direct access through a possibly-unaligned uint32* pointer.
44740         Prompted by this patch from Tom "spot" Callaway:
44741         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44742
44743         sha512.c: fix typo in comment
44744         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44745
44746 2008-05-25  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44749         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44750         (Makefile.am): Update lib_SOURCES.
44751
44752 2008-05-25  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44755
44756 2008-05-25  Jim Meyering  <meyering@redhat.com>
44757
44758         useless-if-before-free: freed expr may have white-space differences
44759         * build-aux/useless-if-before-free: Recognize cases in which the
44760         freed expression differs from the tested one in embedded white
44761         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44762         $1 was used, so we can't make any regexp shy.  Improved tests now
44763         detect this.
44764
44765         useless-if-before-free: accept white space in the expression.
44766         * build-aux/useless-if-before-free: For now, any white space
44767         in the expression must be identical in the free argument.
44768
44769         useless-if-before-free: efficiency tweak
44770         * build-aux/useless-if-before-free: Make the expression-matching
44771         regexp "shy".
44772         Make the *outer* regexp shy, not the expr-matching one.
44773
44774         update code-in-comment to accept cast of free arg
44775         * build-aux/useless-if-before-free: Update regexp.
44776
44777 2008-05-25  Bruno Haible  <bruno@clisp.org>
44778
44779         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44780         * modules/copy-file-tests (Files, Makefile.am): Update.
44781         * tests/test-copy-file.c (func_test_copy): Update.
44782
44783 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44784
44785         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44786
44787 2008-05-23  Bruno Haible  <bruno@clisp.org>
44788
44789         Improve support for ACLs on OSF/1.
44790         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44791         Remove fallback for unknown flavors of ACLs.
44792
44793 2008-05-22  Bruno Haible  <bruno@clisp.org>
44794
44795         Add support for ACLs on OSF/1.
44796         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44797         replacements.
44798         (acl_free_text): New macro fallback.
44799         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44800         acl_free.
44801         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44802         acl_free_text function. Require AC_C_INLINE.
44803
44804 2008-05-22  Bruno Haible  <bruno@clisp.org>
44805
44806         Make copy_acl work on MacOS X 10.5.
44807         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44808         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44809         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44810         If MODE_INSIDE_ACL, don't assume that every system has the same text
44811         representation for ACLs as FreeBSD.
44812         * lib/copy-acl.c (copy_acl): Add support for platforms with
44813         !MODE_INSIDE_ACL.
44814         * lib/file-has-acl.c (file_has_acl): Likewise.
44815         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44816         FreeBSD, MacOS X, or IRIX, respectively.
44817
44818 2008-05-22  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/acl.h: Don't include <sys/acl.h>.
44821         (GETACLCNT): Move fallback to lib/acl-internal.h.
44822         * lib/acl-internal.h: Include <sys/acl.h> here.
44823         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44824
44825 2008-05-22  Bruno Haible  <bruno@clisp.org>
44826
44827         Split off copy_acl function to separate file.
44828         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44829         * lib/acl.c (copy_acl): Moved function to separate file.
44830         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44831         * modules/acl (Files): Add lib/copy-acl.c.
44832         (Makefiles.am): Augment lib_SOURCES.
44833
44834 2008-05-22  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/copy-file-tests: New file.
44837         * tests/test-copy-file.sh: New file.
44838         * tests/test-copy-file.c: New file.
44839         * tests/test-copy-file-sameacls.c: New file.
44840
44841 2008-05-22  Eric Blake  <ebb9@byu.net>
44842
44843         Avoid gcc warning.
44844         * tests/test-memcmp.c (main): Pass NULL indirectly.
44845
44846 2008-05-21  Bruno Haible  <bruno@clisp.org>
44847
44848         Add reference doc about ACLs.
44849         * doc/acl-resources.txt: New file.
44850         * doc/acl-cygwin.txt: New file.
44851
44852 2008-05-21  Bruno Haible  <bruno@clisp.org>
44853
44854         Avoid one more warning from gcc.
44855         * lib/vasnprintf.c (IF_LINT): Update comments.
44856         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44857
44858 2008-05-21  Jim Meyering  <meyering@redhat.com>
44859
44860         avoid a warning from gcc
44861         * lib/vasnprintf.c (IF_LINT): Define.
44862         (scale10_round_decimal_long_double):
44863         Use it to avoid a "may be used uninitialized" warning.
44864         (scale10_round_decimal_double): Likewise.
44865
44866 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44867
44868         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44869         declared.
44870
44871 2008-05-20  Bruno Haible  <bruno@clisp.org>
44872
44873         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44874         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44875
44876 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44877
44878         * modules/memcmp-tests: New file.
44879         * tests/test-memcmp.c: New file.
44880
44881 2008-05-19  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/propername (Notice, configure.ac): Put quoted "..." into
44884         --keyword option.
44885         * lib/propername.h: Update comments accordingly.
44886         Reported by Eric Blake.
44887
44888 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44889
44890         * modules/getpass-gnu (Depends-on): Add fseeko.
44891
44892 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44893
44894         * modules/base64-tests: New file.
44895
44896 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44897
44898         * lib/base64.c (base64_decode_ctx): If a decode context structure
44899         was passed in use it to ignore newlines.  If a context structure
44900         was _not_ passed in, continue to treat newlines as garbage (this
44901         is the historical behavior).  Formerly base64_decode.
44902         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44903         takes a decode context structure.
44904         * lib/base64.h (base64_decode): Macro for four-argument calls.
44905         (base64_decode_alloc): Likewise.
44906         * lib/base64.c (base64_decode_ctx): If a decode context structure
44907         was passed in use it to ignore newlines.  If a context structure
44908         was _not_ passed in, continue to treat newlines as garbage (this
44909         is the historical behavior).  Formerly base64_decode.
44910         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44911         takes a decode context structure.
44912         * lib/base64.h (base64_decode): Macro for four-argument calls.
44913         (base64_decode_alloc): Likewise.
44914
44915 2008-05-19  Jim Meyering  <meyering@redhat.com>
44916
44917         avoid a warning from gcc
44918         * lib/trim.c (IF_LINT): Define.
44919         (trim2): Use it to avoid a "may be used uninitialized" warning.
44920
44921         Fix doc typo.
44922         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44923
44924 2008-05-19  Bruno Haible  <bruno@clisp.org>
44925
44926         * doc/glibc-functions/getpass.texi: Document limits of other
44927         implementations.
44928
44929 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44930             Bruno Haible <bruno@clisp.org>
44931
44932         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44933
44934 2008-05-18  Bruno Haible  <bruno@clisp.org>
44935
44936         * modules/propername: New file, from GNU gettext.
44937         * lib/propername.h: New file, from GNU gettext.
44938         * lib/propername.c: New file, from GNU gettext.
44939         * MODULES.html.sh (Internationalization functions): Add propername.
44940
44941 2008-05-16  Jim Meyering  <meyering@redhat.com>
44942             Bruno Haible  <bruno@clisp.org>
44943
44944         Avoid some warnings from "gcc -Wshadow".
44945         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44946
44947 2008-05-15  Eric Blake  <ebb9@byu.net>
44948
44949         Extend previous patch to cygwin 1.7.0.
44950         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44951         fast implementation in cygwin >= 1.7.0.
44952         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44954
44955 2008-05-15  Bruno Haible  <bruno@clisp.org>
44956
44957         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44958         implementation in glibc >= 2.9.
44959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44961
44962 2008-05-15  Bruno Haible  <bruno@clisp.org>
44963
44964         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44965         (Unicode string functions): Add unilbrk/*.
44966         Reported by Karl Berry.
44967
44968 2008-05-15  Eric Blake  <ebb9@byu.net>
44969
44970         Fix violation of <stdbool.h> replacement in regex.
44971         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44972         * lib/regexec.c (re_search_internal): Likewise.
44973         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44974
44975 2008-05-15  Jim Meyering  <meyering@redhat.com>
44976
44977         avoid distracting test output when git or cvs is not found
44978         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44979         * tests/test-vc-list-files-git.sh: Likewise.
44980
44981 2008-05-15  Eric Blake  <ebb9@byu.net>
44982
44983         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44984         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44985         glibc version.
44986         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44987         * doc/posix-functions/strstr.texi (strstr): Likewise.
44988         * lib/str-two-way.h (MAX): Sychronize with glibc.
44989
44990 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44991
44992         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44993         opr.ctx_type.
44994         (calc_first): Initialize constraint field.
44995         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44996         Fix grammar.
44997         (duplicate_node): Merge constraint field for all node types.
44998         (calc_eclosure_iter): Look at constraint field for all node types.
44999         * lib/regex_internal.c (create_cd_newstate): Don't look at
45000         opr.ctx_type.
45001
45002 2008-05-14  Bruno Haible  <bruno@clisp.org>
45003
45004         Help GCC to do better code generation.
45005         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45006         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45007         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45008         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45009         Declare with attribute 'malloc' if supported.
45010
45011 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45012
45013         use "echo STR|wc -c" rather than unportable "expr length STR"
45014         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45015         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45016
45017 2008-05-14  Jim Meyering  <meyering@redhat.com>
45018
45019         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45020         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45021         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45022         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45023         via Collin Lasse.
45024
45025 2008-05-14  Eric Blake  <ebb9@byu.net>
45026
45027         Avoid quadratic growth in gl_LIBSOURCES.
45028         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45029         Suggested by Bruno Haible.
45030
45031         Test xmemdup0.
45032         * modules/xmemdup0-tests: New file.
45033         * tests/test-xmemdup0.c: Likewise.
45034
45035 2008-05-13  Eric Blake  <ebb9@byu.net>
45036
45037         Split xmemdup0 into its own module.
45038         * modules/xmemdup0: New file.
45039         * lib/xmemdup0.h: Likewise.
45040         * lib/xmemdup0.c: Likewise.
45041         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45042         * lib/xalloc.h (xmemdup0): Remove.
45043         * lib/xmalloc.c (xmemdup0): Likewise.
45044
45045 2008-05-13  Eric Blake  <ebb9@byu.net>
45046             Bruno Haible  <bruno@clisp.org>
45047
45048         Reduce number of forks required during autoconf.
45049         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45050         and gl_LIBSOURCES_DIR.
45051         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45052         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45053         m4_syscmd per file.
45054         <m4_foreach_w>: Move...
45055         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45056
45057 2008-05-13  Eric Blake  <ebb9@byu.net>
45058
45059         * gnulib-tool: Fix various comment typos.
45060
45061 2008-05-12  Bruno Haible  <bruno@clisp.org>
45062
45063         Tailor the linebreaking algorithm.
45064         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45065
45066 2008-05-12  Bruno Haible  <bruno@clisp.org>
45067
45068         Update to Unicode 5.0.0.
45069         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45070         LBP_JV, LBP_JT. Redistribute values.
45071         (unilbrk_table): Change size.
45072         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45073         Unicode TR#14 rev. 22.
45074         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45075         LBP_JV, LBP_JT. Redistribute values.
45076         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45077         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45078         Update.
45079         * lib/unilbrk/lbrkprop1.h: Regenerated.
45080         * lib/unilbrk/lbrkprop2.h: Regenerated.
45081         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45082         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45083         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45084         Likewise.
45085         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45086         Likewise.
45087         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45088         result.
45089         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45090         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45091         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45092         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45093         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45094         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45095
45096 2008-05-11  Bruno Haible  <bruno@clisp.org>
45097
45098         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45099
45100 2008-05-11  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45103         * modules/unilbrk/gen-lbrk: New file.
45104
45105 2008-05-11  Bruno Haible  <bruno@clisp.org>
45106
45107         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45108         * m4/sha512.m4 (gl_SHA512): Likewise.
45109
45110 2008-05-11  Jim Meyering  <meyering@redhat.com>
45111
45112         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45113         * modules/crypto/sha256: New file.
45114         * modules/crypto/sha512: Likewise.
45115         * lib/sha256.c: Likewise.
45116         * lib/sha256.h: Likewise.
45117         * lib/sha512.c: Likewise.
45118         * lib/sha512.h: Likewise.
45119         * lib/u64.h: Likewise.
45120         * m4/sha256.m4: Likewise.
45121         * m4/sha512.m4: Likewise.
45122         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45123
45124 2008-05-10  Bruno Haible  <bruno@clisp.org>
45125
45126         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45127         (Input/Output <stdio.h>): Add xprintf.
45128         (Signal handling <signal.h>): Add strsignal.
45129         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45130         (Core language properties): Add func.
45131         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45132         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45133         strings.
45134         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45135         (Input/output): New section.
45136         (File system functions): Add openat-die, stat-macros.
45137         (Networking functions): Add sockets.
45138         (Unicode string functions): Add unictype/*.
45139         (Support for building libraries and executables): Add gperf.
45140         (Support for building documentation): Add agpl-3.0.
45141         (Misc): Add nocrash.
45142
45143 2008-05-10  Bruno Haible  <bruno@clisp.org>
45144
45145         * modules/unictype/gen-ctype: New file.
45146
45147 2008-05-10  Jim Meyering  <meyering@redhat.com>
45148
45149         Make chdir-safer.c more efficient on a system with no symlinks.
45150         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45151         also if ELOOP is zero.  Suggested by Bruno Haible.
45152
45153         Make chdir-safer.c slightly safer.
45154         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45155         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45156
45157         Avoid compile failure on systems without ELOOP (like mingw).
45158         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45159         Reported by Bruno Haible.
45160
45161 2008-05-10  Bruno Haible  <bruno@clisp.org>
45162
45163         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45164         (is_utf8_encoding): Use a case-insensitive comparison.
45165         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45166         streq.
45167
45168 2008-05-10  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45171         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45172         * lib/unilbrk/ulc-common.h (iconv_string_length,
45173         iconv_string_keeping_offsets): Remove declarations.
45174         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45175         Don't include <iconv.h>, streq.h, xsize.h.
45176         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45177         conversion.
45178         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45179         <iconv.h>, streq.h, xsize.h.
45180         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45181         conversion.
45182         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45183         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45184         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45185         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45186
45187 2008-05-10  Bruno Haible  <bruno@clisp.org>
45188
45189         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45190         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45191
45192         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45193         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45194
45195         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45196         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45197
45198         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45199         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45200
45201         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45202         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45203
45204         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45205         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45206
45207         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45208         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45209
45210         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45211         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45212
45213 2008-05-10  Bruno Haible  <bruno@clisp.org>
45214
45215         Split up 'linebreak' module.
45216         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45217         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45218         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45219         modifications.
45220         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45221         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45222         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45223         lib/linebreak.c.
45224         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45225         lib/linebreak.c.
45226         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45227         lib/linebreak.c.
45228         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45229         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45230         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45231         lib/linebreak.c.
45232         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45233         lib/linebreak.c.
45234         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45235         lib/linebreak.c.
45236         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45237         lib/linebreak.c.
45238         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45239         lib/linebreak.c.
45240         * modules/unilbrk/base: New file.
45241         * modules/unilbrk/tables: New file.
45242         * modules/unilbrk/u8-possible-linebreaks: New file.
45243         * modules/unilbrk/u16-possible-linebreaks: New file.
45244         * modules/unilbrk/u32-possible-linebreaks: New file.
45245         * modules/unilbrk/ulc-common: New file.
45246         * modules/unilbrk/ulc-possible-linebreaks: New file.
45247         * modules/unilbrk/u8-width-linebreaks: New file.
45248         * modules/unilbrk/u16-width-linebreaks: New file.
45249         * modules/unilbrk/u32-width-linebreaks: New file.
45250         * modules/unilbrk/ulc-width-linebreaks: New file.
45251         * lib/linebreak.h: Remove file.
45252         * lib/linebreak.c: Remove file.
45253         * m4/linebreak.m4: Remove file.
45254         * modules/linebreak: Remove file.
45255         * NEWS: Mention the changes.
45256
45257 2008-05-09  Eric Blake  <ebb9@byu.net>
45258
45259         Add xmemdup0.
45260         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45261         implementation.
45262         * lib/xmalloc.c (xmemdup0): New C implementation.
45263
45264 2008-05-08  Bruno Haible  <bruno@clisp.org>
45265
45266         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45267
45268 2008-05-07  Eric Blake  <ebb9@byu.net>
45269
45270         Support cross-compilation of <wctype.h>.
45271         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45272         AC_CACHE_CHECK.
45273
45274 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45275
45276         * build-aux/vc-list-files: Add support for bzr.
45277
45278 2008-05-03  Jim Meyering  <meyering@redhat.com>
45279
45280         avoid failed assertion with tight malloc
45281         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45282
45283 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45284
45285         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45286         are needed from arpa/inet.h.
45287         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45288         Reported by Bruno Haible.
45289
45290 2008-05-02  Jim Meyering  <meyering@redhat.com>
45291
45292         avoid compilation error on FreeBSD 6
45293         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45294
45295 2008-05-01  Jim Meyering  <meyering@redhat.com>
45296
45297         useless-if-before-free: correct --help's exit status description
45298         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45299         for one or more matches, etc.  Reported by Bruno Haible.
45300
45301         vc-list-files: make the stand-alone gnulib test work
45302         * modules/vc-list-files-tests (configure.ac):
45303         Define and AC_SUBST abs_aux_dir.
45304         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45305         $(abs_top_srcdir) to each script and having each of them
45306         duplicate the work of setting PATH, set PATH here, using
45307         the new variable, abs_aux_dir instead.
45308         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45309         * tests/test-vc-list-files-git.sh: Likewise.
45310         Reported by Bruno Haible.
45311
45312 2008-05-01  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45315         reallocation. Rename 'done' to 'found_delimiter'.
45316
45317 2008-05-01  Jim Meyering  <meyering@redhat.com>
45318
45319         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45320         * build-aux/vc-list-files: Use `...`, not $(...).
45321
45322 2008-04-30  Jim Meyering  <meyering@redhat.com>
45323
45324         add tests for vc-list-files
45325         * modules/vc-list-files-tests: New module.
45326         * tests/test-vc-list-files-cvs.sh: New file.
45327         * tests/test-vc-list-files-git.sh: New file.
45328
45329         avoid a warning from gcc
45330         * lib/getndelim2.c (IF_LINT): Define.
45331         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45332
45333         vc-list-files: work properly with build-aux/cvsu, too
45334         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45335         to all cvs-based clauses.
45336
45337         vc-list-files: work properly in the CVS+awk case, too
45338         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45339
45340         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45341         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45342         take more than one file argument, so .  Add quotes, just in case $dir
45343         ever contains a shell meta-character.  Prompted by Soren Hansen in
45344         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45345
45346 2008-04-29  Eric Blake  <ebb9@byu.net>
45347
45348         Optimize getndelim2 to use block operations when possible.
45349         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45350         freadseek, and memchr2.
45351         * lib/getndelim2.c (getndelim2): Use them for block reads.
45352
45353 2008-04-29  Bruno Haible  <bruno@clisp.org>
45354
45355         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45356         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45357         * modules/inet_ntop (Depends-on): Add extensions.
45358         * modules/inet_pton (Depends-on): Likewise.
45359         Reported by Simon Josefsson.
45360
45361 2008-04-29  Jim Meyering  <meyering@redhat.com>
45362
45363         When the is more than one match in a block, match all of them.
45364         * build-aux/useless-if-before-free: Iterate through each block
45365         until there are no more matches.
45366
45367         Fix broken useless-if-before-free script.
45368         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45369         the expression to match cast of argument to free-like function.
45370
45371 2008-04-29  Eric Blake  <ebb9@byu.net>
45372
45373         Use new header.
45374         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45375
45376 2008-04-29  Jim Meyering  <meyering@redhat.com>
45377
45378         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45379         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45380         by gnulib to exist and to declare e.g., inet_ntop.
45381         Don't include "inet_ntop.h", now removed.
45382
45383         * m4/arpa_inet_h.m4: Remove trailing blanks.
45384
45385 2008-04-29  Eric Blake  <ebb9@byu.net>
45386
45387         Silence valgrind on safe reads beyond potential array bounds.
45388         * lib/rawmemchr.valgrind: New file.
45389         * lib/strchrnul.valgrind: Likewise.
45390         * modules/rawmemchr (Files): Distribute new file.
45391         * modules/strchrnul (Files): Likewise.
45392         Suggested by Bruno Haible.
45393
45394 2008-04-29  Bruno Haible  <bruno@clisp.org>
45395
45396         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45397         (inet_ntop, inet_pton): Change portability warning's wording.
45398         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45399         Invoke gl_CHECK_NEXT_HEADERS.
45400         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45401         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45402         set ARPA_INET_H.
45403         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45404         * modules/arpa_inet (Description): No longer only for systems that
45405         lack it.
45406         (Depends-on): Add include_next.
45407         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45408         HAVE_ARPA_INET_H.
45409
45410 2008-04-29  Jim Meyering  <meyering@redhat.com>
45411
45412         * modules/mkdir (License): Re-license as LGPLv2+.
45413
45414 2008-04-29  Bruno Haible  <bruno@clisp.org>
45415
45416         * modules/rawmemchr (Maintainer): Set to Eric.
45417         * modules/strchrnul (Maintainer): Likewise.
45418
45419 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45420
45421         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45422         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45423
45424         * modules/arpa_inet (arpa/inet.h): Use them.
45425
45426 2008-04-28  Eric Blake  <ebb9@byu.net>
45427
45428         Test getndelim2.
45429         * modules/getndelim2-tests: New file.
45430         * tests/test-getndelim2.c: Likewise.
45431         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45432         stream.
45433         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45434
45435         * MODULES.html.sh: Document new module.
45436
45437 2008-04-20  Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/c-stack.c (die): Use raise.
45440         * modules/c-stack (Depends-on): Add raise.
45441
45442 2008-04-28  Bruno Haible  <bruno@clisp.org>
45443
45444         Expect rpmatch to be declared.
45445         * lib/yesno.c (rpmatch): Remove declaration.
45446
45447         Declare rpmatch.
45448         * lib/stdlib.in.h (rpmatch): New declaration.
45449         * lib/rpmatch.c: Include <stdlib.h> first.
45450         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45451         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45453         HAVE_RPMATCH.
45454         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45456         (Include): Set to <stdlib.h>.
45457         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45458         HAVE_RPMATCH.
45459         * NEWS: Document the change.
45460
45461 2008-04-28  Bruno Haible  <bruno@clisp.org>
45462
45463         Change rpmatch to use nl_langinfo when appropriate.
45464         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45465         (N_): New macro.
45466         (localized_pattern): New function/macro.
45467         (try): Remove match, nomatch arguments. Copy the pattern into safe
45468         memory before caching it.
45469         (rpmatch): Use localized_pattern. Add translator comments.
45470         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45471         Suggested by Eric Blake.
45472         * modules/rpmatch (Depends-on): Add stdbool.
45473
45474 2008-04-28  Eric Blake  <ebb9@byu.net>
45475
45476         Add rawmemchr module, matching glibc.
45477         * modules/string (Makefile.am): New indicator.
45478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45479         * lib/string.in.h (rawmemchr): Declare when appropriate.
45480         * modules/rawmemchr: New file.
45481         * m4/rawmemchr.m4: Likewise.
45482         * lib/rawmemchr.c: Likewise.
45483         * modules/rawmemchr-tests: Likewise.
45484         * tests/test-rawmemchr.c: Likewise.
45485         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45486         module.
45487         * modules/strchrnul (Depends-on): Add rawmemchr.
45488         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45489
45490         Whitespace cleanup.
45491         * tests/test-strchrnul.c: Reindent.
45492         * lib/strchrnul.c: Likewise.
45493
45494         Optimize and test strchrnul.
45495         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45496         * modules/strchrnul-tests: New file.
45497         * tests/test-strchrnul.c: Likewise.
45498
45499         Remove intprops dependency.
45500         * modules/memchr (Depends-on): Remove intprops.
45501         * modules/memrchr (Depends-on): Likewise.
45502         * modules/memchr2 (Depends-on): Likewise.
45503         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45504         * lib/memrchr.c (__memrchr): Likewise.
45505         * lib/memrchr2.c (memchr2): Likewise.
45506         Reported by Simon Josefsson.
45507
45508 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45509
45510         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45511         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45512
45513 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45514
45515         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45516
45517         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45518
45519         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45520
45521         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45522         declarations.
45523         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45524
45525         * m4/inet_pton.m4: Don't check for header files.
45526
45527         * m4/inet_ntop.m4: Don't check for header files.
45528
45529 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45530
45531         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45532         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45533         trigger for cygwin).
45534         Reported by Bruno Haible  <bruno@clisp.org>.
45535
45536 2008-04-28  Bruno Haible  <bruno@clisp.org>
45537
45538         * doc/posix-functions/strdup.texi: Mention mingw problem.
45539
45540 2008-04-27  Bruno Haible  <bruno@clisp.org>
45541
45542         * modules/stat-time-tests (Depends-on): Add sleep.
45543         * tests/test-stat-time.c (force_unlink): New function.
45544         (cleanup): Use it.
45545         (test_mtime): Remove the ctime related tests.
45546         (test_ctime): New function, containing the ctime related tests.
45547         (main): Call test_ctime, except on native Windows platforms.
45548
45549 2008-04-27  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/rpmatch.c (rpmatch): Add some comments.
45552         Reported by James Youngman <jay@gnu.org>.
45553
45554 2008-04-27  Bruno Haible  <bruno@clisp.org>
45555
45556         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45557         quiet NaNs.
45558
45559 2008-04-27  Bruno Haible  <bruno@clisp.org>
45560
45561         Make test-yesno.sh work on mingw.
45562         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45563         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45564         (main): Set stdin to binary mode.
45565         * modules/yesno-tests (Depends-on): Add binary-io.
45566
45567 2008-04-27  Bruno Haible  <bruno@clisp.org>
45568
45569         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45570         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45571         argument that lie outside the IEEE 854 domain.
45572         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45573         (gl_ISFINITE): Use it.
45574         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45575
45576 2008-04-27  Bruno Haible  <bruno@clisp.org>
45577
45578         Allow local renaming in config.h.
45579         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45580
45581 2008-04-27  Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/memchr.c (__memchr): Change type of 'i'.
45584         * lib/memchr2.c (memchr2): Likewise.
45585
45586 2008-04-26  Eric Blake  <ebb9@byu.net>
45587         and Bruno Haible  <bruno@clisp.org>
45588
45589         Optimize and test memrchr.
45590         * modules/memrchr (Depends-on): Add intprops.
45591         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45592         * modules/memrchr-tests: New file.
45593         * tests/test-memrchr.c: New file.
45594
45595 2008-04-26  Bruno Haible  <bruno@clisp.org>
45596
45597         Add tentative support for DragonFly BSD.
45598         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45599         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45600         fp.
45601         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45602         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45603         * lib/fpurge.c (fpurge): Likewise.
45604         * lib/freadable.c (freaadable): Likewise.
45605         * lib/freadahead.c (freadahead): Likewise.
45606         * lib/freading.c (freading): Likewise.
45607         * lib/freadptr.c (freadptr): Likewise.
45608         * lib/freadseek.c (freadptrinc): Likewise.
45609         * lib/fseeko.c (fseeko): Likewise.
45610         * lib/fseterr.c (fseterr): Likewise.
45611         * lib/fwritable.c (fwritable): Likewise.
45612         * lib/fwriting.c (fwriting): Likewise.
45613
45614 2008-04-26  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/stdio-impl.h: New file.
45617         * lib/fbufmode.c: Include stdio-impl.h.
45618         (fbufmode): Use fp_, remove redundant #defines.
45619         * lib/fflush.c: Include stdio-impl.h.
45620         (clear_ungetc_buffer): Remove redundant #defines.
45621         * lib/fpurge.c: Include stdio-impl.h.
45622         (fpurge): Remove redundant #defines.
45623         * lib/freadable.c: Include stdio-impl.h.
45624         (freadable): Remove redundant #defines.
45625         * lib/freadahead.c: Include stdio-impl.h.
45626         (freadahead): Remove redundant #defines.
45627         * lib/freading.c: Include stdio-impl.h.
45628         (freading): Remove redundant #defines.
45629         * lib/freadptr.c: Include stdio-impl.h.
45630         (freadptr): Remove redundant #defines.
45631         * lib/freadseek.c: Include stdio-impl.h.
45632         (freadptrinc): Remove redundant #defines.
45633         * lib/fseeko.c: Include stdio-impl.h.
45634         (rpl_fseeko): Remove redundant #defines.
45635         * lib/fseterr.c: Include stdio-impl.h.
45636         (fseterr): Remove redundant #defines.
45637         * lib/fwritable.c: Include stdio-impl.h.
45638         (fwritable: Remove redundant #defines.
45639         * lib/fwriting.c: Include stdio-impl.h.
45640         (fwriting): Remove redundant #defines.
45641         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45642         * modules/fflush (Files): Likewise.
45643         * modules/fpurge (Files): Likewise.
45644         * modules/freadable (Files): Likewise.
45645         * modules/freadahead (Files): Likewise.
45646         * modules/freading (Files): Likewise.
45647         * modules/freadptr (Files): Likewise.
45648         * modules/freadseek (Files): Likewise.
45649         * modules/fseeko (Files): Likewise.
45650         * modules/fseterr (Files): Likewise.
45651         * modules/fwritable (Files): Likewise.
45652         * modules/fwriting (Files): Likewise.
45653
45654 2008-04-26  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45657         restore_seek_optimization, update_fpos_cache): New functions, extracted
45658         from rpl_fflush.
45659         (rpl_fflush): Use them.
45660         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45661         (gl_REPLACE_FFLUSH): Use it.
45662
45663 2008-04-26  Bruno Haible  <bruno@clisp.org>
45664
45665         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45666         on Solaris.
45667         * tests/test-xstrtoimax.sh: Likewise.
45668         * tests/test-xstrtoumax.sh: Likewise.
45669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45670
45671 2008-04-26  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/memchr-tests: New file.
45674         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45675
45676 2008-04-26  Eric Blake  <ebb9@byu.net>
45677             Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/memchr.c: Include intprops.h.
45680         (__memchr): Optimize parallel detection of matching bytes. Rename local
45681         variables. Add explanatory comments.
45682
45683 2008-04-26  Bruno Haible  <bruno@clisp.org>
45684
45685         Fix module 'memchr', broken since 2000-10-28.
45686         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45687
45688 2008-04-26  Bruno Haible  <bruno@clisp.org>
45689
45690         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45691         comments.
45692
45693 2008-04-25  Eric Blake  <ebb9@byu.net>
45694
45695         Use native fstatat on cygwin 1.7.0.
45696         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45697         first.
45698
45699 2008-04-23  Eric Blake  <ebb9@byu.net>
45700
45701         Improve memchr2 performance.
45702         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45703         NUL bytes.
45704         * modules/memchr2 (Depends-on): Use intprops.h.
45705
45706 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45707
45708         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45709         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45710         <blp@cs.stanford.edu>.
45711
45712 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45713
45714         * lib/arpa_inet.in.h: New file.
45715
45716         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45717         (Makefile.am): Sed in substitute header file.
45718
45719         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45720         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45721
45722         * modules/inet_ntop (configure.ac): Use
45723         gl_ARPA_INET_MODULE_INDICATOR.
45724
45725         * modules/inet_pton (configure.ac): Use
45726         gl_ARPA_INET_MODULE_INDICATOR.
45727
45728 2008-04-22  Jim Meyering  <meyering@redhat.com>
45729
45730         * modules/verify (License): Re-license as LGPLv2+.
45731
45732 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45733
45734         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45735         parameter to void* as per POSIX standard (MinGW uses char*).
45736
45737 2008-04-21  Bruno Haible  <bruno@clisp.org>
45738
45739         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45740         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45741         Define to replacements if REPLACE_ISWCNTRL is 1.
45742         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45743         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45744         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45745         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45746         what it fixes.
45747         * doc/posix-functions/iswalpha.texi: Likewise.
45748         * doc/posix-functions/iswblank.texi: Likewise.
45749         * doc/posix-functions/iswcntrl.texi: Likewise.
45750         * doc/posix-functions/iswdigit.texi: Likewise.
45751         * doc/posix-functions/iswgraph.texi: Likewise.
45752         * doc/posix-functions/iswlower.texi: Likewise.
45753         * doc/posix-functions/iswprint.texi: Likewise.
45754         * doc/posix-functions/iswpunct.texi: Likewise.
45755         * doc/posix-functions/iswspace.texi: Likewise.
45756         * doc/posix-functions/iswupper.texi: Likewise.
45757         * doc/posix-functions/iswxdigit.texi: Likewise.
45758         Reported by Alain Guibert.
45759
45760 2008-04-21  Bruno Haible  <bruno@clisp.org>
45761
45762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45763         Patch by Alain Guibert.
45764
45765 2008-04-21  Bruno Haible  <bruno@clisp.org>
45766
45767         Fix test failures on mingw.
45768         * tests/test-xstrtol.c (print_no_progname): New function.
45769         (main): Install it in error_print_progname hook.
45770         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45771         * tests/test-xstrtoimax.sh: Likewise.
45772         * tests/test-xstrtoumax.sh: Likewise.
45773
45774 2008-04-21  Bruno Haible  <bruno@clisp.org>
45775
45776         Fix test failure on mingw.
45777         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45778
45779 2008-04-21  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45782         Actually assign a value.
45783
45784 2008-04-20  Bruno Haible  <bruno@clisp.org>
45785
45786         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45787         take 2.
45788         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45789         'canonicalize-lgpl' module is also used.
45790         * lib/canonicalize-lgpl.c: Undo last change.
45791         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45792
45793 2008-04-20  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45796         config.h. Provide _mkdir based fallback for mingw.
45797         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45798         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45800         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45801         rather than defining mkdir in config.h.
45802         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45803         (gl_SYS_STAT_H_DEFAULTS): New macro.
45804         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45805         HAVE_IO_H any more.
45806         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45807         HAVE_DECL_MKDIR and HAVE_IO_H.
45808
45809 2008-04-20  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/isapipe.c: Port to native Windows platforms.
45812
45813 2008-04-20  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45816
45817 2008-04-21  Eric Blake  <ebb9@byu.net>
45818
45819         Work around preprocessors that don't handle UINTMAX_MAX.
45820         * lib/memchr2.c (memchr2): Avoid embedded #if.
45821         Reported by Alain Guibert, fix suggested by Bruno Haible.
45822
45823 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45824
45825         * doc/posix-functions/strftime.texi (strftime): Explain better
45826         Windows incompatibility.  Suggested by Micah Cowan
45827         <micah@cowan.name>.
45828
45829 2008-04-20  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45832         unistr/u8-mblen.
45833
45834 2008-04-20  Bruno Haible  <bruno@clisp.org>
45835
45836         Fix test failure on platforms with non-GNU iconv.
45837         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45838         (U_TO_U8): Use it, rather than u16_to_u8.
45839         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45840         units at the end of the input string.
45841         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45842
45843 2008-04-20  Bruno Haible  <bruno@clisp.org>
45844
45845         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45846         when the resulting length is 0.
45847         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45848
45849 2008-04-20  Bruno Haible  <bruno@clisp.org>
45850
45851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45852         works.
45853         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45854
45855 2008-04-20  Bruno Haible  <bruno@clisp.org>
45856
45857         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45858         * modules/tsearch-tests (configure.ac): Test for initstate function.
45859
45860 2008-04-20  Bruno Haible  <bruno@clisp.org>
45861
45862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45863         for nlink_t if missing.
45864         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45865
45866 2008-04-19  Bruno Haible  <bruno@clisp.org>
45867
45868         Work around snprintf bug on Linux libc5.
45869         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45871         gl_SNPRINTF_SIZE1.
45872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45873         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45874         that test failed.
45875         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45876         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45877         * modules/snprintf (Files): Add m4/printf.m4.
45878         * modules/vsnprintf (Files): Likewise.
45879         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45880         * doc/posix-functions/vsnprintf.texi: Likewise.
45881
45882 2008-04-19  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45885         from 0.0058 to less than 10^-7.
45886
45887 2008-04-19  Bruno Haible  <bruno@clisp.org>
45888
45889         Fix rounding when a precision is given.
45890         * lib/vasnprintf.c (is_borderline): New function.
45891         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45892         9...9x.
45893         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45894         %e, %g.
45895         * tests/test-vasprintf-posix.c (test_function): Likewise.
45896         * tests/test-snprintf-posix.h (test_function): Likewise.
45897         * tests/test-sprintf-posix.h (test_function): Likewise.
45898         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45899         * tests/test-printf-posix.h (test_function): Likewise.
45900         * tests/test-printf-posix.output: Update.
45901         Reported by John Darrington <john@darrington.wattle.id.au> via
45902         Ben Pfaff <blp@cs.stanford.edu>.
45903
45904 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45905
45906         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45907         Suggested by Bruno Haible <bruno@clisp.org>.
45908
45909 2008-04-17  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45912         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45913         implementation.
45914         Patch by Bruce Merry <bmerry@gmail.com>.
45915
45916 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45917
45918         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45919         doesn't work under Windows.
45920
45921 2008-04-16  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45924         New macros.
45925         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45926         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45927         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45928         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45929         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45930         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45931         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45932         macros.
45933         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45934         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45935         Northern Sotho, Uighur.
45936
45937 2008-04-16  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45940         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45941         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45942         Reported by Daniel Bergström <daniel@octocode.com>.
45943
45944 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45945             Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45948         function.
45949         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45950         New functions, mostly extracted from gl_locale_name_default.
45951         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45952
45953 2008-04-16  Eric Blake  <ebb9@byu.net>
45954
45955         Adjust strtod detection to catch glibc 2.7 bug.
45956         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45957         Reported by John Gatewood Ham.
45958
45959 2008-04-16  Bruno Haible  <bruno@clisp.org>
45960
45961         Add tentative support for Linux libc5.
45962         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45963         * lib/fpurge.c (fpurge): Likewise.
45964         * lib/freadable.c (freadable): Likewise.
45965         * lib/freadahead.c (freadahead): Likewise.
45966         * lib/freading.c (freading): Likewise.
45967         * lib/freadptr.c (freadptr): Likewise.
45968         * lib/freadseek.c (freadptrinc): Likewise.
45969         * lib/fseeko.c (rpl_fseeko): Likewise.
45970         * lib/fseterr.c (fseterr): Likewise.
45971         * lib/fwritable.c (fwritable): Likewise.
45972         * lib/fwriting.c (fwriting): Likewise.
45973         Reported by Alain Guibert <alguibert+bts@free.fr>.
45974
45975 2008-04-15  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/mathl (configure.ac): Define module indicator.
45978
45979 2008-04-15  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/logl.c (logl): Remove unused variables.
45982
45983 2008-04-15  Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45986         fails.
45987
45988 2008-04-15  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/trim.c (trim2): Fix argument of isspace() macro.
45991
45992 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45993
45994         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45995         to 0.
45996         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45997
45998 2008-04-14  Bruno Haible  <bruno@clisp.org>
45999
46000         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46001         AC_LANG_PROGRAM argument.
46002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46003         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46006         * m4/math_h.m4 (gl_MATH_H): Likewise.
46007         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46008         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46009         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46010         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46011         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46012         * m4/regex.m4 (gl_REGEX): Likewise.
46013         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46016         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46017         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46018         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46020         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46021
46022 2008-04-14  Jim Meyering  <meyering@redhat.com>
46023
46024         test-strtod: fix typos: s/abs/fabs/
46025         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46026
46027 2008-04-13  Bruno Haible  <bruno@clisp.org>
46028
46029         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46030         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46031         module is also used and while not building the reloc-wrapper.
46032
46033 2008-04-13  Bruno Haible  <bruno@clisp.org>
46034
46035         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46036
46037 2008-04-13  Bruno Haible  <bruno@clisp.org>
46038
46039         Fix AIX compilation failure introduced on 2008-04-02.
46040         * tests/test-frexp.c (exp): Undefine before redefining.
46041         * tests/test-frexpl.c (exp): Likewise.
46042
46043 2008-04-13  Bruno Haible  <bruno@clisp.org>
46044
46045         Work around a HP-UX stdio bug.
46046         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46047         * tests/test-ftello.c (main): Likewise.
46048         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46049         * doc/posix-functions/ftello.texi: Likewise.
46050
46051 2008-04-13  Bruno Haible  <bruno@clisp.org>
46052
46053         Make test-signbit pass on HP-UX/hppa.
46054         * tests/test-signbit.c (minus_zerol): New variable.
46055         (test_signbitl): Use it.
46056
46057 2008-04-13  Bruno Haible  <bruno@clisp.org>
46058
46059         Make truncl work on OSF/1 4.0.
46060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46061         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46062         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46064         HAVE_DECL_TRUNCL.
46065         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46066         HAVE_DECL_TRUNCL.
46067         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46068
46069 2008-04-13  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46072
46073 2008-04-13  Bruno Haible  <bruno@clisp.org>
46074
46075         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46076         expression, so as to avoid HP-UX 11 cc compiler bug.
46077
46078 2008-04-13  Bruno Haible  <bruno@clisp.org>
46079
46080         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46081
46082 2008-04-13  Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/git-merge-changelog.c: Remove empty declaration outside of
46085         functions.
46086
46087 2008-04-13  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46090
46091 2008-04-13  Bruno Haible  <bruno@clisp.org>
46092
46093         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46094         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46096         also if it exists but lacks definitions of the SHUT_* macros.
46097         * modules/sys_socket (Description): Update.
46098         Reported by Elbert Pol <e.pol@chello.nl>.
46099
46100 2008-04-13  Bruno Haible  <bruno@clisp.org>
46101
46102         * lib/localcharset.c (OS2): Don't redefine if already defined.
46103         Reported by Elbert Pol <e.pol@chello.nl>.
46104
46105 2008-04-13  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/binary-io.h [__EMX__]: Include <io.h>.
46108         Reported by Elbert Pol <e.pol@chello.nl>.
46109
46110 2008-04-12  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/fpucw.h: Enable the definitions also for x86_64.
46113         Needed for NetBSD/x86_64.
46114         Reported by Thomas Klausner <tk@giga.or.at>.
46115
46116 2008-04-12  Bruno Haible  <bruno@clisp.org>
46117
46118         * tests/test-strtod.c: Include isnand.h.
46119         (main): Use isnand instead of isnan.
46120         Reported by Jim Meyering.
46121
46122 2008-04-12  Bruno Haible  <bruno@clisp.org>
46123
46124         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46125         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46126
46127 2008-04-12  Jim Meyering  <meyering@redhat.com>
46128
46129         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46130
46131 2008-04-12  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46134         Reported by Elbert Pol <e.pol@chello.nl>.
46135
46136 2008-04-12  Eric Blake  <ebb9@byu.net>
46137
46138         Work around Solaris 10 math.h bug.
46139         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46140         (gl_MATH_H_DEFAULTS): Set up default.
46141         * modules/math (Makefile.am): Replace new indicators.
46142         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46143         * tests/test-math.c (main): Test this.
46144         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46145         * doc/posix-headers/math.texi (math.h): Mention bug.
46146         Reported by Nelson H. F. Beebe and Jim Meyering.
46147
46148 2008-04-11  Bruno Haible  <bruno@clisp.org>
46149
46150         Adapt to future versions of Apple GCC.
46151         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46152         Reported by Peter O'Gorman <peter@pogma.com>.
46153
46154 2008-04-11  Bruno Haible  <bruno@clisp.org>
46155
46156         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46157
46158 2008-04-11  Bruno Haible  <bruno@clisp.org>
46159
46160         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46161
46162         * modules/getaddrinfo-tests (Makefile.am): Define
46163         test_getaddrinfo_LDADD.
46164
46165 2008-04-11  Bruno Haible  <bruno@clisp.org>
46166
46167         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46168         (init): Fix syntax error.
46169         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46170         is declared.
46171
46172 2008-04-11  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46175         * modules/glob (Depends-on): Add stdbool.
46176
46177 2008-04-11  Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/trim.c: Include <string.h>.
46180
46181 2008-04-11  Eric Blake  <ebb9@byu.net>
46182
46183         Avoid compile failure on OS/2.
46184         * lib/regex_internal.h (internal_function): Disable optimization
46185         on OS/2 (__EMX__), where it caused compiler error.
46186         Reported by Elbert Pol.
46187
46188 2008-04-11  Bruno Haible  <bruno@clisp.org>
46189
46190         Flush the standard error stream before aborting. Needed on mingw.
46191         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46192         * tests/test-array_list.c (ASSERT): Likewise.
46193         * tests/test-array_oset.c (ASSERT): Likewise.
46194         * tests/test-avltree_list.c (ASSERT): Likewise.
46195         * tests/test-avltree_oset.c (ASSERT): Likewise.
46196         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46197         * tests/test-binary-io.c (ASSERT): Likewise.
46198         * tests/test-byteswap.c (ASSERT): Likewise.
46199         * tests/test-c-ctype.c (ASSERT): Likewise.
46200         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46201         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46202         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46203         * tests/test-c-strstr.c (ASSERT): Likewise.
46204         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46205         * tests/test-canonicalize.c (ASSERT): Likewise.
46206         * tests/test-carray_list.c (ASSERT): Likewise.
46207         * tests/test-ceilf1.c (ASSERT): Likewise.
46208         * tests/test-ceilf2.c (ASSERT): Likewise.
46209         * tests/test-ceill.c (ASSERT): Likewise.
46210         * tests/test-count-one-bits.c (ASSERT): Likewise.
46211         * tests/test-fbufmode.c (ASSERT): Likewise.
46212         * tests/test-fflush2.c (ASSERT): Likewise.
46213         * tests/test-floorf1.c (ASSERT): Likewise.
46214         * tests/test-floorf2.c (ASSERT): Likewise.
46215         * tests/test-floorl.c (ASSERT): Likewise.
46216         * tests/test-fopen.c (ASSERT): Likewise.
46217         * tests/test-fpending.c (ASSERT): Likewise.
46218         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46219         * tests/test-fpurge.c (ASSERT): Likewise.
46220         * tests/test-freadable.c (ASSERT): Likewise.
46221         * tests/test-freadahead.c (ASSERT): Likewise.
46222         * tests/test-freading.c (ASSERT): Likewise.
46223         * tests/test-freadptr.c (ASSERT): Likewise.
46224         * tests/test-freadptr2.c (ASSERT): Likewise.
46225         * tests/test-freadseek.c (ASSERT): Likewise.
46226         * tests/test-freopen.c (ASSERT): Likewise.
46227         * tests/test-frexp.c (ASSERT): Likewise.
46228         * tests/test-frexpl.c (ASSERT): Likewise.
46229         * tests/test-fseek.c (ASSERT): Likewise.
46230         * tests/test-fseeko.c (ASSERT): Likewise.
46231         * tests/test-fstrcmp.c (ASSERT): Likewise.
46232         * tests/test-ftell.c (ASSERT): Likewise.
46233         * tests/test-ftello.c (ASSERT): Likewise.
46234         * tests/test-func.c (ASSERT): Likewise.
46235         * tests/test-fwritable.c (ASSERT): Likewise.
46236         * tests/test-fwriting.c (ASSERT): Likewise.
46237         * tests/test-getdelim.c (ASSERT): Likewise.
46238         * tests/test-getline.c (ASSERT): Likewise.
46239         * tests/test-i-ring.c (ASSERT): Likewise.
46240         * tests/test-iconv-utf.c (ASSERT): Likewise.
46241         * tests/test-iconv.c (ASSERT): Likewise.
46242         * tests/test-isfinite.c (ASSERT): Likewise.
46243         * tests/test-isnand.c (ASSERT): Likewise.
46244         * tests/test-isnanf.c (ASSERT): Likewise.
46245         * tests/test-isnanl.h (ASSERT): Likewise.
46246         * tests/test-ldexpl.c (ASSERT): Likewise.
46247         * tests/test-linked_list.c (ASSERT): Likewise.
46248         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46249         * tests/test-localename.c (ASSERT): Likewise.
46250         * tests/test-lseek.c (ASSERT): Likewise.
46251         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46252         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46253         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46254         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46255         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46256         * tests/test-mbschr.c (ASSERT): Likewise.
46257         * tests/test-mbscspn.c (ASSERT): Likewise.
46258         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46259         * tests/test-mbspbrk.c (ASSERT): Likewise.
46260         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46261         * tests/test-mbsrchr.c (ASSERT): Likewise.
46262         * tests/test-mbsspn.c (ASSERT): Likewise.
46263         * tests/test-mbsstr1.c (ASSERT): Likewise.
46264         * tests/test-mbsstr2.c (ASSERT): Likewise.
46265         * tests/test-mbsstr3.c (ASSERT): Likewise.
46266         * tests/test-memchr2.c (ASSERT): Likewise.
46267         * tests/test-memmem.c (ASSERT): Likewise.
46268         * tests/test-open.c (ASSERT): Likewise.
46269         * tests/test-printf-frexp.c (ASSERT): Likewise.
46270         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46271         * tests/test-printf-posix.c (ASSERT): Likewise.
46272         * tests/test-quotearg.c (ASSERT): Likewise.
46273         * tests/test-rbtree_list.c (ASSERT): Likewise.
46274         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46275         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46276         * tests/test-round1.c (ASSERT): Likewise.
46277         * tests/test-roundf1.c (ASSERT): Likewise.
46278         * tests/test-roundl.c (ASSERT): Likewise.
46279         * tests/test-signbit.c (ASSERT): Likewise.
46280         * tests/test-sleep.c (ASSERT): Likewise.
46281         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46282         * tests/test-snprintf.c (ASSERT): Likewise.
46283         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46284         * tests/test-stat-time.c (ASSERT): Likewise.
46285         * tests/test-strcasestr.c (ASSERT): Likewise.
46286         * tests/test-strerror.c (ASSERT): Likewise.
46287         * tests/test-striconv.c (ASSERT): Likewise.
46288         * tests/test-striconveh.c (ASSERT): Likewise.
46289         * tests/test-striconveha.c (ASSERT): Likewise.
46290         * tests/test-strsignal.c (ASSERT): Likewise.
46291         * tests/test-strstr.c (ASSERT): Likewise.
46292         * tests/test-strtod.c (ASSERT): Likewise.
46293         * tests/test-trunc1.c (ASSERT): Likewise.
46294         * tests/test-trunc2.c (ASSERT): Likewise.
46295         * tests/test-truncf1.c (ASSERT): Likewise.
46296         * tests/test-truncf2.c (ASSERT): Likewise.
46297         * tests/test-truncl.c (ASSERT): Likewise.
46298         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46299         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46300         * tests/test-vasnprintf.c (ASSERT): Likewise.
46301         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46302         * tests/test-vasprintf.c (ASSERT): Likewise.
46303         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46304         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46305         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46306         * tests/test-vsnprintf.c (ASSERT): Likewise.
46307         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46308         * tests/test-wcwidth.c (ASSERT): Likewise.
46309         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46310         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46311         * tests/test-xvasprintf.c (ASSERT): Likewise.
46312         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46313         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46314         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46315         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46316         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46317         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46318         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46319         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46320         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46321         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46322         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46323         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46324         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46325         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46326         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46327         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46328         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46329         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46330         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46331         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46332         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46333         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46334         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46335         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46336         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46337         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46338         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46339         * tests/unictype/test-combining.c (ASSERT): Likewise.
46340         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46341         * tests/unictype/test-digit.c (ASSERT): Likewise.
46342         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46343         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46344         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46345         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46346         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46347         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46348         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46349         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46350         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46351         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46352         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46353         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46354         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46355         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46356         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46357         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46358         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46359         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46360         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46361         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46362         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46363         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46364         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46365         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46366         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46367         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46368         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46369         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46370         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46371         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46372         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46373         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46374         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46375         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46376         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46377         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46378         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46379         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46380         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46381         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46382         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46383         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46384         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46385         Reported by Eric Blake.
46386
46387 2008-04-11  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/wchar.in.h: Tweak comment.
46390
46391 2008-04-11  Bruno Haible  <bruno@clisp.org>
46392
46393         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46394         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46395         gl_COMMON.
46396         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46397
46398 2008-04-11  Bruno Haible  <bruno@clisp.org>
46399
46400         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46401
46402 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46403
46404         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46405         of attempting to use non-existing /dev/*random.  Based on patch
46406         from Adam Strzelecki <ono@java.pl> in
46407         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46408
46409 2008-04-08  Bruno Haible  <bruno@clisp.org>
46410
46411         Add tentative support for emx+gcc.
46412         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46413         * lib/fpurge.c (fpurge): Likewise.
46414         * lib/freadable.c (freadable): Likewise.
46415         * lib/freadahead.c (freadahead): Likewise.
46416         * lib/freading.c (freading): Likewise.
46417         * lib/freadptr.c (freadptr): Likewise.
46418         * lib/freadseek.c (freadptrinc): Likewise.
46419         * lib/fseeko.c (rpl_fseeko): Likewise.
46420         * lib/fseterr.c (fseterr): Likewise.
46421         * lib/fwritable.c (fwritable): Likewise.
46422         * lib/fwriting.c (fwriting): Likewise.
46423         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46424
46425 2008-04-09  Eric Blake  <ebb9@byu.net>
46426
46427         Avoid some autoconf warnings.
46428         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46429         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46430         * m4/afs.m4 (gl_AFS): Likewise.
46431         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46432         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46434         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46435         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46436         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46437         (AC_CHECK_DECLS_ONCE): Likewise.
46438         Rename file...
46439         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46440         gnulib-tool requires autoconf 2.59 or better.
46441         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46442
46443 2008-04-08  Eric Blake  <ebb9@byu.net>
46444
46445         Use 'git describe --match' if present (added in git 1.5.5).
46446         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46447         if possible.
46448
46449 2008-04-08  Bruno Haible  <bruno@clisp.org>
46450
46451         Add tentative support for OpenServer.
46452         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46453         _ptr, _cnt.
46454         * lib/fpurge.c (fpurge): Likewise.
46455         * lib/freadable.c (freadable): Likewise.
46456         * lib/freadahead.c (freadahead): Likewise.
46457         * lib/freading.c (freading): Likewise.
46458         * lib/freadptr.c (freadptr): Likewise.
46459         * lib/freadseek.c (freadptrinc): Likewise.
46460         * lib/fseeko.c (rpl_fseeko): Likewise.
46461         * lib/fseterr.c (fseterr): Likewise.
46462         * lib/fwritable.c (fwritable): Likewise.
46463         * lib/fwriting.c (fwriting): Likewise.
46464         Reported by Roger Cornelius <rac@tenzing.org> and
46465         Brian K. White <brian@aljex.com>.
46466
46467 2008-04-06  Jim Meyering  <meyering@redhat.com>
46468
46469         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46470
46471 2008-04-06  Bruno Haible  <bruno@clisp.org>
46472
46473         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46474         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46475         * tests/test-printf-posix.sh: Likewise.
46476         * tests/test-vfprintf-posix.sh: Likewise.
46477         * tests/test-vprintf-posix.sh: Likewise.
46478         * tests/test-xprintf-posix.sh: Likewise.
46479
46480 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46481
46482         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46483         hide error from 'ls', needed on OS/2.
46484         Report by Elbert Pol <elbert.pol@gmail.com>.
46485
46486 2008-04-04  Eric Blake  <ebb9@byu.net>
46487
46488         Make test-fseeko.c failures meaningful.
46489         * tests/test-fseeko.c: Print line number on failure.
46490         * tests/test-fseek.c: Likewise.
46491         Reported by Nelson H. F. Beebe.
46492
46493         Improve strtod bug detection check.
46494         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46495         required for Solaris 10.
46496         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46497
46498 2008-04-04  Bruno Haible  <bruno@clisp.org>
46499
46500         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46501         by m4/setenv.m4.
46502
46503 2008-04-03  Eric Blake  <ebb9@byu.net>
46504
46505         Ensure sane .version contents.
46506         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46507         version string.
46508         * build-aux/git-version-gen: Improve documentation.
46509
46510         Make GNU make output nicer.
46511         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46512         MAKECMDGOALS to enforce message for all command line targets.  Set
46513         srcdir for use in maint.mk.
46514
46515         Another maintainer tweak.
46516         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46517         a target that regenerates version.
46518
46519 2008-04-03  Jim Meyering  <meyering@redhat.com>
46520
46521         vc-list-files: don't cause coreutils "make po-check" failure
46522         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46523
46524 2008-04-03  Eric Blake  <ebb9@byu.net>
46525
46526         Allow VPATH usage of vc-list-files.
46527         * build-aux/vc-list-files (scriptversion): Add timestamp.
46528         (options): Add --help, --version, -C.
46529         (CVS): Support installed cvsu.
46530
46531 2008-04-02  Bruno Haible  <bruno@clisp.org>
46532
46533         Avoid some "statement with no effect" warnings from gcc.
46534         * tests/test-wctype.c (main): Explicitly ignore unused values.
46535         Reported by Jim Meyering.
46536
46537 2008-04-02  Jim Meyering  <meyering@redhat.com>
46538
46539         Avoid some warnings from "gcc -Wshadow".
46540         * tests/test-frexp.c (exp): Define to a different identifier.
46541         * tests/test-frexpl.c (exp): Likewise.
46542
46543 2008-04-03  Jim Meyering  <meyering@redhat.com>
46544
46545         bootstrap: remove dangling *.[ch] symlinks from lib
46546         * build-aux/bootstrap [dangling symlink removal]: Move find's
46547         -depth option to precede all others, to avoid a warning.
46548         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46549
46550 2008-04-02  Bruno Haible  <bruno@clisp.org>
46551
46552         Avoid some warnings from "gcc -Wshadow".
46553         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46554         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46555         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46556         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46557         Reported by Jim Meyering.
46558
46559 2008-04-01  Bruno Haible  <bruno@clisp.org>
46560
46561         Fix test to work on IRIX 6.5 with cc.
46562         * tests/test-math.c (numeric_equal): New function.
46563         (main): Use it.
46564
46565 2008-04-01  Bruno Haible  <bruno@clisp.org>
46566
46567         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46568
46569 2008-04-01  Bruno Haible  <bruno@clisp.org>
46570
46571         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46572         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46573         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46574         (Depends-on): Remove math.
46575
46576         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46577         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46578         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46579         (Depends-on): Remove math.
46580
46581         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46582         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46583         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46584         (Depends-on): Remove math.
46585         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46586         (Depends-on): Remove math.
46587
46588         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46589         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46590         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46591         (Depends-on): Remove math.
46592         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46593         (Depends-on): Remove math.
46594
46595         * tests/test-round1.c: Include nan.h.
46596         (main): Use NaNd instead of NAN.
46597         * modules/round-tests (Files): Add tests/nan.h.
46598
46599         * tests/test-trunc1.c: Include nan.h.
46600         (main): Use NaNd instead of NAN.
46601         * modules/trunc-tests (Files): Add tests/nan.h.
46602
46603         * tests/test-roundf1.c: Include nan.h.
46604         (main): Use NaNf instead of NAN.
46605         * modules/roundf-tests (Files): Add tests/nan.h.
46606
46607         * tests/test-truncf1.c: Include nan.h.
46608         (main): Use NaNf instead of NAN.
46609         * modules/truncf-tests (Files): Add tests/nan.h.
46610
46611         * tests/test-ceilf1.c: Include nan.h.
46612         (main): Use NaNf instead of NAN.
46613         * modules/ceilf-tests (Files): Add tests/nan.h.
46614
46615         * tests/test-floorf1.c: Include nan.h.
46616         (main): Use NaNf instead of NAN.
46617         * modules/floorf-tests (Files): Add tests/nan.h.
46618
46619         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46620         (main): Use NaNf instead of NAN.
46621         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46622
46623         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46624         (main): Use NaNd instead of NAN.
46625         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46626
46627         * tests/test-frexp.c: Include nan.h.
46628         (main): Use NaNd instead of NAN.
46629         * modules/frexp-tests (Files): Add tests/nan.h.
46630
46631         * lib/isnan.c: Don't include <math.h>.
46632         (FUNC): Don't use NAN macro.
46633         * modules/isnand-nolibm (Depends-on): Remove math.
46634         * modules/isnanf-nolibm (Depends-on): Remove math.
46635         * modules/isnanl (Depends-on): Remove math.
46636         * modules/isnanl-nolibm (Depends-on): Remove math.
46637
46638         * tests/nan.h: New file.
46639
46640 2008-04-01  Eric Blake  <ebb9@byu.net>
46641
46642         Fix typos.
46643         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46644         values to be the right type.
46645
46646         For now, cater to gnulib strtod inaccuracies.
46647         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46648         fractional results.  While not as nice from a QoI perspective, it
46649         is a quicker patch than correctly implementing decimal to binary
46650         rounding.
46651
46652 2008-03-31  Eric Blake  <ebb9@byu.net>
46653
46654         Guarantee a definition of NAN.
46655         * lib/math.in.h (NAN): Define if missing.
46656         * tests/test-math.c (main): Test it.
46657         * doc/posix-headers/math.texi (math.h): Document this.
46658         * lib/isnan.c (rpl_isnand): Use it.
46659         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46660         * tests/test-floorf1.c (NaN): Likewise.
46661         * tests/test-frexp.c (NaN): Likewise.
46662         * tests/test-isnand.c (NaN): Likewise.
46663         * tests/test-isnanf.c (NaN): Likewise.
46664         * tests/test-round1.c (NaN): Likewise.
46665         * tests/test-roundf1.c (NaN): Likewise.
46666         * tests/test-snprintf-posix.h (NaN): Likewise.
46667         * tests/test-sprintf-posix.h (NaN): Likewise.
46668         * tests/test-trunc1.c (NaN): Likewise.
46669         * tests/test-truncf1.c (NaN): Likewise.
46670         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46671         * tests/test-vasprintf-posix.c (NaN): Likewise.
46672         * modules/isnand-nolibm (Depends-on): Add math.
46673         * modules/isnanf-nolibm (Depends-on): Likewise.
46674         * modules/isnanl (Depends-on): Likewise.
46675         * modules/isnanl-nolibm (Depends-on): Likewise.
46676         * modules/snprintf-posix-tests (Depends-on): Likewise.
46677         * modules/sprintf-posix-tests (Depends-on): Likewise.
46678         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46679         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46680         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46681         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46682
46683 2008-03-31  Bruno Haible  <bruno@clisp.org>
46684
46685         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46686         * doc/posix-functions/strtod.texi: Likewise.
46687
46688 2008-03-31  Bruno Haible  <bruno@clisp.org>
46689
46690         * tests/test-strtod.c (main): Don't use C99 syntax.
46691
46692 2008-03-31  Bruno Haible  <bruno@clisp.org>
46693
46694         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46695         Reported by Eric Blake.
46696
46697 2008-03-31  Jim Meyering  <meyering@redhat.com>
46698
46699         Don't compare actual signbit return values.
46700         * tests/test-strtod.c (main): Rather, compare only their
46701         zero/non-zero nature.
46702
46703 2008-03-31  Eric Blake  <ebb9@byu.net>
46704
46705         More strtod documentation.
46706         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46707         failures as distinct bugs.
46708
46709 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46710
46711         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46712         Problem reported by Erik Benada in
46713         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46714
46715 2008-03-30  Bruno Haible  <bruno@clisp.org>
46716
46717         * tests/test-strtod.c: Add comments about which assertion fails on which
46718         platform.
46719         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46720
46721 2008-03-30  Eric Blake  <ebb9@byu.net>
46722
46723         Test signbit behavior on zeros.
46724         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46725         (test_signbitd, test_signbitl): Likewise.
46726
46727         More strtod touchups.
46728         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46729         sign of negative underflow, for now.  Use .5, not .1.
46730         * doc/posix-functions/strtod.texi (strtod): Mention these
46731         limitations.
46732         Reported by Jim Meyering.
46733
46734 2008-03-30  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46737         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46738
46739 2008-03-30  Bruno Haible  <bruno@clisp.org>
46740
46741         Avoid failure when attempting to return empty iconv results on some
46742         platforms.
46743         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46744         allocation, don't report ENOMEM when the resulting string is empty.
46745
46746 2008-03-30  Bruno Haible  <bruno@clisp.org>
46747
46748         Fix buffer overrun.
46749         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46750         Don't consider the width for tmp_length. Check count against tmp_length
46751         before doing the padding. Ensure enough allocation during padding.
46752
46753 2008-03-30  Eric Blake  <ebb9@byu.net>
46754
46755         strtod touchups.
46756         * lib/strtod.c (strtod): Avoid compiler warnings.
46757         Reported by Jim Meyering.
46758
46759 2008-03-30  Bruno Haible  <bruno@clisp.org>
46760
46761         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46762         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46763         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46764         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46765         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46766         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46767         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46768         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46769
46770         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46771         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46772         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46773         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46774         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46775         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46776         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46777         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46778
46779         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46780         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46781         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46782         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46783         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46784         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46785         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46786         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46787
46788         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46789         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46790
46791         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46792         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46793
46794         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46795         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46796
46797         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46799         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46800
46801         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46803         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46804
46805         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46807         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46808
46809         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46811         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46812
46813         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46814         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46816         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46817         (Depends-on): Add EOVERFLOW.
46818         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46819         (Depends-on): Add EOVERFLOW.
46820         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46821         (Depends-on): Add EOVERFLOW.
46822         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46823         (Depends-on): Add EOVERFLOW.
46824         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46825         (Depends-on): Add EOVERFLOW.
46826         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46827         (Depends-on): Add EOVERFLOW.
46828         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46829         (Depends-on): Add EOVERFLOW.
46830         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46831         (Depends-on): Add EOVERFLOW.
46832
46833         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46835         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46836
46837         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46839         * modules/snprintf (Depends-on): Add EOVERFLOW.
46840
46841         * lib/poll.c (EOVERFLOW): Remove fallback.
46842         * modules/poll (Depends-on): Add EOVERFLOW.
46843
46844         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46845         * modules/getugroups (Depends-on): Add EOVERFLOW.
46846
46847         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46848         * modules/getdelim (Depends-on): Add EOVERFLOW.
46849
46850         * lib/ftell.c (EOVERFLOW): Remove fallback.
46851         * modules/ftell (Depends-on): Add EOVERFLOW.
46852
46853         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46855         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46856
46857         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46858
46859         * modules/EOVERFLOW-tests: New file.
46860         * tests/test-EOVERFLOW.c: New file.
46861
46862         * modules/EOVERFLOW: New file.
46863         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46864
46865 2008-03-30  Bruno Haible  <bruno@clisp.org>
46866
46867         Fix bug introduced on 2007-06-10.
46868         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46869         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46870
46871 2008-03-30  Bruno Haible  <bruno@clisp.org>
46872
46873         Improve freadseek's efficiency after ungetc.
46874         * lib/freadseek.c: Include freadahead.h.
46875         (freadptrinc): New function, extracted from freadseek.
46876         (freadseek): Use it in a loop. Use freadahead to determine the number
46877         of loop iterations.
46878         * modules/freadseek (Depends-on): Add freadahead.
46879         (configure.ac): Require AC_C_INLINE.
46880
46881 2008-03-30  Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/freadseek.c (freadseek): Don't ignore the return value of
46884         freadptr.
46885
46886 2008-03-29  Eric Blake  <ebb9@byu.net>
46887
46888         Add hex float support.
46889         * modules/strtod (Depends-on): Add c-ctype.
46890         (Link): Mention POW_LIB.
46891         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46892         whitespace between 'e' and exponent.
46893         * tests/test-strtod.c (main): Enable hex float tests.
46894         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46895         now provides.
46896
46897         Document various strtod bugs, with some fixes.
46898         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46899         "-0x", "inf", "nan", and hex constants.
46900         * doc/posix-functions/atof.texi (atof): Likewise.
46901         * modules/stdlib (Makefile.am): Support strtod.
46902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46903         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46904         detect additional strtod bugs.
46905         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46906         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46907         bool where appropriate.  Parse 'inf' and 'nan'.
46908         * tests/test-strtod.c: New file.
46909         * modules/strtod (Depends-on): Add stdbool, stdlib.
46910         (configure.ac): Turn on module indicator.
46911         * modules/strtod-tests: New module.
46912
46913 2008-03-29  Eric Blake  <ebb9@byu.net>
46914
46915         Fix ftell on mingw.
46916         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46917         * modules/ftell-tests (Depends-on): Add binary-io.
46918         * modules/ftello-tests (Depends-on): Likewise.
46919         * tests/test-ftell.c (main): Enhance test to cover behavior after
46920         ungetc.  Enforce binary mode.
46921         * tests/test-ftello.c (main): Likewise.
46922
46923         Pass test-freadseek on cygwin.
46924         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46925         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46926         ungetc buffer.
46927
46928         * tests/test-fflush2.c (main): Fix typo.
46929
46930 2008-03-29  Bruno Haible  <bruno@clisp.org>
46931
46932         * tests/test-fflush2.c (main): Temporarily disable the contents of
46933         this test.
46934         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46935         Reported by Eric Blake.
46936
46937 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46938
46939         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46940         (GC_SHA224_DIGEST_SIZE): Add.
46941
46942         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46943         (gc_hash_digest_length): Likewise.
46944         (gc_hash_buffer): Likewise.
46945
46946 2008-03-25  Bruno Haible  <bruno@clisp.org>
46947
46948         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46949         detail which gettext release to use.
46950         Reported by Simon Josefsson.
46951
46952 2008-03-26  Jim Meyering  <meyering@redhat.com>
46953
46954         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46955         * modules/gnumakefile (clean-GNUmakefile): Also, use
46956         test ... && ... || : syntax rather than if-then ... fi.
46957
46958         gnumakefile: Don't double-quote-expand $(VPATH) value.
46959         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46960
46961 2008-03-24  Eric Blake  <ebb9@byu.net>
46962
46963         Alter GNUmakefile to install into top directory.
46964         * modules/maintainer-makefile: Split, and add dependency...
46965         * modules/gnumakefile: to this new module.
46966         * build-aux/GNUmakefile: Move...
46967         * top/GNUmakefile: ...here.
46968         * build-aux/maint.mk: Move...
46969         * top/maint.mk: ...here.
46970         * MODULES.html.sh (Support for maintaining...): Document new
46971         module.
46972
46973 2008-03-23  Bruno Haible  <bruno@clisp.org>
46974
46975         * gnulib-tool: New options --vc-files, --no-vc-files.
46976         (func_usage): Document them.
46977         (vc_files): New variable.
46978         (func_import): Consider vc_files.
46979         (func_create_testdir): Set vc_files to empty.
46980         Suggested by Jim Meyering and Karl Berry.
46981
46982 2008-03-23  Bruno Haible  <bruno@clisp.org>
46983
46984         Fix regex compilation error on HP-UX 11.
46985         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46986         * modules/regex (Files): Add m4/mbstate_t.m4.
46987         Reported by Ton Voon <ton.voon@altinity.com>.
46988
46989 2008-03-23  Bruno Haible  <bruno@clisp.org>
46990
46991         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46992
46993 2008-03-23  Eric Blake  <ebb9@byu.net>
46994             Bruno Haible  <bruno@clisp.org>
46995
46996         Install files from top/ in the destination directory.
46997         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46998         augmentation also for the files from top/.
46999         (func_import, func_create_testdir): Rewrite file names:
47000         top/filename -> filename.
47001
47002 2008-03-23  Bruno Haible  <bruno@clisp.org>
47003
47004         Tweak "gnulib --version" output.
47005         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47006
47007 2008-03-23  Bruno Haible  <bruno@clisp.org>
47008
47009         Tweak "gnulib --version" output.
47010         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47011         rather than contents of ChangeLog, when possible.
47012
47013 2008-03-21  Eric Blake  <ebb9@byu.net>
47014
47015         More --version tweaks.
47016         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47017         date of last ChangeLog entry.
47018
47019 2008-03-21  Jim Meyering  <meyering@redhat.com>
47020
47021         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47022
47023 2008-03-20  Eric Blake  <ebb9@byu.net>
47024
47025         VPATH fix.
47026         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47027
47028 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47029
47030         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47031         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47032
47033 2008-03-20  Eric Blake  <ebb9@byu.net>
47034
47035         Sync GNUmakefile with coreutils.
47036         * build-aux/GNUmakefile (have-Makefile): Rename...
47037         (_have-Makefile): ...to this, for namespace consideration.
47038         (GNUmakefile.cfg): Include, if present.
47039         (_autoreconf): Define a default.
47040         (_is-dist-target): New rule for rebuilds to pick up intra-release
47041         version.
47042         (maint-cfg.mk): Rename...
47043         (cfg.mk): ...to this.
47044
47045 2008-03-18  Jim Meyering  <meyering@redhat.com>
47046
47047         New script and module: mktempd
47048         * MODULES.html.sh (maint+release support): Add mktempd.
47049         * build-aux/mktempd: New file.
47050         * modules/mktempd: New file.
47051
47052 2008-03-15  Jim Meyering  <meyering@redhat.com>
47053
47054         Undo last change.
47055         * lib/sha1.c, lib/md5.c: 63 != ~63.
47056         Reported by Andreas Schwab.
47057
47058         sha1.c, md5.c: Hoist a redundant expression.
47059         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47060         "ctx->buflen" only once, before calling *_process_block.
47061         * lib/md5.c (md5_process_bytes): Likewise.
47062
47063 2008-03-14  Eric Blake  <ebb9@byu.net>
47064
47065         Bump copyright year in files generated by gnulib-tool.
47066         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47067         gnulib-tool, rather than hard-coding it.
47068
47069         Fix 'gnulib-tool --version' output to work with git.
47070         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47071         (startup): ...here.
47072         (func_version): Use it to invoke git-version-gen, rather than
47073         relying on CVS keyword expansion.  Modernize wording.
47074         (cvsdatestamp, last_checkin_date, version): Kill unused
47075         variables.
47076
47077 2008-03-12  Jim Meyering  <meyering@redhat.com>
47078
47079         Recognize optional cast of the argument to free.
47080         * build-aux/useless-if-before-free: Update regexps.
47081
47082         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47083
47084 2008-03-11  Bruno Haible  <bruno@clisp.org>
47085
47086         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47087         by a single package.
47088         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47089         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47090         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47091         Reported by Sam Steingold <sds@gnu.org>.
47092
47093 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47094
47095         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47096         repositories.
47097
47098 2008-03-11  Bruno Haible  <bruno@clisp.org>
47099
47100         Avoid conflicts between local macro definitions.
47101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47102         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47103
47104 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47105             Bruno Haible  <bruno@clisp.org>
47106
47107         Make va_copy work with some version of xlc on AIX 5.1.
47108         * lib/stdarg.in.h: New file.
47109         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47110         On AIX, use a <stdarg.h> file substitute.
47111         * modules/stdarg (Files): Add lib/stdarg.in.h.
47112         (Depends-on): Add include_next.
47113         (Makefile.am): Build a stdarg.h substitute if requested.
47114         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47115
47116 2008-03-10  Bruno Haible  <bruno@clisp.org>
47117
47118         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47120         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47121
47122 2008-03-10  Bruno Haible  <bruno@clisp.org>
47123
47124         * modules/stdlib (Depends-on): Add include_next, remove
47125         absolute-header.
47126
47127 2008-03-09  Bruno Haible  <bruno@clisp.org>
47128
47129         * lib/freadahead.h (freadahead): Document more precisely.
47130         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47131         the sum of both buffer sizes.
47132         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47133         * NEWS: Document the change.
47134
47135 2008-03-09  Bruno Haible  <bruno@clisp.org>
47136
47137         Extend freadptr to return also the buffer size.
47138         * lib/freadptr.h (freadptr): Add sizep argument.
47139         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47140         (freadptr): Add sizep argument. Determine buffer size like freadahead
47141         does.
47142         * tests/test-freadptr.c: Don't include freadahead.h.
47143         (main): Adapt for new calling convention of freadptr.
47144         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47145         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47146         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47147         tests/test-freadptr2.sh.
47148         (Depends): Remove freadahead.
47149         (TESTS): Add test-freadptr2.sh.
47150         (check_PROGRAMS): Add test-freadptr2.
47151
47152 2008-03-09  Bruno Haible  <bruno@clisp.org>
47153
47154         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47155         Report and solution by Simon Josefsson.
47156
47157 2008-03-06  Bruno Haible  <bruno@clisp.org>
47158
47159         Make fflush after ungetc work on BSD platforms.
47160         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47161         * tests/test-fflush2.c: New file.
47162         * tests/test-fflush2.sh: New file.
47163         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47164         tests/test-fflush2.c.
47165         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47166         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47167
47168 2008-03-06  Eric Blake  <ebb9@byu.net>
47169
47170         Likewise for ftello.
47171         * modules/ftello (Dependencies): Add extensions.
47172         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47173
47174 2008-03-06  Bruno Haible  <bruno@clisp.org>
47175
47176         * modules/fseeko (Dependencies): Add extensions.
47177         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47178         Needed on glibc systems.
47179
47180 2008-03-06  Bruno Haible  <bruno@clisp.org>
47181
47182         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47183         email address.
47184         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47185
47186 2008-03-06  Bruno Haible  <bruno@clisp.org>
47187
47188         * users.txt: Add libgnupdf.
47189
47190 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47191
47192         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47193         (Header File Substitutes, Function Substitutes,
47194         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47195         (Build robot for gnulib): Fix typo.
47196
47197 2008-03-06  Bruno Haible  <bruno@clisp.org>
47198
47199         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47200         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47201
47202 2008-03-06  Bruno Haible  <bruno@clisp.org>
47203
47204         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47205         * doc/gnulib.texi: Include it.
47206
47207 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47208
47209         * modules/func (License): Change license to unlimited; there was
47210         no LGPL parts in the module anyway.
47211
47212 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47213
47214         * modules/__func__: Renamed to modules/func.
47215         * modules/__func__-tests: Renamed to modules/func-tests.
47216         * tests/test-__func__.c: Renamed to tests/test-func.c.
47217         * m4/__func__.m4: Renamed to m4/func.m4.
47218         * doc/gnulib.texi (__func__): Section renamed to func.
47219         Suggested by Eric Blake <ebb9@byu.net>.
47220
47221 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47222
47223         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47224         about __func__.  Make example self-contained.  Suggested by Eric
47225         Blake <ebb9@byu.net>.
47226
47227         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47228         Suggested by Eric Blake <ebb9@byu.net>.
47229
47230 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47231
47232         * modules/__func__: New file.
47233         * modules/__func__-tests: New file.
47234         * tests/test-__func__.c: New file.
47235         * m4/__func__.m4: New file.
47236         * doc/gnulib.texi (__func__): Document __func__ module.
47237
47238 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47239
47240         * modules/byteswap (License): Re-license as LGPLv2+.
47241
47242 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47243
47244         * doc/Makefile: Add pdf target.
47245
47246 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47247
47248         * modules/inline (License): Use 'unlimited', since there are only
47249         *.m4 files in this module.
47250
47251 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47252             Bruno Haible  <bruno@clisp.org>
47253
47254         Add support for HP C 7.1 on OpenVMS 8.3.
47255         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47256
47257 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47258
47259         Update VMS specifics.
47260         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47261
47262 2008-03-02  Jim Meyering  <meyering@redhat.com>
47263
47264         Remove the last dependency on the "free" module.
47265         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47266         Reported by Bob Proulx.
47267
47268         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47269
47270         Remove useless "if" tests before free.  Deprecate "free" module.
47271         * doc/posix-functions/free.texi: Mention that this
47272         module is no longer useful.
47273         * modules/free (Notice): Say this module is obsolete.
47274         * modules/readutmp (Depends-on): Remove free.
47275         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47276         * lib/putenv.c (putenv): Likewise.
47277         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47278         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47279         * tests/test-c-strcasestr.c (main): Likewise.
47280         * tests/test-c-strstr.c (main): Likewise.
47281         * tests/test-mbscasestr1.c (main): Likewise.
47282         * tests/test-mbscasestr2.c (main): Likewise.
47283         * tests/test-mbsstr1.c (main): Likewise.
47284         * tests/test-mbsstr2.c (main): Likewise.
47285         * tests/test-memmem.c (main): Likewise.
47286         * tests/test-strcasestr.c (main): Likewise.
47287         * tests/test-striconv.c (main): Likewise.
47288         * tests/test-striconveh.c (main): Likewise.
47289         * tests/test-striconveha.c (main): Likewise.
47290         * tests/test-strstr.c (main): Likewise.
47291
47292         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47293
47294         bootstrap: sync from coreutils again
47295         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47296
47297 2008-03-01  Jim Meyering  <meyering@redhat.com>
47298
47299         bootstrap: sync from coreutils
47300         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47301         also when the target doesn't exist.
47302
47303 2008-03-01  Eric Blake  <ebb9@byu.net>
47304
47305         Fix bugs in last patch.
47306         * lib/memchr2.c (memchr2): Fix typo.
47307         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47308         extension.
47309         Reported by Bruce Korb.
47310
47311         New module 'memchr2'.
47312         * modules/memchr2: New file.
47313         * modules/memchr2-tests: Likewise.
47314         * lib/memchr2.h: Likewise.
47315         * lib/memchr2.c: Likewise, based on memchr.c.
47316         * tests/test-memchr2.c: New test.
47317         * MODULES.html.sh (String handling): Add memchr2.
47318
47319 2008-02-29  Bruno Haible  <bruno@clisp.org>
47320
47321         * modules/freadseek-tests: New file.
47322         * tests/test-freadseek.sh: New file.
47323         * tests/test-freadseek.c: New file.
47324
47325         New module 'freadseek'.
47326         * modules/freadseek: New file.
47327         * lib/freadseek.h: New file.
47328         * lib/freadseek.c: New file.
47329         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47330
47331 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47332
47333         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47334         wydawca.
47335
47336         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47337         program_invocation_name and program_invocation_short_name are
47338         present.
47339
47340 2008-02-28  Bruno Haible  <bruno@clisp.org>
47341
47342         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47343         * tests/test-freadptr.sh: Also test non-seekable stdin.
47344
47345 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47346
47347         * build-aux/bootstrap (source_base, m4_base)
47348         (doc_base, tests_base): New variables.
47349         (gnulib_tool_options): Do not hardcode base directories, use
47350         the above variables instead.
47351
47352 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47353
47354         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47355
47356 2008-02-28  Bruno Haible  <bruno@clisp.org>
47357
47358         * modules/freadptr-tests: New file.
47359         * tests/test-freadptr.sh: New file.
47360         * tests/test-freadptr.c: New file.
47361
47362         New module 'freadptr'.
47363         * modules/freadptr: New file.
47364         * lib/freadptr.h: New file.
47365         * lib/freadptr.c: New file.
47366         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47367
47368 2008-02-26  Karl Berry  <karl@freefriends.org>
47369
47370         Sync from Libtool:
47371         * libltdl/argz.c (argz_add, argz_count): New functions.
47372         * libltdl/argz.in.h: Declare them.
47373         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47374
47375 2008-02-22  Bruno Haible  <bruno@clisp.org>
47376
47377         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47378         is a pointer type.  Needed for HP-UX 10.
47379         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47380         * doc/posix-functions/gmtime_r.texi: Likewise.
47381         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47382
47383 2008-02-24  Bruno Haible  <bruno@clisp.org>
47384
47385         * modules/environ-tests: New file.
47386         * tests/test-environ.c: New file.
47387
47388         New module 'environ'.
47389         * modules/environ: New file.
47390         * lib/unistd.in.h (environ): New declaration.
47391         * m4/environ.m4: New file.
47392         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47393         after use.
47394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47395         HAVE_DECL_ENVIRON.
47396         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47397         HAVE_DECL_ENVIRON.
47398         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47399         wrong claim that 'environ' is missing on some systems.
47400         * modules/execute (Depends-on): Add environ.
47401         * lib/execute.c (environ): Remove fallback declaration.
47402         * modules/pipe (Depends-on): Add environ.
47403         * lib/pipe.c (environ): Remove fallback declaration.
47404         * modules/setenv (Depends-on): Add environ.
47405         * lib/setenv.c (environ): Remove fallback declaration.
47406         * modules/unsetenv (Depends-on): Add environ.
47407         * lib/unsetenv.c (environ): Remove fallback declaration.
47408         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47409         m4/environ.m4.
47410         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47411         (gl_PREREQ_UNSETENV): Likewise.
47412
47413 2008-02-24  Bruno Haible  <bruno@clisp.org>
47414
47415         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47416
47417 2008-02-20  Bob Proulx  <bob@proulx.com>
47418
47419         Enable use of older two part flavor 'git describe'.
47420         * build-aux/git-version-gen: If using the older two part flavor of
47421         git version then recreate the third part now present in the
47422         newer three part flavor of git describe.
47423
47424 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47425
47426         * lib/fts.c (fts_build): Typo correction to comment.
47427
47428 2008-02-17  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47431         generating no-op conflicts.
47432
47433 2008-02-17  Bruno Haible  <bruno@clisp.org>
47434
47435         Speed up by 10%.
47436         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47437         result_entries, rather than an index-based loop.
47438
47439 2008-02-17  Bruno Haible  <bruno@clisp.org>
47440
47441         Speed up by 25%.
47442         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47443         'hashcode_cached'.
47444         (entry_create): New function.
47445         (entry_hashcode): Use the cached hashcode if possible.
47446         (read_changelog_file, try_split_merged_entry): Use entry_create.
47447
47448 2008-02-17  Bruno Haible  <bruno@clisp.org>
47449
47450         Speed up from O(n^2) to O(n) for long ChangeLog files.
47451         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47452         (read_changelog_file): Change implementation of entries_reversed list
47453         to rbtreehash.
47454         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47455
47456 2008-02-17  Bruno Haible  <bruno@clisp.org>
47457
47458         New option --split-merged-entry.
47459         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47460         (find_paragraph_end, try_split_merged_entry): New functions.
47461         (long_options): Add option --split-merged-entry.
47462         (usage): Document option --split-merged-entry.
47463         (main): Implement option --split-merged-entry.
47464         Reported by Eric Blake.
47465
47466 2008-02-17  Bruno Haible  <bruno@clisp.org>
47467
47468         * lib/git-merge-changelog.c: Include c-strstr.h.
47469         (main): Support the "git pull --rebase" situation.
47470         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47471         Reported by Eric Blake.
47472
47473 2008-02-16  Eric Blake  <ebb9@byu.net>
47474
47475         Avoid doubling \ in common case of "c-maybe" quoting style.
47476         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47477         eliding outer quotes.
47478         * lib/quotearg.h: Document this.
47479         * tests/test-quotearg.c (result_strings, inputs, results_g)
47480         (flag_results, locale_results): Test it by adding a new string to
47481         each test group.
47482         (compare_strings): Test new string.
47483
47484 2008-02-13  Eric Blake  <ebb9@byu.net>
47485
47486         Avoid trigraph quoting in default output.
47487         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47488         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47489         unless explicitly requested.
47490         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47491
47492 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47493
47494         Don't rely on signed integer overflowing to negative value.
47495         * lib/getugroups.c (getugroups): Include <limits.h>.
47496         Instead, compare against INT_MAX, and increment only if the test passes.
47497
47498 2008-02-13  Jim Meyering  <meyering@redhat.com>
47499         and Eric Blake  <ebb9@byu.net>
47500
47501         Avoid shadowing warning and compile errors on Linux.
47502         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47503         forwarding macros on Linux.
47504         (dcgettext): Define a stub, for Linux.
47505         (results_g, main): Avoid warnings.
47506
47507 2008-02-12  Eric Blake  <ebb9@byu.net>
47508
47509         Silence warning in last patch.
47510         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47511
47512         Quotearg part 4: add tests, fix c-maybe colon quoting.
47513         * lib/quotearg.h: Improve documentation.
47514         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47515         escapes when adding outer quotes.  When quoting trigraphs, use
47516         valid C notation.  When quoting NUL, omit extra characters if next
47517         character is not digit.  Alter prototype.
47518         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47519         callers.
47520         * modules/quotearg-tests: New module.
47521         * tests/test-quotearg.c: New test.
47522
47523 2008-02-07  Eric Blake  <ebb9@byu.net>
47524
47525         Quotearg part 3: add flag to control outer quote elision.
47526         * lib/quotearg.h (c_maybe_quoting_style): New style.
47527         (enum quoting_flags): Better documentation of flags.
47528         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47529         c-maybe style.
47530         (quotearg_buffer_restyled): Handle new flag to elide outer
47531         quotes.
47532
47533         Quotearg part 2: add flag that can control NUL elision.
47534         * lib/quotearg.h (set_quoting_flags): New prototype.
47535         * lib/quotearg.c (struct quoting_options): Add flag field.
47536         (set_quoting_flags): New function.
47537         (quotearg_buffer_restyled): Add flags parameter.
47538         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47539         (quotearg_n_options): Set the flag, since length cannot be
47540         returned.
47541         (quoting_options_from_style): Default flags correctly.
47542
47543         Quotearg part 1: more wrappers, restore quotearg_char state.
47544         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47545         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47546         (quotearg_colon_mem): New wrappers.
47547         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47548         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47549         functions.
47550         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47551         (quotearg_colon_mem): New functions.
47552
47553 2008-02-11  Bruno Haible  <bruno@clisp.org>
47554
47555         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47556         library in the current directory: it does not work with parallel make.
47557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47558
47559 2008-02-11  Bruno Haible  <bruno@clisp.org>
47560
47561         * .gitattributes: New file.
47562
47563 2008-02-11  Jim Meyering  <meyering@redhat.com>
47564
47565         useless-if-before-free: Fix reversed exit values.
47566         * build-aux/useless-if-before-free: Use correct values
47567         for EXIT_MATCH and EXIT_NO_MATCH.
47568
47569         * build-aux/useless-if-before-free: Close stdout carefully.
47570
47571 2008-02-10  Bruno Haible  <bruno@clisp.org>
47572
47573         New module 'git-merge-changelog'.
47574         * modules/git-merge-changelog: New file.
47575         * lib/git-merge-changelog.c: New file.
47576
47577 2008-02-10  Jim Meyering  <meyering@redhat.com>
47578
47579         useless-if-before-free: New option: --list (-l).
47580
47581         useless-if-before-free: Don't exit immediately upon open failure.
47582         * build-aux/useless-if-before-free: Exit 2 for errors.
47583         Upon failure to open a file, don't exit immediately.
47584         Rather, just warn and continue with any remaining files.
47585
47586 2008-02-10  Bruno Haible  <bruno@clisp.org>
47587
47588         New abstract list operation 'node_set_value'.
47589         * lib/gl_list.h (gl_list_node_set_value): New function.
47590         (struct gl_list_implementation): New field node_set_value.
47591         * lib/gl_list.c (gl_list_node_set_value): New function.
47592         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47593         (gl_array_list_implementation): Update.
47594         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47595         (gl_carray_list_implementation): Update.
47596         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47599         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47600         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47601         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47602         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47603         Update.
47604         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47605         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47606         (gl_sublist_list_implementation): Update.
47607
47608 2008-02-10  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47611         Needed when ELEMENT is #defined to 'some_type *'.
47612
47613 2008-02-10  Jim Meyering  <meyering@redhat.com>
47614
47615         New script and module: useless-if-before-free
47616         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47617         * build-aux/useless-if-before-free: New file.
47618         * modules/useless-if-before-free: New file.
47619
47620         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47621
47622         xstrtol_error: Fix typo.
47623         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47624         s/exit_failure/exit_status/.
47625
47626 2008-02-09  Jim Meyering  <meyering@redhat.com>
47627
47628         New script and module: gitlog-to-changelog
47629         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47630         * modules/gitlog-to-changelog: New file.
47631         * build-aux/gitlog-to-changelog: New file.
47632
47633 2008-02-08  Jim Meyering  <meyering@redhat.com>
47634
47635         Avoid two "parameter unused" warnings.
47636         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47637         Mark "st" as used.
47638
47639         Use "git COMMAND", not "git-COMMAND".
47640         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47641         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47642         * build-aux/git-version-gen: Use "git status", not "git-status".
47643
47644 2008-02-07  Bruno Haible  <bruno@clisp.org>
47645
47646         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47647         Avoids a crash on Windows Vista.
47648         Reported by Adam Strzelecki <ono@java.pl> via
47649         Simon Josefsson <simon@josefsson.org>.
47650
47651 2008-02-06  Bruno Haible  <bruno@clisp.org>
47652
47653         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47654         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47655         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47657         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47659         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47660         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47668         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47669         left-adjust flag.
47670         * tests/test-snprintf-posix.h (test_function): Likewise.
47671         * tests/test-sprintf-posix.h (test_function): Likewise.
47672         * tests/test-vasprintf-posix.c (test_function): Likewise.
47673         * doc/posix-functions/fprintf.texi: Update.
47674         * doc/posix-functions/printf.texi: Update.
47675         * doc/posix-functions/snprintf.texi: Update.
47676         * doc/posix-functions/sprintf.texi: Update.
47677         * doc/posix-functions/vfprintf.texi: Update.
47678         * doc/posix-functions/vprintf.texi: Update.
47679         * doc/posix-functions/vsnprintf.texi: Update.
47680         * doc/posix-functions/vsprintf.texi: Update.
47681         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47682
47683 2008-02-06  Bruno Haible  <bruno@clisp.org>
47684
47685         Fix bug introduced on 2008-01-26.
47686         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47687
47688 2008-02-06  Bruno Haible  <bruno@clisp.org>
47689
47690         Fix bug introduced on 2007-06-10.
47691         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47692         !NEED_PRINTF_FLAG_ZERO.
47693
47694 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47695
47696         getloadavg: use libperfstat on AIX5
47697         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47698
47699 2008-02-03  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/diffseq.h: Add comments about required #includes.
47702         Reported by Michael Biggs <gnulib@doubleplum.net>.
47703
47704 2008-02-01  Bruno Haible  <bruno@clisp.org>
47705
47706         * users.txt: Add gnuit.
47707
47708 2008-01-31  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/md4.c (set_uint32): Mark as inline.
47711         * lib/md5.c (set_uint32): Likewise.
47712         * lib/sha1.c (set_uint32): Likewise.
47713         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47714         * m4/md5.m4 (gl_MD5): Likewise.
47715         * m4/sha1.m4 (gl_SHA1): Likewise.
47716
47717 2008-01-31  Jim Meyering  <meyering@redhat.com>
47718
47719         Use "sizeof VAR", rather than a literal "4".
47720         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47721         * lib/md4.c (md4_read_ctx): Likewise.
47722         * lib/sha1.c (sha1_read_ctx): Likewise.
47723
47724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47725
47726         * tests/test-sha1.c: New file, based on test-md5.c.
47727
47728         * modules/crypto/sha1-tests: New file.
47729
47730 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47731
47732         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47733
47734 2008-01-31  Jim Meyering  <meyering@redhat.com>
47735
47736         Prefer "sizeof v" over the equivalent "4".
47737         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47738         * lib/md5.c (set_uint32): Likewise.
47739         * lib/sha1.c (set_uint32): Likewise.
47740
47741 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47742
47743         * lib/sha1.c (set_uint32): Mark function as static.
47744
47745 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47746
47747         md2: clarify comments to say that alignment is not required.
47748         * lib/md2.h: Remove warning about alignment in comment.
47749         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47750         never been required.
47751
47752 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47753
47754         md4: adapt alignment constraint fix from sha1.
47755         * lib/md4.c (set_uint32): New function, from sha1.c
47756         (md4_read_ctx): Use it.
47757         (md4_finish_ctx): Doc fix.
47758         * lib/md4.h: Doc fix.
47759
47760 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47761
47762         md5: adapt alignment constraint fix from sha1.
47763         * lib/md5.c (set_uint32): New function, from sha1.c
47764         (md5_read_ctx): Use it.
47765         (md5_finish_ctx): Doc fix.
47766         * lib/md5.h: Doc fix.
47767
47768 2008-01-30  Peter Palfrader  <weasel@debian.org>
47769
47770         sha1: remove the result buffer alignment constraint
47771         * lib/sha1.c (set_uint32): New function.
47772         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47773         constraint.
47774         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47775         * lib/sha1.h: Likewise.
47776
47777 2008-01-30  Andreas Schwab  <schwab@suse.de>
47778             Bruno Haible  <bruno@clisp.org>
47779
47780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47781         correct definition of LDBL_MIN_EXP.
47782
47783 2008-01-30  Karl Berry  <karl@gnu.org>
47784
47785         * config/srclist-update: try to preserve x bit on updates.
47786         * config/srclistvars.sh: update for karl.
47787
47788 2008-01-29  Jim Meyering  <meyering@redhat.com>
47789
47790         vasnprintf.c: Avoid warning about unused label
47791         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47792         "overflow" label definition and associated code with the
47793         same cpp condition that guards the sole use of that label.
47794
47795 2008-01-26  Bruno Haible  <bruno@clisp.org>
47796
47797         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47798         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47799         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47800         * lib/isnanl-nolibm.h (isnanl): Likewise.
47801         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47802
47803 2008-01-26  Bruno Haible  <bruno@clisp.org>
47804
47805         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47806         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47807
47808 2008-01-26  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47811         GCC >= 4.0 built-in.
47812         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47813
47814 2008-01-26  Bruno Haible  <bruno@clisp.org>
47815
47816         Rename isnan, applicable to 'double' only, to isnand.
47817         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47818         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47819         (configure.ac): Update.
47820         (Include): Replace "isnan.h" with "isnand.h".
47821         * m4/isnand.m4: Renamed from m4/isnan.m4.
47822         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47823         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47824         instead of isnan.c.
47825         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47826         instead of HAVE_ISNAN_IN_LIBC.
47827         (isnand): Renamed from isnan.
47828         * lib/isnand.c: New file.
47829         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47830         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47831         (Makefile.am): Update.
47832         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47833         Include isnand.h instead of isnan.h.
47834         (main): Test isnand instead of isnan.
47835         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47836         isnan-nolibm.
47837         * modules/frexp (Depends-on): Likewise.
47838         * modules/frexp-tests (Depends-on): Likewise.
47839         * modules/frexp-nolibm (Depends-on): Likewise.
47840         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47841         * modules/isfinite (Depends-on): Likewise.
47842         * modules/round-tests (Depends-on): Likewise.
47843         * modules/signbit (Depends-on): Likewise.
47844         * modules/signbit-tests (Depends-on): Likewise.
47845         * modules/snprintf-posix (Depends-on): Likewise.
47846         * modules/sprintf-posix (Depends-on): Likewise.
47847         * modules/trunc-tests (Depends-on): Likewise.
47848         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47849         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47850         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47851         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47852         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47855         * modules/vasnprintf-posix (Depends-on): Likewise.
47856         * modules/vasprintf-posix (Depends-on): Likewise.
47857         * modules/vfprintf-posix (Depends-on): Likewise.
47858         * modules/vsnprintf-posix (Depends-on): Likewise.
47859         * modules/vsprintf-posix (Depends-on): Likewise.
47860         * lib/frexp.c: Include isnand.h instead of isnan.h.
47861         (ISNAN): Set to isnand instead of isnan.
47862         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47863         (gl_isfinited): Use isnand instead of isnan.
47864         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47865         (gl_signbitd): Use isnand instead of isnan.
47866         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47867         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47868         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47869         (main): Use isnand instead of isnan.
47870         * tests/test-round1.c: Include isnand.h.
47871         (main): Use isnand instead of isnan.
47872         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47873         (ISNAN): Set to isnand instead of isnan.
47874         * tests/test-trunc1.c: Include isnand.h.
47875         (main): Use isnand instead of isnan.
47876         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47877         (equal): Use isnand instead of isnan.
47878         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47879         isnand-nolibm.
47880         * NEWS: Mention the change.
47881
47882 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47883             Bruno Haible  <bruno@clisp.org>
47884
47885         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47886         the GCC builtins for signbits are present and set
47887         REPLACE_SIGNBIT_USING_GCC if so.
47888         * lib/math.in.h (signbit): Define using GCC builtins if
47889         REPLACE_SIGNBIT_USING_GCC is set.
47890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47891         REPLACE_SIGNBIT_USING_GCC.
47892         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47893
47894 2008-01-25  Jim Meyering  <meyering@redhat.com>
47895
47896         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47897         * lib/poll.c: Include <config.h>, not "config.h".
47898         * tests/test-getaddrinfo.c: Likewise.
47899
47900 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47901
47902         * modules/sockets-tests: New file.
47903
47904 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47905
47906         * modules/sockets: New module, can be used to call WSA_Startup and
47907         WSA_Cleanup when needed.
47908
47909         * lib/sockets.h, lib/sockets.c: New files.
47910
47911         * m4/sockets.m4: New file.
47912
47913         * tests/test-sockets.c: New file.
47914
47915 2008-01-19  Bruno Haible  <bruno@clisp.org>
47916
47917         * doc/posix-headers: Renamed from doc/headers.
47918         * doc/posix-functions: Renamed from doc/functions.
47919         * doc/gnulib.texi: Update.
47920
47921 2008-01-19  Bruno Haible  <bruno@clisp.org>
47922
47923         * doc/glibc-functions/strcasestr.texi: Include contents of
47924         doc/functions/strcasestr.texi, fixing the list of platforms.
47925         * doc/functions/strcasestr.texi: Remove file.
47926
47927 2008-01-19  Bruno Haible  <bruno@clisp.org>
47928
47929         * doc/glibc-functions/memmem.texi: Include contents of
47930         doc/functions/memmem.texi.
47931         * doc/functions/memmem.texi: Remove file.
47932
47933 2008-01-18  Bruno Haible  <bruno@clisp.org>
47934
47935         * doc/glibc-functions/*.texi: New files.
47936         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47937         to use the new files.
47938
47939 2008-01-17  Bruno Haible  <bruno@clisp.org>
47940
47941         * tests/test-gethostname.c (main): Fix printf statement.
47942
47943 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47944
47945         * modules/gethostname-tests: New file.
47946
47947         * tests/test-gethostname.c: New file.
47948
47949 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47950
47951         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47952         used by the UNAME case.  Reported by Bruno Haible
47953         <bruno@clisp.org>.
47954
47955 2008-01-17  Eric Blake  <ebb9@byu.net>
47956
47957         Convert c-strcasestr to be more efficient.
47958         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47959         (Depends-on): Add c-strcase, remove malloca, strnlen.
47960         * tests/test-c-strcasestr.c (main): Enhance test.
47961         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47962
47963 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47964
47965         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47966         Use it in creating po/Makevars.
47967
47968 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47969
47970         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47971         Applications that requires it should initialize libgcrypt
47972         manually.
47973
47974 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47975
47976         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47977
47978 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47979
47980         Fix problem with getdate on mingw32 reported by Simon Josefsson
47981         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47982         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47983         tzname", when deciding whether to declare tzname.
47984         * lib/strftime.c (tzname): Likewise.
47985
47986 2008-01-15  Bruno Haible  <bruno@clisp.org>
47987
47988         Work around a MacOS X 10.5 bug in frexpl().
47989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47990         * doc/functions/frexpl.texi: Document the bug.
47991         Reported by Elias Pipping <pipping@gentoo.org>.
47992
47993 2008-01-14  Eric Blake  <ebb9@byu.net>
47994
47995         Touch up previous patch.
47996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47997         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47998
47999         Convert strcasestr module to use Two-Way algorithm.
48000         * modules/strcasestr-simple: New module, based on the old
48001         strcasestr, but with Two-Way rather than KMP.
48002         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48003         * lib/string.in.h (rpl_strcasestr): Declare.
48004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48005         performance.
48006         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48007         * modules/string (Makefile.am): Support strcasestr.
48008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48009         * modules/strcasestr-tests (Depends-on): Check for alarm.
48010         * tests/test-strcasestr.c: Augment test.
48011         * lib/str-two-way.h: Clean up stray macro.
48012         * NEWS: Document new module.
48013         * MODULES.html.sh (string handling): Likewise.
48014         * doc/functions/strcasestr.texi: New file.
48015         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48016         here, since it is not a POSIX function.
48017
48018 2008-01-14  Colin Watson  <cjwatson@debian.org>
48019             Bruno Haible  <bruno@clisp.org>
48020
48021         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48022         works fine; if not, set REPLACE_STRSIGNAL.
48023         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48025         REPLACE_STRSIGNAL.
48026         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48027         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48028         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48029
48030 2008-01-14  Bruno Haible  <bruno@clisp.org>
48031
48032         * modules/strsignal (Include): Change to <string.h>.
48033
48034 2008-01-14  Colin Watson  <cjwatson@debian.org>
48035
48036         * modules/argp (Notice): Add a notice recommending to change
48037         XGETTEXT_OPTIONS.
48038         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48039
48040 2008-01-13  Colin Watson  <cjwatson@debian.org>
48041
48042         * modules/strsignal-tests: New file.
48043         * tests/test-strsignal.c: New file.
48044
48045         * lib/strsignal.c: New file, from glibc with modifications.
48046         * lib/siglist.h: New file, from glibc with modifications.
48047         * lib/string.in.h (strsignal): New declaration.
48048         * m4/strsignal.m4: New file.
48049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48050         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48051         * modules/strsignal: New file.
48052         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48053         HAVE_DECL_STRSIGNAL.
48054
48055 2008-01-13  Bruno Haible  <bruno@clisp.org>
48056
48057         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48058         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48059         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48060         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48061
48062 2008-01-13  Bruno Haible  <bruno@clisp.org>
48063
48064         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48065         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48066         * lib/argp.h (__attribute__): Likewise.
48067         * lib/c-stack.c (__attribute__): Likewise.
48068         * lib/error.h (__attribute__): Likewise.
48069         * lib/fts.c (__attribute__): Likewise.
48070         * lib/openat.h (__attribute__): Likewise.
48071         * lib/stdio.in.h (__attribute__): Likewise.
48072         * lib/string.in.h (__attribute__): Likewise.
48073         * lib/utimens.c (__attribute__): Likewise.
48074         * lib/vasnprintf.h (__attribute__): Likewise.
48075         * lib/xalloc.h (__attribute__): Likewise.
48076         * lib/xprintf.h (__attribute__): Likewise.
48077         * lib/xstrtol.h (__attribute__): Likewise.
48078         * lib/xvasprintf.h (__attribute__): Likewise.
48079
48080 2008-01-12  Bruno Haible  <bruno@clisp.org>
48081
48082         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48083         * doc/glibc-headers/a.out.texi: New file.
48084         * doc/glibc-headers/aliases.texi: New file.
48085         * doc/glibc-headers/alloca.texi: New file.
48086         * doc/glibc-headers/ar.texi: New file.
48087         * doc/glibc-headers/argp.texi: New file.
48088         * doc/glibc-headers/argz.texi: New file.
48089         * doc/glibc-headers/byteswap.texi: New file.
48090         * doc/glibc-headers/crypt.texi: New file.
48091         * doc/glibc-headers/endian.texi: New file.
48092         * doc/glibc-headers/envz.texi: New file.
48093         * doc/glibc-headers/err.texi: New file.
48094         * doc/glibc-headers/error.texi: New file.
48095         * doc/glibc-headers/execinfo.texi: New file.
48096         * doc/glibc-headers/fpu_control.texi: New file.
48097         * doc/glibc-headers/fstab.texi: New file.
48098         * doc/glibc-headers/fts.texi: New file.
48099         * doc/glibc-headers/getopt.texi: New file.
48100         * doc/glibc-headers/ieee754.texi: New file.
48101         * doc/glibc-headers/ifaddrs.texi: New file.
48102         * doc/glibc-headers/libintl.texi: New file.
48103         * doc/glibc-headers/mcheck.texi: New file.
48104         * doc/glibc-headers/mntent.texi: New file.
48105         * doc/glibc-headers/obstack.texi: New file.
48106         * doc/glibc-headers/paths.texi: New file.
48107         * doc/glibc-headers/printf.texi: New file.
48108         * doc/glibc-headers/pty.texi: New file.
48109         * doc/glibc-headers/resolv.texi: New file.
48110         * doc/glibc-headers/shadow.texi: New file.
48111         * doc/glibc-headers/sysexits.texi: New file.
48112         * doc/glibc-headers/ttyent.texi: New file.
48113
48114 2008-01-12  Jim Meyering  <meyering@redhat.com>
48115
48116         announce-gen: emit Gnulib's git-based version string.
48117         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48118         New option --gnulib-version=V, where V is expected to be
48119         the output of running git describe in the gnulib directory.
48120         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48121         not useful, and plan to stop publishing an xdelta file with each
48122         coreutils release.
48123
48124         * build-aux/announce-gen: Also check for lzma-compressed files.
48125
48126 2008-01-11  Bruno Haible  <bruno@clisp.org>
48127
48128         * tests/test-memmem.c (main): Increase maximum allowed time.
48129         * tests/test-strstr.c (main): Likewise.
48130
48131 2008-01-11  Bruno Haible  <bruno@clisp.org>
48132
48133         * doc/functions/memmem.texi: Add more precisions about platforms.
48134         * doc/functions/strstr.texi: Likewise.
48135
48136 2008-01-10  Eric Blake  <ebb9@byu.net>
48137
48138         * m4/strstr.m4: Delete cruft from copy-n-paste.
48139         Reported by Bruno Haible.
48140
48141 2008-01-10  Bruno Haible  <bruno@clisp.org>
48142
48143         Make c-strstr rely on strstr.
48144         * lib/c-strstr.c: Don't include str-kmp.h.
48145         (c_strstr): Define in terms of strstr.
48146         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48147         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48148
48149 2008-01-10  Bruno Haible  <bruno@clisp.org>
48150
48151         * doc/gnulib.texi (String Functions in C Locale): New section.
48152         * doc/c-ctype.texi: New file.
48153         * doc/c-strcase.texi: New file.
48154         * doc/c-strcaseeq.texi: New file.
48155         * doc/c-strcasestr.texi: New file.
48156         * doc/c-strstr.texi: New file.
48157         * doc/c-strtod.texi: New file.
48158         * doc/c-strtold.texi: New file.
48159
48160 2008-01-10  Eric Blake  <ebb9@byu.net>
48161
48162         * lib/relocatable.h: Fix a comment.
48163
48164 2008-01-10  Eric Blake  <ebb9@byu.net>
48165
48166         Share two-way algorithm.
48167         * lib/str-two-way.h: New file, merged from...
48168         * lib/memmem.c: ...here...
48169         * lib/strstr.c: ...and here.
48170         * modules/memmem (Files): Use it.
48171         * modules/strstr (Files): Likewise.
48172
48173         Avoid quadratic strstr implementations.
48174         * lib/strstr.c: New file.
48175         * m4/strstr.m4: Likewise.
48176         * modules/strstr: Likewise.
48177         * modules/strstr-tests: Likewise.
48178         * tests/test-strstr.c: Likewise.
48179         * lib/string.in.h (rpl_strstr): Declare.
48180         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48182         * modules/string (Makefile.am): Likewise.
48183         * MODULES.html.sh (string handling): Mention new module.
48184         * doc/functions/strstr.texi (strstr): Document the bug.
48185
48186 2008-01-10  Bruno Haible  <bruno@clisp.org>
48187
48188         * lib/relocatable.h (relocate): State whether result is freshly
48189         allocated or not.
48190         * lib/relocatable.c (relocate): Return a freshly allocated string
48191         instead of a pointer to a privately held string.
48192         Reported by Sylvain Beucler <beuc@gnu.org>.
48193
48194 2008-01-10  Colin Watson  <cjwatson@debian.org>
48195
48196         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48197         s/S_ISNLK/S_ISLNK/.
48198
48199 2008-01-09  Bruno Haible  <bruno@clisp.org>
48200
48201         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48202         and other files.
48203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48204         if it's only a guess.
48205         * modules/memmem: Simplify by depending on memmem-simple.
48206
48207 2008-01-09  Bruno Haible  <bruno@clisp.org>
48208
48209         Work around OpenBSD 4.0 tdelete() bug.
48210         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48211         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48212         macros and don't redefine the enum values.
48213         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48214         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48215         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48216
48217 2008-01-09  Bruno Haible  <bruno@clisp.org>
48218
48219         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48220         (main): Don't perform the tests if setlocale did not install a UTF-8
48221         locale. Needed on OpenBSD 4.0.
48222         * modules/wcwidth-tests (Depends-on): Add localcharset.
48223
48224 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48227         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48228         * NEWS: announce this.
48229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48230
48231 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48232         and Eric Blake  <ebb9@byu.net>
48233
48234         Add memmem-simple module.
48235         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48236         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48237         * modules/memmem-simple: New file.
48238         * modules/memmem (Description): Tweak.
48239         * MODULES.html.sh (string handling): Mention new module.
48240         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48241         addressed by memmem-simple.
48242         * NEWS: Document the difference.
48243
48244 2008-01-09  Eric Blake  <ebb9@byu.net>
48245
48246         Give gcc some memmem optimization hints.
48247         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48248         (strcasestr): Declare as pure.
48249         * modules/memmem (Maintainer): Claim my implementation.
48250
48251 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48252
48253         Support AIX 6.1 and higher.
48254         * build-aux/config.libpath: Likewise.
48255         * build-aux/config.rpath: Likewise.
48256
48257 2008-01-08  Jim Meyering  <meyering@redhat.com>
48258             Bruno Haible  <bruno@clisp.org>
48259
48260         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48261         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48262         Reported by Peter Fales in
48263         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48264
48265 2008-01-08  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/unictype/category-of (Depends-on): Add
48268         unictype/category-none.
48269         * modules/unictype/category-and-tests (Depends-on): Add
48270         unictype/category-{L,N,Lu,Nd}.
48271         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48272         * modules/unictype/category-or-tests (Depends-on): Add
48273         unictype/category-{L,N}.
48274         * modules/unictype/category-name-tests (Depends-on): Add
48275         unictype/category-{Z,Nl}.
48276         Reported by Simon Josefsson.
48277
48278 2008-01-08  Bruno Haible  <bruno@clisp.org>
48279
48280         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48281         convention better.
48282         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48283         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48284         Reported by Peter Miller <millerp@canb.auug.org.au>.
48285
48286 2008-01-08  Eric Blake  <ebb9@byu.net>
48287
48288         Rewrite memmem to guarantee linear complexity without malloc.
48289         * lib/memmem.c (memmem): Use Two-Way rather than
48290         Knuth-Morris-Pratt, to allow O(1) space usage.
48291         (critical_factorization, two_way_short_needle)
48292         (two_way_long_needle): New functions.
48293         (knuth_morris_pratt): Delete.
48294         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48295         Add stdint.
48296         * tests/test-memmem.c (main): Add tests for periodic needle and
48297         sublinear performance.
48298         * doc/functions/memmem.texi (memmem): Document other deficiencies
48299         in cygwin and older glibc.
48300
48301 2008-01-08  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48304         augmentation.
48305
48306 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48307
48308         Add a configure time option: --disable-acl.
48309         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48310         AC_ARG_ENABLE(acl).
48311
48312 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48313
48314         * tests/test-localename.c: Don't include obsolete "setenv.h".
48315
48316         * modules/localename-tests (Depends-on): Need unsetenv.
48317
48318 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48319
48320         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48321
48322 2008-01-06  Colin Watson  <cjwatson@debian.org>
48323
48324         * users.txt: Add man-db.
48325
48326 2008-01-07  Bruno Haible  <bruno@clisp.org>
48327
48328         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48329         previous section name.
48330
48331 2008-01-07  Bruno Haible  <bruno@clisp.org>
48332
48333         * lib/progname.c (set_program_name): Don't strip off a leading
48334         "lt-" prefix outside a .libs directory.
48335         Suggested by Paul Eggert.
48336
48337 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48338             Bruno Haible  <bruno@clisp.org>
48339
48340         Improve memory cleanup in 'relocatable' module.
48341         * lib/relocatable.h (compute_curr_prefix): Change return type to
48342         'char *'.
48343         * lib/relocatable.c (compute_curr_prefix): Change return type to
48344         'char *'. Free curr_installdir after use.
48345         (relocate): Free curr_prefix_better after use.
48346         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48347
48348 2008-01-01  Bruno Haible  <bruno@clisp.org>
48349
48350         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48351         failure on older glibc systems.
48352         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48353
48354 2008-01-05  Eric Blake  <ebb9@byu.net>
48355
48356         Avoid quadratic system memmem.
48357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48358         Reported by Ralf Wildenhues.
48359
48360         Fix memmem test for mingw.
48361         * modules/memmem-tests (configure.ac): Check for alarm.
48362         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48363         it.
48364         * doc/functions/memmem.texi: New file.
48365         * doc/gnulib.texi (Function Substitutes): Add memmem.
48366         Reported by Bruno Haible.
48367
48368 2008-01-04  Bruno Haible  <bruno@clisp.org>
48369
48370         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48371         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48372         gl_HEADER_STRING_H_DEFAULTS.
48373
48374 2008-01-04  Eric Blake  <ebb9@byu.net>
48375
48376         Shorten duration of memmem test.
48377         * tests/test-memmem.c (main): Use alarm to declare failure if test
48378         is taking too long.
48379         Reported by Ralf Wildenhues.
48380
48381 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48382
48383         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48384         string, needed by strerror.
48385
48386 2008-01-03  Colin Watson  <cjwatson@debian.org>
48387             Bruno Haible  <bruno@clisp.org>
48388
48389         * doc/gnulib-tool.texi (Localization): New section.
48390
48391 2008-01-02  Bruno Haible  <bruno@clisp.org>
48392
48393         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48394         variables to 'unsigned char *' type.
48395         Reported by Paul Eggert.
48396
48397 2008-01-02  Jim Meyering  <jim@meyering.net>
48398
48399         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48400
48401 2007-12-31  Jim Meyering  <jim@meyering.net>
48402
48403         Avoid use of private FTS type name.
48404         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48405
48406 2007-12-30  Karl Berry  <karl@gnu.org>
48407
48408         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48409         work around defect in Texinfo and/or the standalone Info browser.
48410
48411 2007-12-30  Bruno Haible  <bruno@clisp.org>
48412
48413         Unify 5 copies of the KMP code.
48414         * lib/str-kmp.h: New file.
48415         * lib/c-strcasestr.c: Include str-kmp.h.
48416         (knuth_morris_pratt): Remove function.
48417         (c_strcasestr): Update.
48418         * lib/c-strstr.c: Include str-kmp.h.
48419         (knuth_morris_pratt): Remove function.
48420         (c_strcasestr): Update.
48421         * lib/mbscasestr.c: Include str-kmp.h.
48422         (knuth_morris_pratt_unibyte): Remove function.
48423         * lib/mbsstr.c: Include str-kmp.h.
48424         (knuth_morris_pratt_unibyte): Remove function.
48425         * lib/strcasestr.c: Include str-kmp.h.
48426         (knuth_morris_pratt): Remove function.
48427         (strcasestr): Update.
48428         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48429         * modules/c-strstr (Files): Likewise.
48430         * modules/mbscasestr (Files): Likewise.
48431         * modules/mbsstr (Files): Likewise.
48432         * modules/strcasestr (Files): Likewise.
48433         Suggested by Paul Eggert.
48434
48435 2007-12-30  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48438         defined.
48439
48440 2007-12-30  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/xmalloca.h: Include xalloc.h.
48443         (xnmalloca): New macro.
48444
48445 2007-12-30  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/malloca.h (nmalloca): New macro.
48448         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48449         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48450         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48451         knuth_morris_pratt_multibyte): Likewise.
48452         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48453         knuth_morris_pratt_multibyte): Likewise.
48454         * lib/memmem.c (knuth_morris_pratt): Likewise.
48455         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48456
48457 2007-12-25  Bruno Haible  <bruno@clisp.org>
48458
48459         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48460         * lib/glob.c: Don't include openat.h.
48461         (link_exists2_p): Add back the code that deals with the
48462         !GLOB_ALTDIRFUNC case.
48463         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48464         let it do the filename concatenation.
48465         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48466         * modules/glob (Depends-on): Remove openat.
48467
48468 2007-12-31  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/dirfd (License): Change to LGPLv2+.
48471         Approved by Jim Meyering.
48472
48473 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48476         when multiplying M by sizeof (size_t).
48477
48478 2007-12-10  Martin Lambers  <marlam@marlam.de>
48479
48480         Override getpagesize on mingw.
48481         * lib/getpagesize.c: New file.
48482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48483         * modules/getpagesize (Files): Add lib/getpagesize.c.
48484         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48486         REPLACE_GETPAGESIZE.
48487         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48488
48489 2007-12-25  Bruno Haible  <bruno@clisp.org>
48490
48491         * modules/localcharset (Notice): New field.
48492         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48493         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48494
48495 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48496             Bruno Haible  <bruno@clisp.org>
48497
48498         Avoid using the syntax symbol() in formatted documentation.
48499         * MODULES.html.sh (func_module): When replacing symbol() with a
48500         hyperlink, remove the parentheses. Show an error if some remain.
48501         Recognize and render the '...' syntax.
48502         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48503         Rework. Add paragraph about GCC's inlining.
48504         * doc/alloca.texi: Likewise.
48505         * doc/error.texi: Remove parentheses from symbol reference.
48506         * doc/gnulib-intro.texi: Likewise.
48507         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48508         * modules/fnmatch (Description): Reword to say "the ... function".
48509         * modules/full-read (Description): Likewise.
48510         * modules/full-write (Description): Likewise.
48511         * modules/safe-read (Description): Likewise.
48512         * modules/safe-write (Description): Likewise.
48513         * modules/strchrnul (Description): Likewise.
48514         * modules/trim (Description): Likewise.
48515         * modules/error (Description): Remove parentheses from symbol
48516         references.
48517         * modules/verror (Description): Likewise.
48518         Reported by Karl Berry.
48519
48520 2007-12-25  Bruno Haible  <bruno@clisp.org>
48521
48522         Fixup after 2007-10-16 commit.
48523         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48524
48525 2007-12-24  Bruno Haible  <bruno@clisp.org>
48526
48527         Make --enable-relocatable work with DESTDIR.
48528         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48529         to compute installdir from destprog.
48530         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48531         also set the RELOC_DESTDIR variable.
48532         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48533
48534 2007-12-24  Bruno Haible  <bruno@clisp.org>
48535
48536         Fix link error due to xalloc_die().
48537         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48538         of xreadlink.
48539         * lib/relocwrapper.c: Update comments.
48540         * build-aux/install-reloc: Remove xreadlink.c from file list.
48541         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48542         xreadlink.c.
48543         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48544
48545 2007-12-24  Bruno Haible  <bruno@clisp.org>
48546
48547         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48548         * lib/setenv.h: Remove file.
48549         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48550         lib/setenv.h.
48551         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48552         (Depends-on): Add stdlib.
48553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48554         gl_FUNC_UNSETENV.
48555         (Include): Replace setenv.h with <stdlib.h>.
48556         * modules/unsetenv: New file.
48557         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48558         * lib/unsetenv.c: Include <stdlib.h> first.
48559         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48560         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48561         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48562         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48563         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48564         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48566         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48567         * doc/functions/unsetenv.texi: Update.
48568         * modules/xsetenv (Depends-on): Add unsetenv.
48569         * modules/getdate (Depends-on): Likewise.
48570         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48571         * lib/xsetenv.c: Don't include setenv.h.
48572         * lib/getdate.y: Likewise.
48573         * lib/relocwrapper.c: Likewise.
48574         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48575         (Depends-on): Add stdlib.
48576         * NEWS: Mention the changes.
48577         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48578
48579 2007-12-23  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48582         indentation.
48583
48584 2007-12-23  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/c-strcasestr.c: Add more comments.
48587         * lib/c-strstr.c: Likewise.
48588         * lib/mbscasestr.c: Likewise.
48589         * lib/mbsstr.c: Likewise.
48590         * lib/strcasestr.c: Likewise.
48591         * lib/memmem.c: Likewise.
48592
48593 2007-12-23  Bruno Haible  <bruno@clisp.org>
48594
48595         * tests/test-memmem.c: Include <string.h> first.
48596
48597 2007-12-22  Bruno Haible  <bruno@clisp.org>
48598
48599         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48600         the contents of $testsbase.
48601         Reported by Ralf Wildenhues.
48602
48603 2007-12-22  Bruno Haible  <bruno@clisp.org>
48604
48605         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48606         two variables local_ldadd_before, local_ldadd_last.
48607
48608 2007-12-20  Eric Blake  <ebb9@byu.net>
48609
48610         Work around circular library issue when cross-compiling.
48611         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48612         that progname.o does not need to pull in rpl_memcmp.
48613
48614 2007-12-19  Eric Blake  <ebb9@byu.net>
48615
48616         Fix memmem to avoid O(n^2) worst-case complexity.
48617         * lib/memmem.c (knuth_morris_pratt): New function.
48618         (memmem): Use it if first few naive iterations fail.
48619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48620         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48621         * modules/memchr (License): Likewise.
48622         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48623         malloca.
48624         * tests/test-memmem.c: Rewrite, borrowing ideas from
48625         test-mbsstr1.c; the old version wouldn't even compile!
48626         * modules/memmem-tests: New file.
48627         * lib/string.in.h (rpl_memmem): Add declaration.
48628         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48630         REPLACE_MEMMEM.
48631
48632 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48635         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48636         before any system include files, and undef after them all.  This
48637         should fix a problem on VMS reported by John E. Malmberg in
48638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48639
48640 2007-12-17  Eric Blake  <ebb9@byu.net>
48641
48642         Revert addition of verify, for BSD/OS.
48643         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48644         can't handle large files, for the sake of obsolete platforms.
48645         * modules/fseeko (Depends-on): Remove verify.
48646         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48647         * doc/functions/ftello.texi (ftello): Likewise.
48648         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48649         Reported by Larry Jones.
48650
48651 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48652
48653         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48654         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48655
48656 2007-12-17  Jim Meyering  <meyering@redhat.com>
48657
48658         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48659         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48660         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48661         * modules/getcwd (Depends-on): Add openat.
48662         Reported by Petr Salinger.
48663
48664 2007-12-17  Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48667         avoid a segmentation fault of the configure test on x86_64 systems.
48668
48669 2007-12-15  Jim Meyering  <meyering@redhat.com>
48670
48671         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48672
48673 2007-12-13  Eric Blake  <ebb9@byu.net>
48674
48675         Another fseek test.
48676         * tests/test-fseek.c (main): Also test ungetc handling.
48677         * tests/test-fseeko.c (main): Likewise.
48678         * modules/fseeko (Depends-on): Add verify.
48679         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48680         large.
48681         Reported by Larry Jones.
48682
48683         Fix fseeko on mingw.
48684         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48685         seek.
48686
48687         Beef up fseek tests.
48688         * tests/test-fseek.c (main): Also test eof handling.
48689         * tests/test-fseeko.c (main): Likewise.
48690         Reported by Larry Jones.
48691
48692 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48693
48694         Fix fseeko on BSD-based platforms.
48695         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48696         successful seek.
48697
48698 2007-12-12  Eric Blake  <ebb9@byu.net>
48699
48700         Allow circular dependency of separate libtests.a
48701         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48702         when use_libtests.
48703
48704 2007-12-11  Eric Blake  <ebb9@byu.net>
48705
48706         Fix bug with -0.0L in previous patch.
48707         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48708         * tests/test-isnan.c (main): Also test on zeroes.
48709         * tests/test-isnanf.c (main): Likewise.
48710         * tests/test-isnanl.h (main): Likewise.
48711
48712         Detect pseudo-denormals on x86 even when cross-compiling.
48713         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48714         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48715         invalid bit patterns that happen to satisfy ==.
48716
48717         Avoid link failures with separate libtests.a.
48718         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48719         last, to satisfy circular dependencies.
48720
48721 2007-12-11  Eric Blake  <ebb9@byu.net>
48722         and Bruno Haible  <bruno@clisp.org>
48723
48724         Fix OpenBSD 4.0 <float.h> handling of long double.
48725         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48726         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48727         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48728
48729 2007-12-11  Jim Meyering  <meyering@redhat.com>
48730
48731         * users.txt: Add libvirt.
48732
48733         Support versions of autoconf prior to 2.59c.
48734         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48735         if it is not already defined.
48736
48737 2007-12-09  Bruno Haible  <bruno@clisp.org>
48738
48739         Let 'gnulib-tool --import' collect sources needed for the tests in
48740         tests/ rather than in lib/.
48741         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48742         argument. If true, add rules to generate libtests.a, and put libtests.a
48743         into $(LDADD). Consider source files in subdirectories and set
48744         uses_subdirs.
48745         (func_emit_initmacro_start, func_emit_initmacro_end,
48746         func_emit_initmacro_done): Pass all arguments explicitly.
48747         (func_import): Determine two module lists main_modules,
48748         testsrelated_modules. Determine use_libtests. Determine two variables
48749         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48750         instead of just sed_transform_lib_file. Determine two variables
48751         main_files and testsrelated_files. Compute 'files' as the union of
48752         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48753         func_add_or_update. In the generated gnulib-comp.m4, collect the
48754         object files for tests/ in different variables than those for lib/.
48755         Substitute LIBTESTS_LIBDEPS.
48756         (func_create_testdir): Combine the uses_subdirs results from
48757         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48758
48759 2007-12-09  Bruno Haible  <bruno@clisp.org>
48760
48761         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48762         the build-aux directory.
48763
48764 2007-12-09  Bruno Haible  <bruno@clisp.org>
48765
48766         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48767         introduced on 2006-09-09.
48768
48769 2007-12-07  Jim Meyering  <meyering@redhat.com>
48770
48771         Let these macros work also with autoconf-2.59.
48772         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48773         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48774         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48775
48776 2007-12-06  Jim Meyering  <meyering@redhat.com>
48777
48778         Avoid a configure-time syntax error in gl_FUNC_ACL.
48779         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48780         function in each branch, before testing the cache variable.
48781
48782 2007-12-04  Eric Blake  <ebb9@byu.net>
48783
48784         Make scripts executable.
48785         * build-aux/config.guess: Add execute permissions.
48786         * build-aux/config.sub: Likewise.
48787         * build-aux/gendocs.sh: Likewise.
48788
48789         Fix frexp on mingw.
48790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48791         cross-compiling.
48792         * doc/functions/frexp.texi (frexp): Document the bug.
48793
48794         Make cygwin fseeko check more reliable.
48795         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48796         version numbers, rather than unrelated feature check.
48797         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48798         * doc/functions/ftello.texi (ftello): Likewise.
48799         Reported by Bruno Haible.
48800
48801         * m4/strerror.m4: Bump version number.
48802
48803 2007-12-03  Bruno Haible  <bruno@clisp.org>
48804
48805         * doc/functions/mprotect.texi: Mention the mingw problem.
48806
48807 2007-12-03  Eric Blake  <ebb9@byu.net>
48808
48809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48810         REPLACE_STRERROR is initialized before this macro.
48811
48812 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48813
48814         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48815         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48816         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48817         put -lsec in even for programs other than 'ls'.  This fixes a problem
48818         for gettext reported by Bruno Haible in
48819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48820         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48821         Add support for Solaris 10.  This isn't efficient, but should get the
48822         job done for now.
48823
48824 2007-12-03  James Youngman  <jay@gnu.org>
48825
48826         * doc/regexprops-generic.texi: change "an close-group" to "a
48827         close-group" and "illegal" to "not allowed".
48828
48829 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48830
48831         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48832         pr_byname.h. Needed for the rare case when the maintainer has done
48833         "make maintainer-clean" in the source directory and then attempts a
48834         build outside the source directory.
48835         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48836         scripts_byname.h.
48837
48838 2007-12-02  Martin Lambers <marlam@marlam.de>
48839             Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/getpagesize.h: Remove file.
48842         * lib/unistd.in.h: Include declaration of getpagesize here.
48843         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48844         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48845         HAVE_SYS_PARAM_H.
48846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48847         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48848         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48849         (Depends-on): Add unistd.
48850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48851         (Include): Use <unistd.h> instead of getpagesize.h.
48852         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48853         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48854         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48855         gl_GETPAGESIZE invocation, already handled by module dependency.
48856         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48857
48858 2007-12-02  Bruno Haible  <bruno@clisp.org>
48859
48860         * modules/strings-tests: New file.
48861         * tests/test-strings.c: New file.
48862
48863         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48864         * lib/strings.in.h: New file.
48865         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48866         * m4/strings_h.m4: New file.
48867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48868         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48869         * modules/strings: New file.
48870         * modules/string (Makefile.am): Update.
48871         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48872         Reported by Karl Berry.
48873
48874 2007-12-01  Eric Blake  <ebb9@byu.net>
48875
48876         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48877         accomodate fix in cygwin 1.5.25.
48878
48879 2007-12-01  Jim Meyering  <meyering@redhat.com>
48880
48881         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48882         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48883         that would inhibit utf8-optimization of a regexp containing line-
48884         or buffer-anchors, e.g., `^', `$'.
48885
48886 2007-11-30  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48889         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48890         glthread_recursive_lock_init.
48891         * lib/lock.c (glthread_recursive_lock_init)
48892         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48894
48895 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         New function qset_acl, like set_acl but with syscall semantics.
48898         * lib/acl.h (qset_acl): New decl.
48899         * lib/acl.c (qset_acl): New function.
48900         (set_acl): Use new function.  Use more-consistent diagnostics.
48901
48902 2007-11-28  Jim Meyering  <meyering@redhat.com>
48903
48904         * modules/physmem (License): Change from GPL to LGPLv2+.
48905
48906 2007-11-26  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48909         'long double' type has excess precision.
48910         Reported by Jim Meyering in
48911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48912
48913 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48914
48915         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48916         Sync from <http://gnu.org/licenses>.
48917         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48918         with license text from same location.
48919         * doc/maintain.texi, doc/standards.texi:  Sync from
48920         <http://savannah.gnu.org/projects/gnustandards>.
48921
48922 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
48923         and Jim Meyering  <meyering@redhat.com>
48924
48925         Adjust getdate' grammar to accept a slightly more regular language.
48926         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48927         Before, the former was rejected.
48928         * lib/getdate.y (digits_to_date_time): New function, factored
48929         out of ...
48930         (number): ...here.  Just call digits_to_date_time.
48931         (hybrid): New non-terminal to handle an <unsigned number,
48932         signed relative offset> sequence consistently.
48933
48934 2007-11-18  Jim Meyering  <meyering@redhat.com>
48935
48936         Pull my changes from coreutils:
48937         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48938         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48939         use of $gnulib_tool_option_extras, so that it's separated from the
48940         preceding argument.
48941
48942         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48943         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48944         parent destination directories before copying a file into place.
48945
48946 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48947
48948         bootstrap: work also with 4-argument variant of AC_INIT
48949         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48950
48951 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         Port test-getaddrinfo to Solaris.
48954         Problem reported by Bruno Haible in
48955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48956         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48957         explanation of setting 'hints'.
48958         Don't reject an implementation merely because it returns EAI_SERVICE.
48959         (EAI_SERVICE): Define to 0 if not defined.
48960
48961 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         The license of gnu-make and posix-shell is now "GPLed build tool".
48964         * modules/gnu-make (License): Likewise.
48965         * modules/posix-shell (License): Likewise.
48966
48967         New module posix-shell, for determining a POSIX shell
48968         or perhaps something that is close enough to a POSIX shell.
48969         * m4/posix-shell.m4: New file.
48970         * modules/posix-shell: New file.
48971
48972         * MODULES.html.sh: Mention new module.
48973
48974         New module gnu-make, for determining whether we're using GNU Make.
48975         * m4/gnu-make.m4: New file.
48976         * modules/gnu-make: New file.
48977         * MODULES.html.sh: Mention new module.
48978
48979 2007-11-14  Jim Meyering  <meyering@redhat.com>
48980
48981         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48982         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48983         use this macro to create a function _definition_.
48984         Remove useless "#undef ARGMATCH_DIE".
48985
48986 2007-11-14  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/config.charset: Update for OpenBSD 4.1.
48989         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48990
48991 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48992
48993         Document 64-bit #if problems in stdint.texi.
48994         * doc/headers/stdint.texi (stdint.h): Mention problems with
48995         64-bit-#if, and how to work around them.
48996
48997         Don't insist on 'long long int' support in the preprocessor.  It
48998         breaks too many things.  For example, PRIdMAX still uses a 'long
48999         long int' format with the latest Sun compiler, even though
49000         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49001         preprocessor problem.  This causes the latest coreutils to dump
49002         core on Solaris 10 sparc with the Sun C compiler.
49003         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49004         the troublesome expressions at configure-time, not at #if-time.
49005         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49006         preprocessor.
49007         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49008         compile-time C checks, done at 'configure'-time.
49009         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49010         * modules/inttypes (Makefile): Substitute the new symbols that
49011         gl_INTTYPES_H now generates.
49012         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49013
49014 2007-11-12  Bruno Haible  <bruno@clisp.org>
49015
49016         Tests for Unicode character classification functions.
49017
49018         * modules/unictype/bidicategory-byname-tests: New file.
49019         * modules/unictype/bidicategory-name-tests: New file.
49020         * modules/unictype/bidicategory-of-tests: New file.
49021         * modules/unictype/bidicategory-test-tests: New file.
49022         * modules/unictype/block-list-tests: New file.
49023         * modules/unictype/block-of-tests: New file.
49024         * modules/unictype/block-test-tests: New file.
49025         * modules/unictype/category-C-tests: New file.
49026         * modules/unictype/category-Cc-tests: New file.
49027         * modules/unictype/category-Cf-tests: New file.
49028         * modules/unictype/category-Cn-tests: New file.
49029         * modules/unictype/category-Co-tests: New file.
49030         * modules/unictype/category-Cs-tests: New file.
49031         * modules/unictype/category-L-tests: New file.
49032         * modules/unictype/category-Ll-tests: New file.
49033         * modules/unictype/category-Lm-tests: New file.
49034         * modules/unictype/category-Lo-tests: New file.
49035         * modules/unictype/category-Lt-tests: New file.
49036         * modules/unictype/category-Lu-tests: New file.
49037         * modules/unictype/category-M-tests: New file.
49038         * modules/unictype/category-Mc-tests: New file.
49039         * modules/unictype/category-Me-tests: New file.
49040         * modules/unictype/category-Mn-tests: New file.
49041         * modules/unictype/category-N-tests: New file.
49042         * modules/unictype/category-Nd-tests: New file.
49043         * modules/unictype/category-Nl-tests: New file.
49044         * modules/unictype/category-No-tests: New file.
49045         * modules/unictype/category-P-tests: New file.
49046         * modules/unictype/category-Pc-tests: New file.
49047         * modules/unictype/category-Pd-tests: New file.
49048         * modules/unictype/category-Pe-tests: New file.
49049         * modules/unictype/category-Pf-tests: New file.
49050         * modules/unictype/category-Pi-tests: New file.
49051         * modules/unictype/category-Po-tests: New file.
49052         * modules/unictype/category-Ps-tests: New file.
49053         * modules/unictype/category-S-tests: New file.
49054         * modules/unictype/category-Sc-tests: New file.
49055         * modules/unictype/category-Sk-tests: New file.
49056         * modules/unictype/category-Sm-tests: New file.
49057         * modules/unictype/category-So-tests: New file.
49058         * modules/unictype/category-Z-tests: New file.
49059         * modules/unictype/category-Zl-tests: New file.
49060         * modules/unictype/category-Zp-tests: New file.
49061         * modules/unictype/category-Zs-tests: New file.
49062         * modules/unictype/category-and-not-tests: New file.
49063         * modules/unictype/category-and-tests: New file.
49064         * modules/unictype/category-byname-tests: New file.
49065         * modules/unictype/category-name-tests: New file.
49066         * modules/unictype/category-none-tests: New file.
49067         * modules/unictype/category-of-tests: New file.
49068         * modules/unictype/category-or-tests: New file.
49069         * modules/unictype/category-test-withtable-tests: New file.
49070         * modules/unictype/combining-class-tests: New file.
49071         * modules/unictype/ctype-alnum-tests: New file.
49072         * modules/unictype/ctype-alpha-tests: New file.
49073         * modules/unictype/ctype-blank-tests: New file.
49074         * modules/unictype/ctype-cntrl-tests: New file.
49075         * modules/unictype/ctype-digit-tests: New file.
49076         * modules/unictype/ctype-graph-tests: New file.
49077         * modules/unictype/ctype-lower-tests: New file.
49078         * modules/unictype/ctype-print-tests: New file.
49079         * modules/unictype/ctype-punct-tests: New file.
49080         * modules/unictype/ctype-space-tests: New file.
49081         * modules/unictype/ctype-upper-tests: New file.
49082         * modules/unictype/ctype-xdigit-tests: New file.
49083         * modules/unictype/decimal-digit-tests: New file.
49084         * modules/unictype/digit-tests: New file.
49085         * modules/unictype/mirror-tests: New file.
49086         * modules/unictype/numeric-tests: New file.
49087         * modules/unictype/property-alphabetic-tests: New file.
49088         * modules/unictype/property-ascii-hex-digit-tests: New file.
49089         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49090         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49091         * modules/unictype/property-bidi-block-separator-tests: New file.
49092         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49093         * modules/unictype/property-bidi-common-separator-tests: New file.
49094         * modules/unictype/property-bidi-control-tests: New file.
49095         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49096         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49097         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49098         * modules/unictype/property-bidi-european-digit-tests: New file.
49099         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49100         * modules/unictype/property-bidi-left-to-right-tests: New file.
49101         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49102         * modules/unictype/property-bidi-other-neutral-tests: New file.
49103         * modules/unictype/property-bidi-pdf-tests: New file.
49104         * modules/unictype/property-bidi-segment-separator-tests: New file.
49105         * modules/unictype/property-bidi-whitespace-tests: New file.
49106         * modules/unictype/property-byname-tests: New file.
49107         * modules/unictype/property-combining-tests: New file.
49108         * modules/unictype/property-composite-tests: New file.
49109         * modules/unictype/property-currency-symbol-tests: New file.
49110         * modules/unictype/property-dash-tests: New file.
49111         * modules/unictype/property-decimal-digit-tests: New file.
49112         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49113         * modules/unictype/property-deprecated-tests: New file.
49114         * modules/unictype/property-diacritic-tests: New file.
49115         * modules/unictype/property-extender-tests: New file.
49116         * modules/unictype/property-format-control-tests: New file.
49117         * modules/unictype/property-grapheme-base-tests: New file.
49118         * modules/unictype/property-grapheme-extend-tests: New file.
49119         * modules/unictype/property-grapheme-link-tests: New file.
49120         * modules/unictype/property-hex-digit-tests: New file.
49121         * modules/unictype/property-hyphen-tests: New file.
49122         * modules/unictype/property-id-continue-tests: New file.
49123         * modules/unictype/property-id-start-tests: New file.
49124         * modules/unictype/property-ideographic-tests: New file.
49125         * modules/unictype/property-ids-binary-operator-tests: New file.
49126         * modules/unictype/property-ids-trinary-operator-tests: New file.
49127         * modules/unictype/property-ignorable-control-tests: New file.
49128         * modules/unictype/property-iso-control-tests: New file.
49129         * modules/unictype/property-join-control-tests: New file.
49130         * modules/unictype/property-left-of-pair-tests: New file.
49131         * modules/unictype/property-line-separator-tests: New file.
49132         * modules/unictype/property-logical-order-exception-tests: New file.
49133         * modules/unictype/property-lowercase-tests: New file.
49134         * modules/unictype/property-math-tests: New file.
49135         * modules/unictype/property-non-break-tests: New file.
49136         * modules/unictype/property-not-a-character-tests: New file.
49137         * modules/unictype/property-numeric-tests: New file.
49138         * modules/unictype/property-other-alphabetic-tests: New file.
49139         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49140         * modules/unictype/property-other-grapheme-extend-tests: New file.
49141         * modules/unictype/property-other-id-continue-tests: New file.
49142         * modules/unictype/property-other-id-start-tests: New file.
49143         * modules/unictype/property-other-lowercase-tests: New file.
49144         * modules/unictype/property-other-math-tests: New file.
49145         * modules/unictype/property-other-uppercase-tests: New file.
49146         * modules/unictype/property-paired-punctuation-tests: New file.
49147         * modules/unictype/property-paragraph-separator-tests: New file.
49148         * modules/unictype/property-pattern-syntax-tests: New file.
49149         * modules/unictype/property-pattern-white-space-tests: New file.
49150         * modules/unictype/property-private-use-tests: New file.
49151         * modules/unictype/property-punctuation-tests: New file.
49152         * modules/unictype/property-quotation-mark-tests: New file.
49153         * modules/unictype/property-radical-tests: New file.
49154         * modules/unictype/property-sentence-terminal-tests: New file.
49155         * modules/unictype/property-soft-dotted-tests: New file.
49156         * modules/unictype/property-space-tests: New file.
49157         * modules/unictype/property-terminal-punctuation-tests: New file.
49158         * modules/unictype/property-test-tests: New file.
49159         * modules/unictype/property-titlecase-tests: New file.
49160         * modules/unictype/property-unassigned-code-value-tests: New file.
49161         * modules/unictype/property-unified-ideograph-tests: New file.
49162         * modules/unictype/property-uppercase-tests: New file.
49163         * modules/unictype/property-variation-selector-tests: New file.
49164         * modules/unictype/property-white-space-tests: New file.
49165         * modules/unictype/property-xid-continue-tests: New file.
49166         * modules/unictype/property-xid-start-tests: New file.
49167         * modules/unictype/property-zero-width-tests: New file.
49168         * modules/unictype/scripts-tests: New file.
49169         * modules/unictype/syntax-c-ident-tests: New file.
49170         * modules/unictype/syntax-c-whitespace-tests: New file.
49171         * modules/unictype/syntax-java-ident-tests: New file.
49172         * modules/unictype/syntax-java-whitespace-tests: New file.
49173         * tests/unictype/test-bidi_byname.c: New file.
49174         * tests/unictype/test-bidi_name.c: New file.
49175         * tests/unictype/test-bidi_of.c: New file.
49176         * tests/unictype/test-bidi_test.c: New file.
49177         * tests/unictype/test-block_list.c: New file.
49178         * tests/unictype/test-block_of.c: New file.
49179         * tests/unictype/test-block_test.c: New file.
49180         * tests/unictype/test-categ_and.c: New file.
49181         * tests/unictype/test-categ_and_not.c: New file.
49182         * tests/unictype/test-categ_byname.c: New file.
49183         * tests/unictype/test-categ_name.c: New file.
49184         * tests/unictype/test-categ_none.c: New file.
49185         * tests/unictype/test-categ_of.c: New file.
49186         * tests/unictype/test-categ_or.c: New file.
49187         * tests/unictype/test-categ_test_withtable.c: New file.
49188         * tests/unictype/test-combining.c: New file.
49189         * tests/unictype/test-decdigit.c: New file.
49190         * tests/unictype/test-digit.c: New file.
49191         * tests/unictype/test-mirror.c: New file.
49192         * tests/unictype/test-numeric.c: New file.
49193         * tests/unictype/test-pr_byname.c: New file.
49194         * tests/unictype/test-pr_test.c: New file.
49195         * tests/unictype/test-predicate-part1.h: New file.
49196         * tests/unictype/test-predicate-part2.h: New file.
49197         * tests/unictype/test-scripts.c: New file.
49198         * tests/unictype/test-sy_c_ident.c: New file.
49199         * tests/unictype/test-sy_java_ident.c: New file.
49200
49201         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49202         for Unicode 5.0.0.
49203         * tests/unictype/test-categ_Cc.c: Likewise.
49204         * tests/unictype/test-categ_Cf.c: Likewise.
49205         * tests/unictype/test-categ_Cn.c: Likewise.
49206         * tests/unictype/test-categ_Co.c: Likewise.
49207         * tests/unictype/test-categ_Cs.c: Likewise.
49208         * tests/unictype/test-categ_L.c: Likewise.
49209         * tests/unictype/test-categ_Ll.c: Likewise.
49210         * tests/unictype/test-categ_Lm.c: Likewise.
49211         * tests/unictype/test-categ_Lo.c: Likewise.
49212         * tests/unictype/test-categ_Lt.c: Likewise.
49213         * tests/unictype/test-categ_Lu.c: Likewise.
49214         * tests/unictype/test-categ_M.c: Likewise.
49215         * tests/unictype/test-categ_Mc.c: Likewise.
49216         * tests/unictype/test-categ_Me.c: Likewise.
49217         * tests/unictype/test-categ_Mn.c: Likewise.
49218         * tests/unictype/test-categ_N.c: Likewise.
49219         * tests/unictype/test-categ_Nd.c: Likewise.
49220         * tests/unictype/test-categ_Nl.c: Likewise.
49221         * tests/unictype/test-categ_No.c: Likewise.
49222         * tests/unictype/test-categ_P.c: Likewise.
49223         * tests/unictype/test-categ_Pc.c: Likewise.
49224         * tests/unictype/test-categ_Pd.c: Likewise.
49225         * tests/unictype/test-categ_Pe.c: Likewise.
49226         * tests/unictype/test-categ_Pf.c: Likewise.
49227         * tests/unictype/test-categ_Pi.c: Likewise.
49228         * tests/unictype/test-categ_Po.c: Likewise.
49229         * tests/unictype/test-categ_Ps.c: Likewise.
49230         * tests/unictype/test-categ_S.c: Likewise.
49231         * tests/unictype/test-categ_Sc.c: Likewise.
49232         * tests/unictype/test-categ_Sk.c: Likewise.
49233         * tests/unictype/test-categ_Sm.c: Likewise.
49234         * tests/unictype/test-categ_So.c: Likewise.
49235         * tests/unictype/test-categ_Z.c: Likewise.
49236         * tests/unictype/test-categ_Zl.c: Likewise.
49237         * tests/unictype/test-categ_Zp.c: Likewise.
49238         * tests/unictype/test-categ_Zs.c: Likewise.
49239         * tests/unictype/test-ctype_alnum.c: Likewise.
49240         * tests/unictype/test-ctype_alpha.c: Likewise.
49241         * tests/unictype/test-ctype_blank.c: Likewise.
49242         * tests/unictype/test-ctype_cntrl.c: Likewise.
49243         * tests/unictype/test-ctype_digit.c: Likewise.
49244         * tests/unictype/test-ctype_graph.c: Likewise.
49245         * tests/unictype/test-ctype_lower.c: Likewise.
49246         * tests/unictype/test-ctype_print.c: Likewise.
49247         * tests/unictype/test-ctype_punct.c: Likewise.
49248         * tests/unictype/test-ctype_space.c: Likewise.
49249         * tests/unictype/test-ctype_upper.c: Likewise.
49250         * tests/unictype/test-ctype_xdigit.c: Likewise.
49251         * tests/unictype/test-decdigit.h: Likewise.
49252         * tests/unictype/test-digit.h: Likewise.
49253         * tests/unictype/test-numeric.h: Likewise.
49254         * tests/unictype/test-pr_alphabetic.c: Likewise.
49255         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49256         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49257         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49258         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49259         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49260         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49261         * tests/unictype/test-pr_bidi_control.c: Likewise.
49262         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49263         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49264         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49265         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49266         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49267         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49268         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49269         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49270         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49271         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49272         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49273         * tests/unictype/test-pr_combining.c: Likewise.
49274         * tests/unictype/test-pr_composite.c: Likewise.
49275         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49276         * tests/unictype/test-pr_dash.c: Likewise.
49277         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49278         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49279         * tests/unictype/test-pr_deprecated.c: Likewise.
49280         * tests/unictype/test-pr_diacritic.c: Likewise.
49281         * tests/unictype/test-pr_extender.c: Likewise.
49282         * tests/unictype/test-pr_format_control.c: Likewise.
49283         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49284         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49285         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49286         * tests/unictype/test-pr_hex_digit.c: Likewise.
49287         * tests/unictype/test-pr_hyphen.c: Likewise.
49288         * tests/unictype/test-pr_id_continue.c: Likewise.
49289         * tests/unictype/test-pr_id_start.c: Likewise.
49290         * tests/unictype/test-pr_ideographic.c: Likewise.
49291         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49292         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49293         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49294         * tests/unictype/test-pr_iso_control.c: Likewise.
49295         * tests/unictype/test-pr_join_control.c: Likewise.
49296         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49297         * tests/unictype/test-pr_line_separator.c: Likewise.
49298         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49299         * tests/unictype/test-pr_lowercase.c: Likewise.
49300         * tests/unictype/test-pr_math.c: Likewise.
49301         * tests/unictype/test-pr_non_break.c: Likewise.
49302         * tests/unictype/test-pr_not_a_character.c: Likewise.
49303         * tests/unictype/test-pr_numeric.c: Likewise.
49304         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49305         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49306         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49307         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49308         * tests/unictype/test-pr_other_id_start.c: Likewise.
49309         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49310         * tests/unictype/test-pr_other_math.c: Likewise.
49311         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49312         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49313         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49314         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49315         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49316         * tests/unictype/test-pr_private_use.c: Likewise.
49317         * tests/unictype/test-pr_punctuation.c: Likewise.
49318         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49319         * tests/unictype/test-pr_radical.c: Likewise.
49320         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49321         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49322         * tests/unictype/test-pr_space.c: Likewise.
49323         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49324         * tests/unictype/test-pr_titlecase.c: Likewise.
49325         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49326         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49327         * tests/unictype/test-pr_uppercase.c: Likewise.
49328         * tests/unictype/test-pr_variation_selector.c: Likewise.
49329         * tests/unictype/test-pr_white_space.c: Likewise.
49330         * tests/unictype/test-pr_xid_continue.c: Likewise.
49331         * tests/unictype/test-pr_xid_start.c: Likewise.
49332         * tests/unictype/test-pr_zero_width.c: Likewise.
49333         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49334         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49335
49336 2007-11-12  Bruno Haible  <bruno@clisp.org>
49337
49338         Unicode character classification functions.
49339         * lib/unictype.h: New file.
49340         * modules/unictype/base: New file.
49341         * modules/unictype/category-L: New file.
49342         * modules/unictype/category-Lu: New file.
49343         * modules/unictype/category-Ll: New file.
49344         * modules/unictype/category-Lt: New file.
49345         * modules/unictype/category-Lm: New file.
49346         * modules/unictype/category-Lo: New file.
49347         * modules/unictype/category-M: New file.
49348         * modules/unictype/category-Mn: New file.
49349         * modules/unictype/category-Mc: New file.
49350         * modules/unictype/category-Me: New file.
49351         * modules/unictype/category-N: New file.
49352         * modules/unictype/category-Nd: New file.
49353         * modules/unictype/category-Nl: New file.
49354         * modules/unictype/category-No: New file.
49355         * modules/unictype/category-P: New file.
49356         * modules/unictype/category-Pc: New file.
49357         * modules/unictype/category-Pd: New file.
49358         * modules/unictype/category-Ps: New file.
49359         * modules/unictype/category-Pe: New file.
49360         * modules/unictype/category-Pi: New file.
49361         * modules/unictype/category-Pf: New file.
49362         * modules/unictype/category-Po: New file.
49363         * modules/unictype/category-S: New file.
49364         * modules/unictype/category-Sm: New file.
49365         * modules/unictype/category-Sc: New file.
49366         * modules/unictype/category-Sk: New file.
49367         * modules/unictype/category-So: New file.
49368         * modules/unictype/category-Z: New file.
49369         * modules/unictype/category-Zs: New file.
49370         * modules/unictype/category-Zl: New file.
49371         * modules/unictype/category-Zp: New file.
49372         * modules/unictype/category-C: New file.
49373         * modules/unictype/category-Cc: New file.
49374         * modules/unictype/category-Cf: New file.
49375         * modules/unictype/category-Cs: New file.
49376         * modules/unictype/category-Co: New file.
49377         * modules/unictype/category-Cn: New file.
49378         * modules/unictype/category-or: New file.
49379         * modules/unictype/category-of: New file.
49380         * modules/unictype/category-test: New file.
49381         * modules/unictype/category-test-withtable: New file.
49382         * modules/unictype/category-byname: New file.
49383         * modules/unictype/category-none: New file.
49384         * modules/unictype/category-and: New file.
49385         * modules/unictype/category-and-not: New file.
49386         * modules/unictype/category-name: New file.
49387         * modules/unictype/combining-class: New file.
49388         * modules/unictype/category-all: New file.
49389         * modules/unictype/bidicategory-all: New file.
49390         * modules/unictype/bidicategory-byname: New file.
49391         * modules/unictype/bidicategory-name: New file.
49392         * modules/unictype/bidicategory-of: New file.
49393         * modules/unictype/bidicategory-test: New file.
49394         * modules/unictype/decimal-digit: New file.
49395         * modules/unictype/digit: New file.
49396         * modules/unictype/numeric: New file.
49397         * modules/unictype/mirror: New file.
49398         * modules/unictype/property-white-space: New file.
49399         * modules/unictype/property-alphabetic: New file.
49400         * modules/unictype/property-other-alphabetic: New file.
49401         * modules/unictype/property-not-a-character: New file.
49402         * modules/unictype/property-default-ignorable-code-point: New file.
49403         * modules/unictype/property-other-default-ignorable-code-point: New
49404         file.
49405         * modules/unictype/property-deprecated: New file.
49406         * modules/unictype/property-logical-order-exception: New file.
49407         * modules/unictype/property-variation-selector: New file.
49408         * modules/unictype/property-private-use: New file.
49409         * modules/unictype/property-unassigned-code-value: New file.
49410         * modules/unictype/property-uppercase: New file.
49411         * modules/unictype/property-other-uppercase: New file.
49412         * modules/unictype/property-lowercase: New file.
49413         * modules/unictype/property-other-lowercase: New file.
49414         * modules/unictype/property-titlecase: New file.
49415         * modules/unictype/property-soft-dotted: New file.
49416         * modules/unictype/property-id-start: New file.
49417         * modules/unictype/property-other-id-start: New file.
49418         * modules/unictype/property-id-continue: New file.
49419         * modules/unictype/property-other-id-continue: New file.
49420         * modules/unictype/property-xid-start: New file.
49421         * modules/unictype/property-xid-continue: New file.
49422         * modules/unictype/property-pattern-white-space: New file.
49423         * modules/unictype/property-pattern-syntax: New file.
49424         * modules/unictype/property-join-control: New file.
49425         * modules/unictype/property-grapheme-base: New file.
49426         * modules/unictype/property-grapheme-extend: New file.
49427         * modules/unictype/property-other-grapheme-extend: New file.
49428         * modules/unictype/property-grapheme-link: New file.
49429         * modules/unictype/property-bidi-control: New file.
49430         * modules/unictype/property-bidi-left-to-right: New file.
49431         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49432         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49433         * modules/unictype/property-bidi-european-digit: New file.
49434         * modules/unictype/property-bidi-eur-num-separator: New file.
49435         * modules/unictype/property-bidi-eur-num-terminator: New file.
49436         * modules/unictype/property-bidi-arabic-digit: New file.
49437         * modules/unictype/property-bidi-common-separator: New file.
49438         * modules/unictype/property-bidi-block-separator: New file.
49439         * modules/unictype/property-bidi-segment-separator: New file.
49440         * modules/unictype/property-bidi-whitespace: New file.
49441         * modules/unictype/property-bidi-non-spacing-mark: New file.
49442         * modules/unictype/property-bidi-boundary-neutral: New file.
49443         * modules/unictype/property-bidi-pdf: New file.
49444         * modules/unictype/property-bidi-embedding-or-override: New file.
49445         * modules/unictype/property-bidi-other-neutral: New file.
49446         * modules/unictype/property-hex-digit: New file.
49447         * modules/unictype/property-ascii-hex-digit: New file.
49448         * modules/unictype/property-ideographic: New file.
49449         * modules/unictype/property-unified-ideograph: New file.
49450         * modules/unictype/property-radical: New file.
49451         * modules/unictype/property-ids-binary-operator: New file.
49452         * modules/unictype/property-ids-trinary-operator: New file.
49453         * modules/unictype/property-zero-width: New file.
49454         * modules/unictype/property-space: New file.
49455         * modules/unictype/property-non-break: New file.
49456         * modules/unictype/property-iso-control: New file.
49457         * modules/unictype/property-format-control: New file.
49458         * modules/unictype/property-dash: New file.
49459         * modules/unictype/property-hyphen: New file.
49460         * modules/unictype/property-punctuation: New file.
49461         * modules/unictype/property-line-separator: New file.
49462         * modules/unictype/property-paragraph-separator: New file.
49463         * modules/unictype/property-quotation-mark: New file.
49464         * modules/unictype/property-sentence-terminal: New file.
49465         * modules/unictype/property-terminal-punctuation: New file.
49466         * modules/unictype/property-currency-symbol: New file.
49467         * modules/unictype/property-math: New file.
49468         * modules/unictype/property-other-math: New file.
49469         * modules/unictype/property-paired-punctuation: New file.
49470         * modules/unictype/property-left-of-pair: New file.
49471         * modules/unictype/property-combining: New file.
49472         * modules/unictype/property-composite: New file.
49473         * modules/unictype/property-decimal-digit: New file.
49474         * modules/unictype/property-numeric: New file.
49475         * modules/unictype/property-diacritic: New file.
49476         * modules/unictype/property-extender: New file.
49477         * modules/unictype/property-ignorable-control: New file.
49478         * modules/unictype/property-test: New file.
49479         * modules/unictype/property-byname: New file.
49480         * modules/unictype/property-all: New file.
49481         * modules/unictype/scripts: New file.
49482         * modules/unictype/scripts-all: New file.
49483         * modules/unictype/block-of: New file.
49484         * modules/unictype/block-test: New file.
49485         * modules/unictype/block-list: New file.
49486         * modules/unictype/block-all: New file.
49487         * modules/unictype/syntax-c-whitespace: New file.
49488         * modules/unictype/syntax-java-whitespace: New file.
49489         * modules/unictype/syntax-c-ident: New file.
49490         * modules/unictype/syntax-java-ident: New file.
49491         * modules/unictype/ctype-alnum: New file.
49492         * modules/unictype/ctype-alpha: New file.
49493         * modules/unictype/ctype-cntrl: New file.
49494         * modules/unictype/ctype-digit: New file.
49495         * modules/unictype/ctype-graph: New file.
49496         * modules/unictype/ctype-lower: New file.
49497         * modules/unictype/ctype-print: New file.
49498         * modules/unictype/ctype-punct: New file.
49499         * modules/unictype/ctype-space: New file.
49500         * modules/unictype/ctype-upper: New file.
49501         * modules/unictype/ctype-xdigit: New file.
49502         * modules/unictype/ctype-blank: New file.
49503         * lib/unictype/bidi_byname.c: New file.
49504         * lib/unictype/bidi_name.c: New file.
49505         * lib/unictype/bidi_of.c: New file.
49506         * lib/unictype/bidi_test.c: New file.
49507         * lib/unictype/bitmap.h: New file.
49508         * lib/unictype/block_test.c: New file.
49509         * lib/unictype/blocks.c: New file.
49510         * lib/unictype/categ_C.c: New file.
49511         * lib/unictype/categ_Cc.c: New file.
49512         * lib/unictype/categ_Cf.c: New file.
49513         * lib/unictype/categ_Cn.c: New file.
49514         * lib/unictype/categ_Co.c: New file.
49515         * lib/unictype/categ_Cs.c: New file.
49516         * lib/unictype/categ_L.c: New file.
49517         * lib/unictype/categ_Ll.c: New file.
49518         * lib/unictype/categ_Lm.c: New file.
49519         * lib/unictype/categ_Lo.c: New file.
49520         * lib/unictype/categ_Lt.c: New file.
49521         * lib/unictype/categ_Lu.c: New file.
49522         * lib/unictype/categ_M.c: New file.
49523         * lib/unictype/categ_Mc.c: New file.
49524         * lib/unictype/categ_Me.c: New file.
49525         * lib/unictype/categ_Mn.c: New file.
49526         * lib/unictype/categ_N.c: New file.
49527         * lib/unictype/categ_Nd.c: New file.
49528         * lib/unictype/categ_Nl.c: New file.
49529         * lib/unictype/categ_No.c: New file.
49530         * lib/unictype/categ_P.c: New file.
49531         * lib/unictype/categ_Pc.c: New file.
49532         * lib/unictype/categ_Pd.c: New file.
49533         * lib/unictype/categ_Pe.c: New file.
49534         * lib/unictype/categ_Pf.c: New file.
49535         * lib/unictype/categ_Pi.c: New file.
49536         * lib/unictype/categ_Po.c: New file.
49537         * lib/unictype/categ_Ps.c: New file.
49538         * lib/unictype/categ_S.c: New file.
49539         * lib/unictype/categ_Sc.c: New file.
49540         * lib/unictype/categ_Sk.c: New file.
49541         * lib/unictype/categ_Sm.c: New file.
49542         * lib/unictype/categ_So.c: New file.
49543         * lib/unictype/categ_Z.c: New file.
49544         * lib/unictype/categ_Zl.c: New file.
49545         * lib/unictype/categ_Zp.c: New file.
49546         * lib/unictype/categ_Zs.c: New file.
49547         * lib/unictype/categ_and.c: New file.
49548         * lib/unictype/categ_and_not.c: New file.
49549         * lib/unictype/categ_byname.c: New file.
49550         * lib/unictype/categ_name.c: New file.
49551         * lib/unictype/categ_none.c: New file.
49552         * lib/unictype/categ_of.c: New file.
49553         * lib/unictype/categ_or.c: New file.
49554         * lib/unictype/categ_test.c: New file.
49555         * lib/unictype/combining.c: New file.
49556         * lib/unictype/ctype_alnum.c: New file.
49557         * lib/unictype/ctype_alpha.c: New file.
49558         * lib/unictype/ctype_blank.c: New file.
49559         * lib/unictype/ctype_cntrl.c: New file.
49560         * lib/unictype/ctype_digit.c: New file.
49561         * lib/unictype/ctype_graph.c: New file.
49562         * lib/unictype/ctype_lower.c: New file.
49563         * lib/unictype/ctype_print.c: New file.
49564         * lib/unictype/ctype_punct.c: New file.
49565         * lib/unictype/ctype_space.c: New file.
49566         * lib/unictype/ctype_upper.c: New file.
49567         * lib/unictype/ctype_xdigit.c: New file.
49568         * lib/unictype/decdigit.c: New file.
49569         * lib/unictype/digit.c: New file.
49570         * lib/unictype/identsyntaxmap.h: New file.
49571         * lib/unictype/mirror.c: New file.
49572         * lib/unictype/numeric.c: New file.
49573         * lib/unictype/pr_alphabetic.c: New file.
49574         * lib/unictype/pr_ascii_hex_digit.c: New file.
49575         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49576         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49577         * lib/unictype/pr_bidi_block_separator.c: New file.
49578         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49579         * lib/unictype/pr_bidi_common_separator.c: New file.
49580         * lib/unictype/pr_bidi_control.c: New file.
49581         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49582         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49583         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49584         * lib/unictype/pr_bidi_european_digit.c: New file.
49585         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49586         * lib/unictype/pr_bidi_left_to_right.c: New file.
49587         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49588         * lib/unictype/pr_bidi_other_neutral.c: New file.
49589         * lib/unictype/pr_bidi_pdf.c: New file.
49590         * lib/unictype/pr_bidi_segment_separator.c: New file.
49591         * lib/unictype/pr_bidi_whitespace.c: New file.
49592         * lib/unictype/pr_byname.c: New file.
49593         * lib/unictype/pr_byname.gperf: New file.
49594         * lib/unictype/pr_combining.c: New file.
49595         * lib/unictype/pr_composite.c: New file.
49596         * lib/unictype/pr_currency_symbol.c: New file.
49597         * lib/unictype/pr_dash.c: New file.
49598         * lib/unictype/pr_decimal_digit.c: New file.
49599         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49600         * lib/unictype/pr_deprecated.c: New file.
49601         * lib/unictype/pr_diacritic.c: New file.
49602         * lib/unictype/pr_extender.c: New file.
49603         * lib/unictype/pr_format_control.c: New file.
49604         * lib/unictype/pr_grapheme_base.c: New file.
49605         * lib/unictype/pr_grapheme_extend.c: New file.
49606         * lib/unictype/pr_grapheme_link.c: New file.
49607         * lib/unictype/pr_hex_digit.c: New file.
49608         * lib/unictype/pr_hyphen.c: New file.
49609         * lib/unictype/pr_id_continue.c: New file.
49610         * lib/unictype/pr_id_start.c: New file.
49611         * lib/unictype/pr_ideographic.c: New file.
49612         * lib/unictype/pr_ids_binary_operator.c: New file.
49613         * lib/unictype/pr_ids_trinary_operator.c: New file.
49614         * lib/unictype/pr_ignorable_control.c: New file.
49615         * lib/unictype/pr_iso_control.c: New file.
49616         * lib/unictype/pr_join_control.c: New file.
49617         * lib/unictype/pr_left_of_pair.c: New file.
49618         * lib/unictype/pr_line_separator.c: New file.
49619         * lib/unictype/pr_logical_order_exception.c: New file.
49620         * lib/unictype/pr_lowercase.c: New file.
49621         * lib/unictype/pr_math.c: New file.
49622         * lib/unictype/pr_non_break.c: New file.
49623         * lib/unictype/pr_not_a_character.c: New file.
49624         * lib/unictype/pr_numeric.c: New file.
49625         * lib/unictype/pr_other_alphabetic.c: New file.
49626         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49627         * lib/unictype/pr_other_grapheme_extend.c: New file.
49628         * lib/unictype/pr_other_id_continue.c: New file.
49629         * lib/unictype/pr_other_id_start.c: New file.
49630         * lib/unictype/pr_other_lowercase.c: New file.
49631         * lib/unictype/pr_other_math.c: New file.
49632         * lib/unictype/pr_other_uppercase.c: New file.
49633         * lib/unictype/pr_paired_punctuation.c: New file.
49634         * lib/unictype/pr_paragraph_separator.c: New file.
49635         * lib/unictype/pr_pattern_syntax.c: New file.
49636         * lib/unictype/pr_pattern_white_space.c: New file.
49637         * lib/unictype/pr_private_use.c: New file.
49638         * lib/unictype/pr_punctuation.c: New file.
49639         * lib/unictype/pr_quotation_mark.c: New file.
49640         * lib/unictype/pr_radical.c: New file.
49641         * lib/unictype/pr_sentence_terminal.c: New file.
49642         * lib/unictype/pr_soft_dotted.c: New file.
49643         * lib/unictype/pr_space.c: New file.
49644         * lib/unictype/pr_terminal_punctuation.c: New file.
49645         * lib/unictype/pr_test.c: New file.
49646         * lib/unictype/pr_titlecase.c: New file.
49647         * lib/unictype/pr_unassigned_code_value.c: New file.
49648         * lib/unictype/pr_unified_ideograph.c: New file.
49649         * lib/unictype/pr_uppercase.c: New file.
49650         * lib/unictype/pr_variation_selector.c: New file.
49651         * lib/unictype/pr_white_space.c: New file.
49652         * lib/unictype/pr_xid_continue.c: New file.
49653         * lib/unictype/pr_xid_start.c: New file.
49654         * lib/unictype/pr_zero_width.c: New file.
49655         * lib/unictype/scripts.c: New file.
49656         * lib/unictype/sy_c_ident.c: New file.
49657         * lib/unictype/sy_c_whitespace.c: New file.
49658         * lib/unictype/sy_java_ident.c: New file.
49659         * lib/unictype/sy_java_whitespace.c: New file.
49660
49661         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49662         Unicode 5.0.0.
49663         * lib/unictype/blocks.h: Likewise.
49664         * lib/unictype/categ_C.h: Likewise.
49665         * lib/unictype/categ_Cc.h: Likewise.
49666         * lib/unictype/categ_Cf.h: Likewise.
49667         * lib/unictype/categ_Cn.h: Likewise.
49668         * lib/unictype/categ_Co.h: Likewise.
49669         * lib/unictype/categ_Cs.h: Likewise.
49670         * lib/unictype/categ_L.h: Likewise.
49671         * lib/unictype/categ_Ll.h: Likewise.
49672         * lib/unictype/categ_Lm.h: Likewise.
49673         * lib/unictype/categ_Lo.h: Likewise.
49674         * lib/unictype/categ_Lt.h: Likewise.
49675         * lib/unictype/categ_Lu.h: Likewise.
49676         * lib/unictype/categ_M.h: Likewise.
49677         * lib/unictype/categ_Mc.h: Likewise.
49678         * lib/unictype/categ_Me.h: Likewise.
49679         * lib/unictype/categ_Mn.h: Likewise.
49680         * lib/unictype/categ_N.h: Likewise.
49681         * lib/unictype/categ_Nd.h: Likewise.
49682         * lib/unictype/categ_Nl.h: Likewise.
49683         * lib/unictype/categ_No.h: Likewise.
49684         * lib/unictype/categ_P.h: Likewise.
49685         * lib/unictype/categ_Pc.h: Likewise.
49686         * lib/unictype/categ_Pd.h: Likewise.
49687         * lib/unictype/categ_Pe.h: Likewise.
49688         * lib/unictype/categ_Pf.h: Likewise.
49689         * lib/unictype/categ_Pi.h: Likewise.
49690         * lib/unictype/categ_Po.h: Likewise.
49691         * lib/unictype/categ_Ps.h: Likewise.
49692         * lib/unictype/categ_S.h: Likewise.
49693         * lib/unictype/categ_Sc.h: Likewise.
49694         * lib/unictype/categ_Sk.h: Likewise.
49695         * lib/unictype/categ_Sm.h: Likewise.
49696         * lib/unictype/categ_So.h: Likewise.
49697         * lib/unictype/categ_Z.h: Likewise.
49698         * lib/unictype/categ_Zl.h: Likewise.
49699         * lib/unictype/categ_Zp.h: Likewise.
49700         * lib/unictype/categ_Zs.h: Likewise.
49701         * lib/unictype/categ_of.h: Likewise.
49702         * lib/unictype/combining.h: Likewise.
49703         * lib/unictype/ctype_alnum.h: Likewise.
49704         * lib/unictype/ctype_alpha.h: Likewise.
49705         * lib/unictype/ctype_blank.h: Likewise.
49706         * lib/unictype/ctype_cntrl.h: Likewise.
49707         * lib/unictype/ctype_digit.h: Likewise.
49708         * lib/unictype/ctype_graph.h: Likewise.
49709         * lib/unictype/ctype_lower.h: Likewise.
49710         * lib/unictype/ctype_print.h: Likewise.
49711         * lib/unictype/ctype_punct.h: Likewise.
49712         * lib/unictype/ctype_space.h: Likewise.
49713         * lib/unictype/ctype_upper.h: Likewise.
49714         * lib/unictype/ctype_xdigit.h: Likewise.
49715         * lib/unictype/decdigit.h: Likewise.
49716         * lib/unictype/digit.h: Likewise.
49717         * lib/unictype/mirror.h: Likewise.
49718         * lib/unictype/numeric.h: Likewise.
49719         * lib/unictype/pr_alphabetic.h: Likewise.
49720         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49721         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49722         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49723         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49724         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49725         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49726         * lib/unictype/pr_bidi_control.h: Likewise.
49727         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49728         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49729         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49730         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49731         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49732         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49733         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49734         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49735         * lib/unictype/pr_bidi_pdf.h: Likewise.
49736         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49737         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49738         * lib/unictype/pr_combining.h: Likewise.
49739         * lib/unictype/pr_composite.h: Likewise.
49740         * lib/unictype/pr_currency_symbol.h: Likewise.
49741         * lib/unictype/pr_dash.h: Likewise.
49742         * lib/unictype/pr_decimal_digit.h: Likewise.
49743         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49744         * lib/unictype/pr_deprecated.h: Likewise.
49745         * lib/unictype/pr_diacritic.h: Likewise.
49746         * lib/unictype/pr_extender.h: Likewise.
49747         * lib/unictype/pr_format_control.h: Likewise.
49748         * lib/unictype/pr_grapheme_base.h: Likewise.
49749         * lib/unictype/pr_grapheme_extend.h: Likewise.
49750         * lib/unictype/pr_grapheme_link.h: Likewise.
49751         * lib/unictype/pr_hex_digit.h: Likewise.
49752         * lib/unictype/pr_hyphen.h: Likewise.
49753         * lib/unictype/pr_id_continue.h: Likewise.
49754         * lib/unictype/pr_id_start.h: Likewise.
49755         * lib/unictype/pr_ideographic.h: Likewise.
49756         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49757         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49758         * lib/unictype/pr_ignorable_control.h: Likewise.
49759         * lib/unictype/pr_iso_control.h: Likewise.
49760         * lib/unictype/pr_join_control.h: Likewise.
49761         * lib/unictype/pr_left_of_pair.h: Likewise.
49762         * lib/unictype/pr_line_separator.h: Likewise.
49763         * lib/unictype/pr_logical_order_exception.h: Likewise.
49764         * lib/unictype/pr_lowercase.h: Likewise.
49765         * lib/unictype/pr_math.h: Likewise.
49766         * lib/unictype/pr_non_break.h: Likewise.
49767         * lib/unictype/pr_not_a_character.h: Likewise.
49768         * lib/unictype/pr_numeric.h: Likewise.
49769         * lib/unictype/pr_other_alphabetic.h: Likewise.
49770         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49771         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49772         * lib/unictype/pr_other_id_continue.h: Likewise.
49773         * lib/unictype/pr_other_id_start.h: Likewise.
49774         * lib/unictype/pr_other_lowercase.h: Likewise.
49775         * lib/unictype/pr_other_math.h: Likewise.
49776         * lib/unictype/pr_other_uppercase.h: Likewise.
49777         * lib/unictype/pr_paired_punctuation.h: Likewise.
49778         * lib/unictype/pr_paragraph_separator.h: Likewise.
49779         * lib/unictype/pr_pattern_syntax.h: Likewise.
49780         * lib/unictype/pr_pattern_white_space.h: Likewise.
49781         * lib/unictype/pr_private_use.h: Likewise.
49782         * lib/unictype/pr_punctuation.h: Likewise.
49783         * lib/unictype/pr_quotation_mark.h: Likewise.
49784         * lib/unictype/pr_radical.h: Likewise.
49785         * lib/unictype/pr_sentence_terminal.h: Likewise.
49786         * lib/unictype/pr_soft_dotted.h: Likewise.
49787         * lib/unictype/pr_space.h: Likewise.
49788         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49789         * lib/unictype/pr_titlecase.h: Likewise.
49790         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49791         * lib/unictype/pr_unified_ideograph.h: Likewise.
49792         * lib/unictype/pr_uppercase.h: Likewise.
49793         * lib/unictype/pr_variation_selector.h: Likewise.
49794         * lib/unictype/pr_white_space.h: Likewise.
49795         * lib/unictype/pr_xid_continue.h: Likewise.
49796         * lib/unictype/pr_xid_start.h: Likewise.
49797         * lib/unictype/pr_zero_width.h: Likewise.
49798         * lib/unictype/scripts.h: Likewise.
49799         * lib/unictype/scripts_byname.gperf: Likewise.
49800         * lib/unictype/sy_c_ident.h: Likewise.
49801         * lib/unictype/sy_c_whitespace.h: Likewise.
49802         * lib/unictype/sy_java_ident.h: Likewise.
49803         * lib/unictype/sy_java_whitespace.h: Likewise.
49804
49805         * lib/unictype/Makefile: New file.
49806         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49807         glibc.
49808         * lib/unictype/3level.h: New file, copied from glibc.
49809         * lib/unictype/3levelbit.h: New file.
49810
49811 2007-11-11  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/gperf: New file.
49814         * modules/iconv_open (Depends-on): Add it.
49815         (Makefile.am): Remove the GPERF definition.
49816
49817 2007-11-11  Bruno Haible  <bruno@clisp.org>
49818
49819         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49820         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49821
49822 2007-11-11  Bruno Haible  <bruno@clisp.org>
49823
49824         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49825         (usage): Remove function.
49826
49827 2007-11-11  Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49830         gl_FUNC_CEILF_LIBS.
49831         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49832         gl_FUNC_CEIL_LIBS.
49833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49834         gl_FUNC_CEILL_LIBS.
49835         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49836         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49837         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49838
49839 2007-11-11  Bruno Haible  <bruno@clisp.org>
49840
49841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49842         roundf were declared but do not exist on functions.
49843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49844         roundl were declared but do not exist on functions.
49845         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49846         HAVE_FLOORL_AND_CEILL, respectively.
49847         Needed for Sun C on Solaris 10.
49848
49849 2007-11-11  Bruno Haible  <bruno@clisp.org>
49850
49851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49852         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49853         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49854         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49855         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49856         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49857         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49858         HAVE_DECL_ROUNDF.
49859         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49860         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49862         of HAVE_DECL_ROUND*.
49863         * modules/math (Makefile.am): Update.
49864
49865 2007-11-10  Bruno Haible  <bruno@clisp.org>
49866
49867         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49868         ptrdiff_t as m4/intl.m4.
49869
49870 2007-11-10  Jim Meyering  <meyering@redhat.com>
49871
49872         Avoid link failure for the argmatch test.
49873         * tests/test-argmatch.c (usage): Define function to avoid a link
49874         failure: argmatch_die requires a usage function.
49875
49876 2007-11-09  Bruno Haible  <bruno@clisp.org>
49877
49878         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49879         * doc/functions/vsnprintf.texi: Likewise.
49880         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49881         with a size argument < 2.
49882
49883 2007-11-09  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49886         buffer. Fixes an inefficiency introduced on 2007-11-03.
49887
49888 2007-11-09  Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49891         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49892
49893 2007-11-08  Jim Meyering  <meyering@redhat.com>
49894
49895         Change cache variable name prefix "jm_" to "gl_" everywhere.
49896         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49897         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49898         * m4/uptime.m4: s/gl_/jm_/
49899
49900 2007-11-07  Bruno Haible  <bruno@clisp.org>
49901
49902         Update to GNU gettext 0.17.
49903         * m4/intl.m4: Update to GNU gettext 0.17.
49904         * m4/po.m4: Likewise.
49905         * modules/gettext (Files): Remove m4/ulonglong.m4.
49906         (configure.ac): Require gettext infrastructure from version 0.17.
49907
49908 2007-11-06  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49911         symbolic values are not defined in a public header.
49912         * lib/freadable.c (freadable) [QNX]: Likewise.
49913         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49914         * lib/freading.c (freading) [QNX]: Likewise.
49915         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49916         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49917         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49918         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49919         Reported by Alain Magloire.
49920
49921         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49922
49923 2007-11-05  Bruno Haible  <bruno@clisp.org>
49924
49925         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49926         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49927         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49928         Reported by Eric Blake.
49929
49930 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49931             Bruno Haible  <bruno@clisp.org>
49932
49933         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49934         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49935         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49936         (malloc): Undefine also before including <stdlib.h>.
49937         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49938         Needed on OSF/1 4.0.
49939
49940 2007-11-05  Jim Meyering  <meyering@redhat.com>
49941
49942         git-version-gen: sync from coreutils.
49943         * build-aux/git-version-gen: Add comments.
49944         Change the first '-' to '.' in the snapshot version string,
49945         e.g., 6.9-377-08144 -> 6.9.377-08144
49946         Remove first parameter.
49947         Don't declare a version "-dirty" merely because a time
49948         stamp has changed.
49949
49950 2007-11-04  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/lock.h: Protect all macro definitions containing an 'if'
49953         statement through a "do { ... } while (0)".
49954         * lib/tls.h: Likewise.
49955
49956 2007-11-04  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49959
49960 2007-11-04  Bruno Haible  <bruno@clisp.org>
49961
49962         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49963         * modules/fprintf-posix (Depends-on): Add nocrash.
49964         * modules/snprintf-posix (Depends-on): Likewise.
49965         * modules/sprintf-posix (Depends-on): Likewise.
49966         * modules/vasnprintf-posix (Depends-on): Likewise.
49967         * modules/vasprintf-posix (Depends-on): Likewise.
49968         * modules/vfprintf-posix (Depends-on): Likewise.
49969         * modules/vsnprintf-posix (Depends-on): Likewise.
49970         * modules/vsprintf-posix (Depends-on): Likewise.
49971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49977         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49978
49979 2007-11-04  Bruno Haible  <bruno@clisp.org>
49980
49981         * modules/nocrash: New file.
49982         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49983         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49984
49985 2007-11-04  Bruno Haible  <bruno@clisp.org>
49986
49987         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49988         precision handling.
49989         * tests/test-vasprintf-posix.c (test_function): Likewise.
49990         * tests/test-snprintf-posix.h (test_function): Likewise.
49991         * tests/test-sprintf-posix.h (test_function): Likewise.
49992
49993         Fix *printf behaviour for large precisions on mingw and BeOS.
49994         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49995         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49997         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49999         gl_PRINTF_PRECISION and test its result. Invoke
50000         gl_PREREQ_VASNPRINTF_PRECISION.
50001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50008         * doc/functions/fprintf.texi: Update.
50009         * doc/functions/printf.texi: Update.
50010         * doc/functions/snprintf.texi: Update.
50011         * doc/functions/sprintf.texi: Update.
50012         * doc/functions/vfprintf.texi: Update.
50013         * doc/functions/vprintf.texi: Update.
50014         * doc/functions/vsnprintf.texi: Update.
50015         * doc/functions/vsprintf.texi: Update.
50016
50017 2007-11-04  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50020
50021 2007-11-04  Bruno Haible  <bruno@clisp.org>
50022
50023         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50024         Reported by Sylvain Beucler <beuc@gnu.org>.
50025
50026 2007-11-03  Bruno Haible  <bruno@clisp.org>
50027
50028         * tests/test-fprintf-posix2.sh: New file.
50029         * tests/test-fprintf-posix2.c: New file.
50030         * modules/fprintf-posix-tests (Files): Add them.
50031         (TESTS): Add test-fprintf-posix2.sh.
50032         (configure.ac): Check for getrlimit and setrlimit.
50033         (check_PROGRAMS): Add test-fprintf-posix2.
50034
50035         * tests/test-printf-posix2.sh: New file.
50036         * tests/test-printf-posix2.c: New file.
50037         * modules/printf-posix-tests (Files): Add them.
50038         (TESTS): Add test-printf-posix2.sh.
50039         (configure.ac): Check for getrlimit and setrlimit.
50040         (check_PROGRAMS): Add test-printf-posix2.
50041
50042         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50043         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50044         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50045         (decode_double): New function, copied from decode_long_double.
50046         (scale10_round_decimal_decoded): New function, extracted from
50047         scale10_round_decimal_long_double.
50048         (scale10_round_decimal_long_double): Use it.
50049         (scale10_round_decimal_double): New function.
50050         (floorlog10): New function.
50051         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50053         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50055         gl_PRINTF_ENOMEM and test its result. Invoke
50056         gl_PREREQ_VASNPRINTF_ENOMEM.
50057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50064         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50065         * modules/snprintf-posix (Depends-on): Likewise.
50066         * modules/sprintf-posix (Depends-on): Likewise.
50067         * modules/vasnprintf-posix (Depends-on): Likewise.
50068         * modules/vasprintf-posix (Depends-on): Likewise.
50069         * modules/vfprintf-posix (Depends-on): Likewise.
50070         * modules/vsnprintf-posix (Depends-on): Likewise.
50071         * modules/vsprintf-posix (Depends-on): Likewise.
50072         * doc/functions/fprintf.texi: Update.
50073         * doc/functions/printf.texi: Update.
50074         * doc/functions/snprintf.texi: Update.
50075         * doc/functions/sprintf.texi: Update.
50076         * doc/functions/vfprintf.texi: Update.
50077         * doc/functions/vprintf.texi: Update.
50078         * doc/functions/vsnprintf.texi: Update.
50079         * doc/functions/vsprintf.texi: Update.
50080
50081 2007-11-03  Bruno Haible  <bruno@clisp.org>
50082
50083         * modules/frexp-nolibm-tests: New file.
50084
50085         * modules/frexp-nolibm: New file.
50086         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50087
50088 2007-11-03  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50091         value is C99 compliant.
50092         Needed for OSF/1 5.1.
50093
50094 2007-11-03  Bruno Haible  <bruno@clisp.org>
50095
50096         Fix out-of-memory handling of vasnprintf.
50097         * lib/printf-parse.c: Include <errno.h>.
50098         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50099         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50100         is already set.
50101
50102 2007-11-02  Eric Blake  <ebb9@byu.net>
50103
50104         Fix tests on cygwin.
50105         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50106
50107 2007-11-01  Bruno Haible  <bruno@clisp.org>
50108
50109         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50110         warning.
50111         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50112         needed for POSIX compatibility.
50113
50114 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50115
50116         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50117         for compatibility with GNU.
50118
50119 2007-11-01  Bruno Haible  <bruno@clisp.org>
50120
50121         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50122         (putenv): Renamed from rpl_putenv. Change argument type from
50123         'const char *' to 'char *'.
50124         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50125         of defining putenv in config.h, just set REPLACE_PUTENV.
50126         * modules/putenv (Depends-on): Add stdlib.
50127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50128         (Include): Use <stdlib.h>.
50129         * lib/stdlib.in.h (putenv): New declaration.
50130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50131         REPLACE_PUTENV.
50132         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50133         REPLACE_PUTENV.
50134         Needed for MacOS X 10.5.0.
50135         Reported by Peter O'Gorman <peter@pogma.com>.
50136
50137 2007-11-01  Jim Meyering  <meyering@redhat.com>
50138
50139         Treat an empty date string exactly like "0".
50140         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50141         if the remaining date string (to be parsed) is empty, use "0".
50142         Reported by Mischa Molhoek and discussed in this thread:
50143         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50144
50145 2007-10-31  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50148         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50149         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50150         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50151         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50152         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50153
50154 2007-10-31  Bruno Haible  <bruno@clisp.org>
50155
50156         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50157         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50158         (AC_TYPE_LONG_LONG_INT): Use it.
50159         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50160         it as well.
50161         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50162         to m4/longlong.m4.
50163         * modules/stdint (Files): Remove m4/ulonglong.m4.
50164         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50165         m4/ulonglong.m4.
50166         * modules/strtoumax (Files): Likewise.
50167
50168 2007-10-30  Bruno Haible  <bruno@clisp.org>
50169
50170         * modules/xvasprintf-posix: New file.
50171         Suggested by Eric Blake.
50172
50173 2007-10-30  Bruno Haible  <bruno@clisp.org>
50174
50175         * modules/xprintf-posix-tests: New file.
50176         * tests/test-xprintf-posix.sh: New file.
50177         * tests/test-xprintf-posix.c: New file.
50178         * tests/test-xfprintf-posix.c: New file.
50179
50180         * modules/xprintf-posix: New file.
50181
50182 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50183
50184         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50185         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50186         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50187
50188 2007-10-29  Bruno Haible  <bruno@clisp.org>
50189
50190         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50191         contain the special marker '_cv_'.
50192         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50193         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50195         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50196         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50197         Reported by Ralf Wildenhues.
50198
50199 2007-10-29  Bruno Haible  <bruno@clisp.org>
50200
50201         * gnulib-tool (func_import): When --lgpl is not specified, set
50202         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50203         GPLv3.
50204         Reported by Simon Josefsson.
50205
50206 2007-10-28  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50209         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50210         HAVE_DECL_ISFINITE.
50211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50212         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50213         HAVE_DECL_ISFINITE.
50214
50215 2007-10-28  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50218         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50219
50220 2007-10-28  Bruno Haible  <bruno@clisp.org>
50221
50222         Fix link errors with Sun C 5.0 on Solaris 10.
50223         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50224         function is declared but not present in the compiler's libm.
50225         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50226         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50227         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50228         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50229         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50230         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50231         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50233         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50234         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50235         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50236         HAVE_DECL_FLOORL.
50237
50238 2007-10-28  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50241         gl_FUNC_FLOORL. Cache the result.
50242         (gl_FUNC_FLOORL): Use it.
50243         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50244         gl_FUNC_CEILL. Cache the result.
50245         (gl_FUNC_CEILL): Use it.
50246
50247         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50248         gl_FUNC_FLOOR. Cache the result.
50249         (gl_FUNC_FLOOR): Use it.
50250         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50251         gl_FUNC_CEIL. Cache the result.
50252         (gl_FUNC_CEIL): Use it.
50253
50254         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50255         gl_FUNC_FLOORF. Cache the result.
50256         (gl_FUNC_FLOORF): Use it.
50257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50258         gl_FUNC_CEILF. Cache the result.
50259         (gl_FUNC_CEILF): Use it.
50260
50261 2007-10-28  Bruno Haible  <bruno@clisp.org>
50262
50263         * gnulib-tool: Allow specifying the LGPL version number through
50264         --lgpl=2 or --lgpl=3.
50265         (func_usage): Document --lgpl with argument.
50266         Handle --lgpl=... arguments.
50267         (func_import): Recognize also gl_LGPL calls with an argument. When
50268         --lgpl=2 is used and the module's license is just LGPL, report an
50269         error. Set sed_transform_lib_file according to the lgpl variable. In
50270         the generated files, use --lgpl or gl_LGPL invocations with argument,
50271         if necessary.
50272         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50273         an LGPv2+ license.
50274         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50275         gl_LGPL macro.
50276
50277 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50278             Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50281         (u16_uctomb_aux): Likewise.
50282         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50283         !HAVE_INLINE.
50284         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50285
50286 2007-10-28  Bruno Haible  <bruno@clisp.org>
50287
50288         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50289         Invoke AM_GETTEXT_OPTION if it exists.
50290         * modules/vasprintf: Likewise.
50291         * modules/verror: Likewise.
50292         * modules/xprintf: Likewise.
50293         * modules/xvasprintf: Likewise.
50294
50295 2007-10-27  Ben Pfaff  <blp@gnu.org>
50296
50297         * lib/math.in.h: Define isfinite macro and prototypes for
50298         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50299         implementations.
50300         * m4/math_h.m4: New substitutions for isfinite module.
50301         * lib/isfinite.c: New file.
50302         * m4/isfinite.m4: New file.
50303         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50304         * modules/isfinite: New file.
50305         * modules/isfinite-tests: New file.
50306         * tests/tests-isfinite.c: New file.
50307         * doc/functions/isfinite.texi: Mention isfinite module.
50308         * MODULES.html.sh: Mention new module.
50309
50310 2007-10-27  Ben Pfaff  <blp@gnu.org>
50311
50312         Ralf Wildenhues reported that Tru64 4.0D declares the round
50313         functions but does not have definitions.
50314         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50315         cannot be found in any library, set the output variable to
50316         "missing" instead of "".
50317         * m4/round.m4: Also use our substitute if we cannot find round in
50318         any library, even if it is declared.
50319         * m4/roundf.m4: Likewise for roundf.
50320         * m4/roundl.m4: Likewise for roundl.
50321         * lib/math.in.h: Undefine roundf, round, roundl before defining
50322         their replacements, to allow for hypothetical systems where these
50323         may be defined as macros but not available in libraries.
50324
50325 2007-10-27  Bruno Haible  <bruno@clisp.org>
50326
50327         * doc/gnulib.texi: Invoke @firstparagraphindent.
50328         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50329         changes in gnulib.
50330         (Source changes): New section.
50331
50332 2007-10-26  Bruno Haible  <bruno@clisp.org>
50333
50334         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50335         borrowed from autoconf.
50336
50337 2007-10-26  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50340         strerror returned the empty string. Needed on HP-UX 11.00.
50341
50342 2007-10-24  Micah Cowan  <micah@cowan.name>
50343
50344         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50345         * build-aux/bootstrap: Remove support for now-unnecessary option,
50346         --cvs-user, and envvars CVS_USER, CVS_RSH.
50347
50348 2007-10-24  Jim Meyering  <meyering@redhat.com>
50349
50350         Avoid diagnostics from sha1sum when there is no cached checksum.
50351         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50352         if the po.s1 file hasn't been created yet.
50353
50354         * build-aux/bootstrap: Sync from coreutils:
50355         2007-10-24  Jim Meyering  <meyering@redhat.com>
50356         Get gnulib from the git repository, not from an obsolete cvs one.
50357         * build-aux/bootstrap: Suggestion from Micah Cowan.
50358         2007-10-04  Jim Meyering  <jim@meyering.net>
50359         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50360         (update_po_files): Work also when there are no .po files in po/.
50361
50362 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50363
50364         * README: Append ".git" to git and cg examples.
50365         Problem reported by Benoit Sigoure.
50366
50367 2007-10-23  Micah Cowan  <micah@cowan.name>
50368
50369         * users.txt: Add wget.
50370
50371 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50372
50373         Fix linking of some unistdio tests on FreeBSD.
50374         * modules/unistdio/u16-vsnprintf-tests
50375         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50376         * modules/unistdio/u16-vsprintf-tests
50377         (test_u16_vsnprintf1_LDADD): Likewise.
50378         * modules/unistdio/u32-vsnprintf-tests
50379         (test_u32_vsnprintf1_LDADD): Likewise.
50380         * modules/unistdio/u32-vsprintf-tests
50381         (test_u32_vsprintf1_LDADD): Likewise.
50382         * modules/unistdio/u8-vsnprintf-tests
50383         (test_u8_vsnprintf1_LDADD): Likewise.
50384         * modules/unistdio/u8-vsprintf-tests
50385         (test_u8_vsprintf1_LDADD): Likewise.
50386         * modules/unistdio/ulc-vsnprintf-tests
50387         (test_ulc_vsnprintf1_LDADD): Likewise.
50388         * modules/unistdio/ulc-vsprintf-tests
50389         (test_ulc_vsprintf1_LDADD): Likewise.
50390
50391         Fix linking of some uniconv tests on FreeBSD.
50392         * modules/uniconv/u16-conv-from-enc-tests
50393         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50394         * modules/uniconv/u16-conv-to-enc-tests
50395         (test_u16_conv_to_enc_LDADD): Likewise.
50396         * modules/uniconv/u16-strconv-from-enc-tests
50397         (test_u16_strconv_from_enc_LDADD): Likewise.
50398         * modules/uniconv/u16-strconv-to-enc-tests
50399         (test_u16_strconv_to_enc_LDADD): Likewise.
50400         * modules/uniconv/u32-conv-from-enc-tests
50401         (test_u32_conv_from_enc_LDADD): Likewise.
50402         * modules/uniconv/u32-conv-to-enc-tests
50403         (test_u32_conv_to_enc_LDADD): Likewise.
50404         * modules/uniconv/u32-strconv-from-enc-tests
50405         (test_u32_strconv_from_enc_LDADD): Likewise.
50406         * modules/uniconv/u32-strconv-to-enc-tests
50407         (test_u32_strconv_to_enc_LDADD): Likewise.
50408         * modules/uniconv/u8-conv-from-enc-tests
50409         (test_u8_conv_from_enc_LDADD): Likewise.
50410         * modules/uniconv/u8-conv-to-enc-tests
50411         (test_u8_conv_to_enc_LDADD): Likewise.
50412         * modules/uniconv/u8-strconv-from-enc-tests
50413         (test_u8_strconv_from_enc_LDADD): Likewise.
50414         * modules/uniconv/u8-strconv-to-enc-tests
50415         (test_u8_strconv_to_enc_LDADD): Likewise.
50416
50417 2007-10-22  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50420         size.
50421
50422 2007-10-22  Eric Blake  <ebb9@byu.net>
50423
50424         Tweak x*printf documentation.
50425         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50426         variable name and comments.
50427         Suggested by Bruno Haible.
50428
50429 2007-10-22  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/acl.c (copy_acl): Fix file name in comment.
50432
50433 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50434
50435         Fix Tru64 problem with stdbool.h.
50436         * lib/stdbool.in.h (false, true):
50437         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50438         Don't declare as an enum in this situation; it runs afoul of Tru64.
50439         Problem reported by Steven M. Schweda in
50440         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50441
50442 2007-10-22  Eric Blake  <ebb9@byu.net>
50443
50444         Also wrap vf?printf.
50445         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50446         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50447         (xvprintf, xvfprintf): New functions.
50448
50449 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50450
50451         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50452         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50453
50454         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50455         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50456
50457 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50460         by Bruno Haible.
50461
50462 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50463
50464         * lib/getloadavg.c
50465         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50466         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50467
50468         * tests/test-i-ring.c: Work for C89.
50469
50470 2007-10-22  Bruno Haible  <bruno@clisp.org>
50471
50472         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50473         -1u, in preprocessor expression, so that we don't test for the bug
50474         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50476
50477 2007-10-22  Eric Blake  <ebb9@byu.net>
50478
50479         * tests/test-yesno.sh: Silence stderr during test.
50480
50481 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50482
50483         * modules/crypto/gc-camellia: New file.
50484
50485         * m4/gc-camellia.m4: New file.
50486
50487         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50488
50489         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50490
50491 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50492
50493         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50494         --help to stdout.  Reported by sms@antinode.org (Steven
50495         M. Schweda).
50496
50497 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50498
50499         * users.txt: Fix link to libksba.
50500
50501 2007-10-21  Ben Pfaff  <blp@gnu.org>
50502
50503         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50504         round.c roundf implementation that depends on floorf and ceilf to
50505         be tested unconditionally.
50506
50507 2007-10-21  Ben Pfaff  <blp@gnu.org>
50508
50509         * m4/check-libm-func.m4: Removed.
50510         * m4/check-math-lib.m4: New file.
50511         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50512         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50513         definition and lack of AC_LIBOBJ([roundf]).
50514         * m4/roundl.m4: Ditto, and similarly for roundl.
50515         * modules/round: Reference new m4 file.
50516         * modules/roundf: Ditto.
50517         * modules/roundl: Ditto.
50518         * tests/test-round2.c (main): Use ROUND instead of round.
50519         Bug report from Bruno Haible.
50520
50521 2007-10-21  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50524         context.
50525
50526 2007-10-21  Bruno Haible  <bruno@clisp.org>
50527
50528         * tests/test-wcwidth.c (main): Allow negative result for some control
50529         characters.
50530
50531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50532         Needed on OSF/1 5.1.
50533
50534 2007-10-21  Bruno Haible  <bruno@clisp.org>
50535
50536         * tests/test-floorf1.c: Include isnanf.h.
50537         (main): Use isnanf() instead of isnan().
50538         * tests/test-ceilf1.c: Include isnanf.h.
50539         (main): Use isnanf() instead of isnan().
50540         * tests/test-truncf1.c: Include isnanf.h.
50541         (main): Use isnanf() instead of isnan().
50542         * tests/test-roundf1.c: Include isnanf.h.
50543         (main): Use isnanf() instead of isnan().
50544
50545 2007-10-21  Eric Blake  <ebb9@byu.net>
50546
50547         * users.txt: Update URL for m4.
50548
50549 2007-10-21  Bruno Haible  <bruno@clisp.org>
50550
50551         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50552
50553 2007-10-21  Bruno Haible  <bruno@clisp.org>
50554
50555         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50556         Git's management files if the CVS files are not present.
50557
50558 2007-10-20  Bruno Haible  <bruno@clisp.org>
50559
50560         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50561         gcc-3.4.x.
50562
50563 2007-10-20  Ben Pfaff  <blp@gnu.org>
50564
50565         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50566         implementations.
50567         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50568         * lib/round.c: New file.
50569         * lib/roundf.c: New file.
50570         * lib/roundl.c: New file.
50571         * m4/round.m4: New file.
50572         * m4/roundf.m4: New file.
50573         * m4/roundl.m4: New file.
50574         * m4/check-libm-func-m4: New file.
50575         * modules/math: Replace round, roundf, roundl related @VARS@ in
50576         math.in.h.
50577         * modules/round: New file.
50578         * modules/round-tests: New file.
50579         * modules/roundf: New file.
50580         * modules/roundf-tests: New file.
50581         * modules/roundl: New file.
50582         * modules/roundl-tests: New file.
50583         * tests/test-round1.c: New file.
50584         * tests/test-round2.c: New file.
50585         * tests/test-roundf1.c: New file.
50586         * tests/test-roundf2.c: New file.
50587         * tests/test-roundl.c: New file.
50588         * doc/functions/round.texi: Mention round module.
50589         * doc/functions/roundf.texi: Mention roundf module.
50590         * doc/functions/roundl.texi: Mention roundl module.
50591         * MODULES.html.sh: Mention new modules.
50592         Thanks to Bruno Haible for suggestions.
50593
50594 2007-10-20  Jim Meyering  <meyering@redhat.com>
50595
50596         * lib/xprintf.c: Include <config.h> unconditionally.
50597
50598         Change xprintf's license to GPL.
50599         * modules/xprintf (License): s/LGPL/GPL/, since this module
50600         depends on modules (exit and exitfail) which are GPL.
50601         Suggestion from Bruno Haible.
50602
50603         xprintf fixes.
50604         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50605         Use a clearer diagnostic.
50606         Patch from Bruno Haible.
50607
50608 2007-10-20  Bruno Haible  <bruno@clisp.org>
50609
50610         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50611         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50613
50614 2007-10-20  Bruno Haible  <bruno@clisp.org>
50615
50616         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50617         precision in the comparison result > x - 1 or similar.
50618         * tests/test-ceilf2.c (correct_result_p): Likewise.
50619         * tests/test-truncf2.c (correct_result_p): Likewise.
50620         * tests/test-trunc2.c (correct_result_p): Likewise.
50621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50622
50623 2007-10-20  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/ceil: New file.
50626         * m4/ceil.m4: New file.
50627         * doc/functions/ceil.texi: Mention the 'ceil' module.
50628
50629 2007-10-20  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/floor: New file.
50632         * m4/floor.m4: New file.
50633         * doc/functions/floor.texi: Mention the 'floor' module.
50634
50635 2007-10-20  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50638         of %a.
50639         * modules/floorf-tests (Depends-on): Likewise.
50640         * modules/truncf-tests (Depends-on): Likewise.
50641         * modules/trunc-tests (Depends-on): Likewise.
50642         Reported by Ben Pfaff.
50643
50644 2007-10-19  Jim Meyering  <meyering@redhat.com>
50645
50646         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50647         Don't bother testing specific errno values.  Just test ferror.
50648
50649         New module: xprintf
50650         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50651
50652 2007-10-19  Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50655         syntax.
50656         * modules/javaexec (Makefile.am): Likewise.
50657         * modules/relocatable-prog (Makefile.am): Likewise.
50658         Suggested by Jim Meyering.
50659
50660 2007-10-18  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50663         Reported by Jim Meyering.
50664
50665 2007-10-18  Eric Blake  <ebb9@byu.net>
50666
50667         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50668
50669 2007-10-18  Bruno Haible  <bruno@clisp.org>
50670
50671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50672         the format string into writable memory. Needed in Fortify conditions.
50673
50674 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50675             Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50678         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50679         * modules/trim (Depends-on): Add mbchar.
50680         (configure.ac): Add gl_FUNC_MBRTOWC.
50681         (Makefile.am): Augment lib_SOURCES.
50682
50683 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50684
50685         Modify glob.c to use fstatat and dirfd, to simplify it.
50686         Suggested by Eric Blake.
50687         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50688         Don't include <stdbool.h>; not used.
50689         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50690         (link_exists_p): Simplify implementation, since we can now assume
50691         dirfd and fstatat.
50692         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50693
50694 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50695
50696         * gnulib-tool (func_get_dependencies): Fix sed script to
50697         match only tests.
50698
50699 2007-10-17  Bruno Haible  <bruno@clisp.org>
50700
50701         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50702         allow locale names without encoding suffix.
50703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50704         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50705
50706 2007-10-16  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50709         * lib/getgroups.c (getgroups): Likewise.
50710         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50711
50712 2007-10-16  Bruno Haible  <bruno@clisp.org>
50713
50714         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50715         * modules/malloc-posix (License): Likewise.
50716         * modules/realloc-posix (License): Likewise.
50717         * modules/calloc-posix (License): Likewise.
50718         * modules/intprops (License): Change from GPL to LGPL, with
50719         Paul Eggert's approval.
50720
50721 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         Merge glibc changes into lib/glob.c.
50724
50725         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50726         2007-10-15 04:59:03 UTC.  Here are the changes:
50727
50728         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50729
50730         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50731
50732         * lib/glob.c: Add some branch prediction throughout.
50733
50734         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50735
50736         [BZ #5103]
50737         * lib/glob.c (glob): Recognize patterns starting \/.
50738
50739         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50740
50741         [BZ #3996]
50742         * lib/glob.c (attribute_hidden): Define if not defined.
50743         (glob): Unescape dirname, filename or username when needed and not
50744         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50745         is NULL.  Handle unescaped [ in pattern without closing ].
50746         Don't pass GLOB_CHECK down to recursive glob for directories.
50747         (__glob_pattern_type): New function.
50748         (__glob_pattern_p): Implement using __glob_pattern_type.
50749         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50750         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50751         Remove unreachable code.
50752
50753         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50754
50755         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50756         explain why there are no leaks.
50757
50758         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50759
50760         [BZ #3253]
50761         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50762         time, rather allocate increasingly bigger arrays of pointers, if
50763         possible with alloca, if too large with malloc.
50764
50765 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50766
50767         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50768         Problem reported by H.Merijn Brand in
50769         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50771         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50772
50773 2007-10-15  Bruno Haible  <bruno@clisp.org>
50774
50775         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50776         with explicit rpl_ prefix.
50777         * lib/fopen.c (fopen): Likewise.
50778         * lib/freopen.c (freopen): Likewise.
50779         * lib/iconv.c (iconv): Likewise.
50780         * lib/iconv_close.c (iconv_close): Likewise.
50781
50782 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50783
50784         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50785
50786 2007-10-15  Bruno Haible  <bruno@clisp.org>
50787
50788         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50789         <stddef.h> instead of <stdlib.h> since we only need NULL.
50790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50791
50792 2007-10-15  Bruno Haible  <bruno@clisp.org>
50793
50794         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50795         Replace paragraph talking about LIBOBJS.
50796         Reported by Colin Watson <cjwatson@debian.org>.
50797
50798 2007-10-15  Bruno Haible  <bruno@clisp.org>
50799
50800         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50801         <stdlib.h> before using NULL.
50802
50803 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50804
50805         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50806         Reported by Albert Chin <china@thewrittenword.com>.
50807
50808 2007-10-14  Bruno Haible  <bruno@clisp.org>
50809
50810         * modules/iconv_open-utf-tests: New file.
50811         * tests/test-iconv-utf.c: New file.
50812
50813         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50814         * modules/iconv_open-utf: New file.
50815         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50816         (iconv, iconv_close): New declarations.
50817         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50818         be defined.
50819         (iconv_open): Add special handling of conversion between UTF-8 and
50820         UTF-{16,32}{BE,LE}.
50821         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50822         * lib/iconv_close.c: New file.
50823         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50824         gl_FUNC_ICONV_OPEN.
50825         (gl_FUNC_ICONV_OPEN): Use it.
50826         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50827         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50828         and REPLACE_ICONV_UTF.
50829         * modules/iconv_open (Depends-on): Add c-strcase.
50830         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50831         ICONV_CONST.
50832         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50833
50834 2007-10-13  Albert Chin  <china@thewrittenword.com>
50835             Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50838         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50839
50840 2007-10-13  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50843         defined, use the ISO C99 inline semantics.
50844         * lib/argp.h (ARGP_EI): Likewise.
50845
50846 2007-10-13  Bruno Haible  <bruno@clisp.org>
50847
50848         Handle 'inline' change in gcc 4.3.0.
50849         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50850         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50851         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50852         argp_fmtstream_point): Disable 'extern' declaration if the function
50853         definition is going to be provided inline.
50854         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50855         semantics, not the ISO C99 inline semantics.
50856         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50857         'extern' declaration if the function definition is going to be provided
50858         inline.
50859         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50860         the GNU C inline semantics, not the ISO C99 inline semantics. With
50861         GCC 4.2, avoid a warning.
50862
50863 2007-10-13  Bruno Haible  <bruno@clisp.org>
50864
50865         * lib/freading.h (freading): Enable the use of __freading for
50866         glibc >= 2.7.
50867         * lib/freading.c (freading): Likewise.
50868
50869 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50872         "warning: C99 inline functions are not supported; using GNU89".
50873
50874 2007-10-12  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50877         of 2.
50878         * tests/test-ceilf2.c: New file.
50879         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50880
50881         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50882         * modules/ceilf-tests: Update.
50883
50884 2007-10-12  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50887         of 2.
50888         * tests/test-floorf2.c: New file.
50889         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50890
50891         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50892         * modules/floorf-tests: Update.
50893
50894 2007-10-12  Bruno Haible  <bruno@clisp.org>
50895
50896         * tests/test-trunc2.c: New file.
50897         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50898
50899         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50900         * modules/trunc-tests: Update.
50901
50902 2007-10-12  Bruno Haible  <bruno@clisp.org>
50903
50904         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50905         of 2.
50906         * tests/test-truncf2.c: New file.
50907         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50908
50909         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50910         * modules/truncf-tests: Update.
50911
50912 2007-10-11  Eric Blake  <ebb9@byu.net>
50913
50914         Don't claim strerror is broken on Interix.
50915         * doc/functions/strerror.texi (strerror): Known broken systems are
50916         now Solaris 8, and not Interix.
50917         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50918         Interix on cross-compile.
50919         Reported by Martin Koeppe in
50920         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50921
50922 2007-10-11  Bruno Haible  <bruno@clisp.org>
50923
50924         * modules/i-ring-tests: New file.
50925         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50926         instead of assert.
50927
50928 2007-10-11  Bruno Haible  <bruno@clisp.org>
50929
50930         * modules/filenamecat-tests: New file.
50931         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50932         * lib/filenamecat.c: Remove test code.
50933
50934 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50937
50938         * lib/strerror.c: Include <string.h> always, to test interface,
50939         and to remove the need for the dummy.
50940         Include intprops.h to compute width instead of doing it ourselves
50941         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50942         (strerror): Define it to return NULL if there's no system strerror.
50943         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50944         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50945         ancient pre-strerror Unix systems well any more.  Saying "unknown
50946         system error" is enough.
50947         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50948         simpler strerror.c implementation.
50949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50950         Simplify the tests to reflect the simpler strerror implementation.
50951         * modules/strerror (Depends-on): Add intprops.
50952
50953 2007-10-09  Eric Blake  <ebb9@byu.net>
50954
50955         Silence test-fpending.
50956         * modules/fpending-tests (Files): Add wrapper script.
50957         * tests/test-fpending.sh: New file.
50958
50959 2007-10-09  Bruno Haible  <bruno@clisp.org>
50960
50961         * MODULES.html.sh (func_module): Don't create a hyperlink for
50962         function names like 'printf_frexp'.
50963         (Misc): Add crc, memxor.
50964         (Characteristics of floating types): New section.
50965         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50966         isnanf-nolibm, signbit, trunc, truncf, truncl.
50967         (Enhancements for ISO C 99 functions): New subsection Input/output.
50968         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50969         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50970         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50971         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50972         (Enhancements for POSIX:2001 functions): Add chdir-long.
50973         (File system functions): Add areadlink, chdir-safer, read-file.
50974         Remove cycle-check.
50975         (File system as inode set): New section.
50976         (Date and time): Add gethrxtime.
50977         (Multithreading): Add openmp.
50978         (Internationalization functions): Add localename.
50979         (Unicode string functions): Add unistr/u*-mbsnlen.
50980         (Support for maintaining and releasing projects): Add git-version-gen.
50981         (Lone files): Remove directories.
50982
50983 2007-10-08  Ben Pfaff  <blp@gnu.org>
50984
50985         * lib/xmalloca.h: Fix typo in comment.
50986
50987 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50990         when avoiding problems with integer overflow.  Use a portable test
50991         instead.
50992
50993 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50994
50995         * modules/dummy (License): Change to LGPLv2+.
50996         * modules/float (License): Likewise
50997         * modules/realloc (License): Likewise
50998         * modules/stdlib (License): Likewise
50999
51000 2007-10-07  Bruno Haible  <bruno@clisp.org>
51001
51002         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51003         * floor.c (TWO_MANT_DIG): Likewise.
51004         * ceil.c (TWO_MANT_DIG): Likewise.
51005         Reported by Ben Pfaff.
51006
51007 2007-10-07  Bruno Haible  <bruno@clisp.org>
51008
51009         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51010         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51011         * lib/frexp.c (FUNC): Likewise.
51012         * lib/printf-frexp.h (printf_frexp): Likewise.
51013         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51014         * lib/printf-frexp.c (FUNC): Likewise.
51015         Suggested by Jim Meyering.
51016
51017 2007-10-07  Jim Meyering  <meyering@redhat.com>
51018
51019         Make xnanosleep's integer overflow test more robust.
51020         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51021         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51022
51023 2007-10-07  Bruno Haible  <bruno@clisp.org>
51024
51025         * NEWS: Mention the license change.
51026
51027         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51028         abbreviations in the modules files.
51029
51030         Change copyright notice from GPLv2+ to GPLv3+.
51031         * README: Change copyright notice.
51032         * MODULES.html.sh: Likewise.
51033         * build-aux/bootstrap.conf: Likewise.
51034         * build-aux/config.libpath: Likewise.
51035         * build-aux/csharpcomp.sh.in: Likewise.
51036         * build-aux/csharpexec.sh.in: Likewise.
51037         * build-aux/install-reloc: Likewise.
51038         * build-aux/javacomp.sh.in: Likewise.
51039         * build-aux/javaexec.sh.in: Likewise.
51040         * build-aux/ldd.sh.in: Likewise.
51041         * build-aux/reloc-ldflags: Likewise.
51042         * build-aux/relocatable.sh.in: Likewise.
51043         * build-aux/x-to-1.in: Likewise.
51044         * check-module: Likewise.
51045         * config/srclistvars.sh: Likewise.
51046         * gnulib-tool: Likewise.
51047         * lib/acl-internal.h: Likewise.
51048         * lib/acl.c: Likewise.
51049         * lib/acl.h: Likewise.
51050         * lib/acl_entries.c: Likewise.
51051         * lib/areadlink-with-size.c: Likewise.
51052         * lib/areadlink.c: Likewise.
51053         * lib/areadlink.h: Likewise.
51054         * lib/argmatch.c: Likewise.
51055         * lib/argmatch.h: Likewise.
51056         * lib/argp-ba.c: Likewise.
51057         * lib/argp-eexst.c: Likewise.
51058         * lib/argp-fmtstream.c: Likewise.
51059         * lib/argp-fmtstream.h: Likewise.
51060         * lib/argp-fs-xinl.c: Likewise.
51061         * lib/argp-help.c: Likewise.
51062         * lib/argp-namefrob.h: Likewise.
51063         * lib/argp-parse.c: Likewise.
51064         * lib/argp-pin.c: Likewise.
51065         * lib/argp-pv.c: Likewise.
51066         * lib/argp-pvh.c: Likewise.
51067         * lib/argp-xinl.c: Likewise.
51068         * lib/argp.h: Likewise.
51069         * lib/at-func.c: Likewise.
51070         * lib/atanl.c: Likewise.
51071         * lib/backupfile.c: Likewise.
51072         * lib/backupfile.h: Likewise.
51073         * lib/basename.c: Likewise.
51074         * lib/binary-io.h: Likewise.
51075         * lib/byteswap.in.h: Likewise.
51076         * lib/c-stack.c: Likewise.
51077         * lib/c-stack.h: Likewise.
51078         * lib/c-strcasestr.c: Likewise.
51079         * lib/c-strcasestr.h: Likewise.
51080         * lib/c-strstr.c: Likewise.
51081         * lib/c-strstr.h: Likewise.
51082         * lib/c-strtod.c: Likewise.
51083         * lib/calloc.c: Likewise.
51084         * lib/canon-host.c: Likewise.
51085         * lib/canon-host.h: Likewise.
51086         * lib/canonicalize-lgpl.c: Likewise.
51087         * lib/canonicalize.c: Likewise.
51088         * lib/canonicalize.h: Likewise.
51089         * lib/ceil.c: Likewise.
51090         * lib/ceilf.c: Likewise.
51091         * lib/ceill.c: Likewise.
51092         * lib/chdir-long.c: Likewise.
51093         * lib/chdir-long.h: Likewise.
51094         * lib/chdir-safer.c: Likewise.
51095         * lib/chdir-safer.h: Likewise.
51096         * lib/chown.c: Likewise.
51097         * lib/classpath.c: Likewise.
51098         * lib/classpath.h: Likewise.
51099         * lib/clean-temp.c: Likewise.
51100         * lib/clean-temp.h: Likewise.
51101         * lib/cloexec.c: Likewise.
51102         * lib/close-stream.c: Likewise.
51103         * lib/closein.c: Likewise.
51104         * lib/closein.h: Likewise.
51105         * lib/closeout.c: Likewise.
51106         * lib/closeout.h: Likewise.
51107         * lib/concat-filename.c: Likewise.
51108         * lib/copy-file.c: Likewise.
51109         * lib/copy-file.h: Likewise.
51110         * lib/count-one-bits.h: Likewise.
51111         * lib/crc.c: Likewise.
51112         * lib/crc.h: Likewise.
51113         * lib/creat-safer.c: Likewise.
51114         * lib/csharpcomp.c: Likewise.
51115         * lib/csharpcomp.h: Likewise.
51116         * lib/csharpexec.c: Likewise.
51117         * lib/csharpexec.h: Likewise.
51118         * lib/cycle-check.c: Likewise.
51119         * lib/cycle-check.h: Likewise.
51120         * lib/diacrit.c: Likewise.
51121         * lib/diacrit.h: Likewise.
51122         * lib/diffseq.h: Likewise.
51123         * lib/dirchownmod.c: Likewise.
51124         * lib/dirent.in.h: Likewise.
51125         * lib/dirfd.c: Likewise.
51126         * lib/dirfd.h: Likewise.
51127         * lib/dirname.c: Likewise.
51128         * lib/dirname.h: Likewise.
51129         * lib/dummy.c: Likewise.
51130         * lib/dup-safer.c: Likewise.
51131         * lib/dup2.c: Likewise.
51132         * lib/eealloc.h: Likewise.
51133         * lib/error.c: Likewise.
51134         * lib/error.h: Likewise.
51135         * lib/euidaccess.c: Likewise.
51136         * lib/exclude.c: Likewise.
51137         * lib/exclude.h: Likewise.
51138         * lib/execute.c: Likewise.
51139         * lib/execute.h: Likewise.
51140         * lib/exitfail.c: Likewise.
51141         * lib/exitfail.h: Likewise.
51142         * lib/expl.c: Likewise.
51143         * lib/fatal-signal.c: Likewise.
51144         * lib/fatal-signal.h: Likewise.
51145         * lib/fbufmode.c: Likewise.
51146         * lib/fbufmode.h: Likewise.
51147         * lib/fchdir.c: Likewise.
51148         * lib/fchmodat.c: Likewise.
51149         * lib/fchownat.c: Likewise.
51150         * lib/fcntl--.h: Likewise.
51151         * lib/fcntl-safer.h: Likewise.
51152         * lib/fcntl.in.h: Likewise.
51153         * lib/fd-safer.c: Likewise.
51154         * lib/fflush.c: Likewise.
51155         * lib/file-has-acl.c: Likewise.
51156         * lib/file-set.c: Likewise.
51157         * lib/file-type.c: Likewise.
51158         * lib/file-type.h: Likewise.
51159         * lib/fileblocks.c: Likewise.
51160         * lib/filemode.c: Likewise.
51161         * lib/filemode.h: Likewise.
51162         * lib/filename.h: Likewise.
51163         * lib/filenamecat.c: Likewise.
51164         * lib/filenamecat.h: Likewise.
51165         * lib/findprog.c: Likewise.
51166         * lib/findprog.h: Likewise.
51167         * lib/float.in.h: Likewise.
51168         * lib/floor.c: Likewise.
51169         * lib/floorf.c: Likewise.
51170         * lib/floorl.c: Likewise.
51171         * lib/fopen-safer.c: Likewise.
51172         * lib/fopen.c: Likewise.
51173         * lib/fpending.c: Likewise.
51174         * lib/fpending.h: Likewise.
51175         * lib/fprintf.c: Likewise.
51176         * lib/fprintftime.h: Likewise.
51177         * lib/fpucw.h: Likewise.
51178         * lib/fpurge.c: Likewise.
51179         * lib/fpurge.h: Likewise.
51180         * lib/freadable.c: Likewise.
51181         * lib/freadable.h: Likewise.
51182         * lib/freadahead.c: Likewise.
51183         * lib/freadahead.h: Likewise.
51184         * lib/freading.c: Likewise.
51185         * lib/freading.h: Likewise.
51186         * lib/free.c: Likewise.
51187         * lib/freopen.c: Likewise.
51188         * lib/frexp.c: Likewise.
51189         * lib/frexpl.c: Likewise.
51190         * lib/fseek.c: Likewise.
51191         * lib/fseterr.c: Likewise.
51192         * lib/fseterr.h: Likewise.
51193         * lib/fstatat.c: Likewise.
51194         * lib/fstrcmp.c: Likewise.
51195         * lib/fstrcmp.h: Likewise.
51196         * lib/fsusage.c: Likewise.
51197         * lib/fsusage.h: Likewise.
51198         * lib/ftell.c: Likewise.
51199         * lib/ftello.c: Likewise.
51200         * lib/fts-cycle.c: Likewise.
51201         * lib/fts.c: Likewise.
51202         * lib/fts_.h: Likewise.
51203         * lib/full-read.c: Likewise.
51204         * lib/full-read.h: Likewise.
51205         * lib/full-write.c: Likewise.
51206         * lib/full-write.h: Likewise.
51207         * lib/fwritable.c: Likewise.
51208         * lib/fwritable.h: Likewise.
51209         * lib/fwriteerror.c: Likewise.
51210         * lib/fwriteerror.h: Likewise.
51211         * lib/fwriting.c: Likewise.
51212         * lib/fwriting.h: Likewise.
51213         * lib/gcd.c: Likewise.
51214         * lib/gcd.h: Likewise.
51215         * lib/getcwd.c: Likewise.
51216         * lib/getdate.h: Likewise.
51217         * lib/getdate.y: Likewise.
51218         * lib/getdomainname.c: Likewise.
51219         * lib/getdomainname.h: Likewise.
51220         * lib/getgroups.c: Likewise.
51221         * lib/gethostname.c: Likewise.
51222         * lib/gethrxtime.c: Likewise.
51223         * lib/gethrxtime.h: Likewise.
51224         * lib/getloadavg.c: Likewise.
51225         * lib/getndelim2.c: Likewise.
51226         * lib/getndelim2.h: Likewise.
51227         * lib/getnline.c: Likewise.
51228         * lib/getnline.h: Likewise.
51229         * lib/getopt.c: Likewise.
51230         * lib/getopt.in.h: Likewise.
51231         * lib/getopt1.c: Likewise.
51232         * lib/getopt_int.h: Likewise.
51233         * lib/getpagesize.h: Likewise.
51234         * lib/getsubopt.c: Likewise.
51235         * lib/gettime.c: Likewise.
51236         * lib/getugroups.c: Likewise.
51237         * lib/getugroups.h: Likewise.
51238         * lib/getusershell.c: Likewise.
51239         * lib/gl_anyavltree_list1.h: Likewise.
51240         * lib/gl_anyavltree_list2.h: Likewise.
51241         * lib/gl_anyhash_list1.h: Likewise.
51242         * lib/gl_anyhash_list2.h: Likewise.
51243         * lib/gl_anylinked_list1.h: Likewise.
51244         * lib/gl_anylinked_list2.h: Likewise.
51245         * lib/gl_anyrbtree_list1.h: Likewise.
51246         * lib/gl_anyrbtree_list2.h: Likewise.
51247         * lib/gl_anytree_list1.h: Likewise.
51248         * lib/gl_anytree_list2.h: Likewise.
51249         * lib/gl_anytree_oset.h: Likewise.
51250         * lib/gl_anytreehash_list1.h: Likewise.
51251         * lib/gl_anytreehash_list2.h: Likewise.
51252         * lib/gl_array_list.c: Likewise.
51253         * lib/gl_array_list.h: Likewise.
51254         * lib/gl_array_oset.c: Likewise.
51255         * lib/gl_array_oset.h: Likewise.
51256         * lib/gl_avltree_list.c: Likewise.
51257         * lib/gl_avltree_list.h: Likewise.
51258         * lib/gl_avltree_oset.c: Likewise.
51259         * lib/gl_avltree_oset.h: Likewise.
51260         * lib/gl_avltreehash_list.c: Likewise.
51261         * lib/gl_avltreehash_list.h: Likewise.
51262         * lib/gl_carray_list.c: Likewise.
51263         * lib/gl_carray_list.h: Likewise.
51264         * lib/gl_linked_list.c: Likewise.
51265         * lib/gl_linked_list.h: Likewise.
51266         * lib/gl_linkedhash_list.c: Likewise.
51267         * lib/gl_linkedhash_list.h: Likewise.
51268         * lib/gl_list.c: Likewise.
51269         * lib/gl_list.h: Likewise.
51270         * lib/gl_oset.c: Likewise.
51271         * lib/gl_oset.h: Likewise.
51272         * lib/gl_rbtree_list.c: Likewise.
51273         * lib/gl_rbtree_list.h: Likewise.
51274         * lib/gl_rbtree_oset.c: Likewise.
51275         * lib/gl_rbtree_oset.h: Likewise.
51276         * lib/gl_rbtreehash_list.c: Likewise.
51277         * lib/gl_rbtreehash_list.h: Likewise.
51278         * lib/gl_sublist.c: Likewise.
51279         * lib/gl_sublist.h: Likewise.
51280         * lib/group-member.c: Likewise.
51281         * lib/group-member.h: Likewise.
51282         * lib/hard-locale.c: Likewise.
51283         * lib/hard-locale.h: Likewise.
51284         * lib/hash-pjw.c: Likewise.
51285         * lib/hash-pjw.h: Likewise.
51286         * lib/hash-triple.c: Likewise.
51287         * lib/hash.c: Likewise.
51288         * lib/hash.h: Likewise.
51289         * lib/human.c: Likewise.
51290         * lib/human.h: Likewise.
51291         * lib/i-ring.c: Likewise.
51292         * lib/i-ring.h: Likewise.
51293         * lib/idcache.c: Likewise.
51294         * lib/imaxabs.c: Likewise.
51295         * lib/imaxdiv.c: Likewise.
51296         * lib/inet_pton.c: Likewise.
51297         * lib/inet_pton.h: Likewise.
51298         * lib/intprops.h: Likewise.
51299         * lib/inttostr.c: Likewise.
51300         * lib/inttostr.h: Likewise.
51301         * lib/inttypes.in.h: Likewise.
51302         * lib/isapipe.c: Likewise.
51303         * lib/isdir.c: Likewise.
51304         * lib/isnan.c: Likewise.
51305         * lib/isnan.h: Likewise.
51306         * lib/isnanf.c: Likewise.
51307         * lib/isnanf.h: Likewise.
51308         * lib/isnanl-nolibm.h: Likewise.
51309         * lib/isnanl.c: Likewise.
51310         * lib/isnanl.h: Likewise.
51311         * lib/javacomp.c: Likewise.
51312         * lib/javacomp.h: Likewise.
51313         * lib/javaexec.c: Likewise.
51314         * lib/javaexec.h: Likewise.
51315         * lib/javaversion.c: Likewise.
51316         * lib/javaversion.h: Likewise.
51317         * lib/javaversion.java: Likewise.
51318         * lib/lbrkprop.h: Likewise.
51319         * lib/lchmod.h: Likewise.
51320         * lib/lchown.c: Likewise.
51321         * lib/ldexpl.c: Likewise.
51322         * lib/linebreak.c: Likewise.
51323         * lib/linebreak.h: Likewise.
51324         * lib/linebuffer.c: Likewise.
51325         * lib/linebuffer.h: Likewise.
51326         * lib/locale.in.h: Likewise.
51327         * lib/logl.c: Likewise.
51328         * lib/long-options.c: Likewise.
51329         * lib/long-options.h: Likewise.
51330         * lib/lstat.c: Likewise.
51331         * lib/lstat.h: Likewise.
51332         * lib/math.in.h: Likewise.
51333         * lib/mbchar.c: Likewise.
51334         * lib/mbchar.h: Likewise.
51335         * lib/mbfile.h: Likewise.
51336         * lib/mbiter.h: Likewise.
51337         * lib/mbscasecmp.c: Likewise.
51338         * lib/mbscasestr.c: Likewise.
51339         * lib/mbschr.c: Likewise.
51340         * lib/mbscspn.c: Likewise.
51341         * lib/mbslen.c: Likewise.
51342         * lib/mbsncasecmp.c: Likewise.
51343         * lib/mbsnlen.c: Likewise.
51344         * lib/mbspbrk.c: Likewise.
51345         * lib/mbspcasecmp.c: Likewise.
51346         * lib/mbsrchr.c: Likewise.
51347         * lib/mbssep.c: Likewise.
51348         * lib/mbsspn.c: Likewise.
51349         * lib/mbsstr.c: Likewise.
51350         * lib/mbstok_r.c: Likewise.
51351         * lib/mbswidth.c: Likewise.
51352         * lib/mbswidth.h: Likewise.
51353         * lib/mbuiter.h: Likewise.
51354         * lib/memcasecmp.c: Likewise.
51355         * lib/memcasecmp.h: Likewise.
51356         * lib/memchr.c: Likewise.
51357         * lib/memcmp.c: Likewise.
51358         * lib/memcoll.c: Likewise.
51359         * lib/memcoll.h: Likewise.
51360         * lib/memcpy.c: Likewise.
51361         * lib/memrchr.c: Likewise.
51362         * lib/mkancesdirs.c: Likewise.
51363         * lib/mkdir-p.c: Likewise.
51364         * lib/mkdir-p.h: Likewise.
51365         * lib/mkdir.c: Likewise.
51366         * lib/mkdirat.c: Likewise.
51367         * lib/mkdtemp.c: Likewise.
51368         * lib/mkstemp-safer.c: Likewise.
51369         * lib/mkstemp.c: Likewise.
51370         * lib/modechange.c: Likewise.
51371         * lib/modechange.h: Likewise.
51372         * lib/mountlist.c: Likewise.
51373         * lib/mountlist.h: Likewise.
51374         * lib/mpsort.c: Likewise.
51375         * lib/nanosleep.c: Likewise.
51376         * lib/obstack.c: Likewise.
51377         * lib/obstack.h: Likewise.
51378         * lib/open-safer.c: Likewise.
51379         * lib/open.c: Likewise.
51380         * lib/openat-die.c: Likewise.
51381         * lib/openat-priv.h: Likewise.
51382         * lib/openat-proc.c: Likewise.
51383         * lib/openat.c: Likewise.
51384         * lib/openat.h: Likewise.
51385         * lib/pagealign_alloc.c: Likewise.
51386         * lib/pagealign_alloc.h: Likewise.
51387         * lib/physmem.c: Likewise.
51388         * lib/physmem.h: Likewise.
51389         * lib/pipe-safer.c: Likewise.
51390         * lib/pipe.c: Likewise.
51391         * lib/pipe.h: Likewise.
51392         * lib/posixtm.c: Likewise.
51393         * lib/posixtm.h: Likewise.
51394         * lib/posixver.c: Likewise.
51395         * lib/printf-frexp.c: Likewise.
51396         * lib/printf-frexp.h: Likewise.
51397         * lib/printf-frexpl.c: Likewise.
51398         * lib/printf-frexpl.h: Likewise.
51399         * lib/printf.c: Likewise.
51400         * lib/progname.c: Likewise.
51401         * lib/progname.h: Likewise.
51402         * lib/progreloc.c: Likewise.
51403         * lib/putenv.c: Likewise.
51404         * lib/quote.c: Likewise.
51405         * lib/quote.h: Likewise.
51406         * lib/quotearg.c: Likewise.
51407         * lib/quotearg.h: Likewise.
51408         * lib/raise.c: Likewise.
51409         * lib/readline.c: Likewise.
51410         * lib/readline.h: Likewise.
51411         * lib/readlink.c: Likewise.
51412         * lib/readtokens.c: Likewise.
51413         * lib/readtokens.h: Likewise.
51414         * lib/readtokens0.c: Likewise.
51415         * lib/readtokens0.h: Likewise.
51416         * lib/readutmp.c: Likewise.
51417         * lib/readutmp.h: Likewise.
51418         * lib/realloc.c: Likewise.
51419         * lib/relocwrapper.c: Likewise.
51420         * lib/rename-dest-slash.c: Likewise.
51421         * lib/rename.c: Likewise.
51422         * lib/rmdir.c: Likewise.
51423         * lib/rpmatch.c: Likewise.
51424         * lib/safe-read.c: Likewise.
51425         * lib/safe-read.h: Likewise.
51426         * lib/safe-write.c: Likewise.
51427         * lib/safe-write.h: Likewise.
51428         * lib/same-inode.h: Likewise.
51429         * lib/same.c: Likewise.
51430         * lib/same.h: Likewise.
51431         * lib/save-cwd.c: Likewise.
51432         * lib/save-cwd.h: Likewise.
51433         * lib/savedir.c: Likewise.
51434         * lib/savedir.h: Likewise.
51435         * lib/savewd.c: Likewise.
51436         * lib/savewd.h: Likewise.
51437         * lib/search.in.h: Likewise.
51438         * lib/setenv.c: Likewise.
51439         * lib/setenv.h: Likewise.
51440         * lib/settime.c: Likewise.
51441         * lib/sh-quote.c: Likewise.
51442         * lib/sh-quote.h: Likewise.
51443         * lib/sig2str.c: Likewise.
51444         * lib/sig2str.h: Likewise.
51445         * lib/signal.in.h: Likewise.
51446         * lib/signbitd.c: Likewise.
51447         * lib/signbitf.c: Likewise.
51448         * lib/signbitl.c: Likewise.
51449         * lib/sigprocmask.c: Likewise.
51450         * lib/sincosl.c: Likewise.
51451         * lib/sleep.c: Likewise.
51452         * lib/sprintf.c: Likewise.
51453         * lib/sqrtl.c: Likewise.
51454         * lib/stat-time.h: Likewise.
51455         * lib/stdio--.h: Likewise.
51456         * lib/stdio-safer.h: Likewise.
51457         * lib/stdlib--.h: Likewise.
51458         * lib/stdlib-safer.h: Likewise.
51459         * lib/stdlib.in.h: Likewise.
51460         * lib/stpcpy.c: Likewise.
51461         * lib/stpncpy.c: Likewise.
51462         * lib/strchrnul.c: Likewise.
51463         * lib/strcspn.c: Likewise.
51464         * lib/strerror.c: Likewise.
51465         * lib/strftime.c: Likewise.
51466         * lib/strftime.h: Likewise.
51467         * lib/striconveh.c: Likewise.
51468         * lib/striconveh.h: Likewise.
51469         * lib/striconveha.c: Likewise.
51470         * lib/striconveha.h: Likewise.
51471         * lib/stripslash.c: Likewise.
51472         * lib/strnlen1.c: Likewise.
51473         * lib/strnlen1.h: Likewise.
51474         * lib/strtod.c: Likewise.
51475         * lib/strtoimax.c: Likewise.
51476         * lib/strtok_r.c: Likewise.
51477         * lib/strtol.c: Likewise.
51478         * lib/strtoll.c: Likewise.
51479         * lib/strtoul.c: Likewise.
51480         * lib/strtoull.c: Likewise.
51481         * lib/sysexits.in.h: Likewise.
51482         * lib/tempname.c: Likewise.
51483         * lib/tempname.h: Likewise.
51484         * lib/timespec.h: Likewise.
51485         * lib/tls.c: Likewise.
51486         * lib/tls.h: Likewise.
51487         * lib/tmpdir.c: Likewise.
51488         * lib/tmpdir.h: Likewise.
51489         * lib/tmpfile-safer.c: Likewise.
51490         * lib/tmpfile.c: Likewise.
51491         * lib/trigl.c: Likewise.
51492         * lib/trigl.h: Likewise.
51493         * lib/trim.c: Likewise.
51494         * lib/trim.h: Likewise.
51495         * lib/trunc.c: Likewise.
51496         * lib/truncf.c: Likewise.
51497         * lib/truncl.c: Likewise.
51498         * lib/tsearch.c: Likewise.
51499         * lib/unicodeio.c: Likewise.
51500         * lib/unicodeio.h: Likewise.
51501         * lib/unistd--.h: Likewise.
51502         * lib/unistd-safer.h: Likewise.
51503         * lib/unistdio/ulc-fprintf.c: Likewise.
51504         * lib/unistdio/ulc-vfprintf.c: Likewise.
51505         * lib/unlinkdir.c: Likewise.
51506         * lib/unlinkdir.h: Likewise.
51507         * lib/unlocked-io.h: Likewise.
51508         * lib/unsetenv.c: Likewise.
51509         * lib/userspec.c: Likewise.
51510         * lib/utime.c: Likewise.
51511         * lib/utimecmp.c: Likewise.
51512         * lib/utimecmp.h: Likewise.
51513         * lib/utimens.c: Likewise.
51514         * lib/verify.h: Likewise.
51515         * lib/verror.c: Likewise.
51516         * lib/verror.h: Likewise.
51517         * lib/version-etc-fsf.c: Likewise.
51518         * lib/version-etc.c: Likewise.
51519         * lib/version-etc.h: Likewise.
51520         * lib/vfprintf.c: Likewise.
51521         * lib/vprintf.c: Likewise.
51522         * lib/vsprintf.c: Likewise.
51523         * lib/w32spawn.h: Likewise.
51524         * lib/wait-process.c: Likewise.
51525         * lib/wait-process.h: Likewise.
51526         * lib/wcwidth.c: Likewise.
51527         * lib/write-any-file.c: Likewise.
51528         * lib/xalloc-die.c: Likewise.
51529         * lib/xalloc.h: Likewise.
51530         * lib/xasprintf.c: Likewise.
51531         * lib/xgetcwd.c: Likewise.
51532         * lib/xgetcwd.h: Likewise.
51533         * lib/xgetdomainname.c: Likewise.
51534         * lib/xgetdomainname.h: Likewise.
51535         * lib/xgethostname.c: Likewise.
51536         * lib/xmalloc.c: Likewise.
51537         * lib/xmalloca.c: Likewise.
51538         * lib/xmalloca.h: Likewise.
51539         * lib/xmemcoll.c: Likewise.
51540         * lib/xnanosleep.c: Likewise.
51541         * lib/xreadlink.c: Likewise.
51542         * lib/xreadlink.h: Likewise.
51543         * lib/xsetenv.c: Likewise.
51544         * lib/xsetenv.h: Likewise.
51545         * lib/xstriconv.c: Likewise.
51546         * lib/xstriconv.h: Likewise.
51547         * lib/xstrndup.c: Likewise.
51548         * lib/xstrndup.h: Likewise.
51549         * lib/xstrtod.c: Likewise.
51550         * lib/xstrtod.h: Likewise.
51551         * lib/xstrtol-error.c: Likewise.
51552         * lib/xstrtol.c: Likewise.
51553         * lib/xstrtol.h: Likewise.
51554         * lib/xtime.h: Likewise.
51555         * lib/xvasprintf.c: Likewise.
51556         * lib/xvasprintf.h: Likewise.
51557         * lib/yesno.c: Likewise.
51558         * lib/yesno.h: Likewise.
51559         * posix-modules: Likewise.
51560         * tests/test-alloca-opt.c: Likewise.
51561         * tests/test-arcfour.c: Likewise.
51562         * tests/test-arctwo.c: Likewise.
51563         * tests/test-argmatch.c: Likewise.
51564         * tests/test-argp-2.sh: Likewise.
51565         * tests/test-argp.c: Likewise.
51566         * tests/test-arpa_inet.c: Likewise.
51567         * tests/test-array_list.c: Likewise.
51568         * tests/test-array_oset.c: Likewise.
51569         * tests/test-atexit.c: Likewise.
51570         * tests/test-avltree_list.c: Likewise.
51571         * tests/test-avltree_oset.c: Likewise.
51572         * tests/test-avltreehash_list.c: Likewise.
51573         * tests/test-base64.c: Likewise.
51574         * tests/test-binary-io.c: Likewise.
51575         * tests/test-byteswap.c: Likewise.
51576         * tests/test-c-ctype.c: Likewise.
51577         * tests/test-c-strcasecmp.c: Likewise.
51578         * tests/test-c-strcasestr.c: Likewise.
51579         * tests/test-c-strncasecmp.c: Likewise.
51580         * tests/test-c-strstr.c: Likewise.
51581         * tests/test-canonicalize-lgpl.c: Likewise.
51582         * tests/test-canonicalize.c: Likewise.
51583         * tests/test-carray_list.c: Likewise.
51584         * tests/test-ceilf.c: Likewise.
51585         * tests/test-ceill.c: Likewise.
51586         * tests/test-count-one-bits.c: Likewise.
51587         * tests/test-crc.c: Likewise.
51588         * tests/test-dirname.c: Likewise.
51589         * tests/test-fbufmode.c: Likewise.
51590         * tests/test-fcntl.c: Likewise.
51591         * tests/test-fflush.c: Likewise.
51592         * tests/test-floorf.c: Likewise.
51593         * tests/test-floorl.c: Likewise.
51594         * tests/test-fopen.c: Likewise.
51595         * tests/test-fprintf-posix.c: Likewise.
51596         * tests/test-fprintf-posix.h: Likewise.
51597         * tests/test-fpurge.c: Likewise.
51598         * tests/test-freadable.c: Likewise.
51599         * tests/test-freadahead.c: Likewise.
51600         * tests/test-freading.c: Likewise.
51601         * tests/test-freopen.c: Likewise.
51602         * tests/test-frexp.c: Likewise.
51603         * tests/test-frexpl.c: Likewise.
51604         * tests/test-fseek.c: Likewise.
51605         * tests/test-fseeko.c: Likewise.
51606         * tests/test-fseterr.c: Likewise.
51607         * tests/test-fstrcmp.c: Likewise.
51608         * tests/test-ftell.c: Likewise.
51609         * tests/test-ftello.c: Likewise.
51610         * tests/test-fwritable.c: Likewise.
51611         * tests/test-fwriting.c: Likewise.
51612         * tests/test-getaddrinfo.c: Likewise.
51613         * tests/test-getpass.c: Likewise.
51614         * tests/test-gettimeofday.c: Likewise.
51615         * tests/test-hmac-md5.c: Likewise.
51616         * tests/test-hmac-sha1.c: Likewise.
51617         * tests/test-iconv.c: Likewise.
51618         * tests/test-iconvme.c: Likewise.
51619         * tests/test-inttypes.c: Likewise.
51620         * tests/test-isnan.c: Likewise.
51621         * tests/test-isnanf.c: Likewise.
51622         * tests/test-isnanl-nolibm.c: Likewise.
51623         * tests/test-isnanl.c: Likewise.
51624         * tests/test-isnanl.h: Likewise.
51625         * tests/test-ldexpl.c: Likewise.
51626         * tests/test-linked_list.c: Likewise.
51627         * tests/test-linkedhash_list.c: Likewise.
51628         * tests/test-locale.c: Likewise.
51629         * tests/test-localename.c: Likewise.
51630         * tests/test-lock.c: Likewise.
51631         * tests/test-lseek.c: Likewise.
51632         * tests/test-malloca.c: Likewise.
51633         * tests/test-math.c: Likewise.
51634         * tests/test-mbscasecmp.c: Likewise.
51635         * tests/test-mbscasestr1.c: Likewise.
51636         * tests/test-mbscasestr2.c: Likewise.
51637         * tests/test-mbscasestr3.c: Likewise.
51638         * tests/test-mbscasestr4.c: Likewise.
51639         * tests/test-mbschr.c: Likewise.
51640         * tests/test-mbscspn.c: Likewise.
51641         * tests/test-mbsncasecmp.c: Likewise.
51642         * tests/test-mbspbrk.c: Likewise.
51643         * tests/test-mbspcasecmp.c: Likewise.
51644         * tests/test-mbsrchr.c: Likewise.
51645         * tests/test-mbsspn.c: Likewise.
51646         * tests/test-mbsstr1.c: Likewise.
51647         * tests/test-mbsstr2.c: Likewise.
51648         * tests/test-mbsstr3.c: Likewise.
51649         * tests/test-md5.c: Likewise.
51650         * tests/test-memmem.c: Likewise.
51651         * tests/test-netinet_in.c: Likewise.
51652         * tests/test-open.c: Likewise.
51653         * tests/test-printf-frexp.c: Likewise.
51654         * tests/test-printf-frexpl.c: Likewise.
51655         * tests/test-printf-posix.c: Likewise.
51656         * tests/test-printf-posix.h: Likewise.
51657         * tests/test-rbtree_list.c: Likewise.
51658         * tests/test-rbtree_oset.c: Likewise.
51659         * tests/test-rbtreehash_list.c: Likewise.
51660         * tests/test-read-file.c: Likewise.
51661         * tests/test-rijndael.c: Likewise.
51662         * tests/test-search.c: Likewise.
51663         * tests/test-signbit.c: Likewise.
51664         * tests/test-sleep.c: Likewise.
51665         * tests/test-snprintf-posix.c: Likewise.
51666         * tests/test-snprintf-posix.h: Likewise.
51667         * tests/test-snprintf.c: Likewise.
51668         * tests/test-sprintf-posix.c: Likewise.
51669         * tests/test-sprintf-posix.h: Likewise.
51670         * tests/test-stat-time.c: Likewise.
51671         * tests/test-stdbool.c: Likewise.
51672         * tests/test-stdint.c: Likewise.
51673         * tests/test-stdio.c: Likewise.
51674         * tests/test-stdlib.c: Likewise.
51675         * tests/test-stpncpy.c: Likewise.
51676         * tests/test-strcasestr.c: Likewise.
51677         * tests/test-striconv.c: Likewise.
51678         * tests/test-striconveh.c: Likewise.
51679         * tests/test-striconveha.c: Likewise.
51680         * tests/test-string.c: Likewise.
51681         * tests/test-sys_select.c: Likewise.
51682         * tests/test-sys_socket.c: Likewise.
51683         * tests/test-sys_stat.c: Likewise.
51684         * tests/test-sys_time.c: Likewise.
51685         * tests/test-sysexits.c: Likewise.
51686         * tests/test-time.c: Likewise.
51687         * tests/test-tls.c: Likewise.
51688         * tests/test-trunc.c: Likewise.
51689         * tests/test-truncf.c: Likewise.
51690         * tests/test-truncl.c: Likewise.
51691         * tests/test-unistd.c: Likewise.
51692         * tests/test-vasnprintf-posix.c: Likewise.
51693         * tests/test-vasnprintf-posix2.c: Likewise.
51694         * tests/test-vasnprintf.c: Likewise.
51695         * tests/test-vasprintf-posix.c: Likewise.
51696         * tests/test-vasprintf.c: Likewise.
51697         * tests/test-verify.c: Likewise.
51698         * tests/test-vfprintf-posix.c: Likewise.
51699         * tests/test-vprintf-posix.c: Likewise.
51700         * tests/test-vsnprintf-posix.c: Likewise.
51701         * tests/test-vsnprintf.c: Likewise.
51702         * tests/test-vsprintf-posix.c: Likewise.
51703         * tests/test-wchar.c: Likewise.
51704         * tests/test-wctype.c: Likewise.
51705         * tests/test-wcwidth.c: Likewise.
51706         * tests/test-xstrtol.c: Likewise.
51707         * tests/test-xvasprintf.c: Likewise.
51708         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51709         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51710         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51711         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51712         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51713         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51716         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51717         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51718         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51719         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51720         * tests/uniname/test-uninames.c: Likewise.
51721         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51722         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51723         * tests/unistdio/test-u16-printf1.h: Likewise.
51724         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51725         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51726         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51727         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51728         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51729         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51730         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51731         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51732         * tests/unistdio/test-u32-printf1.h: Likewise.
51733         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51734         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51735         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51736         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51737         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51738         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51739         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51740         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51741         * tests/unistdio/test-u8-printf1.h: Likewise.
51742         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51743         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51744         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51745         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51746         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51747         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51748         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51749         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51750         * tests/unistdio/test-ulc-printf1.h: Likewise.
51751         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51752         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51753         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51754         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51755         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51756         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51757         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51758         * tests/uniwidth/test-u16-width.c: Likewise.
51759         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51760         * tests/uniwidth/test-u32-width.c: Likewise.
51761         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51762         * tests/uniwidth/test-u8-width.c: Likewise.
51763         * tests/uniwidth/test-uc_width.c: Likewise.
51764         * config/srclist-update: Likewise.
51765         (fixlicense): Update to GPLv3+.
51766
51767         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51768         * tests/test-tsearch.c: Change copyright notice.
51769
51770         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51771         * lib/c-strcaseeq.h: Change copyright notice.
51772         * lib/streq.h: Likewise.
51773         * lib/uniconv.h: Likewise.
51774         * lib/uniconv/u-conv-from-enc.h: Likewise.
51775         * lib/uniconv/u-conv-to-enc.h: Likewise.
51776         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51777         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51778         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51779         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51780         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51781         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51782         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51783         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51784         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51785         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51786         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51787         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51788         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51789         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51790         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51791         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51792         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51793         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51794         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51795         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51796         * lib/uniname.h: Likewise.
51797         * lib/uniname/uniname.c: Likewise.
51798         * lib/unistdio.h: Likewise.
51799         * lib/unistdio/u-asnprintf.h: Likewise.
51800         * lib/unistdio/u-asprintf.h: Likewise.
51801         * lib/unistdio/u-printf-args.c: Likewise.
51802         * lib/unistdio/u-printf-args.h: Likewise.
51803         * lib/unistdio/u-printf-parse.h: Likewise.
51804         * lib/unistdio/u-snprintf.h: Likewise.
51805         * lib/unistdio/u-sprintf.h: Likewise.
51806         * lib/unistdio/u-vasprintf.h: Likewise.
51807         * lib/unistdio/u-vsnprintf.h: Likewise.
51808         * lib/unistdio/u-vsprintf.h: Likewise.
51809         * lib/unistdio/u16-asnprintf.c: Likewise.
51810         * lib/unistdio/u16-asprintf.c: Likewise.
51811         * lib/unistdio/u16-printf-parse.c: Likewise.
51812         * lib/unistdio/u16-snprintf.c: Likewise.
51813         * lib/unistdio/u16-sprintf.c: Likewise.
51814         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51815         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51816         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51817         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51818         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51819         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51820         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51821         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51822         * lib/unistdio/u16-vasnprintf.c: Likewise.
51823         * lib/unistdio/u16-vasprintf.c: Likewise.
51824         * lib/unistdio/u16-vsnprintf.c: Likewise.
51825         * lib/unistdio/u16-vsprintf.c: Likewise.
51826         * lib/unistdio/u32-asnprintf.c: Likewise.
51827         * lib/unistdio/u32-asprintf.c: Likewise.
51828         * lib/unistdio/u32-printf-parse.c: Likewise.
51829         * lib/unistdio/u32-snprintf.c: Likewise.
51830         * lib/unistdio/u32-sprintf.c: Likewise.
51831         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51832         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51833         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51834         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51835         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51836         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51837         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51838         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51839         * lib/unistdio/u32-vasnprintf.c: Likewise.
51840         * lib/unistdio/u32-vasprintf.c: Likewise.
51841         * lib/unistdio/u32-vsnprintf.c: Likewise.
51842         * lib/unistdio/u32-vsprintf.c: Likewise.
51843         * lib/unistdio/u8-asnprintf.c: Likewise.
51844         * lib/unistdio/u8-asprintf.c: Likewise.
51845         * lib/unistdio/u8-printf-parse.c: Likewise.
51846         * lib/unistdio/u8-snprintf.c: Likewise.
51847         * lib/unistdio/u8-sprintf.c: Likewise.
51848         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51849         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51850         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51851         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51852         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51853         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51854         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51855         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51856         * lib/unistdio/u8-vasnprintf.c: Likewise.
51857         * lib/unistdio/u8-vasprintf.c: Likewise.
51858         * lib/unistdio/u8-vsnprintf.c: Likewise.
51859         * lib/unistdio/u8-vsprintf.c: Likewise.
51860         * lib/unistdio/ulc-asnprintf.c: Likewise.
51861         * lib/unistdio/ulc-asprintf.c: Likewise.
51862         * lib/unistdio/ulc-printf-parse.c: Likewise.
51863         * lib/unistdio/ulc-snprintf.c: Likewise.
51864         * lib/unistdio/ulc-sprintf.c: Likewise.
51865         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51866         * lib/unistdio/ulc-vasprintf.c: Likewise.
51867         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51868         * lib/unistdio/ulc-vsprintf.c: Likewise.
51869         * lib/unistr.h: Likewise.
51870         * lib/unistr/u-cpy-alloc.h: Likewise.
51871         * lib/unistr/u-cpy.h: Likewise.
51872         * lib/unistr/u-endswith.h: Likewise.
51873         * lib/unistr/u-move.h: Likewise.
51874         * lib/unistr/u-set.h: Likewise.
51875         * lib/unistr/u-startswith.h: Likewise.
51876         * lib/unistr/u-stpcpy.h: Likewise.
51877         * lib/unistr/u-stpncpy.h: Likewise.
51878         * lib/unistr/u-strcat.h: Likewise.
51879         * lib/unistr/u-strcpy.h: Likewise.
51880         * lib/unistr/u-strcspn.h: Likewise.
51881         * lib/unistr/u-strdup.h: Likewise.
51882         * lib/unistr/u-strlen.h: Likewise.
51883         * lib/unistr/u-strncat.h: Likewise.
51884         * lib/unistr/u-strncpy.h: Likewise.
51885         * lib/unistr/u-strnlen.h: Likewise.
51886         * lib/unistr/u-strpbrk.h: Likewise.
51887         * lib/unistr/u-strspn.h: Likewise.
51888         * lib/unistr/u-strstr.h: Likewise.
51889         * lib/unistr/u-strtok.h: Likewise.
51890         * lib/unistr/u16-check.c: Likewise.
51891         * lib/unistr/u16-chr.c: Likewise.
51892         * lib/unistr/u16-cmp.c: Likewise.
51893         * lib/unistr/u16-cpy-alloc.c: Likewise.
51894         * lib/unistr/u16-cpy.c: Likewise.
51895         * lib/unistr/u16-endswith.c: Likewise.
51896         * lib/unistr/u16-mblen.c: Likewise.
51897         * lib/unistr/u16-mbsnlen.c: Likewise.
51898         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51899         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51900         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51901         * lib/unistr/u16-mbtouc.c: Likewise.
51902         * lib/unistr/u16-mbtoucr.c: Likewise.
51903         * lib/unistr/u16-move.c: Likewise.
51904         * lib/unistr/u16-next.c: Likewise.
51905         * lib/unistr/u16-prev.c: Likewise.
51906         * lib/unistr/u16-set.c: Likewise.
51907         * lib/unistr/u16-startswith.c: Likewise.
51908         * lib/unistr/u16-stpcpy.c: Likewise.
51909         * lib/unistr/u16-stpncpy.c: Likewise.
51910         * lib/unistr/u16-strcat.c: Likewise.
51911         * lib/unistr/u16-strchr.c: Likewise.
51912         * lib/unistr/u16-strcmp.c: Likewise.
51913         * lib/unistr/u16-strcpy.c: Likewise.
51914         * lib/unistr/u16-strcspn.c: Likewise.
51915         * lib/unistr/u16-strdup.c: Likewise.
51916         * lib/unistr/u16-strlen.c: Likewise.
51917         * lib/unistr/u16-strmblen.c: Likewise.
51918         * lib/unistr/u16-strmbtouc.c: Likewise.
51919         * lib/unistr/u16-strncat.c: Likewise.
51920         * lib/unistr/u16-strncmp.c: Likewise.
51921         * lib/unistr/u16-strncpy.c: Likewise.
51922         * lib/unistr/u16-strnlen.c: Likewise.
51923         * lib/unistr/u16-strpbrk.c: Likewise.
51924         * lib/unistr/u16-strrchr.c: Likewise.
51925         * lib/unistr/u16-strspn.c: Likewise.
51926         * lib/unistr/u16-strstr.c: Likewise.
51927         * lib/unistr/u16-strtok.c: Likewise.
51928         * lib/unistr/u16-to-u32.c: Likewise.
51929         * lib/unistr/u16-to-u8.c: Likewise.
51930         * lib/unistr/u16-uctomb-aux.c: Likewise.
51931         * lib/unistr/u16-uctomb.c: Likewise.
51932         * lib/unistr/u32-check.c: Likewise.
51933         * lib/unistr/u32-chr.c: Likewise.
51934         * lib/unistr/u32-cmp.c: Likewise.
51935         * lib/unistr/u32-cpy-alloc.c: Likewise.
51936         * lib/unistr/u32-cpy.c: Likewise.
51937         * lib/unistr/u32-endswith.c: Likewise.
51938         * lib/unistr/u32-mblen.c: Likewise.
51939         * lib/unistr/u32-mbsnlen.c: Likewise.
51940         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51941         * lib/unistr/u32-mbtouc.c: Likewise.
51942         * lib/unistr/u32-mbtoucr.c: Likewise.
51943         * lib/unistr/u32-move.c: Likewise.
51944         * lib/unistr/u32-next.c: Likewise.
51945         * lib/unistr/u32-prev.c: Likewise.
51946         * lib/unistr/u32-set.c: Likewise.
51947         * lib/unistr/u32-startswith.c: Likewise.
51948         * lib/unistr/u32-stpcpy.c: Likewise.
51949         * lib/unistr/u32-stpncpy.c: Likewise.
51950         * lib/unistr/u32-strcat.c: Likewise.
51951         * lib/unistr/u32-strchr.c: Likewise.
51952         * lib/unistr/u32-strcmp.c: Likewise.
51953         * lib/unistr/u32-strcpy.c: Likewise.
51954         * lib/unistr/u32-strcspn.c: Likewise.
51955         * lib/unistr/u32-strdup.c: Likewise.
51956         * lib/unistr/u32-strlen.c: Likewise.
51957         * lib/unistr/u32-strmblen.c: Likewise.
51958         * lib/unistr/u32-strmbtouc.c: Likewise.
51959         * lib/unistr/u32-strncat.c: Likewise.
51960         * lib/unistr/u32-strncmp.c: Likewise.
51961         * lib/unistr/u32-strncpy.c: Likewise.
51962         * lib/unistr/u32-strnlen.c: Likewise.
51963         * lib/unistr/u32-strpbrk.c: Likewise.
51964         * lib/unistr/u32-strrchr.c: Likewise.
51965         * lib/unistr/u32-strspn.c: Likewise.
51966         * lib/unistr/u32-strstr.c: Likewise.
51967         * lib/unistr/u32-strtok.c: Likewise.
51968         * lib/unistr/u32-to-u16.c: Likewise.
51969         * lib/unistr/u32-to-u8.c: Likewise.
51970         * lib/unistr/u32-uctomb.c: Likewise.
51971         * lib/unistr/u8-check.c: Likewise.
51972         * lib/unistr/u8-chr.c: Likewise.
51973         * lib/unistr/u8-cmp.c: Likewise.
51974         * lib/unistr/u8-cpy-alloc.c: Likewise.
51975         * lib/unistr/u8-cpy.c: Likewise.
51976         * lib/unistr/u8-endswith.c: Likewise.
51977         * lib/unistr/u8-mblen.c: Likewise.
51978         * lib/unistr/u8-mbsnlen.c: Likewise.
51979         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51980         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51981         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51982         * lib/unistr/u8-mbtouc.c: Likewise.
51983         * lib/unistr/u8-mbtoucr.c: Likewise.
51984         * lib/unistr/u8-move.c: Likewise.
51985         * lib/unistr/u8-next.c: Likewise.
51986         * lib/unistr/u8-prev.c: Likewise.
51987         * lib/unistr/u8-set.c: Likewise.
51988         * lib/unistr/u8-startswith.c: Likewise.
51989         * lib/unistr/u8-stpcpy.c: Likewise.
51990         * lib/unistr/u8-stpncpy.c: Likewise.
51991         * lib/unistr/u8-strcat.c: Likewise.
51992         * lib/unistr/u8-strchr.c: Likewise.
51993         * lib/unistr/u8-strcmp.c: Likewise.
51994         * lib/unistr/u8-strcpy.c: Likewise.
51995         * lib/unistr/u8-strcspn.c: Likewise.
51996         * lib/unistr/u8-strdup.c: Likewise.
51997         * lib/unistr/u8-strlen.c: Likewise.
51998         * lib/unistr/u8-strmblen.c: Likewise.
51999         * lib/unistr/u8-strmbtouc.c: Likewise.
52000         * lib/unistr/u8-strncat.c: Likewise.
52001         * lib/unistr/u8-strncmp.c: Likewise.
52002         * lib/unistr/u8-strncpy.c: Likewise.
52003         * lib/unistr/u8-strnlen.c: Likewise.
52004         * lib/unistr/u8-strpbrk.c: Likewise.
52005         * lib/unistr/u8-strrchr.c: Likewise.
52006         * lib/unistr/u8-strspn.c: Likewise.
52007         * lib/unistr/u8-strstr.c: Likewise.
52008         * lib/unistr/u8-strtok.c: Likewise.
52009         * lib/unistr/u8-to-u16.c: Likewise.
52010         * lib/unistr/u8-to-u32.c: Likewise.
52011         * lib/unistr/u8-uctomb-aux.c: Likewise.
52012         * lib/unistr/u8-uctomb.c: Likewise.
52013         * lib/unitypes.h: Likewise.
52014         * lib/uniwidth.h: Likewise.
52015         * lib/uniwidth/cjk.h: Likewise.
52016         * lib/uniwidth/u16-strwidth.c: Likewise.
52017         * lib/uniwidth/u16-width.c: Likewise.
52018         * lib/uniwidth/u32-strwidth.c: Likewise.
52019         * lib/uniwidth/u32-width.c: Likewise.
52020         * lib/uniwidth/u8-strwidth.c: Likewise.
52021         * lib/uniwidth/u8-width.c: Likewise.
52022         * lib/uniwidth/width.c: Likewise.
52023
52024 2007-10-07  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52027         The file is still under LGPL (see modules/inttypes).
52028
52029 2007-10-06  Bruno Haible  <bruno@clisp.org>
52030
52031         * modules/trunc (Dependencies): Add 'extensions'.
52032         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52033         Reported by Ben Pfaff <blp@gnu.org>.
52034
52035 2007-10-06  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/freopen-tests: New file.
52038         * tests/test-freopen.c: New file.
52039
52040         * modules/fopen-tests: New file.
52041         * tests/test-fopen.c: New file.
52042
52043         * modules/fopen: New file.
52044         * lib/fopen.c: New file.
52045         * m4/fopen.m4: New file.
52046         * modules/freopen: New file.
52047         * lib/freopen.c: New file.
52048         * m4/freopen.m4: New file.
52049         * lib/stdio.in.h (fopen, freopen): New declarations.
52050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52051         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52052         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52053         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52054         * doc/functions/fopen.texi: Mention the 'fopen' module.
52055         * doc/functions/freopen.texi: Mention the 'freopen' module.
52056
52057 2007-10-06  Bruno Haible  <bruno@clisp.org>
52058
52059         * modules/open-tests: New file.
52060         * tests/test-open.c: New file.
52061
52062         * modules/open: New file.
52063         * lib/open.c: New file.
52064         * m4/open.m4: New file.
52065         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52066         lib/open.c does.
52067         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52068         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52069         macros.
52070         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52071         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52072         REPLACE_OPEN.
52073         * doc/functions/open.texi: Mention the 'open' module.
52074
52075 2007-10-04  Bruno Haible  <bruno@clisp.org>
52076
52077         * modules/ceill-tests: New file.
52078         * tests/test-ceill.c: New file.
52079
52080         * modules/ceill: New file.
52081         * lib/ceill.c: Replace entire file.
52082         * m4/ceill.m4: New file.
52083         * lib/math.in.h (ceill): Replace declaration.
52084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52085         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52086         * doc/functions/ceill.texi: Mention the 'ceill' module.
52087         * modules/mathl (Files): Remove lib/ceill.c.
52088         (Depends-on): Add ceill.
52089
52090 2007-10-04  Bruno Haible  <bruno@clisp.org>
52091
52092         * modules/ceilf-tests: New file.
52093         * tests/test-ceilf.c: New file.
52094
52095         * modules/ceilf: New file.
52096         * lib/ceil.c: New file.
52097         * lib/ceilf.c: New file.
52098         * m4/ceilf.m4: New file.
52099         * lib/math.in.h (ceilf): New declaration.
52100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52101         HAVE_DECL_CEILF.
52102         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52103         HAVE_DECL_CEILF.
52104         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52105
52106 2007-10-04  Bruno Haible  <bruno@clisp.org>
52107
52108         * modules/floorl-tests: New file.
52109         * tests/test-floorl.c: New file.
52110
52111         * modules/floorl: New file.
52112         * lib/floorl.c: Replace entire file.
52113         * m4/floorl.m4: New file.
52114         * lib/math.in.h (floorl): Replace declaration.
52115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52116         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52117         * doc/functions/floorl.texi: Mention the 'floorl' module.
52118         * modules/mathl (Files): Remove lib/floorl.c.
52119         (Depends-on): Add floorl.
52120
52121 2007-10-04  Bruno Haible  <bruno@clisp.org>
52122
52123         * modules/floorf-tests: New file.
52124         * tests/test-floorf.c: New file.
52125
52126         * modules/floorf: New file.
52127         * lib/floor.c: New file.
52128         * lib/floorf.c: New file.
52129         * m4/floorf.m4: New file.
52130         * lib/math.in.h (floorf): New declaration.
52131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52132         HAVE_DECL_FLOORF.
52133         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52134         HAVE_DECL_FLOORF.
52135         * doc/functions/floorf.texi: Mention the 'floorf' module.
52136
52137 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52138             Bruno Haible  <bruno@clisp.org>
52139
52140         Advertise for the Git server instead of the CVS server.
52141         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52142         repository instead of the CVS one.
52143         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52144         about all VCS systems generically.
52145         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52146
52147 2007-10-04  Bruno Haible  <bruno@clisp.org>
52148
52149         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52150         means.
52151         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52152
52153 2007-10-04  Bruno Haible  <bruno@clisp.org>
52154
52155         * modules/truncl-tests: New file.
52156         * tests/test-truncl.c: New file.
52157
52158         * modules/truncl: New file.
52159         * lib/truncl.c: New file.
52160         * m4/truncl.m4: New file.
52161         * lib/math.in.h (truncl): New declaration.
52162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52163         HAVE_DECL_TRUNCL.
52164         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52165         HAVE_DECL_TRUNCL.
52166         * doc/functions/truncl.texi: Mention the 'truncl' module.
52167
52168 2007-10-04  Bruno Haible  <bruno@clisp.org>
52169
52170         * modules/truncf-tests: New file.
52171         * tests/test-truncf.c: New file.
52172
52173         * modules/truncf: New file.
52174         * lib/trunc.c: Make paramerizable through USE_* macros.
52175         * lib/truncf.c: New file.
52176         * m4/truncf.m4: New file.
52177         * lib/math.in.h (truncf): New declaration.
52178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52179         HAVE_DECL_TRUNCF.
52180         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52181         HAVE_DECL_TRUNCF.
52182         * doc/functions/truncf.texi: Mention the 'truncf' module.
52183
52184 2007-10-03  Bruno Haible  <bruno@clisp.org>
52185
52186         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52187         augmentation also for tests modules.
52188         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52189         * modules/atexit-tests (Makefile.am): Likewise.
52190         * modules/binary-io-tests (Makefile.am): Likewise.
52191         * modules/c-strcase-tests (Makefile.am): Likewise.
52192         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52193         * modules/canonicalize-tests (Makefile.am): Likewise.
52194         * modules/closein-tests (Makefile.am): Likewise.
52195         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52196         * modules/freadahead-tests (Makefile.am): Likewise.
52197         * modules/fseek-tests (Makefile.am): Likewise.
52198         * modules/fseeko-tests (Makefile.am): Likewise.
52199         * modules/ftell-tests (Makefile.am): Likewise.
52200         * modules/ftello-tests (Makefile.am): Likewise.
52201         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52202         * modules/isnanl-tests (Makefile.am): Likewise.
52203         * modules/lseek-tests (Makefile.am): Likewise.
52204         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52205         * modules/mbscasestr-tests (Makefile.am): Likewise.
52206         * modules/mbschr-tests (Makefile.am): Likewise.
52207         * modules/mbscspn-tests (Makefile.am): Likewise.
52208         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52209         * modules/mbspbrk-tests (Makefile.am): Likewise.
52210         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52211         * modules/mbsrchr-tests (Makefile.am): Likewise.
52212         * modules/mbsspn-tests (Makefile.am): Likewise.
52213         * modules/mbsstr-tests (Makefile.am): Likewise.
52214         * modules/printf-posix-tests (Makefile.am): Likewise.
52215         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52216         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52217         * modules/tsearch-tests (Makefile.am): Likewise.
52218         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52219         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52220         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52221         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52222         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52223         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52224         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52225         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52226         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52227         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52228         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52229         * modules/xstrtol-tests (Makefile.am): Likewise.
52230         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52231         * modules/yesno-tests (Makefile.am): Likewise.
52232
52233 2007-10-03  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/trunc-tests: New file.
52236         * tests/test-trunc.c: New file.
52237
52238         * modules/trunc: New file.
52239         * lib/trunc.c: New file.
52240         * m4/trunc.m4: New file.
52241         * lib/math.in.h (trunc): New declaration.
52242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52243         HAVE_DECL_TRUNC.
52244         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52245         HAVE_DECL_TRUNC.
52246         * doc/functions/trunc.texi: Mention the 'trunc' module.
52247
52248 2007-10-03  Bruno Haible  <bruno@clisp.org>
52249
52250         * tests/test-fpending.c: New file, mostly copied
52251         from coreutils/lib/t-fpending.c.
52252         * modules/fpending-tests: New file.
52253
52254 2007-10-03  Bruno Haible  <bruno@clisp.org>
52255
52256         Port the stdio extensions to QNX (untested).
52257         * lib/fseterr.c (fseterr): Add support for QNX.
52258         * lib/fbufmode.c (fbufmode): Likewise.
52259         * lib/freadable.c (freadable): Likewise.
52260         * lib/fwritable.c (fwritable): Likewise.
52261         * lib/freading.c (freading): Likewise.
52262         * lib/fwriting.c (fwriting): Likewise.
52263         * lib/freadahead.c (freadahed): Likewise.
52264         * lib/fpurge.c (fpurge): Likewise.
52265         * lib/fseeko.c (rpl_fseeko): Likewise.
52266
52267 2007-10-03  Bruno Haible  <bruno@clisp.org>
52268             Jim Meyering  <jim@meyering.net>
52269             Eric Blake  <ebb9@byu.net>
52270
52271         * doc/relocatable.texi: Use @command instead of @program.
52272
52273 2007-10-02  Jim Meyering  <jim@meyering.net>
52274
52275         Perform one more "_.h" -> ".in.h" substitution.
52276         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52277         instead of unistd_.h here, too.
52278
52279 2007-10-01  Bruno Haible  <bruno@clisp.org>
52280
52281         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52282         Needed for the alloca-opt module.
52283
52284 2007-09-30  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52287         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52288         alloca_.h.
52289         * lib/argz.in.h: Renamed from lib/argz_.h.
52290         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52291         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52292         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52293         byteswap_.h.
52294         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52295         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52296         dirent_.h.
52297         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52298         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52299         fcntl_.h.
52300         * lib/float.in.h: Renamed from lib/float_.h.
52301         * modules/float (Files, Makefile.am): Use float.in.h instead of
52302         float_.h.
52303         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52304         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52305         fnmatch_.h.
52306         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52307         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52308         getopt_.h.
52309         * lib/glob.in.h: Renamed from lib/glob_.h.
52310         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52311         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52312         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52313         iconv_.h.
52314         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52315         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52316         inttypes_.h.
52317         * lib/locale.in.h: Renamed from lib/locale_.h.
52318         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52319         locale_.h.
52320         * lib/math.in.h: Renamed from lib/math_.h.
52321         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52322         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52323         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52324         of netinet_in_.h. Add dependency.
52325         * lib/poll.in.h: Renamed from lib/poll_.h.
52326         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52327         * lib/search.in.h: Renamed from lib/search_.h.
52328         * modules/search (Files, Makefile.am): Use search.in.h instead of
52329         search_.h.
52330         * lib/signal.in.h: Renamed from lib/signal_.h.
52331         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52332         _signal.h.
52333         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52334         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52335         stdbool_.h.
52336         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52337         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52338         stdint_.h.
52339         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52340         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52341         stdio_.h.
52342         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52343         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52344         stdlib_.h.
52345         * lib/string.in.h: Renamed from lib/string_.h.
52346         * modules/string (Files, Makefile.am): Use string.in.h instead of
52347         string_.h.
52348         * doc/gnulib-tool.texi (Initial import): Update.
52349         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52350         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52351         of sys_select_.h. Add dependency.
52352         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52353         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52354         of sys_socket_.h.
52355         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52356         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52357         sys_stat_.h.
52358         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52359         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52360         sys_time_.h.
52361         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52362         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52363         sysexits_.h.
52364         * lib/time.in.h: Renamed from lib/time_.h.
52365         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52366         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52367         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52368         unistd_.h.
52369         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52370         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52371         wchar_.h.
52372         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52373         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52374         wctype_.h.
52375         * build-aux/bootstrap (slurp): Update.
52376         * lib/.cppi-disable: Update.
52377
52378 2007-09-30  Bruno Haible  <bruno@clisp.org>
52379
52380         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52381         Needed on BeOS.
52382
52383 2007-09-30  Bruno Haible  <bruno@clisp.org>
52384
52385         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52386
52387 2007-09-29  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52390
52391 2007-09-29  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52394         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52395         * build-aux/install-reloc: Compile also areadlink.c.
52396         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52397
52398 2007-09-29  Bruno Haible  <bruno@clisp.org>
52399
52400         * gnulib-tool (func_emit_initmacro_done): Indentation.
52401
52402 2007-09-29  Bruno Haible  <bruno@clisp.org>
52403
52404         * README: Add CVS checkout update instructions.
52405         Info from Bob Proulx <bob@proulx.com>.
52406
52407 2007-09-28  Eric Blake  <ebb9@byu.net>
52408
52409         Provide move-if-change.
52410         * build-aux/move-if-change: New file, based on best practice
52411         rather than any canonical upstream location.
52412
52413 2007-09-28  Jim Meyering  <jim@meyering.net>
52414
52415         Fix canonicalize loop-detection corner case.
52416         Do not attempt to stat the symlink values stored via seen_triple.
52417         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52418         on linux-2.6.18, (but not 2.6.22).
52419         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52420         triple_compare.  The former compares dev,ino,filename, while the latter
52421         would actually stat dirname(filename) when dev and ino were equal.
52422         * lib/hash-triple.c: Install <string.h>.
52423         (STREQ): Define.
52424         (triple_compare_ino_str): New function.
52425         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52426
52427 2007-09-28  Eric Blake  <ebb9@byu.net>
52428
52429         Enforce that AC_REPLACE_FUNCS files exist.
52430         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52431         override check for typos.
52432
52433         Fix test-closein on Solaris 10.
52434         * tests/test-closein.c (main): Don't assume stdin can be inherited
52435         closed on all systems.
52436         * tests/test-closein.sh: Likewise.
52437         Reported by Piotr Tarnowski.
52438
52439 2007-09-28  Jim Meyering  <jim@meyering.net>
52440
52441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52442
52443 2007-09-27  Jim Meyering  <jim@meyering.net>
52444
52445         canonicalize: Avoid a false-positive cycle failure.
52446         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52447         Sort.  Remove cycle-check.
52448         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52449         not cycle-check.h.
52450         (seen_triple): New function.
52451         (canonicalize_filename_mode): Use it instead of cycle-check.
52452         * tests/test-canonicalize.c: Add a test for this bug.
52453         * tests/test-canonicalize.sh: Set up and run the test.
52454
52455         New module, file-set, from coreutils.
52456         * modules/file-set: Define it.
52457         * lib/file-set.c, lib/file-set.h: Implement.
52458
52459         New module, hash-triple, from coreutils.
52460         * modules/hash-triple: Define it.
52461         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52462
52463 2007-09-25  Eric Blake  <ebb9@byu.net>
52464
52465         Fix strerror on Interix.
52466         * lib/string_.h (strerror): Declare replacement.
52467         * doc/functions/strerror.texi (strerror): Document the Interix
52468         shortcoming.
52469         * modules/string (Makefile.am): Support new hooks.
52470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52471         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52472         gl_FUNC_STRERROR_SEPARATE.
52473         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52474         * lib/strerror.c (rpl_strerror): Provide replacement.
52475         * modules/strerror (Depends-on): Add string.
52476         (configure.ac): Detect use of module.
52477         * tests/test-strerror.c: New file.
52478         * modules/strerror-tests: New test module.
52479         * modules/argp (Depends-on): Add strerror.
52480         * modules/error (Depends-on): Likewise.
52481         Reported by Martin Koeppe.
52482
52483 2007-09-24  Bruno Haible  <bruno@clisp.org>
52484
52485         * README: Update git instructions.
52486
52487 2007-09-24  Eric Blake  <ebb9@byu.net>
52488
52489         Revert fpending breakage from 2007-09-08.
52490         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52491         __fpending.c.
52492
52493 2007-09-24  Jim Meyering  <jim@meyering.net>
52494
52495         filenamecat.c: Add a test.
52496         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52497         showing how the function works when DIR is the empty string.
52498
52499 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52500
52501         * tests/test-canonicalize.sh: Turn on executable bit.
52502
52503 2007-09-19  Eric Blake  <ebb9@byu.net>
52504
52505         * README: Update CVS instructions.
52506
52507 2007-09-18  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/areadlink: New file.
52510         * lib/areadlink.h (areadlink): New declaration.
52511         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52512
52513 2007-09-17  Jim Meyering  <jim@meyering.net>
52514
52515         * lib/savewd.c (ESTALE) [!defined]: Define.
52516         Reported to be required on Interix by Martin Koeppe.
52517
52518 2007-09-17  Bruno Haible  <bruno@clisp.org>
52519
52520         * gnulib-tool (func_version): Use $version.
52521
52522 2007-09-16  Bruno Haible  <bruno@clisp.org>
52523
52524         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52525         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52526         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52527         Reported by Greg Schafer <gschafer@zip.com.au>.
52528
52529 2007-09-15  Bruno Haible  <bruno@clisp.org>
52530
52531         * gnulib-tool (sed): Try a little harder to make bash understand the
52532         alias.
52533         Reported by Bruce Korb <bruce.korb@gmail.com>.
52534
52535 2007-09-13  Eric Blake  <ebb9@byu.net>
52536
52537         * ChangeLog: Remove conflict markers.
52538
52539 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52540
52541         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52542         Reported by Bruno Haible <bruno@clisp.org>.
52543
52544 2007-09-12  Bruno Haible  <bruno@clisp.org>
52545
52546         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52547         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52548         is not defined.
52549
52550 2007-09-12  Eric Blake  <ebb9@byu.net>
52551
52552         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52554         Autoconf definition.
52555         * modules/euidaccess (Depends-on): Add extensions, for
52556         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52557         * modules/fnmatch (Depends-on): Likewise.
52558         * modules/getaddrinfo (Depends-on): Likewise.
52559         * modules/getdelim (Depends-on): Likewise.
52560         * modules/getline (Depends-on): Likewise.
52561         * modules/getsubopt (Depends-on): Likewise.
52562         * modules/gettext (Depends-on): Likewise.
52563         * modules/group-member (Depends-on): Likewise.
52564         * modules/mbchar (Depends-on): Likewise.
52565         * modules/memmem (Depends-on): Likewise.
52566         * modules/mempcpy (Depends-on): Likewise.
52567         * modules/memrchr (Depends-on): Likewise.
52568         * modules/pagealign_alloc (Depends-on): Likewise.
52569         * modules/readutmp (Depends-on): Likewise.
52570         * modules/stpcpy (Depends-on): Likewise.
52571         * modules/stpncpy (Depends-on): Likewise.
52572         * modules/strchrnul (Depends-on): Likewise.
52573         * modules/strndup (Depends-on): Likewise.
52574         * modules/strsep (Depends-on): Likewise.
52575         * modules/strverscmp (Depends-on): Likewise.
52576         * modules/vasprintf (Depends-on): Likewise.
52577         * modules/wcwidth (Depends-on): Likewise.
52578         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52579         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52580         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52582         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52583         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52584         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52585         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52586         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52587         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52589         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52591         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52592         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52593         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52594         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52595         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52597         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52600         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52601         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52602         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52604         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52605         so that lock.m4 can be used in gettext without extensions module.
52606
52607 2007-09-11  Bruno Haible  <bruno@clisp.org>
52608
52609         * m4/isc-posix.m4: Remove file.
52610         Suggested by Eric Blake.
52611
52612 2007-09-11  Eric Blake  <ebb9@byu.net>
52613
52614         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52615
52616 2007-09-10  Bruno Haible  <bruno@clisp.org>
52617
52618         * posix-modules: Fix typo in error message.
52619         Reported by Matt <mkraai@beckman.com>.
52620
52621 2007-09-09  Bruno Haible  <bruno@clisp.org>
52622
52623         * doc/functions/getdelim.texi: Update list of platforms lacking the
52624         function.
52625         * doc/functions/getline.texi: Likewise.
52626
52627 2007-09-09  Jim Meyering  <jim@meyering.net>
52628
52629         * lib/hash.c (hash_initialize): Detect calloc failure.
52630         Reported by Bruno Haible.
52631
52632 2007-09-09  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52635         malloc or realloc fails.
52636
52637 2007-09-09  Bruno Haible  <bruno@clisp.org>
52638
52639         * modules/getcwd (Depends-on): Add malloc-posix.
52640         * modules/glob (Depends-on): Likewise.
52641         * modules/putenv (Depends-on): Likewise.
52642         * modules/strdup (Depends-on): Likewise.
52643         * modules/getdelim (Depends-on): Add realloc-posix.
52644         * modules/read-file (Depends-on): Likewise.
52645
52646 2007-09-09  Bruno Haible  <bruno@clisp.org>
52647
52648         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52649         (gl_FUNC_MALLOC_POSIX): Require it.
52650         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52651         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52652         * modules/realloc (Files): Add m4/malloc.m4.
52653         * modules/calloc (Files): Likewise.
52654
52655 2007-09-09  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/malloc-posix: New file.
52658         * modules/malloc (Depends-on): Add malloc-posix.
52659         * lib/malloc.c: Include errno.h.
52660         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52661         and a POSIX-compatible malloc into a single function. Set ENOMEM
52662         when returning NULL.
52663         * m4/malloc.m4: New file.
52664         * doc/functions/malloc.texi: Mention the malloc-posix module.
52665         * lib/stdlib_.h (malloc): New declaration.
52666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52667         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52668         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52669         and HAVE_MALLOC_POSIX.
52670
52671 2007-09-09  Bruno Haible  <bruno@clisp.org>
52672
52673         * modules/realloc-posix: New file.
52674         * modules/realloc (Depends-on): Add realloc-posix.
52675         * lib/realloc.c: Include errno.h.
52676         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52677         and a POSIX-compatible realloc into a single function. Set ENOMEM
52678         when returning NULL.
52679         * m4/realloc.m4: New file.
52680         * doc/functions/realloc.texi: Mention the realloc-posix module.
52681         * lib/stdlib_.h (realloc): New declaration.
52682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52683         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52684         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52685         and HAVE_REALLOC_POSIX.
52686
52687 2007-09-09  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/calloc-posix: New file.
52690         * modules/calloc (Depends-on): Add calloc-posix.
52691         * lib/calloc.c: Include errno.h.
52692         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52693         and a POSIX-compatible calloc into a single function. Set ENOMEM
52694         when returning NULL.
52695         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52696         * doc/functions/calloc.texi: Mention the calloc-posix module.
52697         * lib/stdlib_.h (calloc): New declaration.
52698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52699         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52700         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52701         and HAVE_CALLOC_POSIX.
52702
52703 2007-09-09  Bruno Haible  <bruno@clisp.org>
52704
52705         Allow for modules to show an arbitrary notice.
52706         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52707         * gnulib-tool: New option --extract-notice.
52708         (func_usage): Document it.
52709         (sed_extract_prog): Update.
52710         (func_get_notice): New function.
52711         (func_modules_notice): New function.
52712         (func_import, func_create_testdir): Invoke it.
52713         Suggested by Jim Meyering.
52714
52715 2007-09-09  Bruno Haible  <bruno@clisp.org>
52716
52717         * gnulib-tool: New options --verbose, --quiet.
52718         (func_usage): Document them.
52719         (verbose): New variable.
52720         (func_execute_command): New function.
52721         (func_import): Don't show the module list and the file list if
52722         $verbose < 0.
52723         (func_create_testdir): Likewise. Use func_execute_command.
52724         (func_create_megatestdir): Use func_execute_command.
52725
52726 2007-09-08  Bruno Haible  <bruno@clisp.org>
52727
52728         * gnulib-tool (func_import): Prefer rsync over wget when available,
52729         for fetching the PO files.
52730
52731 2007-09-08  Bruno Haible  <bruno@clisp.org>
52732
52733         * posix-modules: New file. Portions copied from gnulib-tool.
52734         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52735
52736 2007-09-08  Jim Meyering  <jim@meyering.net>
52737
52738         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52739         * lib/fpending.h: Rename from __fpending.h.
52740         * lib/fpending.c: Rename from __fpending.c.
52741         Include "fpending.h", not "__fpending.h".
52742         * lib/__fpending.h, lib/__fpending.c: Remove files.
52743         * modules/fpending (Files): Reflect new file names.
52744         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52745
52746 2007-09-08  Bruno Haible  <bruno@clisp.org>
52747
52748         * m4/inttypes-h.m4: Remove stub file.
52749
52750 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52751
52752         * doc/headers/stdint.texi: Discuss #include_next issue.
52753
52754 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52757
52758 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52759
52760         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52761         in variable name.
52762
52763 2007-09-03  Jim Meyering  <jim@meyering.net>
52764
52765         New module: git-version-gen.
52766         * modules/git-version-gen: New file.
52767
52768         Import changes from coreutils for bootstrap script.
52769
52770         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52771
52772         bootstrap: uses rsync to download the .po files
52773         * build-aux/bootstrap (po_download_command_format): New global.
52774         (download_po_files): Use rsync.
52775         (update_po_files): Don't remove .po files after download,
52776         so future rsync runs can take advantage of the copies.
52777
52778         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52779
52780         Solve the unnecessary-.po-file-regeneration problem once and for all.
52781         * build-aux/bootstrap (download_po_files): New function, renamed from
52782         get_translations.  Now, downloads, but doesn't update LINGUAS.
52783         (update_po_files): New function.
52784
52785         bootstrap: Ignore more.
52786         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52787         uniwidth to e.g., lib/.gitignore.
52788         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52789
52790         * build-aux/bootstrap: New setting: vc_ignore.
52791         (insert_sorted_if_absent): Create $file if absent.
52792         Adapt to new, possibly empty, list: $vc_ignore.
52793
52794         bootstrap: generate more ignorable names
52795         * build-aux/bootstrap (slurp): When generating ignorable names,
52796         also map .sin to .sed, .gperf to .c, and .y to .c.
52797
52798 2007-09-03  Jim Meyering  <jim@meyering.net>
52799
52800         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52801         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52802
52803 2007-09-02  Bruno Haible  <bruno@clisp.org>
52804
52805         Fix mis-recognition of 'mcs' on QNX 6.
52806         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52807         output contains the string "Mono".
52808         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52809         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52810
52811 2007-09-01  Bruno Haible  <bruno@clisp.org>
52812
52813         Fix collision between uniwidth/* and linebreak modules.
52814         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52815         u32_width): Remove declarations.
52816         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52817         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52818         streq3, streq2, streq1, streq0): Remove functions.
52819         (STREQ): Remove macro.
52820         (is_cjk_encoding): Remove function.
52821         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52822         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52823         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52824         * NEWS: Document the change.
52825
52826 2007-09-01  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/streq.h: Add double-inclusion guard.
52829
52830 2007-09-01  Karl Berry  <karl@gnu.org>
52831
52832         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52833
52834 2007-08-28  Jim Meyering  <jim@meyering.net>
52835
52836         Rename mreadlink_with_size to areadlink_with_size.
52837         * NEWS: Document the change.
52838         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52839         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52840         * lib/mreadlink.h: Rename this to...
52841         * lib/areadlink.h: ...this.
52842         * modules/mreadlink-with-size: Rename this to...
52843         * modules/areadlink-with-size: ...this.
52844         * lib/canonicalize.c: Reflect the renaming.
52845         * modules/canonicalize: Likewise.
52846
52847 2007-08-26  Bruno Haible  <bruno@clisp.org>
52848
52849         * gnulib-tool (func_import): When deciding which files to remove,
52850         consider also dangling symbolic links.
52851         Reported by Eric Blake.
52852
52853 2007-08-26  Bruno Haible  <bruno@clisp.org>
52854
52855         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52856
52857 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52858
52859         * lib/readline.c: Don't include getline.h, the prototype is now
52860         found in stdio.h.
52861
52862 2007-08-23  Jim Meyering  <jim@meyering.net>
52863
52864         Getdelim touchup.
52865         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52866         around the funlockfile call, since funlockfile never sets errno.
52867         Don't set errno upon failed realloc.
52868
52869 2007-08-22  Eric Blake  <ebb9@byu.net>
52870
52871         Getline touchups.
52872         * lib/getdelim.c (getdelim): Revert regression that required *n to
52873         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52874         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52875         getdelim, rather than whether implementation is missing.
52876         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52877         * lib/stdio_.h (getline): Also declare if replacement is
52878         required.
52879         * doc/functions/getdelim.texi: New file.
52880         * doc/functions/getline.texi: Likewise.
52881         * doc/gnulib.texi (Function Substitutes): Add new files.
52882         Reported by Bruno Haible.
52883
52884 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52885
52886         * users.txt: Add Guile.
52887
52888 2007-08-22  Eric Blake  <ebb9@byu.net>
52889
52890         * tests/test-getdelim.c (main): Use remove, not unlink.
52891         * tests/test-getline.c (main): Likewise.
52892
52893         Move getline and getdelim into stdio.h, per POSIX 200x.
52894         * modules/getline (Files): Remove getline.h.
52895         (Depends-on): Add stdio.
52896         (configure.ac): Add module indicator.
52897         * modules/getdelim (Files): Remove getdelim.h.
52898         (Depends-on): Add stdio.
52899         (configure.ac): Add module indicator.
52900         * modules/stdio (Makefile.am): Work with new indicators.
52901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52903         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52904         * lib/getdelim.h: Delete.
52905         * lib/getline.h: Delete.
52906         * lib/stdio_.h (getdelim, getline): Declare.
52907         * modules/getdelim-tests: New module.
52908         * modules/getline-tests: Likewise.
52909         * tests/test-getdelim.c: New file.
52910         * tests/test-getline.c: Likewise.
52911         * NEWS: Document the change.
52912         * lib/getline.c: Update choice of header.
52913         * lib/csharpcomp.c: Likewise.
52914         * lib/getpass.c: Likewise.
52915         * lib/javacomp.c: Likewise.
52916         * lib/javaversion.c: Likewise.
52917         * lib/yesno.c: Likewise.
52918         * lib/getdelim.c: Likewise.
52919         (getdelim): Set errno on failure, and avoid memory leak.
52920
52921 2007-08-19  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/closein (Depends-on): Add freadahead.
52924         * lib/closein.c: Include freadahead.h.
52925         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52926         is zero.
52927
52928 2007-08-19  Bruno Haible  <bruno@clisp.org>
52929
52930         * modules/freadahead-tests: New file.
52931         * tests/test-freadahead.sh: New file.
52932         * tests/test-freadahead.c: New file.
52933
52934         * modules/freadahead: New file.
52935         * lib/freadahead.h: New file.
52936         * lib/freadahead.c: New file.
52937         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52938         fbufmode, fpurge, freadable, fwritable.
52939
52940 2007-08-19  Eric Blake  <ebb9@byu.net>
52941
52942         Test yesno in combination with closein.
52943         * lib/yesno.c (yesno): Document use of stdin.
52944         * modules/yesno-tests (Files): New module.
52945         * tests/test-yesno.c (main): New file.
52946         * tests/test-yesno.sh: Likewise.
52947
52948 2007-08-19  Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52951         * lib/fseeko.c (rpl_fseeko): Likewise.
52952         * lib/fseterr.c (fseterr): Likewise.
52953
52954 2007-08-19  Bruno Haible  <bruno@clisp.org>
52955
52956         * tests/test-lseek.c (main): Disable a test for BeOS.
52957         * doc/functions/lseek.texi: Document the BeOS bug.
52958
52959 2007-08-19  Bruno Haible  <bruno@clisp.org>
52960             Eric Blake  <ebb9@byu.net>
52961
52962         * lib/lseek.c: Include <sys/stat.h>.
52963         (rpl_lseek): Add workaround code also for Unix platforms.
52964         Needed for BeOS.
52965         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52966         * doc/functions/lseek.texi: Document BeOS definiency.
52967
52968 2007-08-18  Bruno Haible  <bruno@clisp.org>
52969
52970         * modules/fstrcmp-tests: New file.
52971         * tests/test-fstrcmp.c: New file.
52972
52973 2007-08-18  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/fstrcmp: New file, from GNU gettext with modifications.
52976         * lib/fstrcmp.h: New file, from GNU gettext.
52977         * lib/fstrcmp.c: New file, from GNU gettext.
52978         * MODULES.html.sh (String handling): Add fstrcmp.
52979
52980 2007-08-18  Bruno Haible  <bruno@clisp.org>
52981
52982         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52983         'bool'.
52984         (diag, compareseq): Remove const from the ctxt argument.
52985         (USE_HEURISTIC): Undefine at the end.
52986
52987 2007-08-18  Jim Meyering  <jim@meyering.net>
52988
52989         New file: lib/idcache.h
52990         * NEWS: Mention the addition.
52991         * modules/idcache (Files): Add lib/idcache.h
52992         * lib/idcache.c: Include "idcache.h".
52993         Don't include <sys/types.h>.
52994         Add a FIXME comment.
52995         Move file-scoped "static" declarations to the top.
52996         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52997
52998 2007-08-17  Bruno Haible  <bruno@clisp.org>
52999         and Paul Eggert  <eggert@cs.ucla.edu>
53000
53001         * MODULES.html.sh: Add diffseq.
53002         * modules/diffseq: New file.
53003         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53004         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53005
53006 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53007
53008         Import changes from coreutils for bootstrap script.
53009
53010         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         * build-aux/bootstrap (slurp): Work even in environments where
53013         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53014         current code does not slurp files whose names start with ".", and
53015         this looks like it might be a troublesome area.
53016
53017         2007-07-11  Jim Meyering  <jim@meyering.net>
53018
53019         If there's a GPL vN copyright comment, require that N == 3.
53020
53021         2007-07-08  Jim Meyering  <jim@meyering.net>
53022
53023         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53024         * build-aux/bootstrap (mam_template): Move definition out of loop.
53025
53026         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53027
53028         * build-aux/bootstrap (symlink_to_dir): Rename function from
53029         symlink_to_gnulib.  Add a directory parameter.  Update all
53030         callers.
53031         (cp_mark_as_generated): Also check for -- and link to -- files in
53032         gl/.
53033
53034         2007-07-08  Jim Meyering  <jim@meyering.net>
53035
53036         Adapt to deeper hierarchy in gnulib.
53037         * build-aux/bootstrap (symlink_to_dir): If the destination
53038         directory doesn't exist, create it. This is required at least for
53039         "lib/uniwidth/cjk.h".
53040
53041         2007-05-15  Jim Meyering  <jim@meyering.net>
53042
53043         * build-aux/bootstrap: Now that generated Makefile.am files
53044         are no longer under version control, they must be created at
53045         bootstrap time.
53046
53047 2007-08-14  Ben Pfaff  <blp@gnu.org>
53048
53049         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53050
53051 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53054         given the changes below.
53055         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53056         even on hosts that have padding bits beyond the supported 64.
53057
53058 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53061         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53062         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53063         depends on it.
53064         (xstrtol_error): Remove.
53065         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53066         but with a different signature.
53067         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53068         * lib/xstrtol-error.c: Include exitfail.h.
53069         (xstrtol_fatal): New function, with a different signature from the
53070         old xstrtol_error, so that the caller need not worry about passing
53071         in an exit status, or about storage management of the option argument.
53072         (xstrtol_error): Now a static function.  Redo signature to
53073         implement xstrtol_fatal.  Output the correct number of hyphens in
53074         front of the option so that the caller need not worry about
53075         storage management.
53076         (N_): New macro.
53077         (_): Remove; not used now.
53078         * modules/xstrtol: Depend on getopt.
53079         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53080         of old STRTOL_FATAL_ERROR macro.
53081         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53082         of test program.
53083         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53084         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53085
53086 2007-08-08  Eric Blake  <ebb9@byu.net>
53087
53088         * lib/xstrtol-error.c: Add missing include.
53089
53090         Move xstrtol messages into gnulib domain, when --pobase is used.
53091         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53092         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53093         * modules/xstrtol (Files): Distribute new file.
53094         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53095         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53096         * tests/test-xstrtol.c: ...into new file.
53097         * tests/test-xstrtoul.c: Also test xstrtoul.
53098         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53099         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53100         * tests/test-xstrtol.sh: Drive the tests.
53101         * tests/test-xstrtoimax.sh: Likewise.
53102         * tests/test-xstrtoumax.sh: Likewise.
53103         * modules/xstrtol-tests: New module.
53104         * modules/xstrtoimax-tests: Likewise.
53105         * modules/xstrtoumax-tests: Likewise.
53106
53107 2007-08-08  Jim Meyering  <jim@meyering.net>
53108
53109         New function: mfile_name_concat.
53110         * lib/filenamecat.c (mfile_name_concat): New function, just like
53111         file_name_concat, but return NULL upon failure rather than exiting
53112         with a diagnostic.
53113         * lib/filenamecat.h: Declare it.
53114
53115 2007-08-07  Bruno Haible  <bruno@clisp.org>
53116
53117         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53118         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53119         warning from gcc.
53120         Reported by Eric Blake.
53121
53122 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53123
53124         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53125         * modules/crypto/arcfour (License): Likewise.
53126         * modules/crypto/des-tests (License): Likewise.
53127         * modules/crypto/gc-arctwo-tests (License): Likewise.
53128         * modules/crypto/gc-des-tests (License): Likewise.
53129         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53130         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53131         * modules/crypto/gc-md2-tests (License): Likewise.
53132         * modules/crypto/gc-md4-tests (License): Likewise.
53133         * modules/crypto/gc-md5-tests (License): Likewise.
53134         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53135         * modules/crypto/gc-rijndael-tests (License): Likewise.
53136         * modules/crypto/gc-sha1-tests (License): Likewise.
53137         * modules/crypto/gc-tests (License): Likewise.
53138         * modules/crypto/hmac-md5 (License): Likewise.
53139         * modules/crypto/hmac-sha1 (License): Likewise.
53140         * modules/crypto/md2-tests (License): Likewise.
53141         * modules/crypto/md4-tests (License): Likewise.
53142         * modules/crypto/md5 (License): Likewise.
53143         * modules/crypto/rijndael (License): Likewise.
53144         * modules/crypto/sha1 (License): Likewise.
53145         * modules/memxor (License): Likewise.
53146
53147 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53148         and Bruno Haible  <bruno@clisp.org>
53149
53150         * NEWS: Describe interface changes to human, xstrtol.
53151         * lib/human.h: Include <xstrtol.h>.
53152         (human_options): Return enum strtol_error, not int.  Remove
53153         bool arg; take int * instead.
53154         * lib/human.c: Don't include "gettext.h".
53155         (_): Remove; no longer used.
53156         Don't include <xstrtol.h>, since human.h does it.
53157         (human_options): Adjust to abovementioned interface changes.
53158         Do not report error to stderr; that's now the caller's
53159         responsibility.
53160         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53161         interface change.
53162         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53163         Str, Argument_type_string.  All uses changed.  Put " argument"
53164         in diagnostics to make them clearer.  Change wording of suffix
53165         message for clarity.
53166         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53167         Argument_type_string.
53168         (STRTOL_FATAL_WARN): Remove; no longer used.
53169         * modules/human (Depends-on): Remove gettext-h.
53170
53171 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53172
53173         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53174
53175 2007-07-31  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53178         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53179         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53180
53181 2007-07-31  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53184         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53185
53186 2007-07-30  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53189         * modules/c-ctype (License): Likewise.
53190         * modules/c-strcase (License): Likewise.
53191         * modules/check-version (License): Likewise.
53192         * modules/iconv (License): Likewise.
53193         * modules/iconv_open (License): Likewise.
53194         * modules/read-file (License): Likewise.
53195         * modules/striconv (License): Likewise.
53196         * modules/strverscmp (License): Likewise.
53197         * modules/vasprintf (License): Likewise.
53198         * modules/crypto/des (License): Likewise.
53199         * modules/crypto/gc (License): Likewise.
53200         * modules/crypto/gc-arcfour (License): Likewise.
53201         * modules/crypto/gc-arctwo (License): Likewise.
53202         * modules/crypto/gc-des (License): Likewise.
53203         * modules/crypto/gc-hmac-md5 (License): Likewise.
53204         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53205         * modules/crypto/gc-md2 (License): Likewise.
53206         * modules/crypto/gc-md4 (License): Likewise.
53207         * modules/crypto/gc-md5 (License): Likewise.
53208         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53209         * modules/crypto/gc-random (License): Likewise.
53210         * modules/crypto/gc-rijndael (License): Likewise.
53211         * modules/crypto/gc-sha1 (License): Likewise.
53212         * modules/crypto/md2 (License): Likewise.
53213         * modules/crypto/md4 (License): Likewise.
53214
53215 2007-07-30  Jim Meyering  <jim@meyering.net>
53216
53217         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53218         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53219         it has valid stat data.  This bug would cause du not to count the
53220         sizes of inaccessible directories.
53221         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53222         in <http://bugzilla.redhat.com/250077>.
53223
53224 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53225             Bruno Haible  <bruno@clisp.org>
53226
53227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53228         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53229         #include_next, gives a diagnostic about it, but reports no error in
53230         the exit code.
53231         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53232
53233 2007-07-24  Ben Pfaff  <blp@gnu.org>
53234
53235         Improve name: "count-one-bits" is better than "popcount".
53236         * MODULES.html.sh: Update name.
53237         * lib/popcount.h: Renamed lib/count-one-bits.h.
53238         (popcount): Renamed count_one_bits.
53239         (popcountl): Renamed count_one_bits_l.
53240         (popcountll): Renamed count_one_bits_ll.
53241         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53242         * modules/popcount: Renamed module/count-one-bits.
53243         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53244         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53245
53246 2007-07-23  Ben Pfaff  <blp@gnu.org>
53247
53248         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53249         better code generation, and add U to large constants to avoid
53250         warnings, in non-GCC case.
53251         Suggested by Bruno Haible.
53252
53253 2007-07-23  Ben Pfaff  <blp@gnu.org>
53254
53255         * lib/popcount.h: Use verify_true instead of if...abort.
53256         * modules/popcount: Depend on verify module.
53257         Suggested by Jim Meyering.
53258
53259 2007-07-23  Bruno Haible  <bruno@clisp.org>
53260
53261         * gnulib-tool (func_import): Create a .cvsignore file also when the
53262         directory is not yet in CVS but the toplevel directory is. When
53263         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53264         Reported by Karl Berry.
53265
53266 2007-07-22  Ben Pfaff  <blp@gnu.org>
53267
53268         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53269         case.
53270         Suggested by Eric Blake.
53271
53272 2007-07-22  Ben Pfaff  <blp@gnu.org>
53273
53274         New module: popcount.
53275         * MODULES.html.sh: Add popcount.
53276         * modules/popcount: New file.
53277         * modules/popcount-tests: New file.
53278         * tests/test-popcount.c: New file.
53279         * lib/popcount.h: New file.
53280         * m4/popcount.m4: New file.
53281
53282 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53283
53284         * build-aux/announce-gen: Update to GPLv3.
53285
53286         * build-aux/config.guess: Update from config.
53287
53288 2007-07-21  Bruno Haible  <bruno@clisp.org>
53289
53290         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53291         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53292
53293 2007-07-20  Jim Meyering  <jim@meyering.net>
53294
53295         * check-module: Diagnose a self-dependency.
53296
53297 2007-07-19  Bruno Haible  <bruno@clisp.org>
53298
53299         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53300         empty.
53301         Reported by Eric Blake.
53302
53303 2007-07-18  Bruno Haible  <bruno@clisp.org>
53304
53305         * gnulib-tool: New options --po-base, --po-domain.
53306         (func_usage): Document them.
53307         (pobase, po_domain): New variables.
53308         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53309         DEFAULT_TEXT_DOMAIN.
53310         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53311         (func_import): Consider pobase and po_domain. Create a po/ directory.
53312         (func_create_testdir): Set pobase and po_domain to empty.
53313         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53314         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53315
53316 2007-07-18  Bruno Haible  <bruno@clisp.org>
53317
53318         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53319         EXTRA_DIST augmentation for files in build-aux/.
53320
53321 2007-07-16  Bruno Haible  <bruno@clisp.org>
53322
53323         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53324         * modules/getdelim (License): Likewise.
53325
53326 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53327
53328         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53329         * modules/d-type (License): Likewise.
53330         * modules/extensions (License): Likewise.
53331         * modules/fnmatch (License): Likewise.
53332         * modules/fseeko (License): Likewise.
53333         * modules/getaddrinfo (License): Likewise.
53334         * modules/getline (License): Likewise.
53335         * modules/getlogin_r (License): Likewise.
53336         * modules/getpass (License): Likewise.
53337         * modules/gettimeofday (License): Likewise.
53338         * modules/glob (License): Likewise.
53339         * modules/inet_ntop (License): Likewise.
53340         * modules/malloc (License): Likewise.
53341         * modules/malloca (License): Likewise.
53342         * modules/memmem (License): Likewise.
53343         * modules/mempcpy (License): Likewise.
53344         * modules/memset (License): Likewise.
53345         * modules/minmax (License): Likewise.
53346         * modules/mktime (License): Likewise.
53347         * modules/netinet_in (License): Likewise.
53348         * modules/pathmax (License): Likewise.
53349         * modules/poll (License): Likewise.
53350         * modules/regex (License): Likewise.
53351         * modules/snprintf (License): Likewise.
53352         * modules/stdbool (License): Likewise.
53353         * modules/stdint (License): Likewise.
53354         * modules/stdio (License): Likewise.
53355         * modules/strcase (License): Likewise.
53356         * modules/strcasestr (License): Likewise.
53357         * modules/strdup (License): Likewise.
53358         * modules/string (License): Likewise.
53359         * modules/strndup (License): Likewise.
53360         * modules/strnlen (License): Likewise.
53361         * modules/strpbrk (License): Likewise.
53362         * modules/strptime (License): Likewise.
53363         * modules/strsep (License): Likewise.
53364         * modules/sys_select (License): Likewise.
53365         * modules/sys_socket (License): Likewise.
53366         * modules/sys_stat (License): Likewise.
53367         * modules/sys_time (License): Likewise.
53368         * modules/time (License): Likewise.
53369         * modules/time_r (License): Likewise.
53370         * modules/timegm (License): Likewise.
53371         * modules/unistd (License): Likewise.
53372         * modules/vsnprintf (License): Likewise.
53373         * modules/wctype (License): Likewise.
53374
53375 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53376
53377         * modules/argz (License): LGPLv2+.
53378
53379 2007-07-15  Karl Berry  <karl@gnu.org>
53380
53381         * doc/gnulib.texi: revise node structure per new fdl.texi.
53382
53383 2007-07-14  Bruno Haible  <bruno@clisp.org>
53384
53385         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53386         the output file.
53387         * lib/uniname/uninames.h: Regenerated.
53388
53389 2007-07-14  Karl Berry  <karl@gnu.org>
53390
53391         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53392         omitting sectioning and index commands.
53393
53394 2007-07-13  Bruno Haible  <bruno@clisp.org>
53395
53396         New gnulib-tool option --more-symlinks.
53397         * gnulib-tool (func_usage): Document --more-symlinks.
53398         (do_copyrights): New variable.
53399         Recognize option --more-symlinks.
53400         (func_import): Don't add a copyright notice transform to
53401         sed_transform_lib_file if do_copyrights is empty.
53402
53403 2007-07-13  Bruno Haible  <bruno@clisp.org>
53404
53405         * lib/vasnprintf.c (decimal_point_char): Define also if
53406         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53407         && !NEED_PRINTF_DIRECTIVE_A.
53408         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53409         Gary V. Vaughan <gary@gnu.org>.
53410
53411 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/inttypes_.h: Undo previous change, since it was fixed
53414         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53415
53416 2007-07-13  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53419         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53420
53421 2007-07-13  Jim Meyering  <jim@meyering.net>
53422
53423         df: Don't fail for Tru64's "file-on-file mount".
53424         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53425         so we fall through and use statfs instead.  Details here:
53426         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53427         Reported by Albert Chin.
53428
53429 2007-07-13  Bruno Haible  <bruno@clisp.org>
53430
53431         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53432         * modules/configmake (License): Likewise.
53433         * modules/gettext (License): Likewise.
53434         * modules/gettext-h (License): Likewise.
53435         * modules/include_next (License): Likewise.
53436         * modules/link-warning (License): Likewise.
53437         * modules/localcharset (License): Likewise.
53438         * modules/localename (License): Likewise.
53439         * modules/lock (License): Likewise.
53440         * modules/relocatable-lib-lgpl (License): Likewise.
53441         * modules/size_max (License): Likewise.
53442         * modules/vasnprintf (License): Likewise.
53443         * modules/wchar (License): Likewise.
53444         * modules/xsize (License): Likewise.
53445
53446 2007-07-13  Bruno Haible  <bruno@clisp.org>
53447
53448         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53449         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53450
53451 2007-07-12  Bruno Haible  <bruno@clisp.org>
53452
53453         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53454         in the modules files.
53455
53456 2007-07-11  Karl Berry  <karl@gnu.org>
53457
53458         * MODULES.html.sh (func_module): use
53459          sed -e '\|^'"${includefile}"'$|d'
53460          instead of /.../d, to avoid errors on $includefile's containing /.
53461
53462 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53463
53464         * gnulib-tool (func_import): Avoid duplication of --avoid
53465         statements
53466         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53467         names to `_' in variable names.
53468
53469 2007-07-10  Eric Blake  <ebb9@byu.net>
53470
53471         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53472         * NEWS: Document this change.
53473
53474 2007-07-08  Bruno Haible  <bruno@clisp.org>
53475
53476         Update to Unicode 5.0.
53477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53478         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53479         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53480         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53481         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53482         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53483         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53484         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53485         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53486         U+10A3F, U+1D242..U+1D244.
53487         (nonspacing_table_ind): Update.
53488         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53489         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53490
53491 2007-07-08  Bruno Haible  <bruno@clisp.org>
53492
53493         Update to Unicode 5.0.
53494         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53495         code transform. Extend the name index field of unicode_name_to_code and
53496         unicode_code_to_name from 16 to 24 bits.
53497         * lib/uniname/uniname.c (unicode_character_name,
53498         unicode_name_character): Add the range 0x12xxx to the code transform.
53499         * lib/uniname/uninames.h: Regenerated.
53500         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53501
53502 2007-07-07  Bruno Haible  <bruno@clisp.org>
53503
53504         * modules/wcwidth-tests: New file.
53505         * tests/test-wcwidth.c: New file.
53506
53507         Work around MacOS X wcwidth() bug.
53508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53509         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53510         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53511         original wcwidth in non-UTF-8 locales.
53512         * modules/wcwidth (Depends-on): Add localcharset, streq,
53513         uniwidth/width.
53514         * doc/functions/wcwidth.texi: Update.
53515
53516 2007-07-07  Bruno Haible  <bruno@clisp.org>
53517
53518         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53519         (wcwidth): New declaration.
53520         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53521         macros.
53522         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53523         here. Prepare for creating <wchar.h> unconditionally.
53524         * modules/wchar (Depends-on): Add link-warning.
53525         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53526         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53527         * lib/wcwidth.h: Remove file.
53528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53529         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53530         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53531         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53532         (Include): Replace wcwidth.h with <wchar.h>.
53533         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53534         * lib/mbchar.h: Don't include wcwidth.h.
53535         * lib/mbswidth.c: Likewise.
53536         * NEWS: Mention the change.
53537
53538 2007-07-07  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53541         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53542         definition with an external declaration.
53543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53544         defined as a function. Remove AC_C_INLINE requirement.
53545         * modules/wcwidth (Files): Add lib/wcwidth.c.
53546         (Makefile.am): Remove redundant statement.
53547
53548 2007-07-07  Bruno Haible  <bruno@clisp.org>
53549
53550         * MODULES.html.sh (Unicode string functions): Add the new modules.
53551
53552         * tests/uniwidth/test-u32-strwidth.c: New file.
53553         * modules/uniwidth/u32-strwidth-tests: New file.
53554
53555         * lib/uniwidth/u32-strwidth.c: New file.
53556         * modules/uniwidth/u32-strwidth: New file.
53557
53558         * tests/uniwidth/test-u16-strwidth.c: New file.
53559         * modules/uniwidth/u16-strwidth-tests: New file.
53560
53561         * lib/uniwidth/u16-strwidth.c: New file.
53562         * modules/uniwidth/u16-strwidth: New file.
53563
53564         * tests/uniwidth/test-u8-strwidth.c: New file.
53565         * modules/uniwidth/u8-strwidth-tests: New file.
53566
53567         * lib/uniwidth/u8-strwidth.c: New file.
53568         * modules/uniwidth/u8-strwidth: New file.
53569
53570         * tests/uniwidth/test-u32-width.c: New file.
53571         * modules/uniwidth/u32-width-tests: New file.
53572
53573         * lib/uniwidth/u32-width.c: New file.
53574         * modules/uniwidth/u32-width: New file.
53575
53576         * tests/uniwidth/test-u16-width.c: New file.
53577         * modules/uniwidth/u16-width-tests: New file.
53578
53579         * lib/uniwidth/u16-width.c: New file.
53580         * modules/uniwidth/u16-width: New file.
53581
53582         * tests/uniwidth/test-u8-width.c: New file.
53583         * modules/uniwidth/u8-width-tests: New file.
53584
53585         * lib/uniwidth/u8-width.c: New file.
53586         * modules/uniwidth/u8-width: New file.
53587
53588         * tests/uniwidth/test-uc_width.c: New file.
53589         * modules/uniwidth/width-tests: New file.
53590
53591         * lib/uniwidth/width.c: New file, from GNU libiconv.
53592         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53593         * modules/uniwidth/width: New file.
53594
53595         * lib/uniwidth.h: New file, from GNU libiconv.
53596         * modules/uniwidth/base: New file.
53597
53598 2007-07-07  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/uniname.h: New file, from GNU gettext.
53601         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53602         * lib/uniname/uninames.h: New file, from GNU gettext.
53603         * lib/uniname/uniname.c: New file, from GNU gettext.
53604         * tests/uniname/test-uninames.sh: New file.
53605         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53606         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53607         * modules/uniname/base: New file.
53608         * modules/uniname/uniname: New file.
53609         * modules/uniname/uniname-tests: New file.
53610         * MODULES.html.sh (Unicode string functions): Add the new modules.
53611
53612 2007-07-06  Bruno Haible  <bruno@clisp.org>
53613
53614         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53615
53616 2007-07-06  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53619         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53620         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53621         include <sys/time.h>.
53622         Reported by Eric Blake.
53623
53624 2007-07-06  Eric Blake  <ebb9@byu.net>
53625
53626         Fix testing canonicalize on cygwin.
53627         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53628         Revert patch from 2007-06-19.
53629         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53630         canonicalize module is also in use.
53631         * tests/test-canonicalize.c: New file.
53632         * tests/test-canonicalize.sh: Likewise.
53633         * modules/canonicalize-tests: Likewise.
53634
53635 2007-07-06  Jim Meyering  <jim@meyering.net>
53636
53637         * lib/getugroups.c (getugroups): Detect getgrent failure.
53638         Adjust comment to reflect reality: this function may return -1.
53639
53640 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53641
53642         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53643         the new TP address.
53644         (usage): Fix typo
53645         (gnulib_mk): New variable.
53646
53647 2007-07-05  Jim Meyering  <jim@meyering.net>
53648
53649         Don't let endgrent clobber errno, no matter how improbable.
53650         * lib/getugroups.c (getugroups): Save and restore errno around
53651         endgrent call.
53652
53653         Close the group DB even when failing with 2^31 or more members.
53654         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53655
53656 2007-07-04  Jim Meyering  <jim@meyering.net>
53657
53658         * lib/getugroups.h: New file.
53659         * lib/getugroups.c: Include "getugroups.h".
53660         Remove uses of "register" keyword.
53661         Move local variable, "cp", down into scope where used.
53662         Give "username" parameter the "const" attribute.
53663         * modules/getugroups (Files): Add lib/getugroups.h
53664
53665 2007-07-04  Karl Berry  <karl@gnu.org>
53666
53667         * MODULES.html.sh (func_all_modules): Complete rename of
53668         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53669
53670 2007-07-02  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53673         mode, when inttypes.h comes from gnulib.
53674         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53675
53676 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53677
53678         * NEWS: Mention lgpl module name change.
53679
53680         * modules/lgpl-2.1: Renamed from lgpl.
53681
53682         * NEWS: Mention gpl module name change.
53683
53684         * modules/gpl-3.0: New file, based on gpl-2.0.
53685
53686         * modules/gpl-2.0: Renamed from gpl.
53687
53688         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53689         doc/gpl-2.0.texi.
53690
53691 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53694         #define __STDC_LIMIT_MACROS temporarily while including
53695         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53696         Problem reported by Joel E. Denny in
53697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53698
53699 2007-07-01  Bruno Haible  <bruno@clisp.org>
53700
53701         * lib/unistdio.h: New file.
53702         * lib/unistdio/u-asnprintf.h: New file.
53703         * lib/unistdio/u-asprintf.h: New file.
53704         * lib/unistdio/u-printf-args.c: New file.
53705         * lib/unistdio/u-printf-args.h: New file.
53706         * lib/unistdio/u-printf-parse.h: New file.
53707         * lib/unistdio/u-snprintf.h: New file.
53708         * lib/unistdio/u-sprintf.h: New file.
53709         * lib/unistdio/u-vasprintf.h: New file.
53710         * lib/unistdio/u-vsnprintf.h: New file.
53711         * lib/unistdio/u-vsprintf.h: New file.
53712         * lib/unistdio/ulc-asnprintf.c: New file.
53713         * lib/unistdio/ulc-asprintf.c: New file.
53714         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53715         * lib/unistdio/ulc-printf-parse.c: New file.
53716         * lib/unistdio/ulc-snprintf.c: New file.
53717         * lib/unistdio/ulc-sprintf.c: New file.
53718         * lib/unistdio/ulc-vasnprintf.c: New file.
53719         * lib/unistdio/ulc-vasprintf.c: New file.
53720         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53721         * lib/unistdio/ulc-vsnprintf.c: New file.
53722         * lib/unistdio/ulc-vsprintf.c: New file.
53723         * lib/unistdio/u8-asnprintf.c: New file.
53724         * lib/unistdio/u8-asprintf.c: New file.
53725         * lib/unistdio/u8-printf-parse.c: New file.
53726         * lib/unistdio/u8-snprintf.c: New file.
53727         * lib/unistdio/u8-sprintf.c: New file.
53728         * lib/unistdio/u8-vasnprintf.c: New file.
53729         * lib/unistdio/u8-vasprintf.c: New file.
53730         * lib/unistdio/u8-vsnprintf.c: New file.
53731         * lib/unistdio/u8-vsprintf.c: New file.
53732         * lib/unistdio/u8-u8-asnprintf.c: New file.
53733         * lib/unistdio/u8-u8-asprintf.c: New file.
53734         * lib/unistdio/u8-u8-snprintf.c: New file.
53735         * lib/unistdio/u8-u8-sprintf.c: New file.
53736         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53737         * lib/unistdio/u8-u8-vasprintf.c: New file.
53738         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53739         * lib/unistdio/u8-u8-vsprintf.c: New file.
53740         * lib/unistdio/u16-asnprintf.c: New file.
53741         * lib/unistdio/u16-asprintf.c: New file.
53742         * lib/unistdio/u16-printf-parse.c: New file.
53743         * lib/unistdio/u16-snprintf.c: New file.
53744         * lib/unistdio/u16-sprintf.c: New file.
53745         * lib/unistdio/u16-vasnprintf.c: New file.
53746         * lib/unistdio/u16-vasprintf.c: New file.
53747         * lib/unistdio/u16-vsnprintf.c: New file.
53748         * lib/unistdio/u16-vsprintf.c: New file.
53749         * lib/unistdio/u16-u16-asnprintf.c: New file.
53750         * lib/unistdio/u16-u16-asprintf.c: New file.
53751         * lib/unistdio/u16-u16-snprintf.c: New file.
53752         * lib/unistdio/u16-u16-sprintf.c: New file.
53753         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53754         * lib/unistdio/u16-u16-vasprintf.c: New file.
53755         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53756         * lib/unistdio/u16-u16-vsprintf.c: New file.
53757         * lib/unistdio/u32-asnprintf.c: New file.
53758         * lib/unistdio/u32-asprintf.c: New file.
53759         * lib/unistdio/u32-printf-parse.c: New file.
53760         * lib/unistdio/u32-snprintf.c: New file.
53761         * lib/unistdio/u32-sprintf.c: New file.
53762         * lib/unistdio/u32-vasnprintf.c: New file.
53763         * lib/unistdio/u32-vasprintf.c: New file.
53764         * lib/unistdio/u32-vsnprintf.c: New file.
53765         * lib/unistdio/u32-vsprintf.c: New file.
53766         * lib/unistdio/u32-u32-asnprintf.c: New file.
53767         * lib/unistdio/u32-u32-asprintf.c: New file.
53768         * lib/unistdio/u32-u32-snprintf.c: New file.
53769         * lib/unistdio/u32-u32-sprintf.c: New file.
53770         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53771         * lib/unistdio/u32-u32-vasprintf.c: New file.
53772         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53773         * lib/unistdio/u32-u32-vsprintf.c: New file.
53774         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53775         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53776         * tests/unistdio/test-ulc-printf1.h: New file.
53777         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53778         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53779         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53780         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53781         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53782         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53783         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53784         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53785         * tests/unistdio/test-u8-asnprintf1.c: New file.
53786         * tests/unistdio/test-u8-asnprintf1.h: New file.
53787         * tests/unistdio/test-u8-printf1.h: New file.
53788         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53789         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53790         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53791         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53792         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53793         * tests/unistdio/test-u8-vasprintf1.c: New file.
53794         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53795         * tests/unistdio/test-u8-vsprintf1.c: New file.
53796         * tests/unistdio/test-u16-asnprintf1.c: New file.
53797         * tests/unistdio/test-u16-asnprintf1.h: New file.
53798         * tests/unistdio/test-u16-printf1.h: New file.
53799         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53800         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53801         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53802         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53803         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53804         * tests/unistdio/test-u16-vasprintf1.c: New file.
53805         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53806         * tests/unistdio/test-u16-vsprintf1.c: New file.
53807         * tests/unistdio/test-u32-asnprintf1.c: New file.
53808         * tests/unistdio/test-u32-asnprintf1.h: New file.
53809         * tests/unistdio/test-u32-printf1.h: New file.
53810         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53811         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53812         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53813         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53814         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53815         * tests/unistdio/test-u32-vasprintf1.c: New file.
53816         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53817         * tests/unistdio/test-u32-vsprintf1.c: New file.
53818         * modules/unistdio/base: New file.
53819         * modules/unistdio/u-printf-args: New file.
53820         * modules/unistdio/ulc-asnprintf: New file.
53821         * modules/unistdio/ulc-asprintf: New file.
53822         * modules/unistdio/ulc-fprintf: New file.
53823         * modules/unistdio/ulc-printf-parse: New file.
53824         * modules/unistdio/ulc-snprintf: New file.
53825         * modules/unistdio/ulc-sprintf: New file.
53826         * modules/unistdio/ulc-vasnprintf: New file.
53827         * modules/unistdio/ulc-vasprintf: New file.
53828         * modules/unistdio/ulc-vfprintf: New file.
53829         * modules/unistdio/ulc-vsnprintf: New file.
53830         * modules/unistdio/ulc-vsprintf: New file.
53831         * modules/unistdio/u8-asnprintf: New file.
53832         * modules/unistdio/u8-asprintf: New file.
53833         * modules/unistdio/u8-printf-parse: New file.
53834         * modules/unistdio/u8-snprintf: New file.
53835         * modules/unistdio/u8-sprintf: New file.
53836         * modules/unistdio/u8-vasnprintf: New file.
53837         * modules/unistdio/u8-vasprintf: New file.
53838         * modules/unistdio/u8-vsnprintf: New file.
53839         * modules/unistdio/u8-vsprintf: New file.
53840         * modules/unistdio/u8-u8-asnprintf: New file.
53841         * modules/unistdio/u8-u8-asprintf: New file.
53842         * modules/unistdio/u8-u8-snprintf: New file.
53843         * modules/unistdio/u8-u8-sprintf: New file.
53844         * modules/unistdio/u8-u8-vasnprintf: New file.
53845         * modules/unistdio/u8-u8-vasprintf: New file.
53846         * modules/unistdio/u8-u8-vsnprintf: New file.
53847         * modules/unistdio/u8-u8-vsprintf: New file.
53848         * modules/unistdio/u16-asnprintf: New file.
53849         * modules/unistdio/u16-asprintf: New file.
53850         * modules/unistdio/u16-printf-parse: New file.
53851         * modules/unistdio/u16-snprintf: New file.
53852         * modules/unistdio/u16-sprintf: New file.
53853         * modules/unistdio/u16-vasnprintf: New file.
53854         * modules/unistdio/u16-vasprintf: New file.
53855         * modules/unistdio/u16-vsnprintf: New file.
53856         * modules/unistdio/u16-vsprintf: New file.
53857         * modules/unistdio/u16-u16-asnprintf: New file.
53858         * modules/unistdio/u16-u16-asprintf: New file.
53859         * modules/unistdio/u16-u16-snprintf: New file.
53860         * modules/unistdio/u16-u16-sprintf: New file.
53861         * modules/unistdio/u16-u16-vasnprintf: New file.
53862         * modules/unistdio/u16-u16-vasprintf: New file.
53863         * modules/unistdio/u16-u16-vsnprintf: New file.
53864         * modules/unistdio/u16-u16-vsprintf: New file.
53865         * modules/unistdio/u32-asnprintf: New file.
53866         * modules/unistdio/u32-asprintf: New file.
53867         * modules/unistdio/u32-printf-parse: New file.
53868         * modules/unistdio/u32-snprintf: New file.
53869         * modules/unistdio/u32-sprintf: New file.
53870         * modules/unistdio/u32-vasnprintf: New file.
53871         * modules/unistdio/u32-vasprintf: New file.
53872         * modules/unistdio/u32-vsnprintf: New file.
53873         * modules/unistdio/u32-vsprintf: New file.
53874         * modules/unistdio/u32-u32-asnprintf: New file.
53875         * modules/unistdio/u32-u32-asprintf: New file.
53876         * modules/unistdio/u32-u32-snprintf: New file.
53877         * modules/unistdio/u32-u32-sprintf: New file.
53878         * modules/unistdio/u32-u32-vasnprintf: New file.
53879         * modules/unistdio/u32-u32-vasprintf: New file.
53880         * modules/unistdio/u32-u32-vsnprintf: New file.
53881         * modules/unistdio/u32-u32-vsprintf: New file.
53882         * modules/unistdio/ulc-asnprintf-tests: New file.
53883         * modules/unistdio/ulc-vasnprintf-tests: New file.
53884         * modules/unistdio/ulc-vasprintf-tests: New file.
53885         * modules/unistdio/ulc-vsnprintf-tests: New file.
53886         * modules/unistdio/ulc-vsprintf-tests: New file.
53887         * modules/unistdio/u8-asnprintf-tests: New file.
53888         * modules/unistdio/u8-vasnprintf-tests: New file.
53889         * modules/unistdio/u8-vasprintf-tests: New file.
53890         * modules/unistdio/u8-vsnprintf-tests: New file.
53891         * modules/unistdio/u8-vsprintf-tests: New file.
53892         * modules/unistdio/u16-asnprintf-tests: New file.
53893         * modules/unistdio/u16-vasnprintf-tests: New file.
53894         * modules/unistdio/u16-vasprintf-tests: New file.
53895         * modules/unistdio/u16-vsnprintf-tests: New file.
53896         * modules/unistdio/u16-vsprintf-tests: New file.
53897         * modules/unistdio/u32-asnprintf-tests: New file.
53898         * modules/unistdio/u32-vasnprintf-tests: New file.
53899         * modules/unistdio/u32-vasprintf-tests: New file.
53900         * modules/unistdio/u32-vsnprintf-tests: New file.
53901         * modules/unistdio/u32-vsprintf-tests: New file.
53902         * MODULES.html.sh (Unicode string functions): Add the new modules.
53903
53904 2007-07-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/sprintf.c (sprintf): Limit the available length estimation,
53907         to avoid address wraparound.
53908         * lib/vsprintf.c (vsprintf): Likewise.
53909         * modules/sprintf-posix (Dependencies): Add stdint.
53910         * modules/vsprintf-posix (Dependencies): Likewise.
53911
53912 2007-07-01  Bruno Haible  <bruno@clisp.org>
53913
53914         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53915         Windows PATH as well. Conservative double-quoting. Comments.
53916
53917 2007-07-01  Bruno Haible  <bruno@clisp.org>
53918             Eric Blake  <ebb9@byu.net>
53919             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53920
53921         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53922         empty components in $PATH, denoting '.'.
53923
53924 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925
53926         * gnulib-tool: Fix indentation.
53927         (func_create_megatestdir): Likewise.
53928         Report by Bruno Haible.
53929
53930 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53931
53932         Sync from Automake.
53933         * build-aux/gnupload: Fix shell portability issues with for loops.
53934         Report by Karl Berry.
53935
53936 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53937
53938         * build-aux/maint.mk (POURL): Use translationproject.org.
53939
53940 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53941             Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53944         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53945         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53946         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53947         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53948
53949 2007-06-27  Bruno Haible  <bruno@clisp.org>
53950
53951         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53952         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53953
53954 2007-06-26  Karl Berry  <karl@gnu.org>
53955
53956         * MODULES.html.sh: remove xreadlink-with-size.
53957
53958 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53961         method that I hope also handles the double-include problem noted
53962         by Bruno Haible in
53963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53964
53965 2007-06-23  Bruno Haible  <bruno@clisp.org>
53966
53967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53968         Don't let the 'mostlyclean' target fail if the last subdirectory could
53969         not be removed.
53970         Reported by Karl Berry.
53971
53972 2007-06-23  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (echo): Add a speedier workaround for ksh.
53975         * tests/test-echo.sh: Likewise.
53976
53977 2007-06-23  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53980         * tests/test-echo.sh: Likewise.
53981
53982 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53983
53984         * gnulib-tool (IFS): Initialize early, so we don't set it to
53985         empty later.
53986         (self_abspathname): Rewrite algorithm to set it, reindent.
53987         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53988         (func_create_megatestdir): Merge some sed scripts.
53989
53990 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53993         exposed by Sun Studio 11 cc on Solaris 8.
53994
53995 2007-06-22  Bruno Haible  <bruno@clisp.org>
53996
53997         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53998         backslashes.
53999         * tests/test-echo.sh: New file.
54000
54001 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54002
54003         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54004         simplify `sed_replace_build_aux' scripts, they are portable but
54005         echoing them with `echo' is not.
54006         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54007
54008 2007-06-21  Karl Berry  <karl@gnu.org>
54009
54010         * config/srclist.txt: guess we can't handle the licenses via
54011         srclist at the moment.
54012
54013 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * MODULES.html.sh: Add include_next.
54016         * modules/include_next: New file.
54017
54018 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54019
54020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54021         INCLUDE_NEXT.
54022         (gl_CHECK_NEXT_HEADERS): New macro.
54023         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54024         the obsolescent gl_ABSOLUTE_HEADER.
54025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54026         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54027         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54029         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54030         * m4/math_h.m4 (gl_MATH_H): Likewise.
54031         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54033         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54034         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54035         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54036         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54041         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54042         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54043         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54044         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54046         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54047         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54048         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54049         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54050         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54051         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54052         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54053         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54054         * lib/float_.h: Likewise.
54055         * lib/inttypes_.h: Likewise.
54056         * lib/math_.h: Likewise.
54057         * lib/search_.h: Likewise.
54058         * lib/signal_.h: Likewise.
54059         * lib/stdint_.h: Likewise.
54060         * lib/stdio_.h: Likewise.
54061         * lib/stdlib_.h: Likewise.
54062         * lib/string_.h: Likewise.
54063         * lib/sys_stat_.h: Likewise.
54064         * lib/sys_time_.h: Likewise.
54065         * lib/time_.h: Likewise.
54066         * lib/unistd_.h: Likewise.
54067         * lib/wchar_.h: Likewise.
54068         * lib/wctype_.h: Likewise.
54069         * lib/dirent_.h: Likewise.
54070         * lib/iconv_.h: Likewise.
54071         * lib/locale_.h: Likewise.
54072         * lib/netinet_in_.h: Likewise.
54073         * lib/sys_select_.h: Likewise.
54074         * lib/sys_socket_.h: Likewise.
54075         * lib/sysexits_.h: Likewise.
54076         * modules/fcntl (Depends-on): Depend on include_next, not
54077         absolute_header.
54078         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54079         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54080         * modules/fchdir: Likewise.
54081         * modules/float: Likewise.
54082         * modules/iconv_open: Likewise.
54083         * modules/inttypes: Likewise.
54084         * modules/locale: Likewise.
54085         * modules/math: Likewise.
54086         * modules/netinet_in: Likewise.
54087         * modules/search: Likewise.
54088         * modules/signal: Likewise.
54089         * modules/stdint: Likewise.
54090         * modules/stdio: Likewise.
54091         * modules/stdlib: Likewise.
54092         * modules/string: Likewise.
54093         * modules/sys_select: Likewise.
54094         * modules/sys_socket: Likewise.
54095         * modules/sys_stat: Likewise.
54096         * modules/sys_time: Likewise.
54097         * modules/sysexits: Likewise.
54098         * modules/time: Likewise.
54099         * modules/unistd: Likewise.
54100         * modules/wchar: Likewise.
54101         * modules/wctype: Likewise.
54102         * modules/sys_stat: Change maintainer to "all".
54103         * modules/unistd: Likewise.
54104
54105 2007-06-20  Karl Berry  <karl@gnu.org>
54106
54107         * config/srclist.txt: track www changes in license files.
54108
54109 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54110
54111         * build-aux/bootstrap: Remove stray dot.
54112         Make sure build_aux settings are honored when linking
54113         gnulib_extra_files.
54114
54115 2007-06-19  Eric Blake  <ebb9@byu.net>
54116
54117         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54118         Allow compilation on cygwin.
54119
54120 2007-06-19  Jim Meyering  <jim@meyering.net>
54121
54122         xreadlink-with-size: Remove module.  No longer used.
54123         Ex-callers now use xreadlink or mreadlink-with-size.
54124         * modules/xreadlink-with-size: Remove module.
54125         * lib/xreadlink-with-size.c: Remove file.
54126         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54127         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54128         just before the function definition *is* accurate.
54129
54130         Eliminate one way canonicalize_filename_mode could exit.
54131         * lib/canonicalize.c (canonicalize_filename_mode):
54132         Use mreadlink_with_size, not xreadlink_with_size.
54133
54134 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         Detect porting problems to FreeBSD/arm, which has time_t wider than
54137         long int.  Original problem reported for GNU diff by Xin Li in
54138         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54139         * modules/getdate (Depends-on): Add intprops, verify.
54140         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54141         is an integer type no wider than long int.
54142
54143 2007-06-18  Jim Meyering  <jim@meyering.net>
54144
54145         New module: mreadlink-with-size.
54146         * MODULES.html.sh: Add mreadlink-with-size.
54147         * modules/mreadlink-with-size: New module
54148         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54149         not xreadlink-with-size.
54150         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54151
54152 2007-06-16  Bruno Haible  <bruno@clisp.org>
54153
54154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54155         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54156         Reported by Gary V. Vaughan <gary@gnu.org>.
54157
54158 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54159
54160         Revamp lchown so that it lives in unistd.h where it belongs.
54161         * lib/lchown.h: Remove.
54162         * lib/dirchownmod.c: Don't include lib/lchown.h.
54163         * lib/fchownat.c: Likewise.
54164         * lib/openat.c: Likewise.
54165         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54166         does not follow symlinks.
54167         (EOPNOTSUPP): Define if not defined.
54168         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54169         is defined to 0.
54170         (lchown): New decl.
54171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54172         Do not check for lchown decl.
54173         Set REPLACE_LCHOWN.
54174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54175         REPLACE_LCHOWN.
54176         * modules/chown: Make it clear it follows symlinks.
54177         * modules/lchown: Make it clear it doesn't follow symlinks.
54178         (Files): Remove lib/lchown.h
54179         (Depends-on): Add unistd.
54180         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54181         (Include): Include <unistd.h>, not "lchown.h".
54182         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54183         REPLACE_LCHOWN.
54184
54185 2007-06-15  Jim Meyering  <jim@meyering.net>
54186
54187         Change license (GPL to LGPL) of fsusage and dependents.
54188         * modules/fsusage (License): Change to LGPL.
54189         * modules/full-read (License): Likewise.
54190         * modules/full-write (License): Likewise.
54191         * modules/safe-read (License): Likewise.
54192         * modules/safe-write (License): Likewise.
54193
54194 2007-06-14  Ben Pfaff  <blp@gnu.org>
54195
54196         Missing part of allocsa -> malloca transition.
54197         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54198         gl_MALLOCA.
54199
54200 2007-06-12  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54203         to ia64, x86_64, i386.
54204         Reported by Eric Blake.
54205
54206 2007-06-12  Bruno Haible  <bruno@clisp.org>
54207
54208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54209         cross-compiling to x86_64.
54210
54211 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54212
54213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54214         glitch reported by Ralf Wildenhues in
54215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54216
54217         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54218         Vin Shelton.
54219
54220 2007-06-11  Bruno Haible  <bruno@clisp.org>
54221
54222         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54223         replacement string.
54224         Reported by Eric Blake.
54225
54226 2007-06-10  Bruno Haible  <bruno@clisp.org>
54227
54228         Prepare vasnprintf code for use with Unicode strings.
54229         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54230         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54231         TYPE_U32_STRING.
54232         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54233         a_u32_string variants.
54234         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54235         * lib/printf-args.c: Don't include config.h and the specification
54236         header if PRINTF_FETCHARGS is already defined.
54237         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54238         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54239         TYPE_U16_STRING, TYPE_U32_STRING.
54240         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54241         u16_directive, u16_directives, u32_directive, u32_directives): New
54242         types.
54243         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54244         New declarations.
54245         * lib/printf-parse.c: Don't include config.h and the specification
54246         header if PRINTF_PARSE is already defined. Eliminate the set of
54247         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54248         them now. Include c-ctype.h.
54249         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54250         directive and CHAR_T_ONLY_ASCII.
54251         * lib/vasnprintf.c: Don't include config.h and the specification header
54252         if VASNPRINTF is already defined.
54253         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54254         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54255         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54256         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54257         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54258         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54259         code accordingly.
54260         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54261         pad_ourselves also in this case, with the 'c' and 's' directives, and
54262         with a different notion of "width".
54263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54264
54265 2007-06-10  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/unistr/u32-mbsnlen: New file.
54268         * lib/unistr/u32-mbsnlen.c: New file.
54269
54270         * modules/unistr/u16-mbsnlen: New file.
54271         * lib/unistr/u16-mbsnlen.c: New file.
54272
54273         * modules/unistr/u8-mbsnlen: New file.
54274         * lib/unistr/u8-mbsnlen.c: New file.
54275
54276         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54277         declarations.
54278
54279 2007-06-10  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/string_.h (mbsnlen): New declaration.
54282         * lib/mbsnlen.c: New file.
54283         * m4/mbsnlen.m4: New file.
54284         * modules/mbsnlen: New file.
54285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54286         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54287         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54288
54289 2007-06-10  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54292
54293 2007-06-10  Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54296         * lib/mbuiter.h: Likewise.
54297
54298 2007-06-10  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54301         declaration.
54302
54303 2007-06-10  Karl Berry  <karl@gnu.org>
54304
54305         * config/srclist.txt: remove gettext entries, Bruno prefers
54306         to update individually.
54307
54308 2007-06-10  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54311         'maxlen'. Ensure only length + width bytes are allocated, not
54312         length + 1 + width.
54313
54314 2007-06-09  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54317         (CHAR_T): Remove macro.
54318         (VASNPRINTF): Update.
54319
54320 2007-06-09  Bruno Haible  <bruno@clisp.org>
54321
54322         * MODULES.html.sh (Unicode string functions): Add the new modules.
54323
54324         * modules/uniconv/u32-conv-to-enc: New file.
54325         * lib/uniconv/u32-conv-to-enc.c: New file.
54326         * modules/uniconv/u32-conv-to-enc-tests: New file.
54327         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54328
54329         * modules/uniconv/u16-conv-to-enc: New file.
54330         * lib/uniconv/u16-conv-to-enc.c: New file.
54331         * lib/uniconv/u-conv-to-enc.h: New file.
54332         * modules/uniconv/u16-conv-to-enc-tests: New file.
54333         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54334
54335         * modules/uniconv/u8-conv-to-enc: New file.
54336         * lib/uniconv/u8-conv-to-enc.c: New file.
54337         * modules/uniconv/u8-conv-to-enc-tests: New file.
54338         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54339
54340         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54341         u32_conv_to_encoding): New declarations.
54342
54343 2007-06-09  Bruno Haible  <bruno@clisp.org>
54344
54345         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54346
54347 2007-06-09  Bruno Haible  <bruno@clisp.org>
54348
54349         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54350         * modules/malloca: Renamed from modules/allocsa, updated.
54351         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54352         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54353         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54354         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54355         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54356         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54357         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54358         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54359         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54360         * modules/c-strcasestr (Depends-on): Update.
54361         * lib/c-strcasestr.c: Update.
54362         * modules/c-strstr (Depends-on): Update.
54363         * lib/c-strstr.c: Update.
54364         * modules/canonicalize-lgpl (Depends-on): Update.
54365         * lib/canonicalize-lgpl.c: Update.
54366         * modules/clean-temp (Depends-on): Update.
54367         * lib/clean-temp.c: Update.
54368         * modules/csharpcomp (Depends-on): Update.
54369         * lib/csharpcomp.c: Update.
54370         * modules/csharpexec (Depends-on): Update.
54371         * lib/csharpexec.c: Update.
54372         * modules/javacomp (Depends-on): Update.
54373         * lib/javacomp.c: Update.
54374         * modules/javaexec (Depends-on): Update.
54375         * lib/javaexec.c: Update.
54376         * modules/mbscasestr (Depends-on): Update.
54377         * lib/mbscasestr.c: Update.
54378         * modules/mbsstr (Depends-on): Update.
54379         * lib/mbsstr.c: Update.
54380         * modules/setenv (Depends-on): Update.
54381         * lib/setenv.c: Update.
54382         * modules/strcasestr (Depends-on): Update.
54383         * lib/strcasestr.c: Update.
54384         * modules/striconveha (Depends-on): Update.
54385         * lib/striconveha.c: Update.
54386         * modules/relocatable-prog-wrapper (Files): Update.
54387         * lib/relocwrapper.c: Update.
54388         * build-aux/install-reloc: Update.
54389         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54390
54391 2007-06-08  Bruno Haible  <bruno@clisp.org>
54392
54393         Port to uClibc.
54394         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54395         * lib/fpurge.c (fpurge): Likewise.
54396         * lib/freading.c (freading): Likewise.
54397         * lib/fseeko.c (rpl_fseeko): Likewise.
54398         * lib/fseterr.c (fseterr): Likewise.
54399         * lib/fwriting.c (fwriting): Likewise.
54400         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54401
54402 2007-06-08  Bruno Haible  <bruno@clisp.org>
54403
54404         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54405         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54406         * modules/gettext (Files): Add m4/intlmacosx.m4.
54407
54408 2007-06-07  Bruno Haible  <bruno@clisp.org>
54409
54410         * modules/localename-tests: New file.
54411         * tests/test-localename.c: New file.
54412
54413         New module 'localename'.
54414         * lib/localename.h: New file.
54415         * lib/localename.c: New file, from GNU gettext.
54416         * m4/localename.m4: New file.
54417         * modules/localename: New file.
54418
54419 2007-06-07  Bruno Haible  <bruno@clisp.org>
54420
54421         Work around the lack of <wchar.h> on some builds of uClibc.
54422         * doc/headers/wchar.texi: Update.
54423         * lib/wchar_.h: Include <wchar.h> only if it exists.
54424         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54425         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54426         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54427         doesn't exist.
54428         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54429         * modules/mbfile (Depends-on): Add wchar.
54430         * modules/mbiter (Depends-on): Likewise.
54431         * modules/mbuiter (Depends-on): Likewise.
54432         Reported by Simon Josefsson.
54433
54434 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         Work around problem reported by Steven M. Schweda in
54437         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54438         Tru64 5.1B with the Compaq compiler environment installed declares
54439         an 'isblank' function but does not define it in the C library.
54440         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54441         * lib/regex_internal.h (isblank): Likewise.
54442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54443         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54444
54445 2007-06-05  Bruno Haible  <bruno@clisp.org>
54446
54447         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54448         ia64.
54449         * modules/printf-safe: New file.
54450         * modules/fprintf-posix (Depends-on): Add printf-safe.
54451         * modules/printf-posix (Depends-on): Likewise.
54452         * modules/snprintf-posix (Depends-on): Likewise.
54453         * modules/sprintf-posix (Depends-on): Likewise.
54454         * modules/vasnprintf-posix (Depends-on): Likewise.
54455         * modules/vasprintf-posix (Depends-on): Likewise.
54456         * modules/vfprintf-posix (Depends-on): Likewise.
54457         * modules/vprintf-posix (Depends-on): Likewise.
54458         * modules/vsnprintf-posix (Depends-on): Likewise.
54459         * modules/vsprintf-posix (Depends-on): Likewise.
54460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54461         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54462         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54463         "no" on i386, x86_64, ia64.
54464         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54465         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54466         on i386, x86_64, ia64.
54467         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54468         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54469         on i386, x86_64, ia64.
54470         * tests/test-vasnprintf-posix.c: Include float.h.
54471         (LDBL80_WORDS): New macro.
54472         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54473         on i386, x86_64, ia64.
54474         * tests/test-vasprintf-posix.c: Include float.h.
54475         (LDBL80_WORDS): New macro.
54476         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54477         on i386, x86_64, ia64.
54478         * tests/test-snprintf-posix.c: Include float.h.
54479         * tests/test-sprintf-posix.c: Likewise.
54480         * tests/test-vsnprintf-posix.c: Likewise.
54481         * tests/test-vsprintf-posix.c: Likewise.
54482
54483 2007-06-05  Bruno Haible  <bruno@clisp.org>
54484
54485         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54486         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54487         non-IEEE numbers on i386, x86_64, ia64.
54488         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54489         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54490         * tests/test-isnanl.h: Include float.h.
54491         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54492
54493 2007-06-05  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54496         also the %a / %A. Handle the %a / %A code before this extra handling.
54497
54498 2007-06-05  Bruno Haible  <bruno@clisp.org>
54499
54500         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54501         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54502
54503 2007-06-05  Bruno Haible  <bruno@clisp.org>
54504
54505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54506         typo in variable name.
54507
54508 2007-06-05  Eric Blake  <ebb9@byu.net>
54509
54510         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54511         Reported by Simon Josefsson.
54512
54513 2007-06-04  Bruno Haible  <bruno@clisp.org>
54514
54515         Avoid test failures on some PowerPC platforms.
54516         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54517         Define differently for PowerPC.
54518         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54519         Reported by Gary V. Vaughan <gary@gnu.org>.
54520
54521 2007-06-02  Bruno Haible  <bruno@clisp.org>
54522
54523         Fix test-stdint failure on FreeBSD/ia64.
54524         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54525         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54526         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54527         * doc/headers/stdint.texi: Update.
54528
54529 2007-06-01  Bruno Haible  <bruno@clisp.org>
54530
54531         * tests/test-binary-io.c (main): Pass a third argument to open().
54532         Reported by Gary V. Vaughan <gary@gnu.org>.
54533
54534 2007-06-01  Bruno Haible  <bruno@clisp.org>
54535
54536         * doc/functions/frexpl.texi: Update for mingw.
54537
54538 2007-06-01  Bruno Haible  <bruno@clisp.org>
54539
54540         * tests/test-lseek.c (main): Disable test of errno for invalid third
54541         argument.
54542         * doc/functions/lseek.texi: Update.
54543         Reported by Gary V. Vaughan <gary@gnu.org>.
54544
54545 2007-05-28  Bruno Haible  <bruno@clisp.org>
54546
54547         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54548
54549 2007-05-31  Eric Blake  <ebb9@byu.net>
54550
54551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54552         cross compiling.
54553
54554 2007-05-30  Eric Blake  <ebb9@byu.net>
54555         and Bruno Haible  <bruno@clisp.org>
54556
54557         Work around mingw test failures exposed by m4-1.4.9b.
54558         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54559         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54560         moment.
54561
54562 2007-05-30  Bruno Haible  <bruno@clisp.org>
54563
54564         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54565         assuming that they are closed. Needed on HP-UX 11.
54566
54567 2007-05-29  Bruno Haible  <bruno@clisp.org>
54568
54569         Fix a problem with #include_next.
54570         * lib/dirent_.h: Split the double-inclusion guard.
54571         * lib/fcntl_.h: Likewise.
54572         * lib/float_.h: Likewise.
54573         * lib/iconv_.h: Likewise.
54574         * lib/inttypes_.h: Likewise.
54575         * lib/locale_.h: Likewise.
54576         * lib/math_.h: Likewise.
54577         * lib/netinet_in_.h: Likewise.
54578         * lib/search_.h: Likewise.
54579         * lib/signal_.h: Likewise.
54580         * lib/stdint_.h: Likewise.
54581         * lib/stdio_.h: Likewise.
54582         * lib/stdlib_.h: Likewise.
54583         * lib/string_.h: Likewise.
54584         * lib/sys_select_.h: Likewise.
54585         * lib/sys_socket_.h: Likewise.
54586         * lib/sys_stat_.h: Likewise.
54587         * lib/sys_time_.h: Likewise.
54588         * lib/sysexits_.h: Likewise.
54589         * lib/time_.h: Likewise.
54590         * lib/unistd_.h: Likewise.
54591         * lib/wchar_.h: Likewise.
54592         * lib/wctype_.h: Likewise.
54593
54594 2007-05-29  Bruno Haible  <bruno@clisp.org>
54595
54596         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54597         for the moment.
54598
54599 2007-05-29  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54602         invocation.
54603         Reported by Eric Blake.
54604
54605 2007-05-29  Bruno Haible  <bruno@clisp.org>
54606
54607         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54608         compiling case.
54609
54610 2007-05-29  Eric Blake  <ebb9@byu.net>
54611             Bruno Haible  <bruno@clisp.org>
54612
54613         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54614         cross compiles.
54615
54616 2007-05-28  Eric Blake  <ebb9@byu.net>
54617
54618         * modules/closein-tests (test_closein_LDADD): Support test on
54619         cygwin with libtool.
54620
54621 2007-05-28  Bruno Haible  <bruno@clisp.org>
54622
54623         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54624         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54625         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54626         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54627         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54628         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54629         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54630         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54631         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54632
54633 2007-05-28  Eric Blake  <ebb9@byu.net>
54634
54635         Unconditionally include <config.h> in unit tests.
54636         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54637         * tests/test-allocsa.c, tests/test-arcfour.c,
54638         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54639         tests/test-array_list.c, tests/test-array_oset.c,
54640         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54641         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54642         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54643         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54644         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54645         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54646         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54647         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54648         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54649         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54650         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54651         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54652         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54653         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54654         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54655         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54656         test-md5.c, test-memmem.c, test-printf-posix.c,
54657         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54658         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54659         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54660         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54661         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54662         test-vasnprintf-posix2.c, test-vasnprintf.c,
54663         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54664         test-vfprintf-posix.c, test-vprintf-posix.c,
54665         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54666         test-xvasprintf.c: Likewise.
54667
54668 2007-05-28  Bruno Haible  <bruno@clisp.org>
54669
54670         * gnulib-tool (func_import): Remember the --with-tests command-line
54671         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54672         Reported by Eric Blake.
54673
54674 2007-05-28  Bruno Haible  <bruno@clisp.org>
54675
54676         * modules/ftell-tests: New file.
54677         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54678         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54679
54680         * lib/ftell.c: New file.
54681         * modules/ftell: New file.
54682         * m4/ftell.m4: New file.
54683         * doc/functions/ftell.texi: Update.
54684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54685         REPLACE_FTELL.
54686         * lib/stdio_.h (rpl_ftell): New declaration.
54687         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54688         REPLACE_FTELL.
54689
54690 2007-05-28  Eric Blake  <ebb9@byu.net>
54691
54692         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54693
54694 2007-05-28  Bruno Haible  <bruno@clisp.org>
54695
54696         * modules/fseek-tests: New file.
54697         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54698         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54699
54700         * lib/fseek.c: New file.
54701         * modules/fseek: New file.
54702         * m4/fseek.m4: New file.
54703         * doc/functions/fseek.texi: Update.
54704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54705         REPLACE_FSEEK.
54706         * lib/stdio_.h (rpl_fseek): New declaration.
54707         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54708         REPLACE_FSEEK.
54709
54710 2007-05-28  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/stdio_.h (fflush): More comments.
54713
54714 2007-05-28  Bruno Haible  <bruno@clisp.org>
54715
54716         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54717         runtime test.
54718
54719 2007-05-28  Eric Blake  <ebb9@byu.net>
54720
54721         Improve lseek module.
54722         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54723         * lib/unistd_.h (lseek): Scale back link warning message.
54724         * tests/test-lseek.c: Beef up test.
54725         * tests/test-lseek.sh: Exercise more facets of lseek.
54726         Reported by Bruno Haible.
54727
54728 2007-05-28  Bruno Haible  <bruno@clisp.org>
54729
54730         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54731         to define.
54732
54733 2007-05-27  Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54736
54737 2007-05-27  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/openmp: New file.
54740         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54741         Noah Misch.
54742
54743 2007-05-26  Bruno Haible  <bruno@clisp.org>
54744
54745         * modules/chdir-long (Depends-on): Add fchdir.
54746         * modules/chdir-safer (Depends-on): Likewise.
54747         * modules/fts (Depends-on): Likewise.
54748         * modules/fts-lgpl (Depends-on): Likewise.
54749         * modules/openat (Depends-on): Likewise.
54750         * modules/savewd (Depends-on): Likewise.
54751
54752 2007-05-24  Eric Blake  <ebb9@byu.net>
54753
54754         Fix lseek on mingw.
54755         * modules/lseek: New module.
54756         * m4/lseek.m4: New file.
54757         * lib/lseek.c: New file.
54758         * modules/lseek-tests: New file.
54759         * tests/test-lseek.c: New file.
54760         * tests/test-lseek.sh: New file.
54761         * MODULES.html.sh: Document lseek module.
54762         * modules/fflush (Depends-on): Add lseek, fseeko.
54763         * modules/fseeko (Depends-on): Likewise.
54764         * modules/ftello (Depends-on): Likewise.
54765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54766         broken.
54767         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54768         broken.
54769         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54770         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54771         * lib/ftello.c (rpl_ftello): Likewise.
54772         * tests/test-fseeko.c (main): Test this.
54773         * tests/test-fseeko.sh: Likewise.
54774         * tests/test-ftello.c (main): Likewise.
54775         * tests/test-ftello.sh: Likewise.
54776         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54777         implies replacing fseek.
54778         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54779         HAVE_FTELLO.
54780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54781         * modules/unistd (Makefile.am): Likewise.
54782         * lib/unistd_.h (lseek): Declare a replacement.
54783         * doc/functions/lseek.texi (lseek): Document this fix.
54784         * doc/functions/fseek.texi (fseek): Likewise.
54785         * doc/functions/ftell.texi (ftell): Likewise.
54786
54787 2007-05-24  Bruno Haible  <bruno@clisp.org>
54788
54789         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54790         in the printed representation of a NaN.
54791         * tests/test-vasprintf-posix.c (test_function): Likewise.
54792         * tests/test-snprintf-posix.h (test_function): Likewise.
54793         * tests/test-sprintf-posix.h (test_function): Likewise.
54794         Reported by Eric Blake.
54795
54796 2007-05-23  Eric Blake  <ebb9@byu.net>
54797
54798         Fix fseeko/ftello on cygwin 1.5.24.
54799         * doc/functions/fseeko.texi (fseeko): Document the fix.
54800         * doc/functions/ftello.texi (ftello): Document the fix.
54801         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54802         * doc/functions/stdout.text (stdout): New file.
54803         * doc/functions/stderr.text (stderr): New file.
54804         * doc/gnulib.texi (Function Substitutes): Use new files.
54805         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54806         prior to 1.7.0.
54807         * tests/test-ftello.c (main): Likewise for ftello.
54808         * tests/test-fseeko.sh: New file.
54809         * tests/test-ftello.sh: New file.
54810         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54811         with seekable stdin.
54812         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54813         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54814         (gl_REPLACE_FSEEKO): New macro.
54815         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54816         * modules/fseeko (Files): Distribute fseeko.c.
54817         * modules/ftello (Files): Distribute ftello.c.
54818         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54819         mode.
54820         * lib/ftello.c (rpl_ftello): New file.
54821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54822         fseeko, ftello.
54823         (gl_STDIN_LARGE_OFFSET): New macro.
54824         * modules/stdio (Makefile.am): Perform the replacement.
54825         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54826
54827 2007-05-23  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54830         GNULIB_POSIXCHECK is defined.
54831
54832 2007-05-21  Bruno Haible  <bruno@clisp.org>
54833
54834         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54835         Check also the output for NaN arguments. When cross-compiling, guess
54836         no on IRIX.
54837         * lib/vasnprintf.c: Update comments.
54838         * tests/test-vasnprintf-posix.c (strisnan): New function.
54839         (test_function): Use it.
54840         * tests/test-vasprintf-posix.c (strisnan): New function.
54841         (test_function): Use it.
54842         * tests/test-snprintf-posix.h (strisnan): New function.
54843         (test_function): Use it.
54844         * tests/test-sprintf-posix.h (strisnan): New function.
54845         (test_function): Use it.
54846         Reported by Eric Blake.
54847
54848 2007-05-20  Bruno Haible  <bruno@clisp.org>
54849
54850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54851         numbers that fails on BeOS.
54852         * doc/functions/frexpl.texi: Update.
54853
54854 2007-05-20  Jim Meyering  <jim@meyering.net>
54855
54856         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54857         forced upon us by glibc-2.6.
54858
54859 2007-05-20  Bruno Haible  <bruno@clisp.org>
54860
54861         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54862         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54863         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54864         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54865         NEED_PRINTF_INFINITE.
54866         (is_infinitel): New function.
54867         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54869         gl_PREREQ_VASNPRINTF_INFINITE.
54870         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54872         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54873         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54874         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54875         gl_PREREQ_VASNPRINTF_INFINITE.
54876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54881         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54883         * doc/functions/fprintf.texi: Update.
54884         * doc/functions/printf.texi: Update.
54885         * doc/functions/snprintf.texi: Update.
54886         * doc/functions/sprintf.texi: Update.
54887         * doc/functions/vfprintf.texi: Update.
54888         * doc/functions/vprintf.texi: Update.
54889         * doc/functions/vsnprintf.texi: Update.
54890         * doc/functions/vsprintf.texi: Update.
54891
54892 2007-05-20  Bruno Haible  <bruno@clisp.org>
54893
54894         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54895         was not found in libc.
54896         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54897
54898 2007-05-20  Bruno Haible  <bruno@clisp.org>
54899
54900         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54901         printed as "-nan" instead of "nan".
54902         * tests/test-vasprintf-posix.c (test_function): Likewise.
54903         * tests/test-snprintf-posix.h (test_function): Likewise.
54904         * tests/test-sprintf-posix.h (test_function): Likewise.
54905         Needed for HP-UX 11.
54906
54907 2007-05-20  Jim Meyering  <jim@meyering.net>
54908
54909         Fix buggy test for the fchownat-deref bug.
54910         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54911         symlink required for the run-test.  Without it, this test would
54912         always declare that fchownat doesn't work, and client code would
54913         unnecessarily use the replacement function with fixed libc.
54914         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54915         Reported by Greg Schafer.
54916
54917 2007-05-19  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54920         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54921         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54922         Needed for IRIX 6.5 and Solaris 2.5.1.
54923
54924 2007-05-19  Bruno Haible  <bruno@clisp.org>
54925
54926         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54927         (test_function): Skip tests involving -0.0 on platforms where
54928         -0.0 = 0.0.
54929         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54930         (test_function): Skip tests involving -0.0 on platforms where
54931         -0.0 = 0.0.
54932         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54933         (test_function): Skip tests involving -0.0 on platforms where
54934         -0.0 = 0.0.
54935         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54936         (test_function): Skip tests involving -0.0 on platforms where
54937         -0.0 = 0.0.
54938         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54939         tests.
54940         * tests/test-printf-posix.h (test_function): Likewise.
54941         * tests/test-printf-posix.output: Remove all -0.0 related results.
54942         Needed for IRIX 6.5.
54943
54944 2007-05-19  Bruno Haible  <bruno@clisp.org>
54945
54946         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54947         printed as "nan0x7fffffff" instead of "nan".
54948         * tests/test-vasprintf-posix.c (test_function): Likewise.
54949         * tests/test-snprintf-posix.h (test_function): Likewise.
54950         * tests/test-sprintf-posix.h (test_function): Likewise.
54951         * tests/test-fprintf-posix.h (NaN): Remove macro.
54952         (test_function): Remove all NaN related tests.
54953         * tests/test-printf-posix.h (NaN): Remove macro.
54954         (test_function): Remove all NaN related tests.
54955         * tests/test-printf-posix.output: Remove all NaN related results.
54956         Needed for IRIX 6.5.
54957
54958 2007-05-19  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54962
54963 2007-05-19  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/float_.h: New file.
54966         * m4/float_h.m4: New file.
54967         * modules/float: New file.
54968         * modules/isnanl (Dependencies): Add float.
54969         * modules/isnanl-nolibm (Dependencies): Likewise.
54970         * modules/mathl (Dependencies): Likewise.
54971         * modules/printf-frexpl (Dependencies): Likewise.
54972         * modules/signbit (Dependencies): Likewise.
54973         * modules/vasnprintf (Dependencies): Likewise.
54974         * doc/headers/float.texi: Update.
54975
54976 2007-05-19  Jim Meyering  <jim@meyering.net>
54977
54978         * lib/utimens.c (gl_futimens): Rename from futimens,
54979         now that glibc-2.6 declares futimens.
54980         * lib/utimens.h: Likewise.
54981
54982 2007-05-19  Bruno Haible  <bruno@clisp.org>
54983
54984         Avoid test failures on mingw.
54985         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54986         * tests/test-printf-posix.sh: Likewise.
54987         * tests/test-vfprintf-posix.sh: Likewise.
54988         * tests/test-vprintf-posix.sh: Likewise.
54989
54990 2007-05-19  Bruno Haible  <bruno@clisp.org>
54991
54992         Fix *printf result for NaN, Inf, -0.0 on mingw.
54993         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54994         * lib/vasnprintf.c: Include math.h and isnan.h.
54995         (is_infinite_or_zero): New function.
54996         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54997         values in the %f, %F, %e, %E, %g, %G directives.
54998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55000         gl_PRINTF_INFINITE and test its result. Invoke
55001         gl_PREREQ_VASNPRINTF_INFINITE.
55002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55009         * doc/functions/fprintf.texi: Update.
55010         * doc/functions/printf.texi: Update.
55011         * doc/functions/snprintf.texi: Update.
55012         * doc/functions/sprintf.texi: Update.
55013         * doc/functions/vfprintf.texi: Update.
55014         * doc/functions/vprintf.texi: Update.
55015         * doc/functions/vsnprintf.texi: Update.
55016         * doc/functions/vsprintf.texi: Update.
55017
55018 2007-05-19  Bruno Haible  <bruno@clisp.org>
55019
55020         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55021         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55022         Instead of multiplying with 10^k, set extra_zeroes to k.
55023         (scale10_round_long_double): Remove function.
55024
55025 2007-05-18  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55028         introduced on 2007-05-06.
55029
55030 2007-05-18  Bruno Haible  <bruno@clisp.org>
55031
55032         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55033         %g directives.
55034         * tests/test-vasprintf-posix.c (test_function): Likewise.
55035         * tests/test-snprintf-posix.h (test_function): Likewise.
55036         * tests/test-sprintf-posix.h (test_function): Likewise.
55037
55038 2007-05-18  Bruno Haible  <bruno@clisp.org>
55039
55040         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55041         (strmatch): New function.
55042         (test_function): Test the %f directive on numbers of various exponents.
55043         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55044         (strmatch): New function.
55045         (test_function): Test the %f directive on numbers of various exponents.
55046         * tests/test-snprintf-posix.h (strmatch): New function.
55047         (test_function): Test the %f directive on numbers of various exponents.
55048         * tests/test-sprintf-posix.h (strmatch): New function.
55049         (test_function): Test the %f directive on numbers of various exponents.
55050         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55051         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55052         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55053         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55054
55055 2007-05-18  Bruno Haible  <bruno@clisp.org>
55056
55057         Add support for 'long double' number output.
55058         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55059         * lib/vasnprintf.c: Include math.h and float+.h.
55060         (mp_limb_t): New type.
55061         (GMP_LIMB_BITS): New macro.
55062         (mp_twolimb_t): New type.
55063         (GMP_TWOLIMB_BITS): New macro.
55064         (mpn_t): New type.
55065         (multiply, divide, convert_to_decimal, decode_long_double,
55066         scale10_round_long_double, scale10_round_decimal_long_double,
55067         floorlog10l): New functions.
55068         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55069         for the %f, %F, %e, %E, %g, %G directives.
55070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55072         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55073         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55081         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55082         * modules/snprintf-posix (Depends-on): Likewise.
55083         * modules/sprintf-posix (Depends-on): Likewise.
55084         * modules/vasnprintf-posix (Depends-on): Likewise.
55085         * modules/vasprintf-posix (Depends-on): Likewise.
55086         * modules/vfprintf-posix (Depends-on): Likewise.
55087         * modules/vsnprintf-posix (Depends-on): Likewise.
55088         * modules/vsprintf-posix (Depends-on): Likewise.
55089         * modules/vasnprintf (Files): Add lib/float+.h.
55090         * doc/functions/fprintf.texi: Update.
55091         * doc/functions/printf.texi: Update.
55092         * doc/functions/snprintf.texi: Update.
55093         * doc/functions/sprintf.texi: Update.
55094         * doc/functions/vfprintf.texi: Update.
55095         * doc/functions/vprintf.texi: Update.
55096         * doc/functions/vsnprintf.texi: Update.
55097         * doc/functions/vsprintf.texi: Update.
55098
55099 2007-05-18  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55102
55103 2007-05-18  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55106         for printing 64-bit integers. Needed for mingw.
55107
55108 2007-05-18  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55111         gl_FUNC_FREXPL_WORKS.
55112         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55113
55114 2007-05-18  Bruno Haible  <bruno@clisp.org>
55115
55116         * modules/frexpl-nolibm-tests: New file.
55117
55118         * modules/frexpl-nolibm: New file.
55119         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55120
55121 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55122
55123         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55124         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55125         GCC 4.2, which otherwise issues a lot of warnings.
55126         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55127         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55128         Likewise.
55129         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55130         * modules/iconv_open (iconv.h): Likewise.
55131         * modules/locale (locale.h): Likewise.
55132         * modules/netinet_in (netinet/in.h): Likewise.
55133         * modules/sys_select (sys_select.h): Likewise.
55134         * modules/sys_socket (sys/socket.h): Likewise.
55135         * modules/sys_stat (sys/stat.h): Likewise.
55136         * modules/sysexits (sysexits.h): Likewise.
55137         * modules/unistd (unistd.h): Likewise.
55138
55139 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55140
55141         * modules/closein-tests (Makefile.am): Distribute
55142         `test-closein.sh'.
55143
55144 2007-05-17  Bruno Haible  <bruno@clisp.org>
55145
55146         * tests/test-printf-posix.output: Renamed from
55147         tests/test-fprintf-posix.out.
55148         * modules/fprintf-posix-tests: Update.
55149         * modules/printf-posix-tests: Update.
55150         * modules/vfprintf-posix-tests: Update.
55151         * modules/vprintf-posix-tests: Update.
55152         * tests/test-fprintf-posix.sh: Update.
55153         * tests/test-printf-posix.sh: Update.
55154         * tests/test-vfprintf-posix.sh: Update.
55155         * tests/test-vprintf-posix.sh: Update.
55156         Reported by Ralf Wildenhues.
55157
55158 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55161         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55162         GCC 4.2, which otherwise issues a lot of warnings.
55163         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55164         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55165         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55166         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55167         it should no longer be needed.
55168         * lib/string_.h: Likewise.
55169         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55170         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55171         * modules/inttypes (inttypes.h): Likewise.
55172         * modules/math (math.h): Likewise.
55173         * modules/search (search.h): Likewise.
55174         * modules/signal (signal.h): Likewise.
55175         * modules/stdint (stdint.h): Likewise.
55176         * modules/stdio (stdio.h): Likewise.
55177         * modules/stdlib (stdlib.h): Likewise.
55178         * modules/string (string.h): Likewise.
55179         * modules/sys_time (sys/time.h): Likewise.
55180         * modules/time (time.h): Likewise.
55181         * modules/wchar (wchar.h): Likewise.
55182         * modules/wctype (wtype.h): Likewise.
55183
55184 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55185
55186         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55187
55188 2007-05-13  Bruno Haible  <bruno@clisp.org>
55189
55190         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55191         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55192         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55193         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55194         (gl_PREREQ_STRTOK_R): Don't require it here.
55195
55196 2007-05-13  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55199         when used in C++ mode.
55200
55201 2007-05-12  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/linebuffer.h: Tweak doc.
55204         * lib/linebuffer.c: Likewise.
55205
55206 2007-05-12  James Youngman  <jay@gnu.org>
55207
55208         * lib/linebuffer.c (readlinebuffer_delim): New function,
55209         like readlinebuffer, but use a caller-specified delimiter.
55210         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55211         as the delimiter.
55212         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55213
55214 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55215
55216         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55217         * modules/openat (Files): Remove openat-die.c.
55218         (Depends-on): Add openat-die.
55219         * modules/openat-die: New module.
55220
55221 2007-05-06  Bruno Haible  <bruno@clisp.org>
55222
55223         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55224         Update with info about Cygwin.
55225         * doc/functions/fprintf.texi: Update.
55226         * doc/functions/printf.texi: Update.
55227         * doc/functions/snprintf.texi: Update.
55228         * doc/functions/sprintf.texi: Update.
55229         * doc/functions/vfprintf.texi: Update.
55230         * doc/functions/vprintf.texi: Update.
55231         * doc/functions/vsnprintf.texi: Update.
55232         * doc/functions/vsprintf.texi: Update.
55233         Reported by Eric Blake.
55234
55235 2007-05-06  Bruno Haible  <bruno@clisp.org>
55236
55237         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55238         padding ourselves for the floating-point directives.
55239         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55242         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55243         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55251         * tests/test-snprintf-posix.h (test_function): Also check the width
55252         and some flags in the %f directive.
55253         * tests/test-sprintf-posix.h (test_function): Likewise.
55254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55255         * tests/test-vasprintf-posix.c (test_function): Likewise.
55256         * doc/functions/fprintf.texi: Update.
55257         * doc/functions/printf.texi: Update.
55258         * doc/functions/snprintf.texi: Update.
55259         * doc/functions/sprintf.texi: Update.
55260         * doc/functions/vfprintf.texi: Update.
55261         * doc/functions/vprintf.texi: Update.
55262         * doc/functions/vsnprintf.texi: Update.
55263         * doc/functions/vsprintf.texi: Update.
55264
55265 2007-05-06  Bruno Haible  <bruno@clisp.org>
55266
55267         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55268         pass the ' flag character to sprintf or snprintf.
55269         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55272         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55273         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55281         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55282         flag.
55283         * tests/test-sprintf-posix.h (test_function): Likewise.
55284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55285         * tests/test-vasprintf-posix.c (test_function): Likewise.
55286         * doc/functions/fprintf.texi: Update.
55287         * doc/functions/printf.texi: Update.
55288         * doc/functions/snprintf.texi: Update.
55289         * doc/functions/sprintf.texi: Update.
55290         * doc/functions/vfprintf.texi: Update.
55291         * doc/functions/vprintf.texi: Update.
55292         * doc/functions/vsnprintf.texi: Update.
55293         * doc/functions/vsprintf.texi: Update.
55294
55295 2007-05-01  Bruno Haible  <bruno@clisp.org>
55296
55297         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55298
55299 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55302         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55303
55304 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55305
55306         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55307         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55309
55310 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55311
55312         * lib/argp-help.c (struct hol_entry): New member `ord'.
55313         (HOL_ENTRY_PTRCMP): Use ord for comparison
55314         (hol_sort): Initialize ord.
55315
55316 2007-05-01  Bruno Haible  <bruno@clisp.org>
55317
55318         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55319         Reported by Eric Blake.
55320         * doc/gnulib.texi (Function Substitutes): Update.
55321
55322 2007-05-01  Bruno Haible  <bruno@clisp.org>
55323
55324         * doc/functions.texi: Remove file, now redundant through
55325         doc/functions/*.texi.
55326
55327 2007-05-01  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/argp (Depends-on): Add sleep.
55330
55331 2007-05-01  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/sleep-tests: New file.
55334         * tests/test-sleep.c: New file.
55335
55336         * modules/sleep: New file.
55337         * lib/sleep.c: New file.
55338         * m4/sleep.m4: New file.
55339         * lib/unistd_.h (sleep): New declaration.
55340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55341         HAVE_SLEEP.
55342         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55343         * doc/functions/sleep.texi: Document the sleep module.
55344
55345 2007-05-01  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/sigprocmask.h: Remove file.
55348         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55349         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55350         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55351         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55352         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55353         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55354         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55355         HAVE_SIGSET_T as a shell variable.
55356         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55357         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55358         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55359         (Depends-on): Add signal. Remove verify.
55360         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55361         (Include): Mention <signal.h> instead of sigprocmask.h.
55362         * NEWS: Mention the change.
55363         * lib/fatal-signal.c: Don't include sigprocmask.h.
55364
55365 2007-05-01  Bruno Haible  <bruno@clisp.org>
55366
55367         * modules/signal: New file.
55368         * lib/signal_.h: New file.
55369         * m4/signal_h.m4: New file.
55370
55371 2007-05-01  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55374         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55375         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55376         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55377
55378 2007-05-01  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55381         configure time.
55382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55383         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55384         * modules/sys_stat (Makefile.am): Substitute their values into
55385         sys/stat.h.
55386
55387 2007-05-01  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55390         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55391         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55392
55393 2007-05-01  Bruno Haible  <bruno@clisp.org>
55394
55395         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55396         'assert' module here.
55397
55398 2007-05-01  Bruno Haible  <bruno@clisp.org>
55399
55400         * doc/functions/*.texi: New files.
55401         * doc/functions/google-ranking.txt: New file.
55402         * doc/gnulib.texi (Function Substitutes): New chapter.
55403         (ctime, inet_ntoa): Remove sections.
55404         * doc/ctime.texi: Remove file.
55405         * doc/inet_ntoa.texi: Remove file.
55406         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55407         dependencies.
55408         (%.info): New rule, specifying a --reference-limit.
55409
55410 2007-05-01  Bruno Haible  <bruno@clisp.org>
55411
55412         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55413
55414 2007-05-01  Bruno Haible  <bruno@clisp.org>
55415
55416         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55417         the portability of 'mkdir' to mingw systems.
55418
55419 2007-05-01  Bruno Haible  <bruno@clisp.org>
55420
55421         * doc/headers/google-ranking.txt: New file.
55422
55423 2007-04-30  Eric Blake  <ebb9@byu.net>
55424
55425         Prefer fseeko to fseek.
55426         * modules/getpass (Depends-on): Add fseeko.
55427         * lib/getpass.c (getpass): Use fseeko, not fseek.
55428
55429 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55430
55431         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55432         assumes the sorting is stable, while most qsort implementations
55433         are not.  Use argument addresses to ensure they never compare as
55434         equal.
55435
55436         * tests/test-argp-2.sh (usage-indent test): Fix output
55437         (func_compare): Restore diff options
55438         * tests/test-argp.c: Restore #include "progname.h"
55439
55440 2007-04-29  Bruno Haible  <bruno@clisp.org>
55441
55442         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55444         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55446         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55447         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55448         (TESTS, check_PROGRAMS): Add test-snprintf.
55449         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55450         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55451         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55452         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55453         assertions that fail on HP-UX, OSF/1, or IRIX.
55454         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55455
55456 2007-04-29  Bruno Haible  <bruno@clisp.org>
55457
55458         * MODULES.html.sh (posix_functions): Remove 'contents'.
55459
55460 2007-04-29  Karl Berry  <karl@gnu.org>
55461
55462         * config/srclist.txt (gendocs_template_min): new entry.
55463
55464 2007-04-29  Bruno Haible  <bruno@clisp.org>
55465
55466         Work around fpurge bug on BSD systems.
55467         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55468         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55469         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55470         fpurge to rpl_fpurge if the system already has this function.
55471         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55472         the case where the system already has this function. Correct invariants
55473         on BSD systems.
55474         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55475         BSD systems.
55476
55477 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55478
55479         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55480         proposed by Sven Verdoolaege.
55481
55482         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55483         options.
55484         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55485         (usage and help tests): Update
55486
55487 2007-04-29  Bruno Haible  <bruno@clisp.org>
55488
55489         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55490         Print more information in case of failure. Disable a test on BeOS.
55491
55492 2007-04-29  Bruno Haible  <bruno@clisp.org>
55493
55494         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55495         This helps debugging on systems on which no gdb is available.
55496
55497 2007-04-29  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/freading.h: Improve comments.
55500         * lib/fwriting.h: Likewise.
55501         * tests/test-freading.c (main): Don't check freading immediately after
55502         repositioning. Needed for glibc.
55503
55504 2007-04-29  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/freading.c (freading): Trivial simplification.
55507
55508 2007-04-28  Bruno Haible  <bruno@clisp.org>
55509
55510         * tests/test-fwriting.c (main): Also test the interaction between
55511         fflush and fwriting.
55512         * modules/fwriting-tests (Depends-on): Add fflush.
55513
55514         * tests/test-freading.c (main): Also test the interaction between
55515         fflush and freading.
55516         * modules/freading-tests (Depends-on): Add fflush.
55517
55518 2007-04-28  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55521         fseeko and ftello.
55522         Suggested by Eric Blake.
55523
55524 2007-04-28  Jim Meyering  <jim@meyering.net>
55525
55526         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55527         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55528         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55529
55530 2007-04-27  Eric Blake  <ebb9@byu.net>
55531
55532         * doc/headers/assert.texi (assert.h): Document assert module use.
55533
55534 2007-04-27  Bruno Haible  <bruno@clisp.org>
55535
55536         * doc/headers/*.texi: New files.
55537         * doc/gnulib.texi (Header File Substitutes): New chapter.
55538         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55539         dependencies.
55540         (standards.info ,standards.html, standards.dvi): Update dependencies.
55541         (mostlyclean, clean): New targets.
55542
55543 2007-04-27  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55546         * modules/sysexits (Files, Makefile.am): Update.
55547
55548         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55549         * modules/sys_socket (Files, Makefile.am): Update.
55550
55551         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55552         * modules/sys_stat (Files, Makefile.am): Update.
55553
55554 2007-04-27  Eric Blake  <ebb9@byu.net>
55555
55556         * lib/freading.h: Improve comments.
55557         * lib/fwriting.h: Likewise.
55558         * lib/fflush.c: Likewise.
55559
55560         Fix closein for mingw.
55561         * modules/closein-tests: Add tests for closein.
55562         * tests/test-closein.c: New file.
55563         * tests/test-closein.sh: Likewise.
55564         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55565         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55566
55567 2007-04-27  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55570         version is < 6.
55571         * lib/math_.h [__DECC]: Likewise.
55572         * lib/stdio_.h [__DECC]: Likewise.
55573         * lib/stdlib_.h [__DECC]: Likewise.
55574         * lib/string_.h [__DECC]: Likewise.
55575         * lib/time_.h [__DECC]: Likewise.
55576         * lib/wchar_.h [__DECC]: Likewise.
55577         * lib/wctype_.h [__DECC]: Likewise.
55578
55579 2007-04-27  Bruno Haible  <bruno@clisp.org>
55580
55581         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55582
55583 2007-04-27  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/fflush.c: Add comments.
55586         * modules/fpurge-tests (Depends-on): Add fflush.
55587         * modules/freadable-tests (Depends-on): Likewise.
55588         * modules/fwritable-tests (Depends-on): Likewise.
55589
55590 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55591
55592         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55593         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55594         Report by Bruno Haible <bruno@clisp.org>.
55595
55596 2007-04-26  Eric Blake  <ebb9@byu.net>
55597
55598         Fix fflush on mingw.
55599         * modules/fflush (Depends-on): Add freading.
55600         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55601         but unread data.
55602
55603 2007-04-26  Eric Blake  <ebb9@byu.net>
55604         and Bruno Haible  <bruno@clisp.org>
55605
55606         Implement freading and fwriting.
55607         * lib/freading.c: New file.
55608         * lib/freading.h: Likewise.
55609         * m4/freading.m4: Likewise.
55610         * modules/freading: Likewise.
55611         * modules/freading-tests: Likewise.
55612         * tests/test-freading.c: Likewise.
55613         * lib/fwriting.c: New file.
55614         * lib/fwriting.h: Likewise.
55615         * m4/fwriting.m4: Likewise.
55616         * modules/fwriting: Likewise.
55617         * modules/fwriting-tests: Likewise.
55618         * tests/test-fwriting.c: Likewise.
55619         * MODULES.html.sh (File stream based Input/Output): Mention them.
55620
55621 2007-04-26  Bruno Haible  <bruno@clisp.org>
55622
55623         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55624         'long' when we assume it.
55625         Suggested by Eric Blake.
55626
55627 2007-04-26  Bruno Haible  <bruno@clisp.org>
55628
55629         Ensure fseeko, ftello are declared on glibc systems.
55630         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55631         * modules/fseeko (configure.ac-early): Likewise.
55632         * modules/ftello (configure.ac-early): Likewise.
55633         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55634         AC_FUNC_FSEEKO for this.
55635         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55636         (gl_CHECK_FSEEKO): Remove macro.
55637
55638 2007-04-26  Bruno Haible  <bruno@clisp.org>
55639
55640         * tests/test-fflush.c (main): Also check the ftell result after
55641         fflush and fseek/fseeko.
55642         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55643         file descriptor position cache in the stream.
55644         * lib/fseeko.c (rpl_fseeko): Likewise.
55645
55646 2007-04-26  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/fflush-tests (Depends-on): Add fseeko.
55649
55650 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55651             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55652
55653         * lib/argz_.h: ensure error_t definition is obtained in same
55654         mechanism system argz.h would have.
55655         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55656         argz facilities are known bad.  Err on the side of caution if
55657         cross-compiling.
55658
55659 2007-04-25  Eric Blake  <ebb9@byu.net>
55660
55661         * lib/fpurge.c (includes): Use stdlib.h for free.
55662         * tests/test-fflush.c (main): Also test fflush-fseeko.
55663
55664 2007-04-25  Bruno Haible  <bruno@clisp.org>
55665
55666         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55667         * lib/fseeko.c: New file.
55668         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55669         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55670         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55671         gl_FUNC_FSEEKO.
55672         (gl_FUNC_FSEEKO): Invoke it.
55673         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55674         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55675         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55676
55677 2007-04-25  Bruno Haible  <bruno@clisp.org>
55678
55679         * modules/fflush (Depends-on): Add ftello.
55680
55681 2007-04-25  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/ftello-tests: New file.
55684         * tests/test-ftello.c: New file.
55685
55686         * modules/ftello: New file.
55687         * m4/ftello.m4: New file.
55688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55689         HAVE_FTELLO.
55690         * lib/stdio_.h (ftello): New declaration.
55691         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55692         HAVE_FTELLO.
55693
55694 2007-04-25  Bruno Haible  <bruno@clisp.org>
55695
55696         * modules/fseeko-tests: New file.
55697         * tests/test-fseeko.c: New file.
55698
55699         * modules/fseeko: New file.
55700         * m4/fseeko.m4: New file.
55701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55702         HAVE_FSEEKO.
55703         * lib/stdio_.h (fseeko): New declaration.
55704         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55705         HAVE_FSEEKO.
55706
55707 2007-04-25  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55710
55711 2007-04-25  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55714         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55715         * tests/test-unistd.c: Likewise.
55716         * tests/test-fcntl.c: Likewise.
55717
55718 2007-04-23  Eric Blake  <ebb9@byu.net>
55719
55720         * lib/fflush.c: Fix missing include.
55721         Reported by Bruno Haible.
55722
55723 2007-04-23  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55726         Reported by Eric Blake.
55727
55728 2007-04-23  Bruno Haible  <bruno@clisp.org>
55729
55730         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55731
55732 2007-04-23  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55735
55736 2007-04-23  Bruno Haible  <bruno@clisp.org>
55737
55738         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55739         Needed on HP-UX 11.
55740
55741 2007-04-16  Eric Blake  <ebb9@byu.net>
55742
55743         Make fflush rely on fpurge.
55744         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55745         open coding all variants.
55746         * modules/fflush (Depends-on): Add fpurge and unistd.
55747         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55748         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55749
55750         Fix --with-tests compilation on cygwin.
55751         * modules/argmatch-tests (Makefile.am): List gnulib library first
55752         in LDADD.
55753         * modules/argp-tests (Makefile.am): Likewise.
55754         * modules/array-list-tests (Makefile.am): Likewise.
55755         * modules/array-oset-tests (Makefile.am): Likewise.
55756         * modules/avltree-list-tests (Makefile.am): Likewise.
55757         * modules/avltree-oset-tests (Makefile.am): Likewise.
55758         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55759         * modules/carray-list-tests (Makefile.am): Likewise.
55760         * modules/dirname-tests (Makefile.am): Likewise.
55761         * modules/frexp-tests (Makefile.am): Likewise.
55762         * modules/isnanl-tests (Makefile.am): Likewise.
55763         * modules/linked-list-tests (Makefile.am): Likewise.
55764         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55765         * modules/lock-tests (Makefile.am): Likewise.
55766         * modules/rbtree-list-tests (Makefile.am): Likewise.
55767         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55768         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55769         * modules/tls-tests (Makefile.am): Likewise.
55770         * modules/tsearch-tests (Makefile.am): Likewise.
55771         * modules/xvasprintf-tests (Makefile.am): Likewise.
55772
55773         Fix fpurge for cygwin.
55774         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55775         value.
55776         * modules/fpurge-tests (Depends-on): Clean up trash.
55777
55778 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55779
55780         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55781
55782         * m4/autobuild.m4: Re-indent.
55783
55784 2007-04-13  Bruno Haible  <bruno@clisp.org>
55785
55786         * modules/fpurge-tests: New file.
55787         * tests/test-fpurge.c: New file.
55788
55789         * modules/fpurge: New file.
55790         * lib/fpurge.h: New file.
55791         * lib/fpurge.c: New file.
55792         * m4/fpurge.m4: New file.
55793
55794 2007-04-13  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/fbufmode-tests: New file.
55797         * tests/test-fbufmode.c: New file.
55798
55799         * modules/fbufmode: New file.
55800         * lib/fbufmode.h: New file.
55801         * lib/fbufmode.c: New file.
55802         * m4/fbufmode.m4: New file.
55803
55804 2007-04-13  Bruno Haible  <bruno@clisp.org>
55805
55806         * modules/fwritable-tests: New file.
55807         * tests/test-fwritable.c: New file.
55808
55809         * modules/fwritable: New file.
55810         * lib/fwritable.h: New file.
55811         * lib/fwritable.c: New file.
55812         * m4/fwritable.m4: New file.
55813
55814 2007-04-13  Bruno Haible  <bruno@clisp.org>
55815
55816         * modules/freadable-tests: New file.
55817         * tests/test-freadable.c: New file.
55818
55819         * modules/freadable: New file.
55820         * lib/freadable.h: New file.
55821         * lib/freadable.c: New file.
55822         * m4/freadable.m4: New file.
55823
55824 2007-04-13  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55827         MOSTLYCLEANFILES.
55828
55829 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55830
55831         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55832         gzip bootstrap.conf to avoid dragging in i18n machinery.
55833         (gnulib_tool_option): Use it.
55834
55835 2007-04-13  Bruno Haible  <bruno@clisp.org>
55836
55837         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55838         %F directives.
55839         * tests/test-vasprintf-posix.c (test_function): Likewise.
55840         * tests/test-snprintf-posix.h (test_function): Likewise.
55841         * tests/test-sprintf-posix.h (test_function): Likewise.
55842         * tests/test-fprintf-posix.h (test_function): Likewise.
55843         * tests/test-printf-posix.h (test_function): Likewise.
55844         * tests/test-fprintf-posix.out: Likewise.
55845
55846 2007-04-13  Bruno Haible  <bruno@clisp.org>
55847
55848         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55849         * modules/tls-tests (configure.ac): Likewise.
55850         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55851
55852 2007-04-13  Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/tls.c (glthread_tls_get): Fix return type.
55855         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55856
55857 2007-04-12  Eric Blake  <ebb9@byu.net>
55858
55859         * modules/gettime (Depends-on): Remove gettime.
55860         Reported by Dmitry V. Levin.
55861
55862 2007-04-12  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/fflush (Include): Mention <stdio.h>.
55865         * modules/strtoimax (Include): Mention <inttypes.h>.
55866         * modules/strtoumax (Include): Likewise.
55867
55868 2007-04-12  Eric Blake  <ebb9@byu.net>
55869
55870         * .cvsignore: New file.
55871         * .gitignore: Likewise.
55872
55873 2007-04-12  Bruno Haible  <bruno@clisp.org>
55874
55875         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55876         not before, since $(LDADD) often contains libgnu.a.
55877         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55878         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55879         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55880         Needed on Cygwin.
55881
55882 2007-04-12  Eric Blake  <ebb9@byu.net>
55883
55884         Work around glibc's failure to flush stdin on fclose.
55885         * lib/closein.c (close_stdin): Flush stdin before closing.
55886
55887         Work around glibc's failure to reset seekable stdin on exit.
55888         * modules/closein: New module.
55889         * lib/closein.c: New file.
55890         * lib/closein.h: Likewise.
55891         * m4/closein.m4: Likewise.
55892         * MODULES.html.sh (File stream based Input/Output): Document it.
55893
55894 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55895
55896         * gnulib-tool: Rename generated 'autobuild' script to
55897         'do-autobuild' in --create-megatestdir output.
55898
55899         * doc/gnulib.texi (Build robot for gnulib): Fix.
55900
55901 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55902
55903         * modules/sysexits (Depends-on): Add absolute-header.
55904
55905 2007-04-12  Eric Blake  <ebb9@byu.net>
55906
55907         No need to preserve errno on success.
55908         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55909         Reported by Bruno Haible.
55910
55911 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55912
55913         * MODULES.html.sh (Support for maintaining and releasing
55914         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55915
55916 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55917
55918         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55919
55920 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55921
55922         * modules/autobuild: New module.
55923
55924         * m4/autobuild.m4: New file.
55925
55926 2007-04-11  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55929         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55933         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55934         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55936         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55937         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55939         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55940         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55942         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55943         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55945         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55946         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55948         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55949         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55951         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55952         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55954         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55955         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55956         Reported by Eric Blake.
55957
55958 2007-04-11  Bruno Haible  <bruno@clisp.org>
55959
55960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55961
55962 2007-04-10  Bruno Haible  <bruno@clisp.org>
55963
55964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55965         for NaN and Infinity. Needed on FreeBSD 6.1.
55966         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55967         regarding results for "%010a" of Infinity and NaN.
55968         * tests/test-vasprintf-posix.c (test_function): Likewise.
55969         * tests/test-snprintf-posix.h (test_function): Likewise.
55970         * tests/test-sprintf-posix.h (test_function): Likewise.
55971         * tests/test-fprintf-posix.h (test_function): Likewise.
55972         * tests/test-printf-posix.h (test_function): Likewise.
55973         * tests/test-fprintf-posix.out: Likewise.
55974
55975 2007-04-10  Bruno Haible  <bruno@clisp.org>
55976
55977         * modules/locale-tests: New file.
55978         * tests/test-locale.c: New file.
55979
55980         * modules/locale: New file.
55981         * lib/locale_.h: New file.
55982         * m4/locale_h.m4: New file.
55983
55984 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55985             Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55988         be determined, test for availability of the copysignf, copysign,
55989         copysignl functions.
55990         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55991         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55992         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55993
55994 2007-04-09  Eric Blake  <ebb9@byu.net>
55995
55996         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55997         * modules/stdio (Makefile.am): Support fflush.
55998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55999         * modules/fflush: New file.
56000         * lib/fflush.c: Likewise.
56001         * m4/fflush.m4: Likewise.
56002         * modules/fflush-tests: New test.
56003         * tests/test-fflush.c: Likewise.
56004         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56005
56006 2007-04-06  Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56009         (VASNPRINTF): Use signbit for faster determination whether to print a
56010         minus sign.
56011         * modules/vasnprintf (Files): Remove lib/float+.h.
56012         * modules/fprintf-posix (Depends-on): Add signbit.
56013         * modules/snprintf-posix (Depends-on): Likewise.
56014         * modules/sprintf-posix (Depends-on): Likewise.
56015         * modules/vasnprintf-posix (Depends-on): Likewise.
56016         * modules/vasprintf-posix (Depends-on): Likewise.
56017         * modules/vfprintf-posix (Depends-on): Likewise.
56018         * modules/vsnprintf-posix (Depends-on): Likewise.
56019         * modules/vsprintf-posix (Depends-on): Likewise.
56020
56021 2007-04-06  Bruno Haible  <bruno@clisp.org>
56022
56023         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56024         * tests/test-frexpl.c (main): Likewise.
56025         * tests/test-ldexpl.c (main): Likewise.
56026         * modules/frexp-tests (Depends-on): Add signbit.
56027         * modules/frexpl-tests (Depdends-on): Likewise.
56028         * modules/ldexpl-tests (Depdends-on): Likewise.
56029
56030 2007-04-06  Bruno Haible  <bruno@clisp.org>
56031
56032         * modules/signbit-tests: New file.
56033         * tests/test-signbit.c: New file.
56034
56035         * modules/signbit: New file.
56036         * lib/signbitf.c: New file.
56037         * lib/signbitd.c: New file.
56038         * lib/signbitl.c: New file.
56039         * m4/signbit.m4: New file.
56040         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56041         (signbit): New macro.
56042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56043         REPLACE_SIGNBIT.
56044         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56045         REPLACE_FREXPL into math.h.
56046
56047 2007-04-06  Bruno Haible  <bruno@clisp.org>
56048
56049         * modules/isnanf-nolibm-tests: New file.
56050         * tests/test-isnanf.c: New file.
56051
56052         * modules/isnanf-nolibm: New file.
56053         * lib/isnanf.h: New file.
56054         * lib/isnanf.c: New file.
56055         * lib/isnan.c: Consider the USE_FLOAT macro.
56056         * m4/isnanf.m4: New file.
56057
56058 2007-04-06  Bruno Haible  <bruno@clisp.org>
56059
56060         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56061         (Link): New section.
56062
56063         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56064
56065 2007-04-06  Bruno Haible  <bruno@clisp.org>
56066
56067         Assume the 'long double' type.
56068         * m4/longdouble.m4: Remove file.
56069         * config/srclist.txt: Don't mention longdouble.m4.
56070         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56071         * lib/float+.h: Likewise.
56072         * lib/frexp.c: Likewise.
56073         * lib/printf-args.h: Likewise.
56074         * lib/printf-args.c: Likewise.
56075         * lib/printf-frexp.c: Likewise.
56076         * lib/printf-parse.c: Likewise.
56077         * lib/vasnprintf.c: Likewise.
56078         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56079         * m4/intl.m4: Likewise.
56080         * m4/isnanl.m4: Likewise.
56081         * m4/printf.m4: Likewise.
56082         * m4/printf-frexpl.m4: Likewise.
56083         * m4/vasnprintf.m4: Likewise.
56084         * modules/allocsa (Files): Remove m4/longdouble.m4.
56085         * modules/gettext (Files): Likewise.
56086         * modules/relocatable-prog-wrapper (Files): Likewise.
56087         * modules/vasnprintf (Files): Likewise.
56088         * modules/isnanl (Files): Likewise.
56089         (Include): Simplify.
56090         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56091         (Include): Simplify.
56092         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56093         (Include): Simplify.
56094         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56095         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56096         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56097         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56098         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56099         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56100         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56101         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56102         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56103         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56104         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56105         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56106         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56107         * tests/test-isnanl.c: Likewise.
56108         * tests/test-snprintf-posix.h: Likewise.
56109         * tests/test-sprintf-posix.h: Likewise.
56110         * tests/test-vasnprintf-posix.c: Likewise.
56111         * tests/test-vasnprintf-posix2.c: Likewise.
56112         * tests/test-vasprintf-posix.c: Likewise.
56113
56114 2007-04-06  Bruno Haible  <bruno@clisp.org>
56115
56116         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56117         * lib/math_.h [__DECC]: Include the overridden include file through
56118         #include_next, outside the double-inclusion guard.
56119         * lib/stdio_.h [__DECC]: Likewise.
56120         * lib/stdlib_.h [__DECC]: Likewise.
56121         * lib/string_.h [__DECC]: Likewise.
56122         * lib/time_.h [__DECC]: Likewise.
56123         * lib/wchar_.h [__DECC]: Likewise.
56124         * lib/wctype_.h [__DECC]: Likewise.
56125         * lib/inttypes_.h [__DECC]: Likewise.
56126         Reported by Albert Chin <china@thewrittenword.com> in
56127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56128
56129 2007-04-04  Eric Blake  <ebb9@byu.net>
56130
56131         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56132         1.5.x.
56133
56134 2007-04-04  Bruno Haible  <bruno@clisp.org>
56135
56136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56137         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56138
56139 2007-04-04  Bruno Haible  <bruno@clisp.org>
56140
56141         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56142         results for "%010a" of Infinity and NaN.
56143         * tests/test-vasprintf-posix.c (test_function): Likewise.
56144         * tests/test-snprintf-posix.h (test_function): Likewise.
56145         * tests/test-sprintf-posix.h (test_function): Likewise.
56146         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56147         * tests/test-printf-posix.h (test_function): Likewise.
56148         * tests/test-fprintf-posix.out: Update.
56149         Needed for FreeBSD 6.1.
56150
56151 2007-04-04  Bruno Haible  <bruno@clisp.org>
56152
56153         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56154         directly used by the gnulib modules nor by gnulib-tool.
56155
56156 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56157
56158         * DEPENDENCIES: Give overall description of version dependency
56159         desirability.  Use more-typical names for apps.
56160         Add shell, coreutils, diffutils, grep, tar, gzip.
56161
56162 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56163
56164         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56165
56166 2007-04-04  Karl Berry  <karl@gnu.org>
56167
56168         * MODULES.html.sh (func_module): missing '.
56169
56170 2007-04-03  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/argmatch-tests (Makefile.am): New variable
56173         test_argmatch_LDADD.
56174         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56175         * modules/array-list-tests (Makefile.am): New variable
56176         test_array_list_LDADD.
56177         * modules/array-oset-tests (Makefile.am): New variable
56178         test_array_oset_LDADD.
56179         * modules/avltree-list-tests (Makefile.am): New variable
56180         test_avltree_list_LDADD.
56181         * modules/avltree-oset-tests (Makefile.am): New variable
56182         test_avltree_oset_LDADD.
56183         * modules/avltreehash-list-tests (Makefile.am): New variable
56184         test_avltreehash_list_LDADD.
56185         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56186         test_canonicalize_lgpl_LDADD.
56187         * modules/carray-list-tests (Makefile.am): New variable
56188         test_carray_list_LDADD.
56189         * modules/dirname-tests (Makefile.am): New variable
56190         test_dirname_LDADD.
56191         * modules/linked-list-tests (Makefile.am): New variable
56192         test_linked_list_LDADD.
56193         * modules/linkedhash-list-tests (Makefile.am): New variable
56194         test_linkedhash_list_LDADD.
56195         * modules/rbtree-list-tests (Makefile.am): New variable
56196         test_rbtree_list_LDADD.
56197         * modules/rbtree-oset-tests (Makefile.am): New variable
56198         test_rbtree_oset_LDADD.
56199         * modules/rbtreehash-list-tests (Makefile.am): New variable
56200         test_rbtreehash_list_LDADD.
56201         * modules/xvasprintf-tests (Makefile.am): New variable
56202         test_xvasprintf_LDADD.
56203         Reported by Eric Blake.
56204
56205 2007-04-03  Eric Blake  <ebb9@byu.net>
56206
56207         * DEPENDENCIES: Weaken m4 requirements.
56208
56209 2007-04-03  Bruno Haible  <bruno@clisp.org>
56210
56211         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56212         * modules/isnanl-tests (configure.ac): Likewise.
56213
56214 2007-04-03  Ben Pfaff  <blp@gnu.org>
56215
56216         * modules/iconv_open: Add $(srcdir)/ to source directory
56217         references in Makefile fragments that call gperf, to fix VPATH
56218         builds.
56219
56220 2007-04-03  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56223         * lib/ldexpl.c: Undo last change.
56224
56225 2007-04-03  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/printf-frexpl (Depends-on): Undo last change.
56228         (Files): Add m4/ldexpl.m4.
56229
56230 2007-04-03  Bruno Haible  <bruno@clisp.org>
56231
56232         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56233         * modules/isnanl (Link): New section.
56234
56235         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56236         * modules/frexp (Link): New section.
56237
56238         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56239         * modules/frexpl (Link): New section.
56240
56241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56242         * modules/ldexpl (Link): New section.
56243
56244 2007-04-03  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/TEMPLATE-EXTENDED: New file.
56247         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56248
56249 2007-04-03  Bruno Haible  <bruno@clisp.org>
56250
56251         * DEPENDENCIES: New file.
56252         Suggested by Simon Josefsson.
56253
56254 2007-04-03  Bruno Haible  <bruno@clisp.org>
56255
56256         * doc/gnulib.texi: Escape @.
56257
56258 2007-04-03  James Youngman  <jay@gnu.org>
56259         and Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56262         birthtime on all systems that have birthtime, not just those which
56263         use st_birthtimensec rather than st_birthtim.  Putting zero in
56264         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56265         that the birth time is not available for files on an NFS mount.
56266
56267 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56268
56269         * modules/memxor: Move back from crypto/, suggested by Bruno.
56270         * modules/crypto/hmac-sha1: Fix memxor dependency.
56271
56272         * modules/crypto/gc: Moved from ../.
56273
56274 2007-04-02  Eric Blake  <ebb9@byu.net>
56275
56276         * lib/ldexpl.c (includes): Avoid libm.
56277
56278         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56279
56280 2007-04-02  Bruno Haible  <bruno@clisp.org>
56281
56282         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56283         on IRIX.
56284
56285 2007-04-02  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56288         x86 or x86_64 platforms running MacOS X.
56289         Reported by Ryan Schmidt <@ryandesign.com>.
56290
56291 2007-04-02  Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56294         i386.
56295
56296 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56297
56298         * modules/crypto/arcfour: Moved from ../.
56299         * modules/crypto/arcfour-tests: Moved from ../.
56300         * modules/crypto/arctwo: Moved from ../.
56301         * modules/crypto/arctwo-tests: Moved from ../.
56302         * modules/crypto/des: Moved from ../.
56303         * modules/crypto/des-tests: Moved from ../.
56304         * modules/crypto/gc-arcfour: Moved from ../.
56305         * modules/crypto/gc-arcfour-tests: Moved from ../.
56306         * modules/crypto/gc-arctwo: Moved from ../.
56307         * modules/crypto/gc-arctwo-tests: Moved from ../.
56308         * modules/crypto/gc-des: Moved from ../.
56309         * modules/crypto/gc-des-tests: Moved from ../.
56310         * modules/crypto/gc-hmac-md5: Moved from ../.
56311         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56312         * modules/crypto/gc-hmac-sha1: Moved from ../.
56313         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56314         * modules/crypto/gc-md2: Moved from ../.
56315         * modules/crypto/gc-md2-tests: Moved from ../.
56316         * modules/crypto/gc-md4: Moved from ../.
56317         * modules/crypto/gc-md4-tests: Moved from ../.
56318         * modules/crypto/gc-md5: Moved from ../.
56319         * modules/crypto/gc-md5-tests: Moved from ../.
56320         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56321         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56322         * modules/crypto/gc-random: Moved from ../.
56323         * modules/crypto/gc-rijndael: Moved from ../.
56324         * modules/crypto/gc-rijndael-tests: Moved from ../.
56325         * modules/crypto/gc-sha1: Moved from ../.
56326         * modules/crypto/gc-sha1-tests: Moved from ../.
56327         * modules/crypto/gc-tests: Moved from ../.
56328         * modules/crypto/hmac-md5: Moved from ../.
56329         * modules/crypto/hmac-md5-tests: Moved from ../.
56330         * modules/crypto/hmac-sha1: Moved from ../.
56331         * modules/crypto/hmac-sha1-tests: Moved from ../.
56332         * modules/crypto/md2: Moved from ../.
56333         * modules/crypto/md2-tests: Moved from ../.
56334         * modules/crypto/md4: Moved from ../.
56335         * modules/crypto/md4-tests: Moved from ../.
56336         * modules/crypto/md5: Moved from ../.
56337         * modules/crypto/md5-tests: Moved from ../.
56338         * modules/crypto/memxor: Moved from ../.
56339         * modules/crypto/rijndael: Moved from ../.
56340         * modules/crypto/rijndael-tests: Moved from ../.
56341         * modules/crypto/sha1: Moved from ../.
56342
56343 2007-03-30  James Youngman  <jay@gnu.org>
56344
56345         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56346         rename() to change the ctime of a file (because ctime is unaffected
56347         by rename on jfs2 on AIX 5.1).
56348         (main): Start by doing cleanup, in case a previous run failed leaving
56349         test files behind.
56350
56351 2007-03-31  Bruno Haible  <bruno@clisp.org>
56352
56353         Support old proprietary implementations of iconv.
56354         * modules/iconv_open: New file.
56355         * lib/iconv_.h: New file.
56356         * m4/iconv_h.m4: New file.
56357         * lib/iconv_open.c: New file.
56358         * lib/iconv_open-aix.gperf: New file.
56359         * lib/iconv_open-hpux.gperf: New file.
56360         * lib/iconv_open-irix.gperf: New file.
56361         * lib/iconv_open-osf.gperf: New file.
56362         * m4/iconv_open.m4: New file.
56363         * modules/linebreak (Depends-on): Add iconv_open.
56364         * modules/striconv (Depends-on): Likewise.
56365         * modules/striconveh (Depends-on): Likewise.
56366         * modules/unicodeio (Depends-on): Likewise.
56367         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56368         (iconv_t)(-1).
56369         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56370         conversion if cd is (iconv_t)(-1).
56371         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56372         is not possible.
56373
56374 2007-03-31  Bruno Haible  <bruno@clisp.org>
56375
56376         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56377         work on Solaris either. Protect also second use of "autodetect_jp".
56378
56379 2007-03-31  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56382         the function is not present.
56383
56384 2007-03-31  Bruno Haible  <bruno@clisp.org>
56385
56386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56387         the function is not present.
56388
56389 2007-03-31  Bruno Haible  <bruno@clisp.org>
56390
56391         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56392         a bug in HP-UX iconv_open().
56393
56394 2007-03-31  Bruno Haible  <bruno@clisp.org>
56395
56396         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56397         (Mathematics <math.h>): New section, add fpieee.
56398         (Input/output <stdio.h>): Add fseterr.
56399         (Mathematics <math.h>): New section, add printf-frexp.
56400         (Container data structures): Add sublist.
56401         (Core language properties): Add fpucw, inline.
56402         (Functions for greatest-width integer types <inttypes.h>): Add
56403         imaxabs, imaxdiv, inttypes.
56404         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56405         isnanl-nolibm, ldexp.
56406         (Mathematics <math.h>): New section, add printf-frexpl.
56407         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56408         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56409         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56410         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56411         (Unicode string functions): Add unistr/u*-mbtoucr.
56412         (Java): Add javacomp-script, javaexec-script.
56413         (C#): Add csharpcomp-script, csharpexec-script.
56414         (Support for building libraries and executables): Add havelib,
56415         relocatable-*.
56416         (Support for maintaining and releasing projects): Renamed from
56417         'Support for maintaining and release projects'. Add announce-gen.
56418
56419 2007-03-31  Bruno Haible  <bruno@clisp.org>
56420
56421         * README: Talk primarily about git.
56422         (git and CVS): Renamed from CVS.
56423         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56424         gnulib is available through git.
56425         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56426
56427 2007-03-30  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56430         * lib/poll_.h: Likewise.
56431         * lib/stat_.h: Likewise.
56432         * lib/sys_time_.h: Likewise.
56433         * lib/sysexit_.h: Likewise.
56434         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56435         * lib/stdbool_.h: Likewise.
56436         * lib/byteswap_.h: Add double-inclusion guard.
56437
56438 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56439
56440         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56441
56442 2007-03-30  Karl Berry  <karl@gnu.org>
56443
56444         * config/srclist-update: double space after USA in the license
56445         substitution, since that's how it's usually (?) written.
56446
56447 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56450         reported by Bruno Haible.
56451
56452 2007-03-29  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56455         a bug in AIX iconv().
56456
56457 2007-03-29  Bruno Haible  <bruno@clisp.org>
56458
56459         * modules/ldexpl-tests: New file.
56460         * tests/test-ldexpl.c: New file.
56461
56462 2007-03-29  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/ldexpl.c: Include fpucw.h.
56465         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56466         multiplication.
56467         * modules/ldexpl (Depends-on): Add fpucw.
56468
56469 2007-03-29  Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/ldexpl: New file.
56472         * m4/ldexpl.m4: New file.
56473         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56474         set.
56475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56476         REPLACE_LDEXPL.
56477         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56478         REPLACE_LDEXPL.
56479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56480         gl_FUNC_LDEXPL_WORKS.
56481         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56482         * modules/mathl (Files): Remove lib/ldexpl.c.
56483         (Depends-on): Add ldexpl.
56484
56485 2007-03-29  Bruno Haible  <bruno@clisp.org>
56486
56487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56488
56489 2007-03-29  Bruno Haible  <bruno@clisp.org>
56490
56491         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56492         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56493         and possibly also HP-UX.
56494         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56495         work on AIX, IRIX, HP-UX, OSF/1.
56496         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56497         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56498         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56499         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56500         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56501         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56502
56503 2007-03-29  Bruno Haible  <bruno@clisp.org>
56504
56505         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56506
56507 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56508
56509         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56510         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56511
56512 2007-03-29  Eric Blake  <ebb9@byu.net>
56513
56514         * lib/acl-internal.h: Remove redundant include.
56515         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56516         Cygwin when a file is locked.
56517
56518 2007-03-29  Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56521         file.
56522         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56523
56524 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56527         try to remove a parent directory if the child couldn't be removed
56528         (except for the first rmdir, which could fail because the child
56529         doesn't exist).  Problem reported by Jeff Blaine in
56530         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56531
56532 2007-03-28  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/striconveh.c (utf8conv_carefully): New function.
56535         (mem_cd_iconveh_internal): Invoke it.
56536
56537 2007-03-28  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56540         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56541         input.
56542         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56543         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56544         unistr/u8-uctomb.
56545
56546 2007-03-28  Bruno Haible  <bruno@clisp.org>
56547
56548         * modules/unistr/u8-mbtoucr: New file.
56549         * lib/unistr/u8-mbtoucr.c: New file.
56550         * modules/unistr/u16-mbtoucr: New file.
56551         * lib/unistr/u16-mbtoucr.c: New file.
56552         * modules/unistr/u16-mbtoucr: New file.
56553         * lib/unistr/u16-mbtoucr.c: New file.
56554         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56555
56556 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56557             Bruno Haible  <bruno@clisp.org>
56558
56559         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56560         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56561         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56562
56563         * m4/stdio_h.m4: Add stubs for vasprintf too.
56564
56565         * modules/stdio: Support vasprintf in sed command.
56566
56567         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56568         vasprintf.h.  Add stdio module indicator.
56569
56570         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56571         vasprintf.h.
56572
56573         * lib/vasprintf.h: File removed.
56574
56575         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56576         * lib/vasprintf.c: Ditto.
56577         * lib/xvasprintf.c: Ditto.
56578         * tests/test-vasprintf-posix.c: Ditto.
56579         * tests/test-vasprintf.c: Ditto.
56580
56581 2007-03-27  Bruno Haible  <bruno@clisp.org>
56582
56583         Make vasnprintf multithread-safe.
56584         * lib/vasnprintf.c (decimal_point_char): New function.
56585         (VASNPRINTF): Use it.
56586         Suggested by Simon Josefsson.
56587
56588 2007-03-27  Eric Blake  <ebb9@byu.net>
56589
56590         Support sub-second birthtime on cygwin.
56591         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56592         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56593         (get_stat_birthtime): Also work with st_birthtim.
56594
56595 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56598         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56599         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56600         (get_stat_birthtime_ns): Simplify compile-time tests.
56601         (get_stat_birthtime): Change the API to look like
56602         get_stat_mtime etc., except return a negative tv_nsec on error.
56603         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56604         Don't check for "spare" fields.
56605         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56606         or for struct stat.st_birthtime, as these tests aren't used.
56607         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56608
56609 2007-03-27  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/stat-time.h: Include <sys/stat.h>.
56612
56613 2007-03-27  James Youngman  <jay@gnu.org>
56614
56615         * lib/stat-time.h (get_stat_birthtime): New function for
56616           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56617         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56618           and its variants.
56619         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56620         * modules/stat-time-test: New file.
56621         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56622
56623 2007-03-26  Bruno Haible  <bruno@clisp.org>
56624
56625         Better support of signalling NaNs.
56626         * lib/atanl.c: Include isnanl.h.
56627         (atanl): Perform test for NaN at the beginning of the function and
56628         through a call to isnanl.
56629         * lib/cosl.c: Include isnanl.h.
56630         (cosl): Perform test for NaN at the beginning of the function and
56631         through a call to isnanl.
56632         * lib/ldexpl.c: Include isnanl.h.
56633         (ldexpl): Perform test for NaN through a call to isnanl.
56634         * lib/logl.c: Include isnanl.h.
56635         (logl): Perform test for NaN at the beginning of the function and
56636         through a call to isnanl.
56637         * lib/sinl.c: Include isnanl.h.
56638         (sinl): Perform test for NaN at the beginning of the function and
56639         through a call to isnanl.
56640         * lib/sqrtl.c: Include isnanl.h.
56641         (sqrtl): Perform test for NaN at the beginning of the function and
56642         through a call to isnanl.
56643         * lib/tanl.c: Include isnanl.h.
56644         (tanl): Perform test for NaN at the beginning of the function and
56645         through a call to isnanl.
56646         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56647         * modules/mathl (Depends-on): Add isnanl.
56648
56649 2007-03-26  Eric Blake  <ebb9@byu.net>
56650
56651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56652         regression in logic sense of previous patch.
56653
56654 2007-03-26  Bruno Haible  <bruno@clisp.org>
56655
56656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56657         unportable shell command "if ! ...".
56658         Reported by Ralf Wildenhues.
56659
56660 2007-03-25  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56663         <sysexits.h> file, and only add EX_CONFIG.
56664         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56665         absolute file name and whether it is sufficient. Substitute also
56666         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56667         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56668         ABSOLUTE_SYSEXITS_H into sysexits.h.
56669
56670 2007-03-25  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56673         hints is NULL.
56674
56675 2007-03-25  Bruno Haible  <bruno@clisp.org>
56676
56677         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56678         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56679
56680 2007-03-25  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/vasnprintf.c: Include langinfo.h.
56683         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56684         multithread-safe.
56685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56694         Reported by Simon Josefsson.
56695
56696 2007-03-25  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56699         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56700         * modules/vasnprintf (Depends-on): Add stdint.
56701
56702 2007-03-25  Bruno Haible  <bruno@clisp.org>
56703
56704         * modules/fpieee: New file.
56705         * m4/fpieee.m4: New file.
56706         * modules/isnan-nolibm (Depends-on): Add fpieee.
56707         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56708         * modules/isnanl (Depends-on): Add fpieee.
56709
56710 2007-03-25  Bruno Haible  <bruno@clisp.org>
56711
56712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56713
56714 2007-03-25  Bruno Haible  <bruno@clisp.org>
56715
56716         Avoid test failures on IRIX 6.5.
56717         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56718         (main): Use it.
56719         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56720         macros.
56721         (main): Use them.
56722
56723 2007-03-25  Bruno Haible  <bruno@clisp.org>
56724
56725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56726         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56727         exists but doesn't work.
56728         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56729         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56731         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56732         math.h.
56733
56734 2007-03-25  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56737         returns inf. Needed on IRIX 6.5.
56738
56739 2007-03-25  Bruno Haible  <bruno@clisp.org>
56740
56741         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56742         (main): Use isnanl instead of x != x idiom.
56743         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56744
56745         * tests/test-frexp.c: Include isnan.h.
56746         (main): Use isnan instead of x != x idiom.
56747         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56748
56749 2007-03-25  Bruno Haible  <bruno@clisp.org>
56750
56751         * tests/test-frexp.c (NaN): New function/macro.
56752         (main): Use it instead of 0.0 / 0.0.
56753         * tests/test-isnan.c (NaN): New function/macro.
56754         (main): Use it instead of 0.0 / 0.0.
56755         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56756         (test_function): Use it instead of 0.0 / 0.0.
56757         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56758         (test_function): Use it instead of 0.0 / 0.0.
56759         * tests/test-snprintf-posix.h (NaN): New function/macro.
56760         (test_function): Use it instead of 0.0 / 0.0.
56761         * tests/test-sprintf-posix.h (NaN): New function/macro.
56762         (test_function): Use it instead of 0.0 / 0.0.
56763         * tests/test-fprintf-posix.h (NaN): New function/macro.
56764         (test_function): Use it instead of 0.0 / 0.0.
56765         * tests/test-printf-posix.h (NaN): New function/macro.
56766         (test_function): Use it instead of 0.0 / 0.0.
56767
56768         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56769
56770 2007-03-25  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56773
56774 2007-03-25  Bruno Haible  <bruno@clisp.org>
56775
56776         * lib/regexec.c (merge_state_with_log): Make static.
56777
56778 2007-03-25  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/trigl.c (kernel_rem_pio2): Make static.
56781
56782 2007-03-25  Bruno Haible  <bruno@clisp.org>
56783
56784         * lib/sincosl.c (sincosl_table): Make static.
56785
56786 2007-03-25  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56789         if the compiler does not support C99.
56790
56791 2007-03-25  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/time (Makefile.am): Ensure all rule action lines start with a
56794         tab.
56795
56796 2007-03-24  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/tsearch-tests: New file.
56799         * tests/test-tsearch.sh: New file.
56800         * tests/test-tsearch.c: New file, mostly copied from glibc.
56801
56802         * modules/search-tests: New file.
56803         * tests/test-search.c: New file.
56804
56805         * modules/search: New file.
56806         * lib/search_.h: New file, incorporating lib/tsearch.h.
56807         * m4/search_h.m4: New file.
56808         * lib/tsearch.h: Remove file.
56809         * lib/tsearch.c: Include search.h instead of tsearch.h.
56810         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56811         HAVE_TSEARCH.
56812         * modules/tsearch (Files): Remove lib/tsearch.h.
56813         (Depends-on): Add search.
56814         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56815         (Include): Change tsearch.h into search.h.
56816
56817 2007-03-24  Bruno Haible  <bruno@clisp.org>
56818
56819         * modules/fpucw: New file.
56820         * lib/fpucw.h: New file.
56821         * lib/frexp.c: Include fpucw.h.
56822         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56823         (FUNC): Use them.
56824         * lib/printf-frexp.c: Include fpucw.h.
56825         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56826         (FUNC): Use them.
56827         * lib/vasnprintf.c: Include fpucw.h.
56828         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56829         'long double' calculations.
56830         * tests/test-frexpl.c: Include fpucw.h.
56831         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56832         * tests/test-printf-frexpl.c: Include fpucw.h.
56833         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56834         * modules/frexpl (Depends-on): Add fpucw.
56835         * modules/printf-frexpl (Depends-on): Likewise.
56836         * modules/fprintf-posix (Depends-on): Likewise.
56837         * modules/snprintf-posix (Depends-on): Likewise.
56838         * modules/sprintf-posix (Depends-on): Likewise.
56839         * modules/vasnprintf-posix (Depends-on): Likewise.
56840         * modules/vasprintf-posix (Depends-on): Likewise.
56841         * modules/vfprintf-posix (Depends-on): Likewise.
56842         * modules/vsnprintf-posix (Depends-on): Likewise.
56843         * modules/vsprintf-posix (Depends-on): Likewise.
56844         * modules/frexpl-tests (Depends-on): Likewise.
56845         * modules/printf-frexpl-tests (Depends-on): Likewise.
56846
56847 2007-03-24  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/float+.h: New file.
56850         * lib/isnan.c: Include float+.h.
56851         (SIZE): New macro.
56852         (FUNC): Compare only SIZE bytes of the value.
56853         * lib/vasnprintf.c: Include float+.h.
56854         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56855         SIZEOF_LDBL or SIZEOF_DBL bytes.
56856         * modules/isnan-nolibm (Files): Add lib/float+.h.
56857         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56858         * modules/isnanl (Files): Add lib/float+.h.
56859         * modules/vasnprintf (Files): Add lib/float+.h.
56860
56861 2007-03-24  Bruno Haible  <bruno@clisp.org>
56862
56863         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56864         include isnanl-nolibm.h.
56865
56866 2007-03-24  Bruno Haible  <bruno@clisp.org>
56867
56868         * tests/test-read-file.c (main): Don't produce spurious output for
56869         expected situations. Make the test fail if it encountered unexpected
56870         results.
56871
56872 2007-03-24  Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56875         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56876
56877 2007-03-24  Bruno Haible  <bruno@clisp.org>
56878
56879         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56880
56881 2007-03-24  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56884         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56885
56886         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56887         * modules/utf8-ucs4: Turn into a symbolic link to module
56888         unistr/u8-mbtouc.
56889
56890         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56891         utf8-ucs4-unsafe.
56892         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56893         unistr/u8-mbtouc-unsafe.
56894
56895         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56896         * modules/utf16-ucs4: Turn into a symbolic link to module
56897         unistr/u16-mbtouc.
56898
56899         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56900         utf16-ucs4-unsafe.
56901         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56902         unistr/u16-mbtouc-unsafe.
56903
56904         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56905         * modules/ucs4-utf8: Turn into a symbolic link to module
56906         unistr/u8-ubtomb.
56907
56908         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56909         * modules/ucs4-utf16: Turn into a symbolic link to module
56910         unistr/u16-ubtomb.
56911
56912 2007-03-24  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56915         Enable the function only if HAVE_INLINE.
56916         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56917         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56918         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56919         Enable the function only if HAVE_INLINE.
56920         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56921         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56922         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56923         Enable the function only if HAVE_INLINE.
56924         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56925         Enable the function only if HAVE_INLINE.
56926         * modules/utf8-ucs4: Update.
56927         * modules/utf8-ucs4-unsafe: Update.
56928         * modules/utf16-ucs4: Update.
56929         * modules/utf16-ucs4-unsafe: Update.
56930         * modules/ucs4-utf8: Update.
56931         * modules/ucs4-utf16: Update.
56932
56933 2007-03-24  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/utf8-ucs4.h: Remove file.
56936         * lib/utf8-ucs4-unsafe.h: Remove file.
56937         * lib/utf16-ucs4.h: Remove file.
56938         * lib/utf16-ucs4-unsafe.h: Remove file.
56939         * lib/ucs4-utf8.h: Remove file.
56940         * lib/ucs4-utf16.h: Remove file.
56941         * lib/unistr.h: Include their previous contents.
56942         * m4/utf-ucs4.m4: Remove file.
56943         * m4/ucs4-utf.m4: Remove file.
56944         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56945         (Depends-on): Add unistr/base.
56946         (configure.ac): Remove gl_UTF_UCS4.
56947         (Makefile.am): Update.
56948         (Include): Change to unistr.h.
56949         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56950         (Depends-on): Add unistr/base.
56951         (configure.ac): Remove gl_UTF_UCS4.
56952         (Makefile.am): Update.
56953         (Include): Change to unistr.h.
56954         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56955         (Depends-on): Add unistr/base.
56956         (configure.ac): Remove gl_UTF_UCS4.
56957         (Makefile.am): Update.
56958         (Include): Change to unistr.h.
56959         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56960         (Depends-on): Add unistr/base.
56961         (configure.ac): Remove gl_UTF_UCS4.
56962         (Makefile.am): Update.
56963         (Include): Change to unistr.h.
56964         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56965         (Depends-on): Add unistr/base.
56966         (configure.ac): Remove gl_UCS4_UTF.
56967         (Makefile.am): Update.
56968         (Include): Change to unistr.h.
56969         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56970         (Depends-on): Add unistr/base.
56971         (configure.ac): Remove gl_UCS4_UTF.
56972         (Makefile.am): Update.
56973         (Include): Change to unistr.h.
56974         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56975         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56976         utf8-ucs4-unsafe.h.
56977         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56978         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56979         utf16-ucs4-unsafe.h.
56980         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56981         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56982         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56983         * lib/unistr/u8-strchr.c: Likewise.
56984         * lib/unistr/u8-strrchr.c: Likewise.
56985         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56986         * lib/unistr/u16-strchr.c: Likewise.
56987         * lib/unistr/u16-strrchr.c: Likewise.
56988         * lib/striconveh.c: Update.
56989         * lib/linebreak.c: Update.
56990
56991 2007-03-24  Bruno Haible  <bruno@clisp.org>
56992
56993         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56994         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56995
56996 2007-03-22  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56999
57000 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * MODULES.html.sh (File system functions): New module write-any-file.
57003         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57004         * m4/write-any-file.m4: New files.
57005
57006 2007-03-23  Eric Blake  <ebb9@byu.net>
57007
57008         * gnulib-tool: Rearrange space-tab sequences, since some editors
57009         like to eat them.
57010
57011 2007-03-23  Eric Blake  <ebb9@byu.net>
57012
57013         * lib/version-etc.c (version_etc_va): Update license wording to
57014         be more concise.  Recommended by Richard Stallman.
57015
57016 2007-03-22  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/poll.c (MSG_PEEK): New fallback definition.
57019
57020 2007-03-22  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57023         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57024         (main): Update.
57025         Fixes a compilation error on BeOS.
57026
57027 2007-03-22  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/frexpl-tests: New file.
57030         * tests/test-frexpl.c: New file.
57031
57032         * modules/frexpl: New file.
57033         * m4/frexpl.m4: New file.
57034         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57035         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57037         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57038         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57039         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57040
57041 2007-03-22  Bruno Haible  <bruno@clisp.org>
57042
57043         * lib/frexpl.c: Share code with lib/frexp.c.
57044         * modules/mathl (Files): Add lib/frexp.c.
57045         (Depends-on): Add isnanl-nolibm.
57046
57047 2007-03-22  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/printf-frexp (Files): Add m4/frexp.m4.
57050         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57051         only if the found frexp function actually works.
57052
57053 2007-03-22  Bruno Haible  <bruno@clisp.org>
57054
57055         * lib/frexp.c: Remove older implementation that uses divisions.
57056
57057 2007-03-21  Bruno Haible  <bruno@clisp.org>
57058
57059         * modules/frexp-tests: New file.
57060         * tests/test-frexp.c: New file.
57061
57062         * modules/frexp: New file.
57063         * lib/frexp.c: New file.
57064         * m4/frexp.m4: New file.
57065         * lib/math_.h (frexp): New declaration.
57066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57067         REPLACE_FREXP.
57068         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57069
57070 2007-03-21  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/isnanl-tests: New file.
57073         * tests/test-isnanl.c: New file.
57074
57075         * modules/isnanl: New file.
57076         * lib/isnanl.h: New file.
57077         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57078         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57079         gl_FUNC_ISNANL_WORKS.
57080         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57081         New macros.
57082
57083 2007-03-21  Bruno Haible  <bruno@clisp.org>
57084
57085         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57086         lib/isnanl.h.
57087         (Include): Update.
57088         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57089         * lib/vasnprintf.c: Update.
57090         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57091         tests/test-isnanl.h, remove tests/test-isnanl.c.
57092         (Makefile.am): Update.
57093         * tests/test-isnanl-nolibm.c: New file.
57094         * tests/test-isnanl.h: New file.
57095         * tests/test-isnanl.c: Remove file.
57096
57097 2007-03-21  Jim Meyering  <jim@meyering.net>
57098
57099         When trying to open ".", treat ESTALE like EACCES.
57100         * lib/savewd.c (savewd_save): Resort to forking not just upon
57101         failure with EACCES, but also when errno is ESTALE.
57102
57103 2007-03-20  Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57106         Needed on AIX 5.1. Reported by Matthew Woehlke.
57107
57108 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         Suggestions by Bruno Haible:
57111         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57112         our own.
57113         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57114         * modules/acl (Depends-on): Add gettext.
57115
57116 2007-03-19  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/iconvme: Remove file.
57119         * lib/iconvme.h: Remove file.
57120         * lib/iconvme.c: Remove file.
57121         * m4/iconvme.m4: Remove file.
57122
57123 2007-03-19  Bruno Haible  <bruno@clisp.org>
57124
57125         * doc/relocatable-maint.texi: Break long shell script line.
57126         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57127
57128 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57131         handle file_has_acl.
57132         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57133         * lib/acl.c: Move header inclusions and related macro defns into
57134         lib/acl-internal.h.
57135         (S_ISLNK): Remove defn, since that's now done for us.
57136         (file_has_acl): Move to lib/file-has-acl.c.
57137         Call acl_trivial if available.  This is the crucial part of the fix.
57138         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57139         shared within the library.  Rewrite a bit, partly to make it compatible
57140         with the GNU coding style.
57141         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57142         Remove unnecessary double-quotes.
57143         Don't test for acl_to_text; the build will catch that.
57144         Replace acl_entries if it doesn't exist and it is needed.
57145         Check for -lsec and acl_trivial (as used on Solaris 10).
57146         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57147         lib/file-has-acl.c.
57148         (Depends-on): Add sys_stat, for S_ISLNK.
57149
57150 2007-03-19  Ben Pfaff  <blp@gnu.org>
57151
57152         * doc/gnulib.texi: Fix typos.
57153         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57154
57155 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57158         If size is zero here, buf must be zero.
57159
57160 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57161
57162         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57163         <bruno@clisp.org>.
57164
57165 2007-03-18  Bruno Haible  <bruno@clisp.org>
57166
57167         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57168         Suggested by Eric Blake.
57169
57170 2007-03-18  Ben Pfaff  <blp@gnu.org>
57171
57172         * doc/relocatable.texi: Recommend using as prefix a directory
57173         that does not exist and will never be created.  Based on
57174         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57175         and others.
57176
57177 2007-03-17  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/fchownat.c: Include lchown.h.
57180
57181 2007-03-17  Bruno Haible  <bruno@clisp.org>
57182
57183         Fix endless loop when the given allocated size was > INT_MAX.
57184         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57185         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57186         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57187         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57188         * lib/sprintf.c (sprintf): Likewise.
57189
57190 2007-03-17  Bruno Haible  <bruno@clisp.org>
57191
57192         * tests/test-argp-2.sh (func_compare): Output a context diff.
57193
57194 2007-03-17  Bruno Haible  <bruno@clisp.org>
57195
57196         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57197         locale's decimal-point character.
57198
57199 2007-03-17  Bruno Haible  <bruno@clisp.org>
57200
57201         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57202         before comparing it. Needed because on some platforms (e.g. x86) a
57203         'long double' occupies less bytes than sizeof (long double).
57204
57205 2007-03-17  Bruno Haible  <bruno@clisp.org>
57206
57207         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57208         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57209         * tests/test-getaddrinfo.c (simple): Likewise.
57210         * tests/test-read-file.c (main): Likewise.
57211
57212 2007-03-17  Bruno Haible  <bruno@clisp.org>
57213
57214         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57215
57216 2007-03-17  Bruno Haible  <bruno@clisp.org>
57217
57218         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57219         unused variable.
57220
57221 2007-03-17  Bruno Haible  <bruno@clisp.org>
57222
57223         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57224         * tests/test-c-strncasecmp.c: Likewise.
57225
57226 2007-03-17  Bruno Haible  <bruno@clisp.org>
57227
57228         * modules/stdlib (Depends-on): Add unistd.
57229         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57230         Needed for MacOS X 10.3.
57231
57232 2007-03-17  Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57235
57236 2007-03-17  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57239
57240 2007-03-17  Bruno Haible  <bruno@clisp.org>
57241
57242         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57243         to reflect files copied from gnulib (with or without modifications).
57244         Suggested by Jim Meyering.
57245
57246 2007-03-17  Eric Blake  <ebb9@byu.net>
57247
57248         * NEWS: Document stdlib change from 2007-02-18.
57249
57250 2007-03-17  Jim Meyering  <jim@meyering.net>
57251
57252         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57253         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57254         someone uses a name containing shell meta-characters.
57255         Reported by Alfred M. Szmidt.
57256
57257         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57258
57259 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57260
57261         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57262         and copy gettext configuration files only if configure.ac contains
57263         a use of AM_GNU_GETTEXT_VERSION.
57264
57265 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57266
57267         * build-aux/bootstrap (gnulib_name): New variable.
57268         (gnulib_tool_options): Use it.
57269
57270 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57271
57272         * tests/test-des.c: Use new namespace.
57273
57274 2007-03-15  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57277         Reported by James Youngman <jay@gnu.org>.
57278
57279 2007-03-15  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57282         declared prototype. Needed with cc on OSF/1 5.1.
57283
57284 2007-03-15  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57287         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57288         (struct gl_list_implementation): Add dispose_fn argument to the
57289         'create_empty', 'create' methods.
57290         (struct gl_list_impl_base): Add field 'dispose_fn'.
57291         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57292         argument.
57293         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57294         dispose_fn argument.
57295         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57296         dispose_fn on the dropped values.
57297         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57298         dispose_fn argument.
57299         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57300         dropped values.
57301         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57302         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57303         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57304         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57305         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57306         argument.
57307         (gl_tree_list_free): Call dispose_fn on the dropped values.
57308         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57309         the dropped values.
57310         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57311         Add dispose_fn argument.
57312         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57313         Call dispose_fn on the dropped values.
57314         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57315         Add dispose_fn argument.
57316         (gl_sublist_create): Initialize the 'dispose_fn' field.
57317         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57318         * tests/test-array_list.c (main): Update.
57319         * tests/test-carray_list.c (main): Update.
57320         * tests/test-avltree_list.c (main): Update.
57321         * tests/test-rbtree_list.c (main): Update.
57322         * tests/test-avltreehash_list.c (main): Update.
57323         * tests/test-rbtreehash_list.c (main): Update.
57324         * tests/test-linked_list.c (main): Update.
57325         * tests/test-linkedhash_list.c (main): Update.
57326         * tests/test-array_oset.c (main): Update.
57327
57328 2007-03-15  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57331         (gl_oset_create_empty): Add dispose_fn argument.
57332         (struct gl_oset_implementation): Add dispose_fn argument to
57333         'create_empty' method.
57334         (struct gl_oset_impl_base): Add dispose_fn field.
57335         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57336         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57337         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57338         values.
57339         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57340         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57341         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57342         dropped value.
57343         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57344         dropped value.
57345         * tests/test-array_oset.c (main): Update.
57346         * tests/test-avltree_oset.c (main): Update.
57347         * tests/test-rbtree_oset.c (main): Update.
57348         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57349
57350 2007-03-13  Bruno Haible  <bruno@clisp.org>
57351
57352         * tests/test-stdbool.c (i): Update after last patch.
57353
57354 2007-03-12  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57357         the iswprint macro. Needed on Solaris 2.5.1.
57358
57359 2007-03-12  Bruno Haible  <bruno@clisp.org>
57360
57361         * tests/test-printf-frexp.c (main): Declare x as volatile.
57362
57363 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57364
57365         * doc/gnulib.texi (Build robot for gnulib): New section.
57366
57367 2007-03-12  Jim Meyering  <jim@meyering.net>
57368
57369         * build-aux/bootstrap: New file.
57370         * build-aux/bootstrap.conf: New file, from coreutils.
57371
57372 2007-03-11  Bruno Haible  <bruno@clisp.org>
57373
57374         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57375
57376 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57377
57378         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57379         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57380         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57381
57382 2007-03-11  Bruno Haible  <bruno@clisp.org>
57383
57384         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57385         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57386
57387 2007-03-11  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57390         formula. Needed for SunPRO C 5.0.
57391
57392 2007-03-11  Bruno Haible  <bruno@clisp.org>
57393
57394         * modules/long-options (Depends-on): Add getopt.
57395
57396 2007-03-11  Bruno Haible  <bruno@clisp.org>
57397
57398         * modules/modechange (Depends-on): Add stdbool.
57399
57400 2007-03-11  Bruno Haible  <bruno@clisp.org>
57401
57402         * modules/i-ring (Depends-on): Add stdbool.
57403
57404 2007-03-11  Bruno Haible  <bruno@clisp.org>
57405
57406         * modules/gc-des (Depends-on): Add stdbool.
57407
57408 2007-03-11  Bruno Haible  <bruno@clisp.org>
57409
57410         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57411
57412 2007-03-11  Bruno Haible  <bruno@clisp.org>
57413
57414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57415
57416 2007-03-11  Bruno Haible  <bruno@clisp.org>
57417
57418         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57419
57420 2007-03-11  Bruno Haible  <bruno@clisp.org>
57421
57422         * lib/vasnprintf.c (sprintf): Undefine.
57423
57424 2007-03-11  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57427         initializers in SunPRO C and Compaq C compilers.
57428
57429 2007-03-11  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57432         decrementing code ANSI C compliant.
57433
57434 2007-03-11  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57437         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57438
57439 2007-03-11  Bruno Haible  <bruno@clisp.org>
57440
57441         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57442         <stdbool.h> substitute doesn't pass.
57443
57444 2007-03-11  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57447
57448 2007-03-11  Bruno Haible  <bruno@clisp.org>
57449
57450         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57451         script, for submission to autobuild.josefsson.org.
57452
57453 2007-03-10  Bruno Haible  <bruno@clisp.org>
57454
57455         * modules/canonicalize-lgpl-tests: New file.
57456         * tests/test-canonicalize-lgpl.sh: New file.
57457         * tests/test-canonicalize-lgpl.c: New file.
57458
57459         * modules/c-strcase-tests: New file.
57460         * tests/test-c-strcase.sh: New file.
57461         * tests/test-c-strcasecmp.c: New file.
57462         * tests/test-c-strncasecmp.c: New file.
57463
57464         * modules/atexit-tests: New file.
57465         * tests/test-atexit.sh: New file.
57466         * tests/test-atexit.c: New file.
57467
57468 2007-03-10  Bruno Haible  <bruno@clisp.org>
57469
57470         * tests/test-binary-io.sh: Use temporary filenames that are not so
57471         likely to clash with those of other tests (in a parallel make).
57472         * tests/test-binary-io.c: Likewise.
57473
57474 2007-03-10  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57477         fallback; use #error instead.
57478         Suggested by Simon Josefsson.
57479
57480 2007-03-10  Bruno Haible  <bruno@clisp.org>
57481
57482         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57483         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57484         first and the last.
57485
57486 2007-03-10  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57489
57490 2007-03-10  Bruno Haible  <bruno@clisp.org>
57491
57492         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57493         "make distcheck".
57494         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57495         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57496         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57497
57498 2007-03-10  Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57501         variable.
57502         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57503         variable.
57504
57505 2007-03-09  Eric Blake  <ebb9@byu.net>
57506         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57507
57508         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57509         types are not being provided by gnulib.
57510         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57511         types are supported.
57512
57513 2007-03-10  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/stdio_.h (__attribute__): New macro.
57516         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57517         vsprintf): Specify __attribute__ __format__ for GCC.
57518         Suggested by Eric Blake.
57519
57520 2007-03-09  Bruno Haible  <bruno@clisp.org>
57521
57522         * modules/printf-posix-tests: New file.
57523         * tests/test-printf-posix.sh: New file.
57524         * tests/test-printf-posix.c: New file.
57525
57526         * modules/printf-posix: New file.
57527         * lib/printf.c: New file.
57528         * m4/printf-posix-rpl.m4: New file.
57529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57530         REPLACE_PRINTF.
57531         * lib/stdio_.h (printf): New declaration.
57532         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57533         ____strfmon____): New macros.
57534         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57535         REPLACE_PRINTF.
57536
57537 2007-03-09  Bruno Haible  <bruno@clisp.org>
57538
57539         * tests/test-vasnprintf-posix2.sh: New file.
57540         * tests/test-vasnprintf-posix2.c: New file.
57541         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57542         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57543         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57544
57545         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57546         a locale dependent decimal point, rather than always '.'.
57547
57548 2007-03-09  Eric Blake  <ebb9@byu.net>
57549
57550         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57551         spite of platforms like Tandem/NSK that define it to -1.
57552
57553 2007-03-08  Bruno Haible  <bruno@clisp.org>
57554
57555         * modules/vprintf-posix-tests: New file.
57556         * tests/test-vprintf-posix.sh: New file.
57557         * tests/test-vprintf-posix.c: New file.
57558         * tests/test-printf-posix.h: New file.
57559
57560         * modules/vprintf-posix: New file.
57561         * lib/vprintf.c: New file.
57562         * m4/vprintf-posix.m4: New file.
57563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57564         REPLACE_VPRINTF.
57565         * lib/stdio_.h (vprintf): New declaration.
57566         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57567         REPLACE_VPRINTF.
57568
57569 2007-03-08  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/fprintf-posix-tests: New file.
57572         * tests/test-fprintf-posix.sh: New file.
57573         * tests/test-fprintf-posix.c: New file.
57574
57575         * modules/fprintf-posix: New file.
57576         * lib/fprintf.c: New file.
57577         * m4/fprintf-posix.m4: New file.
57578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57579         REPLACE_FPRINTF.
57580         * lib/stdio_.h (fprintf): New declaration.
57581         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57582         REPLACE_FPRINTF.
57583
57584 2007-03-08  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/vfprintf-posix-tests: New file.
57587         * tests/test-vfprintf-posix.sh: New file.
57588         * tests/test-vfprintf-posix.c: New file.
57589         * tests/test-fprintf-posix.h: New file.
57590         * tests/test-fprintf-posix.out: New file.
57591
57592         * modules/vfprintf-posix: New file.
57593         * lib/vfprintf.c: New file.
57594         * m4/vfprintf-posix.m4: New file.
57595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57596         REPLACE_VFPRINTF.
57597         * lib/stdio_.h (vfprintf): New declaration.
57598         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57599         REPLACE_VFPRINTF.
57600
57601 2007-03-08  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57604
57605 2007-03-08  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57608         instead of 'expr' invocations.
57609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57612         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57613         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57614         Suggested by Paul Eggert.
57615
57616 2007-03-08  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/fseterr-tests: New file.
57619         * tests/test-fseterr.c: New file.
57620
57621         * modules/fseterr: New file.
57622         * lib/fseterr.h: New file.
57623         * lib/fseterr.c: New file.
57624
57625 2007-03-08  Bruno Haible  <bruno@clisp.org>
57626
57627         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57628         * lib/getopt_.h: Likewise.
57629         * lib/mbswidth.h: Likewise.
57630         * lib/setenv.h: Likewise.
57631         * lib/vasnprintf.h: Likewise.
57632         * lib/vasprintf.h: Likewise.
57633         * lib/verror.h: Likewise.
57634         * lib/xsetenv.h: Likewise.
57635         * lib/xvasprintf.h: Likewise.
57636
57637 2007-03-08  Jim Meyering  <jim@meyering.net>
57638
57639         * users.txt: Add parted.
57640
57641         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57642
57643 2007-03-07  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/printf.m4: Make the shell script snippets copy&pastable.
57646
57647 2007-03-02  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/netinet_in_.h: New file.
57650         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57651         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57652         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57653         (Depends-on): Add absolute-header.
57654         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57655         into netinet/in.h.
57656
57657 2007-03-03  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/sys_select_.h: New file.
57660         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57661         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57662         * modules/sys_select (Files): Add lib/sys_select_.h.
57663         (Depends-on): Add absolute-header.
57664         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57665         into sys/select.h.
57666
57667 2007-03-02  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57670         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57671         values.
57672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57673         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57674         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57675         * modules/sys_socket (Depends-on): Add absolute-header.
57676         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57677         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57678         (Include): Remove requirement of inclusion of <sys/types.h>.
57679
57680 2007-03-02  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/byteswap_.h (bswap_32): Fix formula.
57683
57684 2007-03-06  Bruno Haible  <bruno@clisp.org>
57685
57686         * modules/sprintf-posix-tests: New file.
57687         * tests/test-sprintf-posix.c: New file.
57688
57689         * modules/sprintf-posix: New file.
57690         * lib/sprintf.c: New file.
57691         * m4/sprintf-posix.m4: New file.
57692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57693         REPLACE_SPRINTF.
57694         * lib/stdio_.h (sprintf): New declaration.
57695         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57696         REPLACE_SPRINTF.
57697
57698 2007-03-06  Bruno Haible  <bruno@clisp.org>
57699
57700         * modules/vsprintf-posix-tests: New file.
57701         * tests/test-vsprintf-posix.c: New file.
57702         * tests/test-sprintf-posix.h: New file.
57703
57704         * modules/vsprintf-posix: New file.
57705         * lib/vsprintf.c: New file.
57706         * m4/vsprintf-posix.m4: New file.
57707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57708         REPLACE_VSPRINTF.
57709         * lib/stdio_.h (vsprintf): New declaration.
57710         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57711         REPLACE_VSPRINTF.
57712
57713 2007-03-06  Bruno Haible  <bruno@clisp.org>
57714
57715         * modules/vsnprintf (Depend-on): Remove minmax.
57716
57717 2007-03-06  Bruno Haible  <bruno@clisp.org>
57718
57719         * modules/snprintf-posix-tests: New file.
57720         * tests/test-snprintf-posix.c: New file.
57721
57722         * modules/snprintf-posix: New file.
57723         * m4/snprintf-posix.m4: New file.
57724         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57725         gl_FUNC_SNPRINTF.
57726         (gl_FUNC_SNPRINTF): Invoke it.
57727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57728         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57729         is set.
57730         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57731
57732 2007-03-06  Bruno Haible  <bruno@clisp.org>
57733
57734         * modules/vsnprintf-posix-tests: New file.
57735         * tests/test-vsnprintf-posix.c: New file.
57736         * tests/test-snprintf-posix.h: New file.
57737
57738         * modules/vsnprintf-posix: New file.
57739         * m4/vsnprintf-posix.m4: New file.
57740         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57741         gl_FUNC_VSNPRINTF.
57742         (gl_FUNC_VSNPRINTF): Invoke it.
57743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57744         * lib/stdio_.h (vsnprintf): Define as a replacement if
57745         REPLACE_VSNPRINTF is set.
57746         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57747
57748 2007-03-06  Bruno Haible  <bruno@clisp.org>
57749
57750         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57752
57753 2007-03-06  Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57756         (asinl): Declare also if HAVE_DECL_ASINL is set.
57757         (atanl): Declare also if HAVE_DECL_ATANL is set.
57758         (ceill): Declare also if HAVE_DECL_CEILL is set.
57759         (cosl): Declare also if HAVE_DECL_COSL is set.
57760         (expl): Declare also if HAVE_DECL_EXPL is set.
57761         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57762         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57763         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57764         (logl): Declare also if HAVE_DECL_LOGL is set.
57765         (sinl): Declare also if HAVE_DECL_SINL is set.
57766         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57767         (tanl): Declare also if HAVE_DECL_TANL is set.
57768         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57771         declaration of frexpl, ldexpl.
57772         * modules/printf-frexpl (Depends-on): Add math.
57773         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57774
57775 2007-03-05  Bruno Haible  <bruno@clisp.org>
57776
57777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57778         frexpl and ldexpl are declared.
57779         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57780
57781 2007-03-05  Bruno Haible  <bruno@clisp.org>
57782
57783         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57784         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57785
57786 2007-03-05  Bruno Haible  <bruno@clisp.org>
57787
57788         * lib/stdio_.h: Include <stddef.h>.
57789
57790 2007-03-05  Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57793
57794 2007-03-05  Bruno Haible  <bruno@clisp.org>
57795
57796         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57797         NetBSD 4, from Ralf Wildenhues.
57798
57799 2007-03-04  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/vasprintf.h: Update #if logic for the case when the functions
57802         exist but are overridden.
57803
57804 2007-03-04  Bruno Haible  <bruno@clisp.org>
57805
57806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57807         implementations: glibc-2.4 and MacOS X 10.3.
57808         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57809         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57810         * tests/test-vasprintf-posix.c (test_function): Likewise.
57811
57812 2007-03-04  Bruno Haible  <bruno@clisp.org>
57813
57814         * modules/vasprintf-posix-tests: New file.
57815         * tests/test-vasprintf-posix.c: New file.
57816
57817         * modules/vasprintf-posix: New file.
57818         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57819         defined.
57820         * m4/vasprintf-posix.m4: New file.
57821         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57822         gl_FUNC_VASPRINTF.
57823         (gl_FUNC_VASPRINTF): Invoke it.
57824         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57825         here.
57826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57827
57828 2007-03-04  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57831         REPLACE_GETTIMEOFDAY.
57832         * modules/sys_time (Makefile.am): Likewise.
57833         * m4/sys_time_h.m4: Likewise.
57834         * m4/gettimeofday.m4: Likewise.
57835
57836 2007-03-04  Bruno Haible  <bruno@clisp.org>
57837
57838         * modules/vasnprintf-posix-tests: New file.
57839         * tests/test-vasnprintf-posix.c: New file.
57840
57841         * modules/vasnprintf-posix: New file.
57842         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57843         printf-frexpl.h.
57844         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57845         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57846         REPLACE_VASNPRINTF is defined.
57847         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57848         gl_FUNC_VASNPRINTF.
57849         (gl_FUNC_VASNPRINTF): Invoke it.
57850         * m4/vasnprintf-posix.m4: New file.
57851         * m4/printf.m4: New file.
57852
57853 2007-03-04  Bruno Haible  <bruno@clisp.org>
57854
57855         Compile progreloc.c only if --enable-relocatable is specified.
57856         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57857         if --enable-relocatable was specified.
57858         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57859         lib_SOURCES.
57860
57861 2007-03-04  Jim Meyering  <jim@meyering.net>
57862
57863         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57864         Use it consistently, rather than enumerating errno constants.
57865
57866 2007-03-04  Bruno Haible  <bruno@clisp.org>
57867
57868         * modules/xvasprintf-tests: New file.
57869         * tests/test-xvasprintf.c: New file.
57870
57871         * modules/vasprintf-tests: New file.
57872         * tests/test-vasprintf.c: New file.
57873
57874         * modules/vasnprintf-tests: New file.
57875         * tests/test-vasnprintf.c: New file.
57876
57877         * modules/vsnprintf-tests: New file.
57878         * tests/test-vsnprintf.c: New file.
57879
57880         * modules/snprintf-tests: New file.
57881         * tests/test-snprintf.c: New file.
57882
57883 2007-03-04  Bruno Haible  <bruno@clisp.org>
57884
57885         Compile relocatable.c only if --enable-relocatable is specified.
57886         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57887         gl_RELOCATABLE_LIBRARY.
57888         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57889         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57890         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57891         gl_RELOCATABLE_LIBRARY.
57892         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57893         (Makefile.am): Remove lib_SOURCES.
57894         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57895         gl_RELOCATABLE_LIBRARY.
57896         (Makefile.am): Remove lib_SOURCES.
57897         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57898         always.
57899         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57900         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57901
57902 2007-03-04  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/argmatch-tests: New file.
57905         * tests/test-argmatch.c: New file.
57906
57907         * tests/test-allocsa.c (main): Halve the number of loop runs.
57908
57909         * modules/alloca-opt-tests: New file.
57910         * tests/test-alloca-opt.c: New file.
57911
57912 2007-03-04  Jim Meyering  <jim@meyering.net>
57913
57914         Work around difference between Linux ACLs and Solaris 10 ZFS.
57915         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57916         for EINVAL.
57917
57918 2007-03-03  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/relocatable-prog (Depends-on): Add back progreloc's
57921         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57922
57923 2007-03-03  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57926         * modules/relocatable-lib: New file.
57927
57928 2007-03-03  Bruno Haible  <bruno@clisp.org>
57929
57930         * modules/relocatable-prog: Renamed from modules/relocatable.
57931         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57932
57933 2007-03-03  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57936         m4/relocatable-lib.m4.
57937         (Depends-on): Remove 'relocatable'.
57938         (configure.ac): Add gl_RELOCATABLE_NOP.
57939
57940 2007-03-03  Bruno Haible  <bruno@clisp.org>
57941
57942         * modules/relocatable-prog-wrapper: New file.
57943         * modules/relocatable (Depends-on): Add it. Remove all other
57944         dependencies except progname.
57945         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57946
57947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57948         (gl_FUNC_STRERROR): Nop.
57949         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57950
57951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57952         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57953
57954         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57955         (gl_FUNC_READLINK): Update.
57956
57957         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57958
57959 2007-03-03  Bruno Haible  <bruno@clisp.org>
57960
57961         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57962         * modules/xreadlink (Depends-on): Add unistd.
57963         * modules/xreadlink-with-size (Depends-on): Likewise.
57964
57965 2007-03-03  Bruno Haible  <bruno@clisp.org>
57966
57967         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57968         extracted from gt_FUNC_SETENV.
57969         (gt_FUNC_SETENV): Remove macro.
57970         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57971         remove gt_FUNC_SETENV.
57972
57973 2007-03-03  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57976         ENABLE_RELOCATABLE here.
57977         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57978
57979 2007-03-03  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57982         * tests/test-rbtreehash_list.c: Include progname.h.
57983         (main): Call set_program_name.
57984
57985         * modules/rbtree-oset-tests (Depends-on): Add progname.
57986         * tests/test-rbtree_oset.c: Include progname.h.
57987         (main): Call set_program_name.
57988
57989         * modules/rbtree-list-tests (Depends-on): Add progname.
57990         * tests/test-rbtree_list.c: Include progname.h.
57991         (main): Call set_program_name.
57992
57993         * modules/linked-list-tests (Depends-on): Add progname.
57994         * tests/test-linked_list.c: Include progname.h.
57995         (main): Call set_program_name.
57996
57997 2007-03-03  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58000         All uses of __restrict changed to _Restrict_.
58001         * lib/glob_.h (__restrict): Remove macro.
58002
58003 2007-03-02  Bruno Haible  <bruno@clisp.org>
58004
58005         * modules/gettext (configure.ac): Require gettext infrastructure
58006         from version 0.16.1.
58007
58008 2007-03-02  Bruno Haible  <bruno@clisp.org>
58009
58010         * modules/linkedhash-list-tests (Depends-on): Add progname.
58011         * tests/test-linkedhash_list.c: Include progname.h.
58012         (main): Call set_program_name.
58013
58014         * modules/carray-list-tests (Depends-on): Add progname.
58015         * tests/test-carray_list.c: Include progname.h.
58016         (main): Call set_program_name.
58017
58018         * modules/avltreehash-list-tests (Depends-on): Add progname.
58019         * tests/test-avltreehash_list.c: Include progname.h.
58020         (main): Call set_program_name.
58021
58022         * modules/avltree-oset-tests (Depends-on): Add progname.
58023         * tests/test-avltree_oset.c: Include progname.h.
58024         (main): Call set_program_name.
58025
58026         * modules/avltree-list-tests (Depends-on): Add progname.
58027         * tests/test-avltree_list.c: Include progname.h.
58028         (main): Call set_program_name.
58029
58030         * modules/array-oset-tests (Depends-on): Add progname.
58031         * tests/test-array_oset.c: Include progname.h.
58032         (main): Call set_program_name.
58033
58034         * modules/array-list-tests (Depends-on): Add progname.
58035         * tests/test-array_list.c: Include progname.h.
58036         (main): Call set_program_name.
58037
58038         * modules/argp-tests (Depends-on): Add progname.
58039         * tests/test-argp.c: Include argp.h first. Include progname.h.
58040         (main): Call set_program_name.
58041
58042 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * doc/gnulib-tool.texi (Initial import): Reword description of
58045         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58046         limited effect even if defined after the first system include.
58047
58048 2007-03-01  Bruno Haible  <bruno@clisp.org>
58049
58050         * build-aux/config.libpath: Update to libtool-1.5.22.
58051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58052
58053 2007-03-01  Bruno Haible  <bruno@clisp.org>
58054
58055         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58056         foo_CFLAGS.
58057         Reported by Ralf Wildenhues.
58058
58059 2007-03-01  Bruno Haible  <bruno@clisp.org>
58060
58061         * build-aux/install-reloc: Remove object files left over by some
58062         compilers.
58063         Reported by Ralf Wildenhues.
58064
58065 2007-03-01  Bruno Haible  <bruno@clisp.org>
58066
58067         * build-aux/install-reloc: Break long lines.
58068
58069 2007-03-01  Bruno Haible  <bruno@clisp.org>
58070
58071         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58072         Reported by Ralf Wildenhues.
58073
58074 2007-03-01  Bruno Haible  <bruno@clisp.org>
58075
58076         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58077         include ordering constraints.
58078
58079 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58083         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58084         as another example.
58085         * lib/time_.h: Fix misspelling.
58086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58087         Require gl_HEADER_TIME_H_DEFAULTS.
58088         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58089         * m4/time_r.m4 (gl_TIME_R): Likewise.
58090         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58091
58092 2007-03-01  Bruno Haible  <bruno@clisp.org>
58093
58094         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58095         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58096
58097 2007-03-01  Jim Meyering  <jim@meyering.net>
58098
58099         * modules/xreadlink (Maintainer): Add my name.
58100         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58101
58102 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58103             Bruno Haible  <bruno@clisp.org>
58104
58105         * build-aux/install-reloc: Compile also c-ctype.c.
58106         * build-aux/relocatable.sh.in: New file.
58107         * doc/relocatable.texi: New file.
58108         * doc/relocatable-maint.texi: New file.
58109         * doc/gnulib.texi: Include relocatable-maint.texi.
58110         * lib/progreloc.c: Include unistd.h unconditionally.
58111         * lib/relocwrapper.c: Include unistd.h unconditionally.
58112         Include c-ctype.h.
58113         (add_dotbin): Use c_tolower.
58114         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58115         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58116         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58117         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58118         to m4/relocatable-lib.m4.
58119         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58120         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58121         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58122         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58123         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58124         * modules/relocatable: New file.
58125         * modules/relocatable-lib: New file.
58126         * modules/relocatable-script: New file.
58127
58128 2007-02-28  Bruno Haible  <bruno@clisp.org>
58129
58130         Import --enable-relocatable infrastructure.
58131         * build-aux/config.libpath: New file, from GNU gettext.
58132         * build-aux/install-reloc: New file, from GNU gettext.
58133         * build-aux/reloc-ldflags: New file, from GNU gettext.
58134         * lib/relocatable.h: New file, from GNU gettext.
58135         * lib/relocatable.c: New file, from GNU gettext.
58136         * lib/relocwrapper.c: New file, from GNU gettext.
58137         * m4/relocatable.m4: New file, from GNU gettext.
58138
58139 2007-02-28  Bruno Haible  <bruno@clisp.org>
58140
58141         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58142
58143         * modules/xreadlink: New file, from GNU gettext with modifications.
58144         * lib/xreadlink.c: New file, from GNU gettext.
58145         * lib/xreadlink.h: Add comments.
58146         (xreadlink): New declaration.
58147
58148         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58149         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58150         lib/xreadlink-with-size.c.
58151         (configure.ac): Remove gl_XREADLINK invocation.
58152         (Makefile.am): Augment lib_SOURCES.
58153         * m4/xreadlink.m4: Remove file.
58154         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58155         (xreadlink_with_size): Renamed from xreadink.
58156         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58157         * modules/canonicalize (Depends-on): Replace xreadlink with
58158         xreadlink-with-size.
58159         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58160
58161 2007-02-25  Jim Meyering  <jim@meyering.net>
58162
58163         * build-aux/announce-gen: When complaining about excess arguments,
58164         list them.
58165
58166 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58167
58168         * README: Document signed integer overflow situation more
58169         accurately.
58170
58171 2007-02-25  Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58174         'a' or 'A' conversion.
58175
58176 2007-02-25  Bruno Haible  <bruno@clisp.org>
58177
58178         * modules/filename: Renamed from modules/pathname.
58179         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58180         lib/concatpath.c with lib/concat-filename.c.
58181         (Makefile.am): Update.
58182         (Include): Replace pathname.h with filename.h.
58183         * lib/filename.h: Renamed from lib/pathname.h.
58184         (concatenated_filename): Renamed from concatenated_pathname.
58185         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58186         (concatenated_filename): Renamed from concatenated_pathname.
58187         * lib/findprog.c: Include filename.h instead of pathname.h.
58188         (find_in_path): Update.
58189         * lib/javacomp.c: Include filename.h instead of pathname.h.
58190         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58191         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58192         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58193         is_oldgcj_14_13_usable, is_javac_usable): Update.
58194         * lib/javaexec.c: Include filename.h instead of pathname.h.
58195         (execute_java_class): Update.
58196         * modules/findprog: Update.
58197         * modules/javacomp: Update.
58198         * modules/javaexec: Update.
58199         * MODULES.html.sh (File system functions): Add 'filename', remove
58200         'pathname'.
58201
58202 2007-02-25  Bruno Haible  <bruno@clisp.org>
58203
58204         * modules/printf-frexpl-tests: New file.
58205         * tests/test-printf-frexpl.c: New file.
58206
58207         * modules/printf-frexpl: New file.
58208         * lib/printf-frexpl.h: New file.
58209         * lib/printf-frexpl.c: New file.
58210         * m4/printf-frexpl.m4: New file.
58211
58212 2007-02-25  Bruno Haible  <bruno@clisp.org>
58213
58214         * modules/printf-frexp-tests: New file.
58215         * tests/test-printf-frexp.c: New file.
58216
58217         * modules/printf-frexp: New file.
58218         * lib/printf-frexp.h: New file.
58219         * lib/printf-frexp.c: New file.
58220         * m4/printf-frexp.m4: New file.
58221
58222 2007-02-25  Bruno Haible  <bruno@clisp.org>
58223
58224         Assume automake >= 1.10 for the tests.
58225         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58226         * modules/arctwo-tests: Likewise.
58227         * modules/argp-tests: Likewise.
58228         * modules/avltree-list-tests: Likewise.
58229         * modules/avltree-oset-tests: Likewise.
58230         * modules/avltreehash-list-tests: Likewise.
58231         * modules/carray-list-tests: Likewise.
58232         * modules/crc-tests: Likewise.
58233         * modules/des-tests: Likewise.
58234         * modules/gc-arcfour-tests: Likewise.
58235         * modules/gc-arctwo-tests: Likewise.
58236         * modules/gc-des-tests: Likewise.
58237         * modules/gc-hmac-md5-tests: Likewise.
58238         * modules/gc-hmac-sha1-tests: Likewise.
58239         * modules/gc-md2-tests: Likewise.
58240         * modules/gc-md4-tests: Likewise.
58241         * modules/gc-md5-tests: Likewise.
58242         * modules/gc-pbkdf2-sha1-tests: Likewise.
58243         * modules/gc-rijndael-tests: Likewise.
58244         * modules/gc-sha1-tests: Likewise.
58245         * modules/gc-tests: Likewise.
58246         * modules/getaddrinfo-tests: Likewise.
58247         * modules/hmac-md5-tests: Likewise.
58248         * modules/hmac-sha1-tests: Likewise.
58249         * modules/linked-list-tests: Likewise.
58250         * modules/linkedhash-list-tests: Likewise.
58251         * modules/lock-tests: Likewise.
58252         * modules/md2-tests: Likewise.
58253         * modules/md4-tests: Likewise.
58254         * modules/md5-tests: Likewise.
58255         * modules/rbtree-list-tests: Likewise.
58256         * modules/rbtree-oset-tests: Likewise.
58257         * modules/rbtreehash-list-tests: Likewise.
58258         * modules/read-file-tests: Likewise.
58259         * modules/rijndael-tests: Likewise.
58260         * modules/stdint-tests: Likewise.
58261         * modules/tls-tests: Likewise.
58262
58263 2007-02-24  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58266         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58267         function; instead check whether isnan with a double argument links.
58268         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58269         function; instead check whether isnan with a 'long double' argument
58270         links.
58271         Reported by Eric Blake <ebb9@byu.net>.
58272
58273 2007-02-24  Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58276         defined.
58277         * lib/isnanl.c: Remove all code. Just include isnan.c.
58278         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58279
58280 2007-02-25  Jim Meyering  <jim@meyering.net>
58281
58282         Avoid conflicting types for 'unsetenv' on FreeBSD.
58283         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58284         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58285         in stdlib.h.
58286
58287 2007-02-24  Bruno Haible  <bruno@clisp.org>
58288
58289         * modules/isnanl-nolibm-tests: New file.
58290         * tests/test-isnanl.c: New file.
58291
58292         * modules/isnanl-nolibm: New file.
58293         * lib/isnanl.h: New file.
58294         * lib/isnanl.c: New file.
58295         * m4/isnanl.m4: New file.
58296
58297 2007-02-24  Bruno Haible  <bruno@clisp.org>
58298
58299         * modules/isnan-nolibm-tests: New file.
58300         * tests/test-isnan.c: New file.
58301
58302         * modules/isnan-nolibm: New file.
58303         * lib/isnan.h: New file.
58304         * lib/isnan.c: New file.
58305         * m4/isnan.m4: New file.
58306
58307 2007-02-24  Bruno Haible  <bruno@clisp.org>
58308
58309         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58310         assume that an exponent fits in 20 bits.
58311
58312 2007-02-24  Jim Meyering  <jim@meyering.net>
58313
58314         * m4/regex.m4: Update the description of the configure-time option,
58315         --without-included-regex, to state accurately what the defaults are,
58316         and perhaps to give people an idea why using this option is risky.
58317
58318 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58321         loops on small arguments.  This attempts to avoid the problem
58322         Bruno Haible reported for AIX 4.3.2 in
58323         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58324
58325 2007-02-23  Bruno Haible  <bruno@clisp.org>
58326
58327         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58328         Needed for help2man.
58329
58330 2007-02-23  Karl Berry  <karl@gnu.org>
58331
58332         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58333         exists, foo.h should be cvs-ignored, not committed.
58334
58335 2007-02-23  Eric Blake  <ebb9@byu.net>
58336
58337         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58338         * lib/stat-time.h (includes): Likewise.
58339         * lib/utimecmp.c (includes): Likewise.
58340         * lib/utimens.h (includes): Likewise.
58341         * lib/getdate.y (includes): Also include "timespec.h" for use
58342         internal to the module.
58343         * modules/utimens (Depends-on): Revert yesterday's patch.
58344         * modules/nanosleep (Depends-on): Add missing dependency.
58345
58346 2007-02-22  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/glob.c: Don't include getlogin_r.h.
58349
58350 2007-02-22  Jim Meyering  <jim@meyering.net>
58351
58352         * modules/utimens (Depends-on): Add timespec, required for
58353         utimens.h's inclusion of timespec.h.
58354
58355 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58356
58357         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58358         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58359         Schwab in
58360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58361         I'll try to think of a better way to fix the Solaris problem.
58362
58363         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58364         like glibc; on Solaris 10, it fails with errno == EINVAL.
58365         POSIX says the behavior is unspecified if the first argument is NULL,
58366         so play it safe and never pass NULL to the system getcwd.
58367
58368 2007-02-21  Jim Meyering  <jim@meyering.net>
58369
58370         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58371         of gettimeofday.  It would conflict with the one now always
58372         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58373         an IRIX 6.5 build failure.
58374
58375 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58376
58377         Minor fixups to port to Solaris 10 with Sun C 5.8.
58378         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58379         * modules/getcwd (Depends-on): Add dirfd.
58380         * lib/putenv.c (putenv): #undef it.
58381         (rpl_putenv): New decl.
58382         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58383
58384 2007-02-20  Bruno Haible  <bruno@clisp.org>
58385
58386         * modules/stdio-tests: New file.
58387         * tests/test-stdio.c: New file.
58388
58389         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58390         (Depends-on): Add stdio.
58391         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58392         (Include): Use <stdio.h> instead of vsnprintf.h.
58393         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58394         HAVE_DECL_VSNPRINTF.
58395         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58396
58397         * modules/snprintf (Files): Remove lib/snprintf.h.
58398         (Depends-on): Add stdio.
58399         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58400         (Include): Use <stdio.h> instead of snprintf.h.
58401         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58402         HAVE_DECL_SNPRINTF.
58403         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58404         * lib/getaddrinfo.c: Likewise.
58405
58406         * modules/stdio: New file.
58407         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58408         * lib/snprintf.h: Remove file.
58409         * lib/vsnprintf.h: Remove file.
58410         * lib/.cppi-disable: Remove snprintf.h.
58411         * m4/stdio_h.m4: New file.
58412         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58413
58414 2007-02-20  Jim Meyering  <jim@meyering.net>
58415
58416         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58417         used by e.g., mingw.  From Bruno Haible.
58418
58419 2007-02-19  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58422         warnings.
58423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58424
58425 2007-02-19  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58428         from mingw users.
58429
58430 2007-02-19  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58433         warnings.
58434         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58435
58436 2007-02-19  Jim Meyering  <jim@meyering.net>
58437
58438         Don't use FD after a successful "fdopendir (fd)".
58439         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58440         Reset it by calling dirfd on the just-obtained DIR*.
58441
58442         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58443         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58444
58445 2007-02-18  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/readlink.c: Include <unistd.h>.
58448         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58449         HAVE_READLINK.
58450         * modules/readlink (Depends-on): Add unistd.
58451         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58452         (Include): Add <unistd.h>.
58453
58454         * lib/getlogin_r.h: Remove file.
58455         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58456         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58457         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58458         HAVE_DECL_GETLOGIN_R.
58459         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58461         (Include): Use <unistd.h> instead of getlogin_r.h.
58462
58463         * lib/getcwd.h: Remove file.
58464         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58465         * lib/xgetcwd.c: Likewise.
58466         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58467         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58468         * modules/getcwd (Files): Remove lib/getcwd.h.
58469         (Depends-on): Add unistd.
58470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58471         (Include): Use <unistd.h> instad of getcwd.h.
58472
58473         * lib/ftruncate.c: Include <unistd.h> first.
58474         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58475         Set HAVE_FTRUNCATE.
58476         * modules/ftruncate (Depends-on): Add unistd.
58477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58478
58479         * lib/fchdir.c: Include <unistd.h> first.
58480         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58482         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58483         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58484         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58485
58486         * lib/dup2.c: Include <unistd.h> first.
58487         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58488         HAVE_DUP2.
58489         * modules/dup2 (Depends-on): Add unistd.
58490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58491
58492         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58493         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58494         REPLACE_CHOWN. Don't define chown as a macro here.
58495         * modules/chown (Depends-on): Add unistd.
58496         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58497
58498         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58499         Add definition for GL_LINK_WARNING.
58500         (chown, dup2): New declarations.
58501         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58502         link warning.
58503         (ftruncate): New declaration.
58504         (getcwd): New declaration, taken from old getcwd.h.
58505         (getlogin_r): New declaration, taken from old getlogin_r.h.
58506         (readlink): New declaration.
58507         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58508         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58509         (gl_PREREQ_UNISTD): Remove macro.
58510         (gl_UNISTD_MODULE_INDICATOR): New macro.
58511         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58512         many new variables. Don't set UNISTD_H.
58513         * modules/unistd (Description): Change.
58514         (Depends-on): Add link-warning.
58515         (configure.ac): Update.
58516         (Makefile.am): Create unistd.h always. Substitute many new variables
58517         into it.
58518
58519 2007-02-18  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58522         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58523         HAVE_GETSUBOPT.
58524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58525         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58526         * lib/getsubopt.h: Remove file.
58527         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58528         (Depends-on): Add stdlib.
58529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58530         (Includes): Use <stdlib.h> instead of getsubopt.h.
58531         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58532         Set HAVE_GETSUBOPT.
58533         * lib/getsubopt.c: Don't include getsubopt.h.
58534
58535 2007-02-18  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/fchdir (Depends-on): Add dup2.
58538
58539 2007-02-18  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/stdlib_.h: Handle glibc's special invocation convention
58542         specially.
58543
58544 2007-02-18  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/stdlib-tests: New file.
58547         * tests/test-stdlib.c: New file.
58548
58549         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58550         (Depends-on): Add stdlib.
58551         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58552         (Includes): Use <stdlib.h> instead of mkstemp.h.
58553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58554         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58555         * lib/mkstemp.c: Don't include mkstemp.h.
58556         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58557         * lib/stdlib--.h: Don't include mkstemp.h.
58558
58559         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58560         (Depends-on): Add stdlib.
58561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58562         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58563         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58564         HAVE_MKDTEMP.
58565         * lib/mkdtemp.c: Don't include mkdtemp.h.
58566         * lib/clean-temp.c: Don't include mkdtemp.h.
58567
58568         * modules/exit (Files): Remove lib/exit.h.
58569         (Depends-on): Add stdlib.
58570         (Makefile.am): Remove lib_SOURCES.
58571         (Include): Use <stdlib.h> instead of exit.h.
58572         * lib/argmatch.c: Don't include exit.h.
58573         * lib/execute.c: Likewise.
58574         * lib/pagealign_alloc.c: Likewise.
58575         * lib/pipe.c: Likewise.
58576         * lib/wait-process.c: Likewise.
58577         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58578         * lib/exitfail.c: Likewise.
58579         * lib/savewd.c: Likewise.
58580         * lib/xsetenv.c: Likewise.
58581
58582         * modules/stdlib: New file.
58583         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58584         and extra comments about mkstemp().
58585         * lib/exit.h: Remove file.
58586         * lib/mkdtemp.h: Remove file.
58587         * lib/mkstemp.h: Remove file.
58588         * m4/stdlib_h.m4: New file.
58589         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58590
58591 2007-02-18  Bruno Haible  <bruno@clisp.org>
58592
58593         * modules/math-tests: New file.
58594         * tests/test-math.c: New file.
58595
58596         * modules/math: New file.
58597         * modules/mathl (Files): Remove lib/mathl.h.
58598         (Depends-on): Add math.
58599         (Makefile.am): Don't mention mathl.h.
58600         (Include): Use <math.h> instead of mathl.h.
58601         * lib/math_.h: New file.
58602         * lib/mathl.h: Remove file.
58603         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58604         mathl.h.
58605         * lib/asinl.c: Likewise.
58606         * lib/atanl.c: Likewise.
58607         * lib/ceill.c: Likewise.
58608         * lib/cosl.c: Likewise.
58609         * lib/expl.c: Likewise.
58610         * lib/floorl.c: Likewise.
58611         * lib/frexpl.c: Likewise.
58612         * lib/ldexpl.c: Likewise.
58613         * lib/logl.c: Likewise.
58614         * lib/sincosl.c: Likewise.
58615         * lib/sinl.c: Likewise.
58616         * lib/sqrtl.c: Likewise.
58617         * lib/tanl.c: Likewise.
58618         * lib/trigl.c: Likewise.
58619         * m4/math_h.m4: New file.
58620         * MODULES.html.sh (Mathematics): Add math.
58621
58622 2007-02-17  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/wctype-tests: New file.
58625         * tests/test-wctype.c: New file.
58626
58627         * modules/wchar-tests: New file.
58628         * tests/test-wchar.c: New file.
58629
58630         * modules/unistd-tests: New file.
58631         * tests/test-unistd.c: New file.
58632
58633         * modules/time-tests: New file.
58634         * tests/test-time.c: New file.
58635
58636         * modules/sysexits-tests: New file.
58637         * tests/test-sysexits.c: New file.
58638
58639         * modules/sys_time-tests: New file.
58640         * tests/test-sys_time.c: New file.
58641
58642         * modules/sys_stat-tests: New file.
58643         * tests/test-sys_stat.c: New file.
58644
58645         * modules/sys_socket-tests: New file.
58646         * tests/test-sys_socket.c: New file.
58647
58648         * modules/sys_select-tests: New file.
58649         * tests/test-sys_select.c: New file.
58650
58651         * modules/string-tests: New file.
58652         * tests/test-string.c: New file.
58653
58654         * modules/stdbool-tests: New file.
58655         * tests/test-stdbool.c: New file.
58656
58657         * modules/netinet_in-tests: New file.
58658         * tests/test-netinet_in.c: New file.
58659
58660         * modules/inttypes-tests: New file.
58661         * tests/test-inttypes.c: New file.
58662
58663         * modules/fcntl-tests: New file.
58664         * tests/test-fcntl.c: New file.
58665
58666         * modules/byteswap-tests: New file.
58667         * tests/test-byteswap.c: New file.
58668
58669         * modules/arpa_inet-tests: New file.
58670         * tests/test-arpa_inet.c: New file.
58671
58672 2007-02-17  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58675         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58676         if the corresponding module is not enabled. Emit link warnings if
58677         the function is used nevertheless.
58678         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58679         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58680         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58681         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58682         * modules/inttypes (Depends-on): Add link-warning.
58683         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58684         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58685         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58686         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58687         * modules/imaxdiv (configure.ac): Likewise.
58688         * modules/strtoimax (configure.ac): Likewise.
58689         * modules/strtoumax (configure.ac): Likewise.
58690
58691 2007-02-17  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58694         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58696         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58697
58698 2007-02-17  Bruno Haible  <bruno@clisp.org>
58699
58700         * modules/link-warning: New file.
58701         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58702         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58703         * modules/string (Depends-on): Add link-warning.
58704         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58705         string.h.
58706         * MODULES.html.sh (Support for building libraries and executables): Add
58707         link-warning.
58708
58709 2007-02-17  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58712         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58713         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58714         long lines.
58715
58716 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58717             Bruno Haible  <bruno@clisp.org>
58718
58719         * modules/tmpfile: New file.
58720         * lib/tmpfile.c: New file.
58721         * m4/tmpfile.m4: New file.
58722         * MODULES.html.sh (func_all_modules): New section "Input/output".
58723
58724 2007-02-15  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58727         (supports_delete_on_close): New function.
58728         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58729
58730 2007-02-14  Bruno Haible  <bruno@clisp.org>
58731
58732         * modules/mbspcasecmp-tests: New file.
58733         * tests/test-mbspcasecmp.sh: New file.
58734         * tests/test-mbspcasecmp.c: New file.
58735
58736         New module mbspcasecmp.
58737         * modules/mbspcasecmp: New file.
58738         * lib/mbspcasecmp.c: New file.
58739         * lib/string_.h (strncasecmp): Change warning message.
58740         (mbspcasecmp): New declaration.
58741         * m4/mbspcasecmp.m4: New file.
58742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58743         GNULIB_MBSPCASECMP.
58744         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58745         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58746
58747 2007-02-14  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/mbsncasecmp-tests: New file.
58750         * tests/test-mbsncasecmp.sh: New file.
58751         * tests/test-mbsncasecmp.c: New file.
58752
58753         New module mbsncasecmp.
58754         * modules/mbsncasecmp: New file.
58755         * lib/mbsncasecmp.c: New file.
58756         * lib/string_.h (mbsncasecmp): New declaration.
58757         * m4/mbsncasecmp.m4: New file.
58758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58759         GNULIB_MBSNCASECMP.
58760         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58761         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58762
58763 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58766         Verify that it doesn't overlap with our flags.
58767         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58768         do not have the desired effect in multibyte locales; instead, use
58769         mbscasecmp.
58770         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58771         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58772         we don't require GNU fnmatch ourselves (if our users require it, they
58773         should do so explicitly).
58774
58775         Fix regex code so it doesn't rely on strcasecmp.
58776         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58777         Otherwise, include gnulib's langinfo.h.
58778         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58779         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58780         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58781         * modules/regex (FILES): Remove m4/codeset.m4.
58782         (Depends-on): Add localcharset.  Remove strcase.
58783
58784 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58785
58786         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58787         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58788
58789 2007-02-13  Bruno Haible  <bruno@clisp.org>
58790
58791         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58793
58794 2007-02-12  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58797         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58798         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58799         time warning rather than a link error.
58800
58801 2007-02-12  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58806
58807 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58808
58809         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58810         args, not 2.
58811
58812 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         New module 'time', so that apps can include <time.h> as per
58815         POSIX and GNU instead of separate include files like time_r.h
58816         and timegm.h.  This implementation tries out a simpler approach
58817         for replacing decls in standard include files (as compared to
58818         the string module), somewhat as an experiment.
58819
58820         * config/srclist.txt: Comment out mktime.c for now.
58821         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58822         since it doesn't apply any more.  Use generic wording instead.
58823         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58824         'time'.
58825         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58826         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58827         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58828         Don't include <sys/types.h>; no longer needed since we assume C89.
58829         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58830         * lib/strftime.c: Likewise.
58831         * lib/time_r.c: Likewise.
58832         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58833         * lib/nanosleep.c: Include <time.h> first, to check interface.
58834         * lib/strptime.c: Likewise.
58835         * lib/time_r.c: Likewise.
58836         * lib/timegm.c: Likewise.
58837         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58838         needed.
58839         * lib/timegm.c: Don't include timegm.h; no longer needed.
58840         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58841         time.h now handles any problems in that area.
58842         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58843         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58844         that time.h defines struct timespec.
58845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58846         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58847         handles that.
58848         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58849         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58850         needed.  Set REPLACE_LOCALTIME.
58851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58852         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58853         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58854         nanosleep; time_h.m4 now does that.  Don't require
58855         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58856         module handles this now.
58857         * modules/getdate (Depends-on): Remove timespec.  Add time.
58858         * modules/nanosleep (Depends-on): Likewise.
58859         * modules/stat-time (Depends-on): Likewise.
58860         * modules/nanosleep (Include): Include time.h, not timespec.h.
58861         * modules/strptime (Files): Remove lib/strptime.h.
58862         (Depends-on): Add extensions, time.
58863         (Include): Include time.h, not strptime.h.
58864         * modules/time_r (Files): Remove lib/time_r.h.
58865         (Depends-on): Add time.
58866         (Include): Include time.h, not time_r.h.
58867         * modules/timegm: Likewise.
58868         * modules/timespec (Description): Now does timespec-related decls
58869         of our own, instead of struct timespec itself.
58870         (Depends-on): Add time; remove extensions.
58871         (Maintainer): Add self.
58872         * modules/utimecmp (Depends-on): Add time; remove timespec.
58873         * modules/utimens (Depends-on): Likewise.
58874         * modules/xnanosleep (Depends-on): Likewise.
58875
58876 2007-02-11  Bruno Haible  <bruno@clisp.org>
58877
58878         * lib/c-strstr.c: Include allocsa.h.
58879         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58880         * lib/c-strcasestr.c: Include allocsa.h.
58881         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58882         * lib/strcasestr.c: Include allocsa.h.
58883         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58884         * lib/mbsstr.c: Include allocsa.h.
58885         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58886         allocsa/freesa instead of malloc/free.
58887         * lib/mbscasestr.c: Include allocsa.h.
58888         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58889         allocsa/freesa instead of malloc/free.
58890         * modules/c-strstr (Depends-on): Add allocsa.
58891         * modules/c-strcasestr (Depends-on): Likewise.
58892         * modules/strcasestr (Depends-on): Likewise.
58893         * modules/mbsstr (Depends-on): Likewise.
58894         * modules/mbscasestr (Depends-on): Likewise.
58895
58896 2007-02-11  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58899
58900         * modules/mbsspn-tests: New file.
58901         * tests/test-mbsspn.sh: New file.
58902         * tests/test-mbsspn.c: New file.
58903
58904 2007-02-11  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58907
58908         * modules/mbspbrk-tests: New file.
58909         * tests/test-mbspbrk.sh: New file.
58910         * tests/test-mbspbrk.c: New file.
58911
58912 2007-02-11  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58915         unneeded cast.
58916
58917         * modules/mbscspn-tests: New file.
58918         * tests/test-mbscspn.sh: New file.
58919         * tests/test-mbscspn.c: New file.
58920
58921 2007-02-11  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/mbscasecmp-tests: New file.
58924         * tests/test-mbscasecmp.sh: New file.
58925         * tests/test-mbscasecmp.c: New file.
58926
58927 2007-02-11  Bruno Haible  <bruno@clisp.org>
58928
58929         Ensure O(n) worst-case complexity of mbscasestr.
58930         * lib/mbscasestr.c: Include stdbool.h.
58931         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58932         functions.
58933         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58934         the bookkeeping indicates that it's worth it.
58935         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58936
58937         * modules/mbscasestr-tests: New file.
58938         * tests/test-mbscasestr1.c: New file.
58939         * tests/test-mbscasestr2.sh: New file.
58940         * tests/test-mbscasestr2.c: New file.
58941         * tests/test-mbscasestr3.sh: New file.
58942         * tests/test-mbscasestr3.c: New file.
58943         * tests/test-mbscasestr4.sh: New file.
58944         * tests/test-mbscasestr4.c: New file.
58945         * m4/locale-tr.m4: New file.
58946
58947 2007-02-11  Bruno Haible  <bruno@clisp.org>
58948
58949         Ensure O(n) worst-case complexity of mbsstr.
58950         * lib/mbsstr.c: Include stdbool.h.
58951         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58952         functions.
58953         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58954         bookkeeping indicates that it's worth it.
58955         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58956
58957         * modules/mbsstr-tests: New file.
58958         * tests/test-mbsstr1.c: New file.
58959         * tests/test-mbsstr2.sh: New file.
58960         * tests/test-mbsstr2.c: New file.
58961         * tests/test-mbsstr3.sh: New file.
58962         * tests/test-mbsstr3.c: New file.
58963         * m4/locale-fr.m4: New file.
58964
58965 2007-02-11  Bruno Haible  <bruno@clisp.org>
58966
58967         * lib/mbsrchr.c (mbsrchr): Fix bug.
58968
58969         * modules/mbsrchr-tests: New file.
58970         * tests/test-mbsrchr.sh: New file.
58971         * tests/test-mbsrchr.c: New file.
58972
58973 2007-02-11  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/mbschr.c (mbschr): Fix bug.
58976
58977         * modules/mbschr-tests: New file.
58978         * tests/test-mbschr.sh: New file.
58979         * tests/test-mbschr.c: New file.
58980         * m4/locale-zh.m4: New file.
58981
58982 2007-02-11  Bruno Haible  <bruno@clisp.org>
58983
58984         Support for copying multibyte string iterators.
58985         * lib/mbiter.h: Include <string.h>.
58986         (mbiter_multi_copy): New function.
58987         (mbi_copy): New macro.
58988         * lib/mbuiter.h: Include <string.h>.
58989         (mbuiter_multi_copy): New function.
58990         (mbui_copy): New macro.
58991
58992 2007-02-11  Bruno Haible  <bruno@clisp.org>
58993
58994         New module mbslen.
58995         * modules/mbslen: New file.
58996         * lib/mbslen.c: New file.
58997         * lib/string_.h (mbslen): New declaration.
58998         * m4/mbslen.m4: New file.
58999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59000         GNULIB_MBSLEN.
59001         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59002         * MODULES.html.sh (Internationalization functions): Add mbslen.
59003
59004 2007-02-11  Bruno Haible  <bruno@clisp.org>
59005
59006         Ensure O(n) worst-case complexity of strcasestr substitute.
59007         * lib/strcasestr.c: Include stdbool.h.
59008         (knuth_morris_pratt): New function.
59009         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59010         bookkeeping indicates that it's worth it.
59011         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59012
59013         * modules/strcasestr-tests: New file.
59014         * tests/test-strcasestr.c: New file.
59015
59016 2007-02-11  Bruno Haible  <bruno@clisp.org>
59017
59018         Ensure O(n) worst-case complexity of c_strcasestr.
59019         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59020         (knuth_morris_pratt): New function.
59021         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59022         the bookkeeping indicates that it's worth it.
59023         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59024
59025         * modules/c-strcasestr-tests: New file.
59026         * tests/test-c-strcasestr.c: New file.
59027
59028 2007-02-11  Bruno Haible  <bruno@clisp.org>
59029
59030         Ensure O(n) worst-case complexity of c_strstr.
59031         * lib/c-strstr.c: Include stdbool.h, string.h.
59032         (knuth_morris_pratt): New function.
59033         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59034         bookkeeping indicates that it's worth it.
59035         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59036
59037         * lib/c-strstr.c: Complete rewrite for maintainability.
59038
59039         * modules/c-strstr-tests: New file.
59040         * tests/test-c-strstr.c: New file.
59041
59042 2007-02-11  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59045         5.2.1 and earlier, whereby \055 was treated just like the range
59046         delimiter '-'.
59047         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59048
59049 2007-02-08  Bruno Haible  <bruno@clisp.org>
59050
59051         * modules/regex (Depends-on): Add stdbool.
59052         Reported by Dalibor Topic <robilad@kaffe.org>.
59053
59054 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59055
59056         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59057         Prefer returning from main to exiting from it.
59058         Remove unnecessary parens after sizeof.
59059
59060 2007-02-05  Bruno Haible  <bruno@clisp.org>
59061
59062         New module mbssep.
59063         * modules/mbssep: New file.
59064         * lib/mbssep.c: New file.
59065         * lib/string_.h (strsep): Add a conditional link warning.
59066         (mbssep): New declaration.
59067         * m4/mbssep.m4: New file.
59068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59069         GNULIB_MBSSEP.
59070         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59071         * MODULES.html.sh (Internationalization functions): Add mbssep.
59072
59073 2007-02-05  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59076         Optimize search in case of 1 delimiter.
59077
59078 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59079
59080         * lib/acl.h: Include sys/types.h before sys/acl.h.
59081
59082 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59083
59084         Merge upstream fix for glibc bugzilla #3957:
59085
59086         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59087
59088         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59089         bit for RE_HAT_LISTS_NOT_NEWLINE.
59090         (build_charclass_op): Remove bogus comment.
59091
59092 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59093
59094         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59095
59096 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59097
59098         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59099         * lib/memmem.c [!defined _LIBC]: Include config.h.
59100
59101 2007-02-04  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59104         warning message.
59105
59106 2007-02-04  Bruno Haible  <bruno@clisp.org>
59107
59108         New module mbstok_r.
59109         * modules/mbstok_r: New file.
59110         * lib/mbstok_r.c: New file.
59111         * lib/string_.h (strtok_r): Change argument names to match the
59112         comments. Add a conditional link warning.
59113         (mbstok_r): New declaration.
59114         * m4/mbstok_r.m4: New file.
59115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59116         GNULIB_MBSTOK_R.
59117         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59118         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59119
59120 2007-02-04  Bruno Haible  <bruno@clisp.org>
59121
59122         New module mbsspn.
59123         * modules/mbsspn: New file.
59124         * lib/mbsspn.c: New file.
59125         * lib/string_.h (strspn): Add a conditional link warning.
59126         (mbsspn): New declaration.
59127         * m4/mbsspn.m4: New file.
59128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59129         GNULIB_MBSSPN.
59130         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59131         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59132
59133 2007-02-04  Bruno Haible  <bruno@clisp.org>
59134
59135         New module mbspbrk.
59136         * modules/mbspbrk: New file.
59137         * lib/mbspbrk.c: New file.
59138         * lib/string_.h (strpbrk): Add a conditional link warning.
59139         (mbspbrk): New declaration.
59140         * m4/mbspbrk.m4: New file.
59141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59142         GNULIB_MBSPBRK.
59143         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59144         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59145
59146 2007-02-04  Bruno Haible  <bruno@clisp.org>
59147
59148         New module mbscspn.
59149         * modules/mbscspn: New file.
59150         * lib/mbscspn.c: New file.
59151         * lib/string_.h (strcspn): Add a conditional link warning.
59152         (mbscspn): New declaration.
59153         * m4/mbscspn.m4: New file.
59154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59155         GNULIB_MBSCSPN.
59156         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59157         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59158
59159 2007-02-04  Bruno Haible  <bruno@clisp.org>
59160
59161         New module mbscasestr, reduced goal of strcasestr.
59162         * modules/mbscasestr: New file.
59163         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59164         (mbscasestr): Renamed from strcasestr.
59165         * lib/strcasestr.c: Don't include mbuiter.h.
59166         (strcasestr): Remove support for multibyte locales.
59167         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59168         Change the conditional link warning.
59169         (mbscasestr): New declaration.
59170         * m4/mbscasestr.m4: New file.
59171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59172         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59173         REPLACE_STRCASESTR.
59174         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59176         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59177         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59178         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59179         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59180         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59181         (Depends-on): Remove mbuiter.
59182         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59183
59184 2007-02-04  Bruno Haible  <bruno@clisp.org>
59185
59186         Simplify handling of strncasecmp.
59187         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59188         the conditional link warning.
59189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59190         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59191         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59192         * modules/strcase (configure.ac): Don't invoke
59193         gl_STRING_MODULE_INDICATOR.
59194         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59195
59196 2007-02-04  Bruno Haible  <bruno@clisp.org>
59197
59198         New module mbscasecmp, reduced goal of strcasecmp.
59199         * modules/mbscasecmp: New file.
59200         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59201         (mbscasecmp): Renamed from strcasecmp.
59202         * lib/strcasecmp.c: Don't include mbuiter.h.
59203         (strcasecmp): Remove support for multibyte locales.
59204         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59205         Change the conditional link warning.
59206         (mbscasecmp): New declaration.
59207         * m4/mbscasecmp.m4: New file.
59208         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59209         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59210         REPLACE_STRCASECMP.
59211         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59213         GNULIB_MBSCASECMP.
59214         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59215         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59216         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59217         (Depends-on): Remove mbuiter.
59218         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59219
59220 2007-02-04  Bruno Haible  <bruno@clisp.org>
59221
59222         New module mbsstr. Remove module strstr.
59223         * modules/mbsstr: New file.
59224         * modules/strstr: Remove file.
59225         * lib/mbsstr.c: Renamed from lib/strstr.c.
59226         (mbsstr): Renamed from strstr.
59227         * lib/string_.h (strstr): Remove declaration. Change the conditional
59228         link warning.
59229         (mbsstr): New declaration.
59230         * m4/mbsstr.m4: New file.
59231         * m4/strstr.m4: Remove file.
59232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59233         REPLACE_STRSTR.
59234         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59235         Don't initialize GNULIB_STRSTR.
59236         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59237         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59238         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59239         (Support for systems lacking ANSI C 89): Remove strstr.
59240
59241 2007-02-04  Bruno Haible  <bruno@clisp.org>
59242
59243         New module mbsrchr.
59244         * modules/mbsrchr: New file.
59245         * lib/mbsrchr.c: New file.
59246         * lib/string_.h (strrchr): Add a conditional link warning.
59247         (mbsrchr): New declaration.
59248         * m4/mbsrchr.m4: New file.
59249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59250         GNULIB_MBSRCHR.
59251         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59252         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59253
59254 2007-02-04  Bruno Haible  <bruno@clisp.org>
59255
59256         New module mbschr.
59257         * modules/mbschr: New file.
59258         * lib/mbschr.c: New file.
59259         * lib/string_.h (strchr): Add a conditional link warning.
59260         (mbschr): New declaration.
59261         * m4/mbschr.m4: New file.
59262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59263         GNULIB_MBSCHR.
59264         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59265         * MODULES.html.sh (Internationalization functions): Add mbschr.
59266
59267 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59270
59271         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59272
59273 2007-02-04  Bruno Haible  <bruno@clisp.org>
59274
59275         New module description section 'configure.ac-early'.
59276         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59277         (func_get_autoconf_early_snippet): New function.
59278         (func_import, func_create_testdir): Use it. Remove special cases for
59279         modules 'extensions' and 'lock'.
59280         * modules/extensions (configure.ac-early): Require
59281         gl_USE_SYSTEM_EXTENSIONS.
59282         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59283
59284 2007-02-04  Bruno Haible  <bruno@clisp.org>
59285
59286         Make use of gcj-4.3's -fsource and -ftarget option.
59287         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59288         and if so try the options -fsource and -ftarget.
59289         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59290         source_version, ftarget_option, target_version arguments.
59291         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59292         (is_envjavac_oldgcj_14_14_usable): Renamed from
59293         is_envjavac_gcj_14_14_usable.
59294         (is_envjavac_oldgcj_14_13_usable): Renamed from
59295         is_envjavac_gcj_14_13_usable.
59296         (is_gcj_present): Update.
59297         (is_gcj_43, is_gcj43_usable): New functions.
59298         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59299         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59300         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59301         try the options -fsource and -ftarget.
59302
59303 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59306         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59307         larger value.
59308
59309 2007-02-03  Jim Meyering  <jim@meyering.net>
59310
59311         Give tools a better chance to allocate space for very large buffers.
59312         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59313
59314         Make pwd and readlink work also when run with an unreadable parent dir
59315         on systems with openat support.
59316         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59317         provided getcwd function, even when we have openat support.
59318         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59319
59320 2007-02-02  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59323         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59324         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59325         portability problems if one of these functions is only used on specific
59326         platforms.
59327         Reported by Paul Eggert.
59328
59329 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59332         is causing more trouble than it's curing.
59333         * lib/regex_internal.h (__mempcpy): Remove.
59334         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59335         (and make the code a tad smaller to boot).
59336         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59337
59338 2007-02-02  Jim Meyering  <jim@meyering.net>
59339
59340         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59341         section, not in the Makefile.am: one.
59342
59343 2007-02-02  Eric Blake  <ebb9@byu.net>
59344
59345         * lib/strchrnul.c: Always include config.h first.
59346
59347         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59348         gnulib strstr is not necessary here.
59349
59350 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59351
59352         * m4/socklen.m4: Fix typo.
59353
59354 2007-02-02  Eric Blake  <ebb9@byu.net>
59355
59356         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59357         * modules/netinet_in (Makefile.am): Likewise.
59358
59359 2007-02-01  Bruno Haible  <bruno@clisp.org>
59360
59361         * lib/string_.h (GL_LINK_WARNING): New macro.
59362         (strcasecmp, strstr, strcasestr): If provided by the system,
59363         conditionally define as a macro that leads to a warning instead of to
59364         an error.
59365         (strncasecmp): Conditionally define as a macro that leads to a warning.
59366
59367 2007-02-01  Karl Berry  <karl@gnu.org>
59368
59369         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59370
59371 2007-02-01  Bruno Haible  <bruno@clisp.org>
59372
59373         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59374         renamings.
59375
59376 2007-02-01  Eric Blake  <ebb9@byu.net>
59377
59378         * modules/regex (Depends-on): Revert dependence on mempcpy.
59379         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59380         module's definition of mempcpy.
59381         Reported by Paul Eggert.
59382
59383 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59386         the symbol XYZ before redefining it.  This fixes a problem with
59387         programs that don't use XYZ, when compiled on systems that define
59388         XYZ to something else.
59389
59390 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59393         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59394         writeable to group or other and (2) is intended to have a special
59395         mode bit that is set or cleared.  In such a case, the directory
59396         should be neither group- nor other-writeable until the special
59397         mode bits are right.
59398
59399 2007-01-31  Eric Blake  <ebb9@byu.net>
59400
59401         * modules/mountlist (Depends-on): Add strstr.
59402
59403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59404         bug.
59405         * modules/string (Makefile.am): Remove redundant replacement.
59406         * modules/regex (Depends-on): Add mempcpy.
59407
59408 2007-01-31  Bruno Haible  <bruno@clisp.org>
59409
59410         New module description field 'Link'.
59411         * gnulib-tool (func_usage): Document --extract-link-directive.
59412         (sed_extract_prog): Recognize 'Link' directive.
59413         (func_get_link_directive): New function.
59414         (func_import): Show summary of link directives.
59415         Handle --extract-link-directive option.
59416         * modules/acl (Link): New section.
59417         * modules/clock-time (Link): New section.
59418         * modules/euidaccess (Link): New section.
59419         * modules/gettext (Link): New section.
59420         * modules/iconv (Link): New section.
59421         * modules/lock (Link): New section.
59422         * modules/nanosleep (Link): New section.
59423         * modules/readline (Link): New section.
59424
59425 2007-01-27  Bruno Haible  <bruno@clisp.org>
59426
59427         Enforce the use of gnulib modules for unportable <string.h> functions.
59428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59430         (gl_HEADER_STRING_H_BODY): Require it.
59431         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59432         the symbol XYZ to one that gives a link error.
59433         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59434         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59435         * modules/mempcpy (configure.ac): Likewise.
59436         * modules/memrchr (configure.ac): Likewise.
59437         * modules/stpcpy (configure.ac): Likewise.
59438         * modules/stpncpy (configure.ac): Likewise.
59439         * modules/strcase (configure.ac): Likewise.
59440         * modules/strcasestr (configure.ac): Likewise.
59441         * modules/strchrnul (configure.ac): Likewise.
59442         * modules/strdup (configure.ac): Likewise.
59443         * modules/strndup (configure.ac): Likewise.
59444         * modules/strnlen (configure.ac): Likewise.
59445         * modules/strpbrk (configure.ac): Likewise.
59446         * modules/strsep (configure.ac): Likewise.
59447         * modules/strstr (configure.ac): Likewise.
59448         * modules/strtok_r (configure.ac): Likewise.
59449
59450 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59451
59452         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59453
59454 2007-01-30  Jim Meyering  <jim@meyering.net>
59455
59456         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59457
59458 2007-01-29  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59461         * lib/execute.c: Likewise.
59462         * lib/pipe.c: Likewise.
59463         * lib/printf-args.h: Likewise.
59464         * lib/printf-args.c: Likewise.
59465         * lib/printf-parse.c: Likewise.
59466         * lib/vasnprintf.c: Likewise.
59467
59468 2007-01-29  Eric Blake  <ebb9@byu.net>
59469
59470         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59471         declaration.
59472
59473 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59474
59475         * lib/strptime.h (strptime): Use 'restrict' for args where
59476         POSIX requires this.
59477         * lib/strptime.c (strptime): Likewise.
59478         Change license notice from LGPL to GPL, since gnulib-tool will
59479         change this as needed.
59480         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59481         defined.
59482         Include "strptime.h" first, to check interface.
59483         Do not #undef _LIBC and _NL_CURRENT.
59484         Do not include <stdlib.h>; no longer needed.
59485         Include "time_r.h" and declare ptime_locale_status
59486         only if _LIBC is not defined.
59487         (__P): Remove unused macro.
59488         (match_string): Bring back glibc version, but use it only if _LIBC
59489         is defined.
59490         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59491         Remove unnecessary assertion and abort() call.
59492         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59493         * m4/strptime.m4: Fix serial number comment.
59494         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59495         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59496         (Depends-on): Add time_r.
59497
59498 2007-01-29  Bruno Haible  <bruno@clisp.org>
59499
59500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59501         strptime.
59502         * modules/strptime (Depends-on): Add stdbool.
59503         * lib/strptime.h: Include <time.h> always. Add comments.
59504
59505 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59506
59507         * modules/strptime: New file.
59508         * lib/strptime.h: New file.
59509         * lib/strptime.c: New file.
59510         * m4/strptime.m4: New file.
59511
59512 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * MODULES.html.sh: New module mpsort.
59515         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59516
59517         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59518         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59520         All uses changed.
59521         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59522         All uses changed.
59523         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59524         to _Restrict_.
59525         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59526         the parameter matches the prototype.
59527
59528 2007-01-28  Jim Meyering  <jim@meyering.net>
59529
59530         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59531         sys/time.h here, reverting that part of the previous patch:
59532         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59533
59534 2007-01-28  Bruno Haible  <bruno@clisp.org>
59535
59536         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59537         value of $(SYS_TIME_H).
59538         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59539         remove it conditionally, too. [added by Jim Meyering]
59540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59541         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59542         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59543         GETTIMEOFDAY_REPLACEMENT to 1.
59544
59545 2007-01-28  Bruno Haible  <bruno@clisp.org>
59546
59547         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59548         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59549         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59550         Set UNISTD_H instead of UNISTD_H2.
59551         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59552
59553 2007-01-28  Bruno Haible  <bruno@clisp.org>
59554
59555         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59556         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59557
59558 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59559
59560         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59561         (func_create_testdir): Ensure C locale for `grep' and `tr'
59562         character ranges.
59563         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59564         ACLOCAL_AMFLAGS parsing state machine.
59565
59566 2007-01-27  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/unistr/base: Update.
59569
59570 2007-01-27  Bruno Haible  <bruno@clisp.org>
59571
59572         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59573         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59574         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59575         modules/unistr/u32-mbtouc.
59576         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59577         * lib/unistr.h: Update.
59578         * lib/linebreak.c: Update.
59579         * modules/unistr/u32-mbtouc: Renamed from
59580         modules/unistr/u32-mbtouc-safe.
59581         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59582         * lib/unistr.h: Update.
59583         * lib/unistr/u32-to-u8.c: Update.
59584         * lib/unistr/u32-to-u16.c: Update.
59585
59586 2007-01-27  Bruno Haible  <bruno@clisp.org>
59587
59588         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59589         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59590         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59591         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59592         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59593         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59594         modules/unistr/u16-mbtouc.
59595         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59596         * lib/unistr.h: Update.
59597         * lib/linebreak.c: Update.
59598         * modules/linebreak: Update.
59599         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59600         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59601         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59602         * modules/unistr/u16-mbtouc: Renamed from
59603         modules/unistr/u16-mbtouc-safe.
59604         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59605         * lib/unistr.h: Update.
59606         * lib/unistr/u16-to-u8.c: Update.
59607         * modules/unistr/u16-to-u8: Update.
59608         * lib/unistr/u16-to-u32.c: Update.
59609         * modules/unistr/u16-to-u32: Update.
59610
59611 2007-01-27  Bruno Haible  <bruno@clisp.org>
59612
59613         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59614         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59615         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59616         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59617         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59618         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59619         modules/unistr/u8-mbtouc.
59620         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59621         * lib/unistr.h: Update.
59622         * lib/striconveh.c: Update.
59623         * modules/striconveh: Update.
59624         * lib/linebreak.c: Update.
59625         * modules/linebreak: Update.
59626         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59627         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59628         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59629         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59630         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59631         * lib/unistr.h: Update.
59632         * lib/striconveh.c: Update.
59633         * modules/striconveh: Update.
59634         * lib/unistr/u8-to-u16.c: Update.
59635         * modules/unistr/u8-to-u16: Update.
59636         * lib/unistr/u8-to-u32.c: Update.
59637         * modules/unistr/u8-to-u32: Update.
59638
59639 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59640
59641         Sync from Libtool.
59642         * lib/argz.c: Do not include strings.h nor memory.h, include
59643         string.h unconditionally.  Patch by Simon Josefsson.
59644
59645 2007-01-27  Bruno Haible  <bruno@clisp.org>
59646
59647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59648         from gl_HEADER_STRING_H_BODY.
59649         (gl_HEADER_STRING_H_BODY): Require it.
59650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59651         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59653         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59655         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59657         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59658         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59659         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59660         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59661         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59662         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59663         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59665
59666 2007-01-27  Bruno Haible  <bruno@clisp.org>
59667
59668         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59669         check_PROGRAMS into noinst_PROGRAMS.
59670         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59671         check_PROGRAMS in this case.
59672         (func_import): Set for_test to false.
59673         (func_create_testdir): Set for_test to true.
59674
59675 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59676             Bruno Haible  <bruno@clisp.org>
59677
59678         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59679         (Depends-on): Add string.
59680         (Includes): Use <string.h> instead of strcasestr.h.
59681         * modules/string (Makefile.am): Also substitute the value of
59682         REPLACE_STRCASESTR.
59683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59684         assume strcasestr is declared in <string.h> not <strings.h>. Also
59685         set REPLACE_STRCASESTR.
59686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59687         REPLACE_STRCASESTR.
59688         * lib/strcasestr.h: Remove file.
59689         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59690         * lib/string_.h (strcasestr): New declaration.
59691
59692 2007-01-27  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/string_.h: Use 'extern'.
59695
59696 2007-01-27  Jim Meyering  <jim@meyering.net>
59697
59698         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59699         of set-but-not-used local, "q".
59700
59701         * lib/mempcpy.c: Include <config.h> before <string.h>.
59702         This fixes a compilation error on HP-UX, due to the system's
59703         "restrict"-using mempcpy prototype.
59704
59705 2007-01-26  Bruno Haible  <bruno@clisp.org>
59706
59707         Small optimization.
59708         * lib/javacomp.c: Include c-strstr.h.
59709          (is_envjavac_gcj): Use c_strstr instead of strstr.
59710         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59711
59712 2007-01-26  Bruno Haible  <bruno@clisp.org>
59713
59714         * MODULES.html.sh (Unicode string functions): Add the new modules.
59715
59716         * modules/uniconv/u32-strconv-to-locale: New file.
59717         * lib/uniconv/u32-strconv-to-locale.c: New file.
59718
59719         * modules/uniconv/u16-strconv-to-locale: New file.
59720         * lib/uniconv/u16-strconv-to-locale.c: New file.
59721
59722         * modules/uniconv/u8-strconv-to-locale: New file.
59723         * lib/uniconv/u8-strconv-to-locale.c: New file.
59724
59725         * modules/uniconv/u32-strconv-from-locale: New file.
59726         * lib/uniconv/u32-strconv-from-locale.c: New file.
59727
59728         * modules/uniconv/u16-strconv-from-locale: New file.
59729         * lib/uniconv/u16-strconv-from-locale.c: New file.
59730
59731         * modules/uniconv/u8-strconv-from-locale: New file.
59732         * lib/uniconv/u8-strconv-from-locale.c: New file.
59733
59734         * modules/uniconv/u32-strconv-to-enc: New file.
59735         * lib/uniconv/u32-strconv-to-enc.c: New file.
59736         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59737         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59738
59739         * modules/uniconv/u16-strconv-to-enc: New file.
59740         * lib/uniconv/u16-strconv-to-enc.c: New file.
59741         * lib/uniconv/u-strconv-to-enc.h: New file.
59742         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59743         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59744
59745         * modules/uniconv/u8-strconv-to-enc: New file.
59746         * lib/uniconv/u8-strconv-to-enc.c: New file.
59747         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59748         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59749
59750         * modules/uniconv/u32-strconv-from-enc: New file.
59751         * lib/uniconv/u32-strconv-from-enc.c: New file.
59752         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59753         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59754
59755         * modules/uniconv/u16-strconv-from-enc: New file.
59756         * lib/uniconv/u16-strconv-from-enc.c: New file.
59757         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59758         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59759
59760         * modules/uniconv/u8-strconv-from-enc: New file.
59761         * lib/uniconv/u8-strconv-from-enc.c: New file.
59762         * lib/uniconv/u-strconv-from-enc.h: New file.
59763         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59764         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59765
59766         * modules/uniconv/u32-conv-from-enc: New file.
59767         * lib/uniconv/u32-conv-from-enc.c: New file.
59768         * modules/uniconv/u32-conv-from-enc-tests: New file.
59769         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59770
59771         * modules/uniconv/u16-conv-from-enc: New file.
59772         * lib/uniconv/u16-conv-from-enc.c: New file.
59773         * lib/uniconv/u-conv-from-enc.h: New file.
59774         * modules/uniconv/u16-conv-from-enc-tests: New file.
59775         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59776
59777         * modules/uniconv/u8-conv-from-enc: New file.
59778         * lib/uniconv/u8-conv-from-enc.c: New file.
59779         * modules/uniconv/u8-conv-from-enc-tests: New file.
59780         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59781
59782         * modules/uniconv/base: New file.
59783         * lib/uniconv.h: New file.
59784
59785 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * doc/gnulib-tool.texi (Initial import): Update to match current
59788         behavior with strdup module.
59789         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59790         * lib/memmem.h: Remove; all uses removed.  This is now done
59791         by <string.h>.
59792         * lib/mempcpy.h: Likewise.
59793         * lib/memrchr.h: Likewise.
59794         * lib/stpcpy.h: Likewise.
59795         * lib/stpncpy.h: Likewise.
59796         * lib/strcase.h: Likewise.
59797         * lib/strchrnul.h: Likewise.
59798         * lib/strdup.h: Likewise.
59799         * lib/strndup.h: Likewise.
59800         * lib/strnlen.h: Likewise.
59801         * lib/strpbrk.h: Likewise.
59802         * lib/strsep.h: Likewise.
59803         * lib/strstr.h: Likewise.
59804         * lib/strtok_r.h: Likewise.
59805         * lib/string_.h: New file.
59806         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59807         Rely on <string.h> instead.
59808         * lib/canon-host.c: Likewise.
59809         * lib/chdir-long.c: Likewise.
59810         * lib/concatpath.c: Likewise.
59811         * lib/exclude.c: Likewise.
59812         * lib/fchdir.c: Likewise.
59813         * lib/getaddrinfo.c: Likewise.
59814         * lib/getcwd.c: Likewise.
59815         * lib/getsubopt.c: Likewise.
59816         * lib/glob.c: Likewise.
59817         * lib/hard-locale.c: Likewise.
59818         * lib/iconvme.c: Likewise.
59819         * lib/javacomp.c: Likewise.
59820         * lib/mempcpy.c: Likewise.
59821         * lib/memrchr.c: Likewise.
59822         * lib/regex_internal.h: Likewise.
59823         * lib/stpncpy.c: Likewise.
59824         * lib/strcasecmp.c: Likewise.
59825         * lib/strchrnul.c: Likewise.
59826         * lib/strdup.c: Likewise.
59827         * lib/striconv.c: Likewise.
59828         * lib/striconveh.c: Likewise.
59829         * lib/striconveha.c: Likewise.
59830         * lib/strncasecmp.c: Likewise.
59831         * lib/strndup.c: Likewise.
59832         * lib/strnlen.c: Likewise.
59833         * lib/strsep.c: Likewise.
59834         * lib/strstr.c: Likewise.
59835         * lib/strtok_r.c: Likewise.
59836         * lib/userspec.c: Likewise.
59837         * lib/w32spawn.h: Likewise.
59838         * lib/xstrndup.c: Likewise.
59839         * lib/mountlist.c (strstr): Remove decl.
59840         * m4/string_h.m4: New file.
59841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59842         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59843         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59844         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59845         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59846         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59847         Set REPLACE_STRCASECMP if necessary.
59848         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59849         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59850         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59851         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59852         HAVE_DECL_STRDUP if necessary.
59853         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59854         since gl_FUNC_STRNDUP does that now.
59855         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59856         Check for decl here...
59857         (gl_PREREQ_STRNLEN): ... not here.
59858         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59859         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59860         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59862         necessary.
59863         * modules/string: New file.
59864         * modules/memmem (Files): Remove special-purpose include file.
59865         (Depends-on): Add string.
59866         (Include): Include <string.h>, not the removed file.
59867         * modules/mempcpy: Likewise.
59868         * modules/memrchr: Likewise.
59869         * modules/stpcpy: Likewise.
59870         * modules/stpncpy: Likewise.
59871         * modules/strcase: Likewise.
59872         * modules/strchrnul: Likewise.
59873         * modules/strdup: Likewise.
59874         * modules/strndup: Likewise.
59875         * modules/strnlen: Likewise.
59876         * modules/strpbrk: Likewise.
59877         * modules/strsep: Likewise.
59878         * modules/strstr: Likewise.
59879         * modules/strtok_r: Likewise.
59880         * tests/test-dirname.c: Don't include "strdup.h", since
59881         <string.h> now suffices.
59882         * tests/test-memmem.c: Don't include "memmem.h", since
59883         <string.h> now suffices.
59884
59885 2007-01-25  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59888         *resultp is 0.
59889
59890         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59891         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59892         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59893         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59894
59895         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59896         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59897         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59898         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59899         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59900         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59901
59902 2007-01-24  Bruno Haible  <bruno@clisp.org>
59903
59904         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59906         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59907         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59908         gl_FUNC_FTS_CORE.
59909         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59910         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59911         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59912         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59913         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59914         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59915         gl_FUNC_FCHOWNAT.
59916         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59917         gl_FUNC_STRFTIME.
59918         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59919         Reported by Ralf Wildenhues.
59920
59921 2007-01-24  Bruno Haible  <bruno@clisp.org>
59922
59923         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59924         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59925         gl_GETADDRINFO.
59926         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59927         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59928         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59929
59930 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59933         Don't use 'exit'; just return from 'main'.
59934         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59935
59936         * lib/fnmatch_.h: Readjust white space and comments to match
59937         glibc, to avoid spurious diffs.
59938
59939 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59940
59941         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59942         2004-12-01 change by Jakub Jelinek, since this code won't compile
59943         if !LIBC.  Problem reported by Bob Proulx.
59944
59945 2007-01-23  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/striconveh.c: Include c-strcaseeq.h.
59948         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59949         * modules/striconveh (Depends-on): Add c-strcaseeq.
59950
59951 2007-01-23  Bruno Haible  <bruno@clisp.org>
59952
59953         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59954
59955         * modules/c-strcaseeq: New file.
59956         * lib/c-strcaseeq.h: New file.
59957
59958         * modules/streq: New file.
59959         * lib/streq.h: New file.
59960
59961 2007-01-23  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/striconveha-tests: New file.
59964         * tests/test-striconveha.c: New file.
59965
59966         * lib/striconveha.h: Include <stdbool.h>.
59967         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59968         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59969         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59970         (mem_iconveha): New function.
59971         (str_iconveha_notranslit): Renamed from str_iconveha.
59972         (str_iconveha): New function.
59973         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59974         c-strcase.
59975
59976 2007-01-23  Bruno Haible  <bruno@clisp.org>
59977
59978         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59979         encodings without forgiving before trying any encoding with handler.
59980         (str_iconveha): Try all encodings without forgiving before trying any
59981         encoding with handler.
59982
59983 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         Import the following changes from libc.
59986
59987         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59988
59989         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59990
59991         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59992
59993         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59994         normal_bracket label.
59995
59996         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59997
59998         [BZ #361]
59999         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60000         to normal_bracket after fetching the next character.
60001
60002 2007-01-22  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60005         argument.
60006         * lib/striconveh.c (iconv_carefully_1): New function.
60007         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60008         argument.
60009         (str_cd_iconveh): Update.
60010         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60011         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60012         * tests/test-striconveh.c (MAGIC): New macro.
60013         (new_offsets): New function.
60014         (main): Test call with and without offsets.
60015
60016 2007-01-22  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60019         * modules/sys_select (Makefile.am): Likewise.
60020         * modules/sys_socket (Makefile.am): Likewise.
60021         * modules/sys_time (Makefile.am): Likewise.
60022
60023 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * modules/gettimeofday (License): Change from GPL to LGPL, since
60026         gettimeofday is a library function.
60027
60028 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60029
60030         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60031
60032 2007-01-21  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60035
60036 2007-01-21  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/striconveha: New file.
60039         * lib/striconveha.h: New file.
60040         * lib/striconveha.c: New file.
60041         * MODULES.html.sh (Internationalization functions): Add striconveha.
60042         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60043         string.
60044         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60045
60046 2007-01-21  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60049         * lib/striconveh.c (str_iconveh): Likewise.
60050
60051 2007-01-21  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/striconveh.h (mem_iconveh): New declaration.
60054         * lib/striconveh.c (mem_iconveh): New function.
60055         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60056
60057 2007-01-21  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60060
60061         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60062         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60063         original result buffer.
60064         (str_cd_iconveh): Update.
60065         * tests/test-striconveh.c (main): Update.
60066
60067         * lib/striconv.h (mem_cd_iconv): Change specification.
60068         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60069         result buffer.
60070         (str_cd_iconv): Update.
60071         * tests/test-striconv.c (main): Update.
60072
60073 2007-01-21  Bruno Haible  <bruno@clisp.org>
60074
60075         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60076
60077 2007-01-20  Jim Meyering  <jim@meyering.net>
60078
60079         * lib/userspec.c (parse_with_separator): If a user or group string
60080         starts with "+", skip the corresponding name-to-ID look-up, since
60081         such a look-up must fail: user and group names may not include "+".
60082
60083 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60086         since we now assume the sys_time module.
60087         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60088         check for sys/time.h; no longer needed.
60089         * modules/poll (Depends-on): Depend on sys_time.
60090
60091 2007-01-18  Bruno Haible  <bruno@clisp.org>
60092
60093         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60095
60096         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60097         gettimeofday.
60098
60099         * tests/test-gettimeofday.c: Include <time.h>.
60100         (dummy): Remove variable.
60101
60102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60103         gl_HEADER_SYS_TIME_H.
60104         (gl_HEADER_SYS_TIME_H): New macro.
60105
60106         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60107         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60109         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60110         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60112         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60113         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60114         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60115         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60116         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60117
60118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60119         last change; it caused a compilation error when cross-compiling to
60120         Cygwin.
60121
60122 2007-01-18  Jim Meyering  <jim@meyering.net>
60123
60124         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60125         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60126         than the race-prone "test -d sys || mkdir sys".
60127         (configure.ac): Use AC_PROG_MKDIR_P.
60128         * modules/sys_select: Likewise.
60129         * modules/sys_socket: Likewise.
60130         * modules/sys_time: Likewise.
60131
60132 2007-01-18  Eric Blake  <ebb9@byu.net>
60133
60134         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60135         replace gettimeofday.
60136         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60137         name, to avoid infinite recursion.
60138
60139 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60140
60141         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60142         module sys_time.
60143         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60144         assume timespec.h defines struct timeval.
60145         * lib/settime.c: Likewise.
60146         * lib/utimens.c: Likewise.
60147         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60148         since we now assume the gettimeofday module.
60149         * lib/tempname.c (__gen_tempname): Likewise.
60150         * lib/gettimeofday.h: Remove.
60151         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60152         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60153         Include <time.h>, for 'time()'.
60154         (localtime_buffer_addr): Also use this workaround if
60155         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60156         to simplify the uses.  All uses changed.
60157         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60158         that #undef is inside {}, and 'const' follows type name consistently.
60159         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60160         (gettimeofday): Do not use the maximum possible value for
60161         tv->tv_usec, since that might break usages other than ls.c.
60162         Instead, we'll leave ls.c alone.  This undoes today's patch
60163         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60164         we've never observed the problem but might as well keep the
60165         canary.
60166         * lib/nanosleep.c: Include timespec.h first, for interface check.
60167         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60168         now assume the sys_time module.
60169         * lib/tempname.c: Likewise.
60170         * lib/timespec.h: Likewise.
60171         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60172         needed.
60173         * lib/strftime.c: Likewise.
60174         * lib/timespec.h: Likewise.
60175         * lib/posixtm.c: Include posixtm.h first, for interface check.
60176         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60177         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60178         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60179         * lib/sys_time_.h: New file.
60180         * lib/timespec.h (struct timespec): Use long int, not long.
60181         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60182         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60183         Remove obsolescent call to AC_HEADER_TIME.
60184         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60187         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60188         Likewise.
60189         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60190         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60192         into the sys_time module.  Check for gettimeofday just once.
60193         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60194         for gettimeofday signature to just check the signature.  Merely
60195         compile it, since linking doesn't test signature.  Improve test for
60196         whether gettimeofday.o is actually needed.
60197         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60198         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60199         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60200         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60201         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60202         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60203         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60204         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60205         than worrying about sys/time.h.
60206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60207         Don't bother worrying about TIME_WITH_SYS_TIME.
60208         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60209         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60210         * m4/sys_time_h.m4: New file.
60211         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60212         Don't include sys/time.h.  Return from main rather than exiting.
60213         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60214         all uses changed.
60215         * modules/gethrxtime (Depends-on): Add sys_time.
60216         * modules/gettime (Depends-on): Likewise.
60217         * modules/gettimeofday (Depends-on): Likewise.
60218         * modules/nanosleep (Depends-on): Likewise.
60219         * modules/settime (Depends-on): Likewise.
60220         * modules/tempname (Depends-on): Likewise.
60221         * modules/utimens (Depends-on): Likewise.
60222         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60223         (Include): Change back to <sys/time.h>.
60224         (Maintainer): Add self.
60225         * modules/sys_time: New file.
60226         * modules/tempname (Depends-on): Add gettimeofday.
60227         * tests/test-gettimeofday.c: Include <sys/time.h>
60228         rather than gettimeofday.h.
60229
60230 2007-01-17  Bruno Haible  <bruno@clisp.org>
60231
60232         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60233         the license default to GPL.
60234         (func_create_testdir): Don't complain if a module is LGPL and its
60235         tests module depends on GPLed modules.
60236
60237 2007-01-17  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/gettimeofday.c (gettimeofday): Add code for the case
60240         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60241         maximum possible value for tv->tv_usec, rather than the minimum one.
60242
60243 2005-10-08  Martin Lambers  <marlam@marlam.de>
60244 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60245 2007-01-16  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60248         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60249         gl_FUNC_GETTIMEOFDAY.
60250         (Include): Add gettimeofday.h.
60251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60252         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60253         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60254         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60255         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60256         * lib/gettimeofday.h: New file.
60257         * lib/gettimeofday.c: Include <sys/timeb.h>.
60258         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60259         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60260         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60261         fall back on time().
60262
60263         * tests/test-gettimeofday.c: New file.
60264         * modules/gettimeofday-tests: New file.
60265
60266 2007-01-16  Eric Blake  <ebb9@byu.net>
60267
60268         * modules/fnmatch (Depends-on): Depend on wchar.
60269         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60270         * m4/fnmatch.m4: Likewise.
60271         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60272         * m4/mbchar.m4: Likewise.
60273         * modules/mbswidth (Depends-on): Depend on wchar.
60274         * lib/mbswidth.c: Assume <wchar.h>.
60275         * m4/mbswidth.m4: Likewise.
60276         * modules/quotearg (Depends-on): Depend on wchar.
60277         * lib/quotearg.c: Assume <wchar.h>.
60278         * m4/quotearg.m4: Likewise.
60279         * modules/regex (Depends-on): Depend on wchar.
60280         * lib/regex_internal.h: Assume <wchar.h>.
60281         * m4/regex.m4: Likewise.
60282         * modules/stdint (Depends-on): Depend on wchar.
60283         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60284         * m4/stdint.m4: Likewise.
60285         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60286         * modules/strftime (Depends-on): Depend on wchar.
60287         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60288         * modules/strtol (Depends-on): Depend on wchar.
60289         * lib/strtol.c: Assume <wchar.h>.
60290         * modules/wcwidth (Depends-on): Depend on wchar.
60291         * lib/wcwidth.h: Assume <wchar.h>.
60292         * m4/wcwidth.m4: Likewise.
60293
60294 2007-01-16  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/csharpexec-script: New, created from...
60297         * modules/csharpexec: ... this.
60298
60299 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60300
60301         * modules/javaexec-script: New, created from...
60302         * modules/javaexec: ... this.
60303
60304 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60305
60306         * modules/poll (Dependencies): Add sys_select.
60307
60308 2007-01-15  Jim Meyering  <jim@meyering.net>
60309
60310         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60311         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60312         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60313         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60314
60315 2007-01-15  Bruno Haible  <bruno@clisp.org>
60316
60317         * modules/striconveh: New file.
60318         * lib/striconveh.h: New file.
60319         * lib/striconveh.c: New file.
60320         * MODULES.html.sh (Internationalization functions): Add striconveh.
60321
60322         * modules/striconveh-tests: New file.
60323         * tests/test-striconveh.c: New file.
60324
60325 2007-01-15  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60328         not from GNU libiconv or GNU libc.
60329
60330 2007-01-15  Bruno Haible  <bruno@clisp.org>
60331
60332         * doc/gnulib-intro.texi (Copyright): Explain the different license
60333         terms for module descriptions, autoconf macros, tests, documentation.
60334
60335 2007-01-14  Bruno Haible  <bruno@clisp.org>
60336
60337         * modules/striconv-tests: New file.
60338         * tests/test-striconv.c: New file.
60339
60340 2007-01-14  Bruno Haible  <bruno@clisp.org>
60341
60342         * modules/iconv-tests: New file.
60343         * tests/test-iconv.c: New file.
60344
60345 2007-01-14  Bruno Haible  <bruno@clisp.org>
60346
60347         * gnulib-tool (func_get_license): For test modules, use the license of
60348         the main module.
60349
60350 2007-01-14  Bruno Haible  <bruno@clisp.org>
60351
60352         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60353         if iconv is found to exist.
60354
60355 2007-01-14  Bruno Haible  <bruno@clisp.org>
60356
60357         * modules/c-ctype-tests: New file.
60358         * tests/test-c-ctype.c: New file.
60359
60360 2007-01-14  Bruno Haible  <bruno@clisp.org>
60361
60362         * modules/binary-io-tests: New file.
60363         * tests/test-binary-io.sh: New file.
60364         * tests/test-binary-io.c: New file.
60365
60366 2007-01-14  Bruno Haible  <bruno@clisp.org>
60367
60368         * modules/array-oset-tests: New file.
60369         * tests/test-array_oset.c: New file.
60370
60371 2007-01-14  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/array-list-tests: New file.
60374         * tests/test-array_list.c: New file.
60375
60376 2007-01-14  Bruno Haible  <bruno@clisp.org>
60377
60378         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60379         and make.
60380         Reported by Simon Josefsson in
60381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60382
60383 2007-01-14  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/allocsa-tests: New file.
60386         * tests/test-allocsa.c: New file.
60387
60388 2007-01-14  Bruno Haible  <bruno@clisp.org>
60389
60390         * modules/fchdir (Depends-on): Add absolute-header.
60391         * modules/unistd (Depends-on): Likewise.
60392
60393 2006-12-30  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/fchdir: New file.
60396         * modules/unistd (Files): Add lib/unistd_.h.
60397         (Makefile.am): Generate unistd.h from unistd_.h.
60398         * lib/fchdir.c: New file.
60399         * lib/dirent_.h: New file.
60400         * lib/unistd_.h: New file.
60401         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60402         * m4/fchdir.m4: New file.
60403         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60404         (gl_HEADER_UNISTD): Invoke it.
60405         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60406         function.
60407         * lib/backupfile.c (opendir, closedir): Undefine.
60408         * lib/chown.c (open, close): Undefine.
60409         * lib/clean-temp.c (open, close): Undefine.
60410         * lib/copy-file.c (open, close): Undefine.
60411         * lib/execute.c (open, close): Undefine.
60412         * lib/fsusage.c (open, close): Undefine.
60413         * lib/gc-gnulib.c (open, close): Undefine.
60414         * lib/getcwd.c (opendir, closedir): Undefine.
60415         * lib/glob.c (opendir, closedir): Undefine.
60416         * lib/javacomp.c (open, close): Undefine.
60417         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60418         * lib/openat-proc.c (open, close): Undefine.
60419         * lib/pagealign_alloc.c (open, close): Undefine.
60420         * lib/pipe.c (open, close): Undefine.
60421         * lib/progreloc.c (open, close): Undefine.
60422         * lib/savedir.c (opendir, closedir): Undefine.
60423         * lib/utime.c (open, close): Undefine.
60424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60425
60426 2007-01-10  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60429
60430 2007-01-12  Eric Blake  <ebb9@byu.net>
60431
60432         Provide a robust <wchar.h>.  Further simplifications are now
60433         possible in other modules, but not included here.
60434         * modules/wchar: New module.
60435         * m4/wchar.m4: New file.
60436         * lib/wchar_.h: Likewise.
60437         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60438         of the new module.
60439         * MODULES.html.sh (Extended multibyte and wide character utilities):
60440         New section.
60441
60442 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60445         to a reasonable default for memory allocation.
60446         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60447         file system that reports garbage st_size values for symlinks.
60448         Problem reported by Liyang Hu.
60449
60450 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60451
60452         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60453         Emacs .#* auto-save files).
60454
60455 2007-01-11  Bruno Haible  <bruno@clisp.org>
60456
60457         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60458         directory.
60459
60460 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         Use @...@ consistently in lib/wctype_.h.
60463         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60464         on it being set to 1 or 0.
60465         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60466         go back to AC_SUBSTing it.
60467         * modules/wctype (Makefile.am): Undo previous change.
60468
60469 2007-01-10  Eric Blake  <ebb9@byu.net>
60470
60471         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60472         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60473         * modules/wctype (Makefile.am): Likewise.
60474         Reported by Chris McGuire.
60475
60476 2007-01-10  Jim Meyering  <jim@meyering.net>
60477
60478         fts.c: a small readability/maintainability improvement
60479         * lib/fts.c (fts_read): Make this code slightly more readable and
60480         maintainable by hoisting the "sp->fts_cur = p" assignments to
60481         immediately follow the statements that set P.  Derived from
60482         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60483
60484 2007-01-10  Eric Blake  <ebb9@byu.net>
60485
60486         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60487         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60489         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60490         Reported by Chris McGuire.
60491
60492 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60493
60494         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60495         in sed script.
60496
60497 2007-01-09  Bruno Haible  <bruno@clisp.org>
60498
60499         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60500         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60501         variables.
60502         (func_module): Use them.
60503
60504 2007-01-09  Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/unistr/base: New file.
60507         * lib/unistr.h: New file.
60508
60509         * modules/unistr/u8-to-u16: New file.
60510         * lib/unistr/u8-to-u16.c: New file.
60511
60512         * modules/unistr/u8-to-u32: New file.
60513         * lib/unistr/u8-to-u32.c: New file.
60514
60515         * modules/unistr/u16-to-u8: New file.
60516         * lib/unistr/u16-to-u8.c: New file.
60517
60518         * modules/unistr/u16-to-u32: New file.
60519         * lib/unistr/u16-to-u32.c: New file.
60520
60521         * modules/unistr/u32-to-u8: New file.
60522         * lib/unistr/u32-to-u8.c: New file.
60523
60524         * modules/unistr/u32-to-u16: New file.
60525         * lib/unistr/u32-to-u16.c: New file.
60526
60527         * modules/unistr/u8-check: New file.
60528         * modules/unistr/u16-check: New file.
60529         * modules/unistr/u32-check: New file.
60530         * lib/unistr/u8-check.c: New file.
60531         * lib/unistr/u16-check.c: New file.
60532         * lib/unistr/u32-check.c: New file.
60533
60534         * modules/unistr/u8-chr: New file.
60535         * modules/unistr/u16-chr: New file.
60536         * modules/unistr/u32-chr: New file.
60537         * lib/unistr/u8-chr.c: New file.
60538         * lib/unistr/u16-chr.c: New file.
60539         * lib/unistr/u32-chr.c: New file.
60540
60541         * modules/unistr/u8-cmp: New file.
60542         * modules/unistr/u16-cmp: New file.
60543         * modules/unistr/u32-cmp: New file.
60544         * lib/unistr/u8-cmp.c: New file.
60545         * lib/unistr/u16-cmp.c: New file.
60546         * lib/unistr/u32-cmp.c: New file.
60547
60548         * modules/unistr/u8-cpy: New file.
60549         * modules/unistr/u16-cpy: New file.
60550         * modules/unistr/u32-cpy: New file.
60551         * lib/unistr/u8-cpy.c: New file.
60552         * lib/unistr/u16-cpy.c: New file.
60553         * lib/unistr/u32-cpy.c: New file.
60554         * lib/unistr/u-cpy.h: New file.
60555
60556         * modules/unistr/u8-cpy-alloc: New file.
60557         * modules/unistr/u16-cpy-alloc: New file.
60558         * modules/unistr/u32-cpy-alloc: New file.
60559         * lib/unistr/u8-cpy-alloc.c: New file.
60560         * lib/unistr/u16-cpy-alloc.c: New file.
60561         * lib/unistr/u32-cpy-alloc.c: New file.
60562         * lib/unistr/u-cpy-alloc.h: New file.
60563
60564         * modules/unistr/u8-endswith: New file.
60565         * modules/unistr/u16-endswith: New file.
60566         * modules/unistr/u32-endswith: New file.
60567         * lib/unistr/u8-endswith.c: New file.
60568         * lib/unistr/u16-endswith.c: New file.
60569         * lib/unistr/u32-endswith.c: New file.
60570         * lib/unistr/u-endswith.h: New file.
60571
60572         * modules/unistr/u8-mblen: New file.
60573         * modules/unistr/u16-mblen: New file.
60574         * modules/unistr/u32-mblen: New file.
60575         * lib/unistr/u8-mblen.c: New file.
60576         * lib/unistr/u16-mblen.c: New file.
60577         * lib/unistr/u32-mblen.c: New file.
60578
60579         * modules/unistr/u8-mbtouc: New file.
60580         * modules/unistr/u16-mbtouc: New file.
60581         * modules/unistr/u32-mbtouc: New file.
60582         * lib/unistr/u8-mbtouc.c: New file.
60583         * lib/unistr/u16-mbtouc.c: New file.
60584         * lib/unistr/u32-mbtouc.c: New file.
60585
60586         * modules/unistr/u8-mbtouc-safe: New file.
60587         * modules/unistr/u16-mbtouc-safe: New file.
60588         * modules/unistr/u32-mbtouc-safe: New file.
60589         * lib/unistr/u8-mbtouc-safe.c: New file.
60590         * lib/unistr/u16-mbtouc-safe.c: New file.
60591         * lib/unistr/u32-mbtouc-safe.c: New file.
60592
60593         * modules/unistr/u8-move: New file.
60594         * modules/unistr/u16-move: New file.
60595         * modules/unistr/u32-move: New file.
60596         * lib/unistr/u8-move.c: New file.
60597         * lib/unistr/u16-move.c: New file.
60598         * lib/unistr/u32-move.c: New file.
60599         * lib/unistr/u-move.h: New file.
60600
60601         * modules/unistr/u8-next: New file.
60602         * modules/unistr/u16-next: New file.
60603         * modules/unistr/u32-next: New file.
60604         * lib/unistr/u8-next.c: New file.
60605         * lib/unistr/u16-next.c: New file.
60606         * lib/unistr/u32-next.c: New file.
60607
60608         * modules/unistr/u8-prev: New file.
60609         * modules/unistr/u16-prev: New file.
60610         * modules/unistr/u32-prev: New file.
60611         * lib/unistr/u8-prev.c: New file.
60612         * lib/unistr/u16-prev.c: New file.
60613         * lib/unistr/u32-prev.c: New file.
60614
60615         * modules/unistr/u8-set: New file.
60616         * modules/unistr/u16-set: New file.
60617         * modules/unistr/u32-set: New file.
60618         * lib/unistr/u8-set.c: New file.
60619         * lib/unistr/u16-set.c: New file.
60620         * lib/unistr/u32-set.c: New file.
60621         * lib/unistr/u-set.h: New file.
60622
60623         * modules/unistr/u8-startswith: New file.
60624         * modules/unistr/u16-startswith: New file.
60625         * modules/unistr/u32-startswith: New file.
60626         * lib/unistr/u8-startswith.c: New file.
60627         * lib/unistr/u16-startswith.c: New file.
60628         * lib/unistr/u32-startswith.c: New file.
60629         * lib/unistr/u-startswith.h: New file.
60630
60631         * modules/unistr/u8-stpcpy: New file.
60632         * modules/unistr/u16-stpcpy: New file.
60633         * modules/unistr/u32-stpcpy: New file.
60634         * lib/unistr/u8-stpcpy.c: New file.
60635         * lib/unistr/u16-stpcpy.c: New file.
60636         * lib/unistr/u32-stpcpy.c: New file.
60637         * lib/unistr/u-stpcpy.h: New file.
60638
60639         * modules/unistr/u8-stpncpy: New file.
60640         * modules/unistr/u16-stpncpy: New file.
60641         * modules/unistr/u32-stpncpy: New file.
60642         * lib/unistr/u8-stpncpy.c: New file.
60643         * lib/unistr/u16-stpncpy.c: New file.
60644         * lib/unistr/u32-stpncpy.c: New file.
60645         * lib/unistr/u-stpncpy.h: New file.
60646
60647         * modules/unistr/u8-strcat: New file.
60648         * modules/unistr/u16-strcat: New file.
60649         * modules/unistr/u32-strcat: New file.
60650         * lib/unistr/u8-strcat.c: New file.
60651         * lib/unistr/u16-strcat.c: New file.
60652         * lib/unistr/u32-strcat.c: New file.
60653         * lib/unistr/u-strcat.h: New file.
60654
60655         * modules/unistr/u8-strchr: New file.
60656         * modules/unistr/u16-strchr: New file.
60657         * modules/unistr/u32-strchr: New file.
60658         * lib/unistr/u8-strchr.c: New file.
60659         * lib/unistr/u16-strchr.c: New file.
60660         * lib/unistr/u32-strchr.c: New file.
60661
60662         * modules/unistr/u8-strcmp: New file.
60663         * modules/unistr/u16-strcmp: New file.
60664         * modules/unistr/u32-strcmp: New file.
60665         * lib/unistr/u8-strcmp.c: New file.
60666         * lib/unistr/u16-strcmp.c: New file.
60667         * lib/unistr/u32-strcmp.c: New file.
60668
60669         * modules/unistr/u8-strcpy: New file.
60670         * modules/unistr/u16-strcpy: New file.
60671         * modules/unistr/u32-strcpy: New file.
60672         * lib/unistr/u8-strcpy.c: New file.
60673         * lib/unistr/u16-strcpy.c: New file.
60674         * lib/unistr/u32-strcpy.c: New file.
60675         * lib/unistr/u-strcpy.h: New file.
60676
60677         * modules/unistr/u8-strcspn: New file.
60678         * modules/unistr/u16-strcspn: New file.
60679         * modules/unistr/u32-strcspn: New file.
60680         * lib/unistr/u8-strcspn.c: New file.
60681         * lib/unistr/u16-strcspn.c: New file.
60682         * lib/unistr/u32-strcspn.c: New file.
60683         * lib/unistr/u-strcspn.h: New file.
60684
60685         * modules/unistr/u8-strdup: New file.
60686         * modules/unistr/u16-strdup: New file.
60687         * modules/unistr/u32-strdup: New file.
60688         * lib/unistr/u8-strdup.c: New file.
60689         * lib/unistr/u16-strdup.c: New file.
60690         * lib/unistr/u32-strdup.c: New file.
60691         * lib/unistr/u-strdup.h: New file.
60692
60693         * modules/unistr/u8-strlen: New file.
60694         * modules/unistr/u16-strlen: New file.
60695         * modules/unistr/u32-strlen: New file.
60696         * lib/unistr/u8-strlen.c: New file.
60697         * lib/unistr/u16-strlen.c: New file.
60698         * lib/unistr/u32-strlen.c: New file.
60699         * lib/unistr/u-strlen.h: New file.
60700
60701         * modules/unistr/u8-strmblen: New file.
60702         * modules/unistr/u16-strmblen: New file.
60703         * modules/unistr/u32-strmblen: New file.
60704         * lib/unistr/u8-strmblen.c: New file.
60705         * lib/unistr/u16-strmblen.c: New file.
60706         * lib/unistr/u32-strmblen.c: New file.
60707
60708         * modules/unistr/u8-strmbtouc: New file.
60709         * modules/unistr/u16-strmbtouc: New file.
60710         * modules/unistr/u32-strmbtouc: New file.
60711         * lib/unistr/u8-strmbtouc.c: New file.
60712         * lib/unistr/u16-strmbtouc.c: New file.
60713         * lib/unistr/u32-strmbtouc.c: New file.
60714
60715         * modules/unistr/u8-strncat: New file.
60716         * modules/unistr/u16-strncat: New file.
60717         * modules/unistr/u32-strncat: New file.
60718         * lib/unistr/u8-strncat.c: New file.
60719         * lib/unistr/u16-strncat.c: New file.
60720         * lib/unistr/u32-strncat.c: New file.
60721         * lib/unistr/u-strncat.h: New file.
60722
60723         * modules/unistr/u8-strncmp: New file.
60724         * modules/unistr/u16-strncmp: New file.
60725         * modules/unistr/u32-strncmp: New file.
60726         * lib/unistr/u8-strncmp.c: New file.
60727         * lib/unistr/u16-strncmp.c: New file.
60728         * lib/unistr/u32-strncmp.c: New file.
60729
60730         * modules/unistr/u8-strncpy: New file.
60731         * modules/unistr/u16-strncpy: New file.
60732         * modules/unistr/u32-strncpy: New file.
60733         * lib/unistr/u8-strncpy.c: New file.
60734         * lib/unistr/u16-strncpy.c: New file.
60735         * lib/unistr/u32-strncpy.c: New file.
60736         * lib/unistr/u-strncpy.h: New file.
60737
60738         * modules/unistr/u8-strnlen: New file.
60739         * modules/unistr/u16-strnlen: New file.
60740         * modules/unistr/u32-strnlen: New file.
60741         * lib/unistr/u8-strnlen.c: New file.
60742         * lib/unistr/u16-strnlen.c: New file.
60743         * lib/unistr/u32-strnlen.c: New file.
60744         * lib/unistr/u-strnlen.h: New file.
60745
60746         * modules/unistr/u8-strpbrk: New file.
60747         * modules/unistr/u16-strpbrk: New file.
60748         * modules/unistr/u32-strpbrk: New file.
60749         * lib/unistr/u8-strpbrk.c: New file.
60750         * lib/unistr/u16-strpbrk.c: New file.
60751         * lib/unistr/u32-strpbrk.c: New file.
60752         * lib/unistr/u-strpbrk.h: New file.
60753
60754         * modules/unistr/u8-strrchr: New file.
60755         * modules/unistr/u16-strrchr: New file.
60756         * modules/unistr/u32-strrchr: New file.
60757         * lib/unistr/u8-strrchr.c: New file.
60758         * lib/unistr/u16-strrchr.c: New file.
60759         * lib/unistr/u32-strrchr.c: New file.
60760
60761         * modules/unistr/u8-strspn: New file.
60762         * modules/unistr/u16-strspn: New file.
60763         * modules/unistr/u32-strspn: New file.
60764         * lib/unistr/u8-strspn.c: New file.
60765         * lib/unistr/u16-strspn.c: New file.
60766         * lib/unistr/u32-strspn.c: New file.
60767         * lib/unistr/u-strspn.h: New file.
60768
60769         * modules/unistr/u8-strstr: New file.
60770         * modules/unistr/u16-strstr: New file.
60771         * modules/unistr/u32-strstr: New file.
60772         * lib/unistr/u8-strstr.c: New file.
60773         * lib/unistr/u16-strstr.c: New file.
60774         * lib/unistr/u32-strstr.c: New file.
60775         * lib/unistr/u-strstr.h: New file.
60776
60777         * modules/unistr/u8-strtok: New file.
60778         * modules/unistr/u16-strtok: New file.
60779         * modules/unistr/u32-strtok: New file.
60780         * lib/unistr/u8-strtok.c: New file.
60781         * lib/unistr/u16-strtok.c: New file.
60782         * lib/unistr/u32-strtok.c: New file.
60783         * lib/unistr/u-strtok.h: New file.
60784
60785         * modules/unistr/u8-uctomb: New file.
60786         * modules/unistr/u16-uctomb: New file.
60787         * modules/unistr/u32-uctomb: New file.
60788         * lib/unistr/u8-uctomb.c: New file.
60789         * lib/unistr/u16-uctomb.c: New file.
60790         * lib/unistr/u32-uctomb.c: New file.
60791
60792         * MODULES.html.sh (Unicode string functions): Add the new modules.
60793
60794 2007-01-08  Bruno Haible  <bruno@clisp.org>
60795
60796         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60797         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60798         subdirectories.
60799
60800 2007-01-08  Karl Berry  <karl@gnu.org>
60801
60802         * doc/error.texi: mention that main() fns must set program_name
60803         when progname is used.
60804
60805 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60806
60807         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60808         WCTYPE_H is empty, for the benefit of builds from non-distclean
60809         directories.  Problem reported by Eric Blake in
60810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60811
60812 2007-01-08  Bruno Haible  <bruno@clisp.org>
60813
60814         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60815         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60816         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60817         PROVIDE_CANONICALIZE_FILENAME_MODE.
60818         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60819
60820 2007-01-08  Bruno Haible  <bruno@clisp.org>
60821
60822         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60823         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60824         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60825         * lib/fts.c: Likewise.
60826         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60827
60828 2006-12-25  Bruno Haible  <bruno@clisp.org>
60829
60830         * modules/utf8-ucs4-safe: New file.
60831         * lib/utf8-ucs4-safe.h: New file.
60832         * lib/unistr/utf8-ucs4-safe.c: New file.
60833
60834         * modules/utf16-ucs4-safe: New file.
60835         * lib/utf16-ucs4-safe.h: New file.
60836         * lib/unistr/utf16-ucs4-safe.c: New file.
60837
60838         * MODULES.html.sh (Unicode string functions): Add the new modules.
60839
60840 2007-01-08  Bruno Haible  <bruno@clisp.org>
60841
60842         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60843         (Depends-on): Add unitypes.
60844         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60845         (u8_mbtouc_aux): Move out to separate file.
60846         (u8_mbtouc): Use ucs4_t, uint8_t types.
60847         * lib/unistr/utf8-ucs4.c: New file.
60848
60849         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60850         (Depends-on): Add unitypes.
60851         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60852         (u16_mbtouc_aux): Move out to separate file.
60853         (u16_mbtouc): Use ucs4_t, uint16_t types.
60854         * lib/unistr/utf16-ucs4.c: New file.
60855
60856         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60857         (Depends-on): Add unitypes.
60858         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60859         (u8_uctomb_aux): Move out to separate file.
60860         (u8_uctomb): Use ucs4_t, uint8_t types.
60861         * lib/unistr/ucs4-utf8.c: New file.
60862
60863         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60864         (Depends-on): Add unitypes.
60865         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60866         (u16_uctomb_aux): Move out to separate file.
60867         (u16_uctomb): Use ucs4_t, uint16_t types.
60868         * lib/unistr/ucs4-utf16.c: New file.
60869
60870 2006-12-25  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/unitypes: New file.
60873         * lib/unitypes.h: New file.
60874         * MODULES.html.sh (func_all_modules): New section "Unicode string
60875         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60876         this section. Add unitypes.
60877
60878 2007-01-08  Bruno Haible  <bruno@clisp.org>
60879
60880         Avoid variable names that conflict with those from libtool.
60881         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60882         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60883         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60884         library_names_spec to acl_library_names_spec, hardcode_* to
60885         acl_hardcode_*.
60886         Reported by Ralf Wildenhues.
60887
60888 2007-01-08  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60891         definition.
60892         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60893         definition.
60894         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60895         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60896         definition.
60897         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60898         definition.
60899         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60900         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60901         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60902         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60903         definition.
60904         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60905         definition.
60906         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60907         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60908         GC_USE_<algorithm>.
60909         * lib/gc-libgcrypt.c: Likewise.
60910         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60911         * modules/gc-arctwo (configure.ac): Likewise.
60912         * modules/gc-des (configure.ac): Likewise.
60913         * modules/gc-hmac-md5 (configure.ac): Likewise.
60914         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60915         * modules/gc-md2 (configure.ac): Likewise.
60916         * modules/gc-md4 (configure.ac): Likewise.
60917         * modules/gc-md5 (configure.ac): Likewise.
60918         * modules/gc-random (configure.ac): Likewise.
60919         * modules/gc-rijndael (configure.ac): Likewise.
60920         * modules/gc-sha1 (configure.ac): Likewise.
60921
60922 2007-01-08  Bruno Haible  <bruno@clisp.org>
60923
60924         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60925         macro definition.
60926         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60927         definition.
60928         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60929         definition.
60930         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60931         * modules/fcntl-safer (configure.ac): Likewise.
60932         * modules/fopen-safer (configure.ac): Likewise.
60933         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60934         GNULIB_FWRITEERROR macro definition.
60935
60936 2007-01-08  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/gnulib-common.m4: New file.
60939         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60940         (func_get_filelist): Add m4/gnulib-common.m4.
60941
60942 2007-01-08  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60945         command.
60946
60947 2007-01-08  Jim Meyering  <jim@meyering.net>
60948
60949         Use a more robust test for a "can't happen" condition.
60950         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60951         narrowed the st_size value.  Presuming the "can't happen" condition
60952         is true, that narrowing could conceivably convert an invalid st_size
60953         value into a valid one.  Instead, use a change based on Matthew
60954         Woehlke's original patch.
60955
60956         Slight readability improvement: use an assert-like macro
60957         in place of literal "abort ()" uses.
60958         * lib/fts.c (fts_assert): Define.
60959         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60960         Use this macro instead of a bare 'abort'.
60961
60962 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60965         simply work around them.
60966         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60967         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60968         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60969         declaring.
60970         Don't bother to define as macros, since the standard doesn't require it.
60971         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60972         longer worry about IRIX 5.3.
60973         (HAVE_WCTYPE_CTMP_BUG): Remove.
60974
60975 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60978         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60979         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60980         Problems reported by Georg Schwarz for IRIX 5.3.
60981
60982         * gnulib-tool (autoconf_minversion): Take the maximum version number
60983         found, not the minimum.  Problem reported by James Youngman.
60984
60985 2007-01-03  Karl Berry  <karl@gnu.org>
60986
60987         * doc/error.texi: new file, explaining interaction with progname.
60988         * doc/gnulib.texi: include it.  Update copyright.
60989
60990 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60991
60992         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60993         AC_CANONICAL_HOST, to improve autobuild outputs.
60994
60995 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60996             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60997
60998         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60999         sockets, server sockets, and other file descriptors.  Count errors
61000         to compute the return value.  Reorder the code a bit to be easier
61001         to follow.  Don't set event bits that were not requested (except
61002         POLLERR and POLLHUP).
61003
61004 2007-01-01  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61007
61008 2007-01-03  Jim Meyering  <jim@meyering.net>
61009
61010         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61011
61012 2007-01-02  Bruno Haible  <bruno@clisp.org>
61013
61014         * modules/settime (Include): Require timespec.h.
61015         * modules/nanosleep (Include): Likewise.
61016
61017 2007-01-01  Bruno Haible  <bruno@clisp.org>
61018
61019         * gnulib-tool (func_emit_copyright_notice): Bump year.
61020         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61021
61022 2007-01-01  Bruno Haible  <bruno@clisp.org>
61023
61024         Improve support for OpenBSD.
61025         * build-aux/config.rpath (libname_spec): Export.
61026         (library_names_spec): New variable. Export.
61027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61028         library_names_spec from the config.rpath output. Locate shared library
61029         through the name pattern in library_names_spec.
61030
61031 2007-01-01  Eric Blake  <ebb9@byu.net>
61032
61033         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61034
61035 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61038         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61039         assume the C locale, and avoid an "eval" that could cause trouble.
61040         Problem with SORT reported by Bob Proulx.
61041
61042         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61043         Define.  Trivial patch from Henning Nielsen Lund, originally
61044         sent to bug-grep@gnu.org today.
61045
61046 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61049         struct stat.  Problem reported by Henning Nielsen Lund.
61050         * lib/acl.c: Include acl.h first, to check interface.  Don't
61051         bother to include sys/types.h and sys/stat.h again.
61052
61053 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         Import the following change from libc; problem reported by
61056         Sven Verdoolaege.
61057
61058         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61059
61060         [BZ #1373]
61061         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61062
61063 2006-12-28  Jim Meyering  <jim@meyering.net>
61064
61065         * build-aux/announce-gen: Do not assume that the package
61066         builds any of tar.gz, tar.bz2, and .xdelta files.
61067         Suggestion from Simon Josefsson.
61068
61069 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61070
61071         * modules/announce-gen: New file.
61072
61073 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61076         handles its gotchas now.
61077         * lib/mbswidth.c: Likewise.
61078         * lib/wcwidth.h: Likewise.
61079         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61080         and iswcntrl; the wctype module does this stuff now.
61081         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61083         * modules/mbchar (Depends-on): Add wctype.
61084         * modules/mbswidth (Depends-on): Likewise.
61085         * modules/wcwidth (Depends-on): Likewise.
61086
61087 2006-12-27  Eric Blake  <ebb9@byu.net>
61088
61089         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61090         module uses more than what <wctype.h> is required to provide.
61091
61092 2006-12-26  Eric Blake  <ebb9@byu.net>
61093
61094         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61095
61096 2006-12-26  Eric Blake  <ebb9@byu.net>
61097
61098         * modules/absolute-header: New module.
61099         * modules/fcntl (Depends-on): Depend on it.
61100         * modules/inttypes (Depends-on): Likewise.
61101         * modules/stdint (Depends-on): Likewise.
61102         * modules/sys_stat (Depends-on): Likewise.
61103         * modules/wctype (Depends-on): Likewise.
61104         * MODULES.html.sh (Support for building libraries and
61105         executables): Document it.
61106
61107 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61108
61109         * gnulib-tool (SED): Remove, undoing previous change.
61110         The problem was that it broke coreutils on Solaris, because
61111         "sed --posix" leaked into a makefile.
61112         (sed): New alias, if 'alias' and GNU sed.
61113
61114 2006-12-24  Jim Meyering  <jim@meyering.net>
61115
61116         Work around an fchownat bug in glibc-2.4:
61117         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61118         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61119         in spite of the -P option.
61120         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61121         New macros.
61122         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61123         * modules/openat (Files): Add lib/fchownat.c.
61124         * lib/openat.c (fchownat): Don't define here.  Move to...
61125         * lib/fchownat.c: ...this new file.
61126
61127 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61128
61129         Fix bug reported by Bruno Haible in
61130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61131         where quotearg.c didn't compile on Mac OS X 10.2 because it
61132         lacks <wchar.h> and wint_t.
61133         * lib/wctype_.h (__wctype_wint_t): New type.
61134         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61135         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61136         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61137         Arg is now of type __wctype_wint_t, not wint_t.
61138         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61139         substitute HAVE_WINT_T.
61140         * modules/wctype (Files): Add m4/wint_t.m4.
61141         (wctype.h): Substitute HAVE_WINT_T.
61142
61143 2006-12-23  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61146
61147 2006-12-23  Bruno Haible  <bruno@clisp.org>
61148
61149         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61150         S_ISLNK.
61151         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61152         mingw.
61153
61154 2006-12-22  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/copy-file.c: Include acl.h.
61157         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61158         Close the file descriptors only after being done with copy_acl.
61159         * modules/copy-file (Depends-on): Add acl.
61160
61161 2006-12-22  Bruno Haible  <bruno@clisp.org>
61162
61163         * gnulib-tool (SED): New variable.
61164         Use $SED instead of sed everywhere.
61165
61166 2006-12-22  Bruno Haible  <bruno@clisp.org>
61167
61168         * modules/no-c++: New file.
61169         * m4/no-c++.m4: New file.
61170         * MODULES.html.sh (Support for building libraries and executables):
61171         Add no-c++.
61172
61173 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61176         Include <limits.h>, and use its INT_MAX to rewrite the
61177         j loop so that it does not overflow 'int'.  Problem reported by
61178         Ralf Wildenhues in
61179         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61180         Play it safe by shifting left by 1 rather than multiplying by 2,
61181         as GCC is less likely to optimize this away when the value
61182         is signed (when it assumes overflow leads to undefined behavior).
61183         Also, don't assume time_t uses two's complement.
61184
61185 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61186
61187         * MODULES.html.sh: New module wctype.
61188         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61189         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61190         <wctype.h>, since the new wctype module should fix this.
61191         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61192         the wctype module should arrange for it.
61193         * lib/regex_internal.h: Likewise.
61194         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61195         since the wctype module should handle this now.
61196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61197         * modules/fnmatch (Depends-on): Add wctype.
61198         * modules/quotearg (Depends-on): Likewise.
61199         * modules/regex (Depends-on): Likewise.
61200
61201 2006-12-19  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61204         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61205
61206 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61207
61208         * modules/savewd (Depends-on): Fix dependency on fcntl.
61209
61210 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61211
61212         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61213         conforms to C99, rather than relying on the user's environment
61214         setting of STDINT_H.
61215
61216 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61217         and Eric Blake  <ebb9@byu.net>
61218
61219         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61220         This is more consistent with the other defines here.
61221         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61222         Port to z/OS.  Problem reported by Paul Gilmartin.
61223         Change local vars to use gl_ prefix rather than ac_.
61224         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61225         with other defines.
61226         * modules/double-slash-root: New module.
61227         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61228         (Depends-on): Add double-slash-root.
61229         * MODULES.html.sh (File system functions): Mention new module.
61230
61231 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61234         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61235         This is for the benefit of gzip, which doesn't do i18n.
61236
61237 2006-12-12  Jim Meyering  <jim@meyering.net>
61238
61239         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61240         Reported by Andreas Schwab <schwab@suse.de>.
61241
61242 2006-12-12  Bruno Haible  <bruno@clisp.org>
61243
61244         Merge these changes.
61245         2006-09-05  Bruno Haible  <bruno@clisp.org>
61246         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61247         iconv_alloc succeeded.
61248         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61249         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61250         test for " && dest " at the end - dest is always != NULL there. Call
61251         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61252         with 2xNULL arguments, also to flush the state storage. Handle the
61253         IRIX iconv behaviour. Realloc the final result, to throw away unused
61254         memory.
61255
61256 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61257
61258         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61259         and fchmodat unconditionally, since glibc 2.4 has them.
61260         Problem reported by Arkadiusz Miskiewicz.
61261
61262 2006-12-10  Bruno Haible  <bruno@clisp.org>
61263
61264         * gnulib-tool (func_import): Show the include files only for those
61265         modules that are copied and specified.
61266         Reported by Karl Berry.
61267
61268 2006-12-08  Jim Meyering  <jim@meyering.net>
61269
61270         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61271         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61272
61273         * build-aux/announce-gen: Add two new options, both optional:
61274         --bootstrap-tools=TOOL_LIST
61275               a comma-separated list of tools, e.g.,
61276               autoconf,automake,bison,gnulib
61277         --gnulib-snapshot-date=DATE
61278               if gnulib is in the bootstrap tool list,
61279               then report this as the snapshot date.
61280               If not specified, use the current date/time.
61281               If you specify a date here, be sure it's UTC.
61282
61283 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61284
61285         * tests/test-argp-2.sh: Fix test to match actual output.
61286         (func_compare): Fix sed script to be portable.
61287
61288 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61289
61290         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61291         workaround for this case.  It is not autoconfigured now; offhand
61292         it's hard to see how to autoconfigure it.
61293
61294 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61295
61296         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61297         a directory that is about to be chowned.  Such a directory's
61298         initial file permissions should permit the owner only and this
61299         should not be changed until after the chown, since the group and
61300         other bits would be incorrect if they granted permission before
61301         the chown.
61302
61303         Fix porting problem for iswctype reported by Georg Schwarz in:
61304         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61305         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61306         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61308         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61309
61310 2006-12-03  Jim Meyering  <jim@meyering.net>
61311
61312         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61313         p->fts_statp may not yet be defined.
61314         (fts_read): Instead, set it in the caller, once p->fts_statp is
61315         sure to be defined, and corresponds to a top-level directory.
61316         This bug made du -x fail.  Here's the coreutils test case:
61317         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61318         Reported by Mike Frysinger.
61319
61320 2006-12-01  Jim Meyering  <jim@meyering.net>
61321
61322         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61323         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61324         Reported by Simon Josefsson.
61325
61326 2006-11-30  Jim Meyering  <jim@meyering.net>
61327
61328         * m4/warning.m4: Use the all-permissive copyright notice
61329         recommended by RMS (rather than LGPL).
61330         * m4/vararrays.m4: Likewise.
61331         * m4/flexmember.m4: Likewise.
61332
61333 2006-11-29  Bruno Haible  <bruno@clisp.org>
61334
61335         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61336         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61337         using +=.
61338         Reported by Simon Josefsson <simon@josefsson.org>.
61339
61340 2006-11-28  James Youngman <jay@gnu.org>
61341
61342         * README: Advise users that they might find the bug-gnulib@gnu.org
61343         and autotools-announce@gnu.org mailing lists useful.
61344
61345 2006-11-28  Bruno Haible  <bruno@clisp.org>
61346
61347         * m4/ptrdiff_max.m4: Remove file.
61348
61349 2006-11-21  Bruno Haible  <bruno@clisp.org>
61350
61351         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61352         _AC_COMPUTE_INT.
61353         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61354         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61355         _AC_COMPUTE_INT.
61356         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61357         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61358         _AC_COMPUTE_INT.
61359         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61360
61361 2006-11-28  Jim Meyering  <jim@meyering.net>
61362
61363         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61364         warning from "gcc -Wshadow" about shadowing the builtin.
61365
61366 2006-11-27  Bruno Haible  <bruno@clisp.org>
61367
61368         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61369         _AC_COMPUTE_INT.
61370         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61371
61372 2006-11-27  Bruno Haible  <bruno@clisp.org>
61373             Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61376
61377 2006-11-26  Bruno Haible  <bruno@clisp.org>
61378
61379         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61380         noinst_LTLIBRARIES.
61381
61382 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61383             Bruno Haible  <bruno@clisp.org>
61384
61385         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61386         if compiling with "gcc -ansi".
61387
61388 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         Fix some incompatibilities with gcc -ansi -pedantic.
61391         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61392         if compiling pedantically with GCC, unless it's C99 or later.
61393         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61394         it mishandles gcc -ansi -pedantic as well.
61395         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61396         if gcc -pedantic.
61397         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61398         initializers for struct if -pedantic, unless it's C99 or later.
61399
61400 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61401
61402         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61403         Don't close an fd more than once. Identical atimes indicate
61404         success, not failure.
61405
61406 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61407
61408         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61409
61410 2006-11-23  Jim Meyering  <jim@meyering.net>
61411
61412         * build-aux/announce-gen: New file.  From coreutils.
61413
61414 2006-11-22  Jim Meyering  <jim@meyering.net>
61415
61416         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61417         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61418         (fts_read): Use a temporary to narrow the overused st_size member
61419         before using it in a switch statement.  Reported by Matthew Woehlke.
61420
61421         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61422         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61423
61424 2006-11-20  Bruno Haible  <bruno@clisp.org>
61425
61426         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61427         changequote instead of pairs of brackets.
61428         Reported by Andreas Schwab <schwab@suse.de>.
61429
61430 2006-11-21  Jim Meyering  <jim@meyering.net>
61431
61432         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61433         so as to remain compatible with older compilers.
61434         Patch from Michael Deutschmann.
61435
61436 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61437
61438         * MODULES.html.sh (File system functions): Add openat.
61439
61440         * lib/openat.h (rpl_fstatat): New macro, if
61441         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61442         (fstatat): Define to rpl_fstatat under the same conditions,
61443         unless COMPILING_FSTATAT.
61444         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61445         seems to have the bug.
61446         * lib/fstatat.c: New file.
61447         * modules/openat (Files): Add it.
61448
61449 2006-11-20  Bruno Haible  <bruno@clisp.org>
61450
61451         * Makefile: New file.
61452
61453 2006-11-20  Jim Meyering  <jim@meyering.net>
61454
61455         The beginnings of syntax-related checks for gnulib.
61456         * lib/Makefile: New file.
61457         * lib/t-idcache: New script.  Ensure that the two halves of
61458         idcache.c stay in sync.
61459
61460         * lib/idcache.c: Adjust comments in user- and group- portions to
61461         be more accurate, and to be consistent with one another.
61462
61463 2006-11-20  Jim Meyering  <jim@meyering.net>
61464
61465         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61466         continue using the flexible array member (thus, this module performs
61467         half as many malloc calls), with the addition that...
61468         (getgroup, getuser): Consistently record a non-match via an empty
61469         "name" string, and map an empty string match to a NULL return value.
61470         * modules/idcache (Depends-on): Re-add flexmember.
61471
61472         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61473         (getuidbyname, getgroup, getgidbyname): Likewise.
61474
61475         Use cleaner syntax: NULL rather than 0.
61476         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61477
61478 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61481         It mishandled the case where the group was missing.
61482         Problem reported by Greg Schafer.
61483         * modules/idcache: Likewise.
61484
61485 2006-11-18  Jim Meyering  <jim@meyering.net>
61486
61487         * check-module (%exempt_header): Add exception for some
61488         conditionally-included headers.
61489
61490         * modules/i-ring (Depends-on): Add verify.
61491         (License): Change to LGPL.
61492
61493 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61494
61495         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61496         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61497         and inttostr.h.  Use snprintf rather than uinttostr, so that
61498         LGPLed code doesn't depend on GPLed.
61499
61500 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         * modules/inline (License): Change from GPL to LGPL.
61503
61504 2006-11-17  Jim Meyering  <jim@meyering.net>
61505
61506         * modules/d-type (License): Switch to LGPL.
61507
61508 2006-11-15  Bruno Haible  <bruno@clisp.org>
61509
61510         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61511
61512 2006-11-15  Eric Blake  <ebb9@byu.net>
61513
61514         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61515         the module dependency.
61516
61517 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61518             Bruno Haible  <bruno@clisp.org>
61519
61520         * gnulib-tool (func_create_testdir): Add license consistency check.
61521
61522 2006-11-15  Eric Blake  <ebb9@byu.net>
61523
61524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61525         random "(cached)" in configure output.
61526
61527 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61528
61529         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61530         test for conforming inttypes.h is both announced and cached.
61531
61532         * MODULES.html.sh (seen_modules, seen_files): New variables.
61533         (func_module): Rewrite to use a few less gnulib-tool and sed
61534         invocations.  Avoid a couple of quadratic algorithms for ...
61535         (missed_modules, missed_files): ... these, with ...
61536         (func_append, func_tmpdir): ... these new functions, from
61537         gnulib-tool.  Analogously, install traps for cleanup.
61538
61539         * tests/test-gc.c (main): Remove unused variables.
61540         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61541
61542 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * modules/inttostr (License): Change to LGPL.
61545
61546 2006-11-14  Eric Blake  <ebb9@byu.net>
61547
61548         * modules/tempname (License): Change to LGPL.
61549
61550 2006-11-14  Eric Blake  <ebb9@byu.net>
61551
61552         * doc/functions.texi (Function Portability): *printf functions on
61553         Cygwin now understand all POSIX size specifiers.
61554
61555 2006-11-14  Bruno Haible  <bruno@clisp.org>
61556
61557         * modules/c-ctype (License): Change to LGPL.
61558
61559 2006-11-12  Bruno Haible  <bruno@clisp.org>
61560
61561         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61562         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61563         for GNOME libraries, for which the include files are installed in
61564         subdirectories of $prefix/include.
61565
61566 2006-11-12  Bruno Haible  <bruno@clisp.org>
61567
61568         * m4/lib-link.m4: Require at least autoconf-2.54.
61569         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61570         name to underscores for the --with option.
61571
61572 2006-11-13  Bruno Haible  <bruno@clisp.org>
61573
61574         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61575         the tests directory.
61576         Reported by Ralf Wildenhues.
61577
61578 2006-11-13  Bruno Haible  <bruno@clisp.org>
61579
61580         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61581         (func_emit_initmacro_end): Undo the override here.
61582         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61583         Works around the famous automake error in coreutils.
61584
61585 2006-11-13  Eric Blake  <ebb9@byu.net>
61586
61587         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61588         element, not its node.
61589
61590 2006-11-12  Bruno Haible  <bruno@clisp.org>
61591
61592         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61593         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61594
61595 2006-11-12  Bruno Haible  <bruno@clisp.org>
61596
61597         * gnulib-tool: New option --local-symlink.
61598         (func_usage): Document it.
61599         (lsymbolic): New variable.
61600         (func_import, func_create_testdir): If --symlink was not specified,
61601         test whether --local-symlink was specified and the file comes from
61602         the local_gnulib_dir.
61603
61604 2006-11-12  Bruno Haible  <bruno@clisp.org>
61605
61606         * gnulib-tool (func_ln): New function.
61607         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61608
61609 2006-11-12  Bruno Haible  <bruno@clisp.org>
61610
61611         Finish support for source files in subdirectories.
61612         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61613         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61614         AUTOMAKE_OPTIONS.
61615         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61616
61617 2006-11-12  Bruno Haible  <bruno@clisp.org>
61618
61619         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61620         EXTRA_lib_SOURCES augmentation.
61621         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61622
61623 2006-11-12  Jim Meyering  <jim@meyering.net>
61624
61625         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61626         file descriptors.  This also averts a failure on systems with
61627         native openat support when a traversed directory lacks "x" access.
61628         * lib/fts_.h: Include "i-ring.h"
61629         (struct FTS) [fts_fd_ring]: New member.
61630         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61631         (FCHDIR): Add parentheses.
61632         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61633         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61634         When descending, rather than simply closing the previous
61635         fts_cwd_fd value, push that file descriptor onto the ring.
61636         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61637         (fts_open): Initialize the new fd_ring member.
61638         (fts_close): Clear the ring.
61639         (fts_safe_changedir): When possible, use our new fd_ring to skip
61640         the diropen and fstat and dev/ino comparison that would normally
61641         accompany a virtual `chdir ("..")'.
61642
61643         * modules/fts (Depends-on): Add i-ring.
61644         * modules/i-ring: New module.
61645         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61646         * m4/i-ring.m4: New file.
61647
61648 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61649
61650         * gnulib-tool (func_create_testdir): Fix replacement of
61651         `build-aux' in configure.ac.  Run autotools in gltests
61652         subdirectory.
61653         (func_create_testdir, func_create_megatestdir, test): There is
61654         no need for '--force' in most autotool invocations in a new
61655         tree.  Actually fail the whole test if any of the tools, or the
61656         configure or make stages fail.
61657
61658         Sync from Automake.
61659         * build-aux/gnupload: Revert last change.  Add pointer to upload
61660         instructions of the GNU Maintenance Instructions.
61661         Suggestion by Karl Berry.
61662
61663 2006-11-10  Jim Meyering  <jim@meyering.net>
61664
61665         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61666
61667 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61670         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61671         (bind_textdomain_codeset) [! ENABLE_NLS]:
61672         Evaluate all the arguments.  That way, callers get compatible behavior
61673         if the arguments have side effects.  Also, it avoids some GCC
61674         diagnostics in some cases; Joel E. Denny reported problems when Bison
61675         was configured with --enable-gcc-warnigs.
61676
61677 2006-11-10  Jim Meyering  <jim@meyering.net>
61678
61679         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61680         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61681         account.
61682
61683 2006-11-10  Jim Meyering  <jim@meyering.net>
61684
61685         * modules/inline: New file/module.
61686         * modules/xalloc (Files): Remove m4/inline.m4.
61687         (Depends-on): Add inline, instead.
61688         * modules/oset: Likewise.
61689         * modules/list: Likewise.
61690
61691 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61694         Problem reported by Matthew Woehlke.
61695
61696 2006-11-09  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/tempname.c (gen_tempname): Remove variant that invokes
61699         __gen_tempname.
61700         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61701         __gen_tempname.
61702
61703 2006-11-08  Bruno Haible  <bruno@clisp.org>
61704
61705         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61706         to 'yes' instead of 'cross-compiling'.
61707
61708 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * lib/quotearg.h (quotearg_free): New decl.
61711         * lib/quotearg.c (quotearg_free): New function.
61712         (slot0, nslots, slotvec0, slotvec):
61713         Now file-scope so that quotearg_free can get at them.
61714
61715 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61716
61717         Sync from Automake.
61718         * build-aux/gnupload: Add missing 'gnu' to example URL.
61719         Report by Karl Berry.
61720
61721 2006-11-08  Bruno Haible  <bruno@clisp.org>
61722
61723         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61724         Suggested by Paul Eggert.
61725
61726 2006-11-08  Jim Meyering  <jim@meyering.net>
61727
61728         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61729         It's already included if !_LIBC.
61730         (fts_safe_changedir): Add a comment.
61731
61732 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61735         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61736         Matthew Woehlke.
61737
61738         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61739         definitions up, to avoid colliding with change below.
61740         (static_inline) [HAVE_INLINE]: New macro.
61741         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61742         Provide extern decls when !HAVE_INLINE.  Do not define unless
61743         static_inline is defined, either by us or by xmalloc.c.  Use
61744         static_inline rather than static inline.
61745         (XCALLOC): Optimize sizeof(T) = 1 case.
61746         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61747
61748 2006-11-07  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61751         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61752         AC_C_INLINE.
61753         * modules/xalloc (Files): Add m4/inline.m4.
61754
61755 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61756
61757         * README: Fix typo.
61758         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61759         (Miscellanous Notes): ...from this.
61760
61761 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61764         Mention that offsetof should be used instead of sizeof.
61765         From Bruno Haible.
61766
61767 2006-11-07  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61770
61771 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61772
61773         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61774         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61775         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61776         (gl_tree_add_before, gl_tree_add_after):
61777         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61778         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61779         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61780         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61781         (gl_linked_add_after, gl_linked_add_at): Likewise.
61782         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61783         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61784         (gl_tree_add_before, gl_tree_add_after): Likewise.
61785         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61786         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61787         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61788
61789 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61790
61791         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61792
61793 2006-11-06  Bruno Haible  <bruno@clisp.org>
61794
61795         * m4/inline.m4: New file.
61796         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61797         * modules/list (Files): Add m4/inline.m4.
61798         * modules/oset (Files): Likewise.
61799
61800 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         * lib/idcache.c: Include <stddef.h>, for offsetof.
61803         (struct userid.name): Change from char * to a flexible array member.
61804         All uses changed.
61805         * modules/idcache (Depends-on): Add flexmember.
61806
61807         * MODULES.html.sh (Core language properties): New module flexmember.
61808         * modules/flexmember, m4/flexmember.m4: New files.
61809
61810         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61811         inline functions that are identical with the old xnmalloc_inline,
61812         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61813         that we can avoid some unnecessary integer multiplications and
61814         divisions in the common case where the element size is known at
61815         compile time.
61816         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61817         needed.
61818         (xnboundedmalloc): Remove.
61819         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61820         arguments, for consistency with rest of this header.
61821         (xcharalloc): Rewrite using XNMALLOC.
61822         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61823         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61824         versions have been moved to lib/xalloc.h and renamed to be the
61825         non-*_inline versions.
61826         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61827         and xnrealloc functions, since those functions are now inline and
61828         now call us.
61829         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61830         renaming described above.
61831         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61832         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61833         captures the dependency in AC_C_INLINE.
61834
61835         New module canonicalize-lgpl, proposed by Charles Wilson in
61836         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61837         with a few small changes afterwards.
61838         * MODULES.html.sh (File system functions): New module
61839         canonicalize-lgpl.
61840         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61841         and canonicalize_file_name.
61842         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61843         * modules/canonicalize-lgpl: New files.
61844
61845 2006-11-05  Bruno Haible  <bruno@clisp.org>
61846
61847         * gnulib-tool (func_import, func_create_testdir): Create directories
61848         also for files in subdirectories of lib/.
61849
61850 2006-11-05  Bruno Haible  <bruno@clisp.org>
61851
61852         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61853         ANSI C compliant.
61854
61855 2006-11-03  Bruno Haible  <bruno@clisp.org>
61856
61857         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61858         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61859         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61860         (xnboundedmalloc): New inline function.
61861         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61862         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61863         xmalloc.
61864         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61865         xmalloc.
61866         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61867         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61868         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61869         xmalloc.
61870         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61871         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61872         xmalloc.
61873         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61874         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61875         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61876         xmalloc.
61877         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61878         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61879         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61880         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61881         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61882         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61883         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61884
61885 2006-11-03  Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/c-ctype.h [C++]: Define functions without name mangling.
61888         * lib/fwriteerror.h [C++]: Likewise.
61889         * lib/gcd.h [C++]: Likewise.
61890         * lib/linebreak.h [C++]: Likewise.
61891
61892 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61895         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61896         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61897         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61898         Check for functions and headers just once.
61899         Check for declaration of canonicalize_file_name.
61900         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61901
61902 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61903
61904         * gnulib-tool (func_import): Fix typo in actioncmd.
61905
61906 2006-11-02  Bruno Haible  <bruno@clisp.org>
61907
61908         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61909         newline sequence in the Makefile.am snippet as a space, like "make"
61910         does.
61911         Reported by Roger Persson <perrog@gmail.com>.
61912
61913 2006-11-01  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61916         already declared in <string.h>.
61917         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61918
61919 2006-11-01  Bruno Haible  <bruno@clisp.org>
61920
61921         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61922         * lib/strcase.h: Include <string.h>.
61923         (strcasecmp): Define to rpl_strcasecmp here.
61924
61925 2006-11-01  Bruno Haible  <bruno@clisp.org>
61926
61927         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61928
61929 2006-11-01  Eric Blake  <ebb9@byu.net>
61930
61931         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61932
61933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61934
61935 2006-10-29  Bruno Haible  <bruno@clisp.org>
61936
61937         Make it compile in C++ mode.
61938         * lib/full-write.c (full_rw): Add a cast.
61939
61940 2006-11-01  Bruno Haible  <bruno@clisp.org>
61941
61942         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61943         be POSIX compliant.
61944         Reported by Roger Persson <perrog@gmail.com>.
61945
61946 2006-11-01  Eric Blake  <ebb9@byu.net>
61947
61948         * lib/getopt_.h: Fix comments.
61949
61950 2006-10-31  Eric Blake  <ebb9@byu.net>
61951
61952         * modules/tmpdir (Depends-on): Add sys_stat.
61953         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61954         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61955         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61956         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61957         tempname.
61958
61959 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         Avoid some C++ diagnostics reported by Bruno Haible.
61962         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61963         xmalloc.
61964         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61965         (struct slotvec): Move to top level.
61966         (quotearg_n_options): Rewrite to avoid xmalloc.
61967         * lib/xalloc.h (xcharalloc): New function.
61968         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61969         [defined __cplusplus]: Add function template that provides result
61970         type propagation.  This part of the change is from Bruno Haible.
61971
61972 2006-10-29  Bruno Haible  <bruno@clisp.org>
61973
61974         Make it compile in C++ mode.
61975         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61976         * lib/strnlen1.c (strnlen1): Cast memchr result.
61977         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61978         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61979         (create_temp_dir): Rename local variable 'template'.
61980         (compile_csharp_using_sscli): Add cast.
61981         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61982         * lib/findprog.c (find_in_path): Likewise.
61983         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61984         * lib/wait-process.c (register_slave_subprocess): Likewise.
61985
61986 2006-10-22  Bruno Haible  <bruno@clisp.org>
61987
61988         * modules/tsearch: New file.
61989         * lib/tsearch.h: New file.
61990         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61991         * m4/tsearch.m4: New file.
61992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61993
61994 2006-10-29  Eric Blake  <ebb9@byu.net>
61995
61996         * lib/arcfour.c: Assume config.h.
61997         * lib/arctwo.c: Likewise.
61998         * lib/base64.c: Likewise.
61999         * lib/check-version.c: Likewise.
62000         * lib/crc.c: Likewise.
62001         * lib/des.c: Likewise.
62002         * lib/gc-gnulib.c: Likewise.
62003         * lib/gc-libgcrypt.c: Likewise.
62004         * lib/gc-pbkdf2-sha1.c: Likewise.
62005         * lib/getaddrinfo.c: Likewise.
62006         * lib/getdelim.c: Likewise.
62007         * lib/getline.c: Likewise.
62008         * lib/hmac-md5.c: Likewise.
62009         * lib/hmac-sha1.c: Likewise.
62010         * lib/iconvme.c: Likewise.
62011         * lib/md2.c: Likewise.
62012         * lib/md4.c: Likewise.
62013         * lib/memxor.c: Likewise.
62014         * lib/read-file.c: Likewise.
62015         * lib/readline.c: Likewise.
62016         * lib/rijndael-alg-fst.c: Likewise.
62017         * lib/rijndael-api-fst.c: Likewise.
62018         * lib/xgetdomainname.c: Likewise.
62019
62020 2006-10-28  Eric Blake  <ebb9@byu.net>
62021
62022         * lib/xstrndup.c: Assume config.h.
62023
62024 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62025
62026         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62027         stat-macros.h is now for our own macros, whereas stat_h is for
62028         macros in the <sys/stat.h> name space.
62029         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62030         (STAT_MACROS_H): Remove.
62031         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62032         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62033         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62034         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62035         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62036         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62037         Move these macros to ...
62038         * lib/stat_.h: here.  Don't include stat-macros.h.
62039         * lib/canonicalize.c: Don't include stat-macros.h.
62040         * lib/chown.c: Likewise.
62041         * lib/euidaccess.c: Likewise.
62042         * lib/file-type.c: Likewise.
62043         * lib/filemode.c: Likewise.
62044         * lib/glob.c: Likewise.
62045         * lib/isapipe.c: Likewise.
62046         * lib/lchown.c: Likewise.
62047         * lib/lstat.c: Likewise.
62048         * lib/mkdir-p.c: Likewise.
62049         * lib/rmdir.c: Likewise.
62050         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62052         unless mkdir isn't declared, to speed up 'configure'.
62053         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62054         would define all the S_* symbols.
62055         * modules/canonicalize (Depends-on):
62056         Depend on sys_stat, not stat-macros.
62057         * modules/chown: Likewise.
62058         * modules/euidaccess: Likewise.
62059         * modules/filemode: Likewise.
62060         * modules/file-type: Likewise.
62061         * modules/glob: Likewise.
62062         * modules/isapipe: Likewise.
62063         * modules/lchown: Likewise.
62064         * modules/lstat: Likewise.
62065         * modules/mkancesdirs: Likewise.
62066         * modules/rmdir: Likewise.
62067         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62068         * modules/modechange: Likewise.
62069         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62070         (configure.ac): Remove gl_STAT_MACROS.
62071         * modules/sys_stat (Depends-on): Remove stat-macros.
62072
62073 2006-10-27  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/signed.m4: Remove file.
62076         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62077         invocation.
62078         * modules/vasnprintf (Files): Remove m4/signed.m4.
62079
62080 2006-10-27  Bruno Haible  <bruno@clisp.org>
62081
62082         Update to GNU gettext 0.16.
62083         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62084         m4/inttypes-h.m4, m4/signed.m4.
62085         * m4/gettext.m4: Update to GNU gettext 0.16.
62086         * m4/intl.m4: New file, from GNU gettext.
62087         * m4/intldir.m4: New file, from GNU gettext.
62088         * config/srclist.txt: Update
62089
62090 2006-10-27  Eric Blake  <ebb9@byu.net>
62091
62092         * MODULES.html.sh: Document tempname.
62093         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62094         dependencies.
62095         (Files): Move lib/tempname.c...
62096         * modules/tempname: ...to this new module.
62097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62098         (gl_PREREQ_TEMPNAME): Move...
62099         * m4/tempname.m4: ...to this new file.
62100         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62101         * modules/sys_stat (Depends-on): Add stat-macros.
62102         * lib/stat_.h (includes): Pick up stat macros.
62103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62104         if stat macros are broken.
62105         * lib/tempname.c (includes): No need to include "stat-macros.h".
62106         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62107         (direxists, __path_search) [!_LIBC]: Don't compile these in
62108         gnulib; the tmpdir module covers that.
62109         * lib/tempname.h: New file.
62110
62111 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62112
62113         * COPYING: Explain how gnulib-tool converts licence headers.
62114         Almost all wording by Eric Blake.
62115
62116 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         * lib/mbchar.h (is_basic_table): Make read-only.
62119         * lib/mbchar.c (is_basic_table): Likewise.
62120         Reported by John Darrington.
62121
62122 2006-10-25  Bruno Haible  <bruno@clisp.org>
62123
62124         * lib/progname.h (set_program_name): Undefine before defining.
62125
62126 2006-10-25  Bruno Haible  <bruno@clisp.org>
62127
62128         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62129         false for non-gcc C++ compilers.
62130         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62131
62132 2006-10-24  Bruno Haible  <bruno@clisp.org>
62133
62134         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62135         iconv implementations like Irix iconv.
62136
62137 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * modules/vararrays: New file.
62140         * m4/vararrays.m4: New file, taken from diffutils.
62141         * MODULES.html.sh: New module vararrays.
62142
62143 2006-10-24  Karl Berry  <karl@gnu.org>
62144
62145         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62146         Don't call GNU Unix.
62147
62148 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62149
62150         * users.txt: Add Libtool.
62151
62152         Sync from Libtool:
62153
62154         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62157         to gnulib's policy of including config.h unconditionally.
62158
62159 2006-10-24  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/wcwidth (Files): Add m4/wint_t.m4.
62162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62163         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62164
62165 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62168         to pacify GCC with some -W flags enabled.  Problem reported by
62169         Bruno Haible.
62170
62171 2006-10-24  Jim Meyering  <jim@meyering.net>
62172
62173         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62174         Reported by Karl Berry.
62175
62176 2006-10-23  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62179
62180 2006-10-24  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/gl_list.h: Use C comment style, not C++ comment style.
62183
62184 2006-10-23  Eric Blake  <ebb9@byu.net>
62185
62186         * lib/getaddrinfo.c (includes): Add missing include.
62187
62188 2006-10-23  Bruno Haible  <bruno@clisp.org>
62189             Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         Ability to rename obstack_free.
62192         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62193         obstack_free.
62194         (obstack_free): Invoke the __obstack_free macro.
62195         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62196
62197 2006-10-23  Bruno Haible  <bruno@clisp.org>
62198             Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62201         __argc, __argv from the declaration. (They are defined as macros on
62202         mingw.)
62203
62204 2006-10-22  Bruno Haible  <bruno@clisp.org>
62205
62206         * doc/gnulib-intro.texi: New file.
62207         * doc/gnulib.texi: Include it.
62208
62209 2006-10-21  Bruno Haible  <bruno@clisp.org>
62210
62211         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62212         "Introduction", "Miscellanous Notes", "Particular Modules".
62213
62214 2006-10-21  Bruno Haible  <bruno@clisp.org>
62215
62216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62217         Change mostlyclean-local rule to avoid sh syntax error from bash
62218         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62219
62220 2006-10-23  Jim Meyering  <jim@meyering.net>
62221
62222         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62223         in place of snprintf.
62224
62225         * modules/inttostr (Files): Add lib/uinttostr.c.
62226         * lib/uinttostr.c (inttostr): New file/function.
62227         * lib/inttostr.h (uinttostr): Declare.
62228         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62229         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62230         Add uinttostr.
62231         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62232
62233 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62234
62235         * lib/canonicalize.c (ELOOP): Define if not already defined.
62236         Problem reported by Bruno Haible in
62237         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62238
62239 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62242         Problem reported by Perry Smith and Ville Laurikari.
62243
62244         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62245         uses.
62246
62247 2006-10-19  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62250         for mingw.
62251
62252 2006-10-19  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62255         Needed for mingw.
62256
62257 2006-10-19  Bruno Haible  <bruno@clisp.org>
62258
62259         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62260
62261 2006-10-19  Bruno Haible  <bruno@clisp.org>
62262
62263         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62264         it.
62265
62266 2006-10-19  Bruno Haible  <bruno@clisp.org>
62267
62268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62269         invocation.
62270
62271 2006-10-19  Bruno Haible  <bruno@clisp.org>
62272
62273         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62274         mountlist by default.
62275
62276 2006-10-16  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/c-strstr.c: Include c-strstr.h.
62279
62280 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62281
62282         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62283         in a slash.
62284
62285 2006-10-18  Bruno Haible  <bruno@clisp.org>
62286
62287         * lib/lock.h [C++]: Wrap definitions in extern "C".
62288
62289 2006-10-18  Bruno Haible  <bruno@clisp.org>
62290
62291         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62292         gl_LIBOBJS list.
62293
62294 2006-10-18  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62297
62298 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         * lib/xstrtol.h: Include gettext.h.
62301         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62302         Problem reported by Eric Blake.
62303         * modules/xstrtol (Depends-on): Add gettext-h.
62304
62305 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62306
62307         * lib/strftime.c (advance): New macro.
62308         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62309         incomplete type, so you can't add 0 to it.  Problem and patch
62310         reported by Eelco Dolstra for dietlibc.
62311
62312 2006-10-18  Jim Meyering  <jim@meyering.net>
62313
62314         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62315         type for a local, and rename it: s/up/user_proc/.
62316
62317 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62318
62319         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62320         READ_UTMP_USER_PROCESS.
62321         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62322
62323 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62326         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62327
62328 2006-10-17  Eric Blake  <ebb9@byu.net>
62329
62330         * lib/sigprocmask.c (sigprocmask): Fix typo.
62331
62332         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62333
62334         * modules/clean-temp (Makefile.am): Don't add to make output...
62335         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62336         config.h.
62337
62338 2006-10-17  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62341         differently if DEFAULT_TEXT_DOMAIN is set.
62342
62343 2006-10-16  Bruno Haible  <bruno@clisp.org>
62344
62345         * lib/clean-temp.c: Include fwriteerror.h.
62346
62347 2006-10-16  Bruno Haible  <bruno@clisp.org>
62348
62349         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62350
62351 2006-10-16  Bruno Haible  <bruno@clisp.org>
62352
62353         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62354         * lib/sigprocmask.h: Include <sys/types.h>.
62355         (sigset_t): Use the system's definition if present.
62356
62357 2006-10-17  Eric Blake  <ebb9@byu.net>
62358
62359         * lib/xvasprintf.c (includes): Assume config.h.
62360         * lib/xasprintf.c (includes): Likewise.
62361
62362 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62365         at least as wide as intmax_t.
62366
62367 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62368
62369         (Imported from Automake.)
62370         * build-aux/gnupload: Update to version 1.1 of directive file.
62371
62372 2006-10-16  Eric Blake  <ebb9@byu.net>
62373
62374         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62375         match Automake 1.10a.
62376
62377 2006-10-14  Bruno Haible  <bruno@clisp.org>
62378
62379         * modules/sigprocmask: New file.
62380         * lib/sigprocmask.h: New file.
62381         * lib/sigprocmask.c: New file.
62382         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62383         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62384         request sigprocmask.o.
62385         (gl_PREREQ_SIGPROCMASK): New macro.
62386         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62387         (Depends-on): Add sigprocmask.
62388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62389         gt_SIGNALBLOCKING. Test for 'raise' only once.
62390         * lib/fatal-signal.c: Include sigprocmask.h.
62391         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62392         unblock_fatal_signals): Define always.
62393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62394         sigprocmask.
62395
62396 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62397
62398         Sync from Automake.
62399         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62400         which incorrectly sets the mode of an existing destination
62401         directory.  In some cases the unpatched install-sh could do the
62402         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62403         system.  We hope this is rare in practice, but it's clearly worth
62404         fixing.  Problem reported by Alex Unleashed in
62405         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62406         Also, don't bother to check for -m bugs unless we're using -m;
62407         suggested by Stepan Kasal.
62408
62409 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62410
62411         Sync from Automake.
62412         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62413         `-c' flag, so they appear at the same position as in %FASTDEP%
62414         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62415         which ignores unknown options only after the first non-option.
62416         Bug report against M4 by Nelson H. F. Beebe.
62417
62418 2006-10-13  Jim Meyering  <jim@meyering.net>
62419
62420         Fix a bug in yesterday's change.
62421         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62422         p->fts_statp->st_dev would be used uninitialized.
62423         Ensures that we always call fts_stat on the very first entry.
62424         Miklos Szeredi reported that find -xdev stopped working.
62425
62426 2006-10-12  Bruno Haible  <bruno@clisp.org>
62427
62428         * gnulib-tool (func_get_automake_snippet): Append an automatically
62429         computed EXTRA_DIST augmentation.
62430         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62431         * modules/alloca-opt (Makefile.am): Likewise.
62432         * modules/allocsa (Makefile.am): Likewise.
62433         * modules/arcfour (Makefile.am): Likewise.
62434         * modules/arctwo (Makefile.am): Likewise.
62435         * modules/argmatch (Makefile.am): Likewise.
62436         * modules/argz (Makefile.am): Likewise.
62437         * modules/atexit (Makefile.am): Likewise.
62438         * modules/backupfile (Makefile.am): Likewise.
62439         * modules/byteswap (Makefile.am): Likewise.
62440         * modules/c-strtod (Makefile.am): Likewise.
62441         * modules/c-strtold (Makefile.am): Likewise.
62442         * modules/calloc (Makefile.am): Likewise.
62443         * modules/canon-host (Makefile.am): Likewise.
62444         * modules/canonicalize (Makefile.am): Likewise.
62445         * modules/chdir-long (Makefile.am): Likewise.
62446         * modules/chdir-safer (Makefile.am): Likewise.
62447         * modules/check-version (Makefile.am): Likewise.
62448         * modules/chown (Makefile.am): Likewise.
62449         * modules/cloexec (Makefile.am): Likewise.
62450         * modules/close-stream (Makefile.am): Likewise.
62451         * modules/closeout (Makefile.am): Likewise.
62452         * modules/crc (Makefile.am): Likewise.
62453         * modules/csharpexec (Makefile.am): Likewise.
62454         * modules/cycle-check (Makefile.am): Likewise.
62455         * modules/des (Makefile.am): Likewise.
62456         * modules/dev-ino (Makefile.am): Likewise.
62457         * modules/dirfd (Makefile.am): Likewise.
62458         * modules/dirname (Makefile.am): Likewise.
62459         * modules/dup2 (Makefile.am): Likewise.
62460         * modules/eealloc (Makefile.am): Likewise.
62461         * modules/error (Makefile.am): Likewise.
62462         * modules/euidaccess (Makefile.am): Likewise.
62463         * modules/exclude (Makefile.am): Likewise.
62464         * modules/exitfail (Makefile.am): Likewise.
62465         * modules/fcntl-safer (Makefile.am): Likewise.
62466         * modules/fcntl (Makefile.am): Likewise.
62467         * modules/file-type (Makefile.am): Likewise.
62468         * modules/fileblocks (Makefile.am): Likewise.
62469         * modules/filemode (Makefile.am): Likewise.
62470         * modules/filenamecat (Makefile.am): Likewise.
62471         * modules/fnmatch (Makefile.am): Likewise.
62472         * modules/fopen-safer (Makefile.am): Likewise.
62473         * modules/fpending (Makefile.am): Likewise.
62474         * modules/fprintftime (Makefile.am): Likewise.
62475         * modules/free (Makefile.am): Likewise.
62476         * modules/fsusage (Makefile.am): Likewise.
62477         * modules/ftruncate (Makefile.am): Likewise.
62478         * modules/fts (Makefile.am): Likewise.
62479         * modules/gc-arcfour (Makefile.am): Likewise.
62480         * modules/gc-des (Makefile.am): Likewise.
62481         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62482         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62483         * modules/gc-md4 (Makefile.am): Likewise.
62484         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62485         * modules/gc-sha1 (Makefile.am): Likewise.
62486         * modules/gc (Makefile.am): Likewise.
62487         * modules/getaddrinfo (Makefile.am): Likewise.
62488         * modules/getcwd (Makefile.am): Likewise.
62489         * modules/getdelim (Makefile.am): Likewise.
62490         * modules/getdomainname (Makefile.am): Likewise.
62491         * modules/getgroups (Makefile.am): Likewise.
62492         * modules/gethostname (Makefile.am): Likewise.
62493         * modules/gethrxtime (Makefile.am): Likewise.
62494         * modules/getline (Makefile.am): Likewise.
62495         * modules/getloadavg (Makefile.am): Likewise.
62496         * modules/getlogin_r (Makefile.am): Likewise.
62497         * modules/getndelim2 (Makefile.am): Likewise.
62498         * modules/getopt (Makefile.am): Likewise.
62499         * modules/getpagesize (Makefile.am): Likewise.
62500         * modules/getpass-gnu (Makefile.am): Likewise.
62501         * modules/getpass (Makefile.am): Likewise.
62502         * modules/getsubopt (Makefile.am): Likewise.
62503         * modules/gettime (Makefile.am): Likewise.
62504         * modules/gettimeofday (Makefile.am): Likewise.
62505         * modules/getugroups (Makefile.am): Likewise.
62506         * modules/getusershell (Makefile.am): Likewise.
62507         * modules/glob (Makefile.am): Likewise.
62508         * modules/group-member (Makefile.am): Likewise.
62509         * modules/hard-locale (Makefile.am): Likewise.
62510         * modules/hash (Makefile.am): Likewise.
62511         * modules/hmac-md5 (Makefile.am): Likewise.
62512         * modules/hmac-sha1 (Makefile.am): Likewise.
62513         * modules/human (Makefile.am): Likewise.
62514         * modules/idcache (Makefile.am): Likewise.
62515         * modules/imaxabs (Makefile.am): Likewise.
62516         * modules/imaxdiv (Makefile.am): Likewise.
62517         * modules/inet_ntop (Makefile.am): Likewise.
62518         * modules/inet_pton (Makefile.am): Likewise.
62519         * modules/intprops (Makefile.am): Likewise.
62520         * modules/inttostr (Makefile.am): Likewise.
62521         * modules/inttypes (Makefile.am): Likewise.
62522         * modules/isapipe (Makefile.am): Likewise.
62523         * modules/javaversion (Makefile.am): Likewise.
62524         * modules/lchmod (Makefile.am): Likewise.
62525         * modules/lchown (Makefile.am): Likewise.
62526         * modules/localcharset (Makefile.am): Likewise.
62527         * modules/long-options (Makefile.am): Likewise.
62528         * modules/lstat (Makefile.am): Likewise.
62529         * modules/malloc (Makefile.am): Likewise.
62530         * modules/mathl (Makefile.am): Likewise.
62531         * modules/mbchar (Makefile.am): Likewise.
62532         * modules/md2 (Makefile.am): Likewise.
62533         * modules/md4 (Makefile.am): Likewise.
62534         * modules/md5 (Makefile.am): Likewise.
62535         * modules/memcasecmp (Makefile.am): Likewise.
62536         * modules/memchr (Makefile.am): Likewise.
62537         * modules/memcmp (Makefile.am): Likewise.
62538         * modules/memcoll (Makefile.am): Likewise.
62539         * modules/memcpy (Makefile.am): Likewise.
62540         * modules/memmem (Makefile.am): Likewise.
62541         * modules/memmove (Makefile.am): Likewise.
62542         * modules/mempcpy (Makefile.am): Likewise.
62543         * modules/memrchr (Makefile.am): Likewise.
62544         * modules/memset (Makefile.am): Likewise.
62545         * modules/memxor (Makefile.am): Likewise.
62546         * modules/mkancesdirs (Makefile.am): Likewise.
62547         * modules/mkdir-p (Makefile.am): Likewise.
62548         * modules/mkdir (Makefile.am): Likewise.
62549         * modules/mkdtemp (Makefile.am): Likewise.
62550         * modules/mkstemp (Makefile.am): Likewise.
62551         * modules/mktime (Makefile.am): Likewise.
62552         * modules/modechange (Makefile.am): Likewise.
62553         * modules/mountlist (Makefile.am): Likewise.
62554         * modules/nanosleep (Makefile.am): Likewise.
62555         * modules/obstack (Makefile.am): Likewise.
62556         * modules/openat (Makefile.am): Likewise.
62557         * modules/pagealign_alloc (Makefile.am): Likewise.
62558         * modules/pathmax (Makefile.am): Likewise.
62559         * modules/physmem (Makefile.am): Likewise.
62560         * modules/poll (Makefile.am): Likewise.
62561         * modules/posixtm (Makefile.am): Likewise.
62562         * modules/posixver (Makefile.am): Likewise.
62563         * modules/putenv (Makefile.am): Likewise.
62564         * modules/quote (Makefile.am): Likewise.
62565         * modules/quotearg (Makefile.am): Likewise.
62566         * modules/raise (Makefile.am): Likewise.
62567         * modules/read-file (Makefile.am): Likewise.
62568         * modules/readline (Makefile.am): Likewise.
62569         * modules/readlink (Makefile.am): Likewise.
62570         * modules/readtokens (Makefile.am): Likewise.
62571         * modules/readutmp (Makefile.am): Likewise.
62572         * modules/realloc (Makefile.am): Likewise.
62573         * modules/regex (Makefile.am): Likewise.
62574         * modules/rename-dest-slash (Makefile.am): Likewise.
62575         * modules/rename (Makefile.am): Likewise.
62576         * modules/rijndael (Makefile.am): Likewise.
62577         * modules/rmdir (Makefile.am): Likewise.
62578         * modules/rpmatch (Makefile.am): Likewise.
62579         * modules/safe-read (Makefile.am): Likewise.
62580         * modules/safe-write (Makefile.am): Likewise.
62581         * modules/same-inode (Makefile.am): Likewise.
62582         * modules/same (Makefile.am): Likewise.
62583         * modules/save-cwd (Makefile.am): Likewise.
62584         * modules/savedir (Makefile.am): Likewise.
62585         * modules/setenv (Makefile.am): Likewise.
62586         * modules/settime (Makefile.am): Likewise.
62587         * modules/sha1 (Makefile.am): Likewise.
62588         * modules/sig2str (Makefile.am): Likewise.
62589         * modules/snprintf (Makefile.am): Likewise.
62590         * modules/stat-macros (Makefile.am): Likewise.
62591         * modules/stat-time (Makefile.am): Likewise.
62592         * modules/stdbool (Makefile.am): Likewise.
62593         * modules/stdint (Makefile.am): Likewise.
62594         * modules/stdlib-safer (Makefile.am): Likewise.
62595         * modules/stpcpy (Makefile.am): Likewise.
62596         * modules/stpncpy (Makefile.am): Likewise.
62597         * modules/strcase (Makefile.am): Likewise.
62598         * modules/strcasestr (Makefile.am): Likewise.
62599         * modules/strchrnul (Makefile.am): Likewise.
62600         * modules/strcspn (Makefile.am): Likewise.
62601         * modules/strdup (Makefile.am): Likewise.
62602         * modules/strerror (Makefile.am): Likewise.
62603         * modules/strftime (Makefile.am): Likewise.
62604         * modules/strndup (Makefile.am): Likewise.
62605         * modules/strnlen (Makefile.am): Likewise.
62606         * modules/strpbrk (Makefile.am): Likewise.
62607         * modules/strsep (Makefile.am): Likewise.
62608         * modules/strstr (Makefile.am): Likewise.
62609         * modules/strtod (Makefile.am): Likewise.
62610         * modules/strtoimax (Makefile.am): Likewise.
62611         * modules/strtok_r (Makefile.am): Likewise.
62612         * modules/strtol (Makefile.am): Likewise.
62613         * modules/strtoll (Makefile.am): Likewise.
62614         * modules/strtoul (Makefile.am): Likewise.
62615         * modules/strtoull (Makefile.am): Likewise.
62616         * modules/strtoumax (Makefile.am): Likewise.
62617         * modules/strverscmp (Makefile.am): Likewise.
62618         * modules/sys_socket (Makefile.am): Likewise.
62619         * modules/sys_stat (Makefile.am): Likewise.
62620         * modules/sysexits (Makefile.am): Likewise.
62621         * modules/time_r (Makefile.am): Likewise.
62622         * modules/timegm (Makefile.am): Likewise.
62623         * modules/timespec (Makefile.am): Likewise.
62624         * modules/tmpfile-safer (Makefile.am): Likewise.
62625         * modules/trim (Makefile.am): Likewise.
62626         * modules/unistd-safer (Makefile.am): Likewise.
62627         * modules/unlinkdir (Makefile.am): Likewise.
62628         * modules/unlocked-io (Makefile.am): Likewise.
62629         * modules/userspec (Makefile.am): Likewise.
62630         * modules/utime (Makefile.am): Likewise.
62631         * modules/utimecmp (Makefile.am): Likewise.
62632         * modules/utimens (Makefile.am): Likewise.
62633         * modules/vasnprintf (Makefile.am): Likewise.
62634         * modules/vasprintf (Makefile.am): Likewise.
62635         * modules/vsnprintf (Makefile.am): Likewise.
62636         * modules/xalloc (Makefile.am): Likewise.
62637         * modules/xgetcwd (Makefile.am): Likewise.
62638         * modules/xnanosleep (Makefile.am): Likewise.
62639         * modules/xreadlink (Makefile.am): Likewise.
62640         * modules/xstrtod (Makefile.am): Likewise.
62641         * modules/xstrtol (Makefile.am): Likewise.
62642         * modules/xstrtold (Makefile.am): Likewise.
62643         * modules/yesno (Makefile.am): Likewise.
62644         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62645
62646 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * modules/error (Makefile.am): Distribute files through
62649         EXTRA_DIST, not lib_SOURCES.
62650
62651 2006-10-12  Eric Blake  <ebb9@byu.net>
62652
62653         * modules/error (Makefile.am): Distribute files in /lib.
62654         * modules/obstack (Makefile.am): Likewise.
62655
62656 2006-10-12  Bruno Haible  <bruno@clisp.org>
62657
62658         * modules/acl (Makefile.am): Distribute all files in lib/ through
62659         EXTRA_DIST.
62660         * modules/arcfour (Makefile.am): Likewise.
62661         * modules/arctwo (Makefile.am): Likewise.
62662         * modules/argmatch (Makefile.am): Likewise.
62663         * modules/argz (Makefile.am): Likewise.
62664         * modules/atexit (Makefile.am): Likewise.
62665         * modules/backupfile (Makefile.am): Likewise.
62666         * modules/c-strtod (Makefile.am): Likewise.
62667         * modules/c-strtold (Makefile.am): Likewise.
62668         * modules/calloc (Makefile.am): Likewise.
62669         * modules/canon-host (Makefile.am): Likewise.
62670         * modules/canonicalize (Makefile.am): Likewise.
62671         * modules/chdir-long (Makefile.am): Likewise.
62672         * modules/chdir-safer (Makefile.am): Likewise.
62673         * modules/check-version (Makefile.am): Likewise.
62674         * modules/chown (Makefile.am): Likewise.
62675         * modules/cloexec (Makefile.am): Likewise.
62676         * modules/close-stream (Makefile.am): Likewise.
62677         * modules/closeout (Makefile.am): Likewise.
62678         * modules/crc (Makefile.am): Likewise.
62679         * modules/cycle-check (Makefile.am): Likewise.
62680         * modules/des (Makefile.am): Likewise.
62681         * modules/dirfd (Makefile.am): Likewise.
62682         * modules/dirname (Makefile.am): Likewise.
62683         * modules/dup2 (Makefile.am): Likewise.
62684         * modules/euidaccess (Makefile.am): Likewise.
62685         * modules/exclude (Makefile.am): Likewise.
62686         * modules/exitfail (Makefile.am): Likewise.
62687         * modules/fcntl-safer (Makefile.am): Likewise.
62688         * modules/file-type (Makefile.am): Likewise.
62689         * modules/fileblocks (Makefile.am): Likewise.
62690         * modules/filemode (Makefile.am): Likewise.
62691         * modules/filenamecat (Makefile.am): Likewise.
62692         * modules/fnmatch (Makefile.am): Likewise.
62693         * modules/fopen-safer (Makefile.am): Likewise.
62694         * modules/fpending (Makefile.am): Likewise.
62695         * modules/fprintftime (Makefile.am): Likewise.
62696         * modules/free (Makefile.am): Likewise.
62697         * modules/fsusage (Makefile.am): Likewise.
62698         * modules/ftruncate (Makefile.am): Likewise.
62699         * modules/fts (Makefile.am): Likewise.
62700         * modules/gc (Makefile.am): Likewise.
62701         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62702         * modules/getaddrinfo (Makefile.am): Likewise.
62703         * modules/getcwd (Makefile.am): Likewise.
62704         * modules/getdelim (Makefile.am): Likewise.
62705         * modules/getdomainname (Makefile.am): Likewise.
62706         * modules/getgroups (Makefile.am): Likewise.
62707         * modules/gethostname (Makefile.am): Likewise.
62708         * modules/gethrxtime (Makefile.am): Likewise.
62709         * modules/getline (Makefile.am): Likewise.
62710         * modules/getloadavg (Makefile.am): Likewise.
62711         * modules/getlogin_r (Makefile.am): Likewise.
62712         * modules/getopt (Makefile.am): Likewise.
62713         * modules/getpass (Makefile.am): Likewise.
62714         * modules/getpass-gnu (Makefile.am): Likewise.
62715         * modules/getsubopt (Makefile.am): Likewise.
62716         * modules/gettime (Makefile.am): Likewise.
62717         * modules/gettimeofday (Makefile.am): Likewise.
62718         * modules/getugroups (Makefile.am): Likewise.
62719         * modules/getusershell (Makefile.am): Likewise.
62720         * modules/glob (Makefile.am): Likewise.
62721         * modules/group-member (Makefile.am): Likewise.
62722         * modules/hard-locale (Makefile.am): Likewise.
62723         * modules/hash (Makefile.am): Likewise.
62724         * modules/hmac-md5 (Makefile.am): Likewise.
62725         * modules/hmac-sha1 (Makefile.am): Likewise.
62726         * modules/human (Makefile.am): Likewise.
62727         * modules/idcache (Makefile.am): Likewise.
62728         * modules/imaxabs (Makefile.am): Likewise.
62729         * modules/imaxdiv (Makefile.am): Likewise.
62730         * modules/inet_ntop (Makefile.am): Likewise.
62731         * modules/inet_pton (Makefile.am): Likewise.
62732         * modules/inttostr (Makefile.am): Likewise.
62733         * modules/isapipe (Makefile.am): Likewise.
62734         * modules/lchown (Makefile.am): Likewise.
62735         * modules/long-options (Makefile.am): Likewise.
62736         * modules/lstat (Makefile.am): Likewise.
62737         * modules/malloc (Makefile.am): Likewise.
62738         * modules/mathl (Makefile.am): Likewise.
62739         * modules/mbchar (Makefile.am): Likewise.
62740         * modules/md2 (Makefile.am): Likewise.
62741         * modules/md4 (Makefile.am): Likewise.
62742         * modules/md5 (Makefile.am): Likewise.
62743         * modules/memcasecmp (Makefile.am): Likewise.
62744         * modules/memchr (Makefile.am): Likewise.
62745         * modules/memcmp (Makefile.am): Likewise.
62746         * modules/memcoll (Makefile.am): Likewise.
62747         * modules/memcpy (Makefile.am): Likewise.
62748         * modules/memmem (Makefile.am): Likewise.
62749         * modules/memmove (Makefile.am): Likewise.
62750         * modules/mempcpy (Makefile.am): Likewise.
62751         * modules/memrchr (Makefile.am): Likewise.
62752         * modules/memset (Makefile.am): Likewise.
62753         * modules/memxor (Makefile.am): Likewise.
62754         * modules/mkancesdirs (Makefile.am): Likewise.
62755         * modules/mkdir (Makefile.am): Likewise.
62756         * modules/mkdir-p (Makefile.am): Likewise.
62757         * modules/mkdtemp (Makefile.am): Likewise.
62758         * modules/mkstemp (Makefile.am): Likewise.
62759         * modules/mktime (Makefile.am): Likewise.
62760         * modules/modechange (Makefile.am): Likewise.
62761         * modules/mountlist (Makefile.am): Likewise.
62762         * modules/nanosleep (Makefile.am): Likewise.
62763         * modules/openat (Makefile.am): Likewise.
62764         * modules/pagealign_alloc (Makefile.am): Likewise.
62765         * modules/physmem (Makefile.am): Likewise.
62766         * modules/poll (Makefile.am): Likewise.
62767         * modules/posixtm (Makefile.am): Likewise.
62768         * modules/posixver (Makefile.am): Likewise.
62769         * modules/putenv (Makefile.am): Likewise.
62770         * modules/quote (Makefile.am): Likewise.
62771         * modules/quotearg (Makefile.am): Likewise.
62772         * modules/raise (Makefile.am): Likewise.
62773         * modules/read-file (Makefile.am): Likewise.
62774         * modules/readline (Makefile.am): Likewise.
62775         * modules/readlink (Makefile.am): Likewise.
62776         * modules/readtokens (Makefile.am): Likewise.
62777         * modules/readutmp (Makefile.am): Likewise.
62778         * modules/realloc (Makefile.am): Likewise.
62779         * modules/regex (Makefile.am): Likewise.
62780         * modules/rename (Makefile.am): Likewise.
62781         * modules/rename-dest-slash (Makefile.am): Likewise.
62782         * modules/rijndael (Makefile.am): Likewise.
62783         * modules/rmdir (Makefile.am): Likewise.
62784         * modules/rpmatch (Makefile.am): Likewise.
62785         * modules/safe-read (Makefile.am): Likewise.
62786         * modules/safe-write (Makefile.am): Likewise.
62787         * modules/same (Makefile.am): Likewise.
62788         * modules/save-cwd (Makefile.am): Likewise.
62789         * modules/savedir (Makefile.am): Likewise.
62790         * modules/setenv (Makefile.am): Likewise.
62791         * modules/settime (Makefile.am): Likewise.
62792         * modules/sha1 (Makefile.am): Likewise.
62793         * modules/sig2str (Makefile.am): Likewise.
62794         * modules/snprintf (Makefile.am): Likewise.
62795         * modules/stdlib-safer (Makefile.am): Likewise.
62796         * modules/stpcpy (Makefile.am): Likewise.
62797         * modules/stpncpy (Makefile.am): Likewise.
62798         * modules/strcase (Makefile.am): Likewise.
62799         * modules/strcasestr (Makefile.am): Likewise.
62800         * modules/strchrnul (Makefile.am): Likewise.
62801         * modules/strcspn (Makefile.am): Likewise.
62802         * modules/strdup (Makefile.am): Likewise.
62803         * modules/strerror (Makefile.am): Likewise.
62804         * modules/strftime (Makefile.am): Likewise.
62805         * modules/strndup (Makefile.am): Likewise.
62806         * modules/strnlen (Makefile.am): Likewise.
62807         * modules/strpbrk (Makefile.am): Likewise.
62808         * modules/strsep (Makefile.am): Likewise.
62809         * modules/strstr (Makefile.am): Likewise.
62810         * modules/strtod (Makefile.am): Likewise.
62811         * modules/strtoimax (Makefile.am): Likewise.
62812         * modules/strtok_r (Makefile.am): Likewise.
62813         * modules/strtol (Makefile.am): Likewise.
62814         * modules/strtoll (Makefile.am): Likewise.
62815         * modules/strtoul (Makefile.am): Likewise.
62816         * modules/strtoull (Makefile.am): Likewise.
62817         * modules/strtoumax (Makefile.am): Likewise.
62818         * modules/strverscmp (Makefile.am): Likewise.
62819         * modules/time_r (Makefile.am): Likewise.
62820         * modules/timegm (Makefile.am): Likewise.
62821         * modules/tmpfile-safer (Makefile.am): Likewise.
62822         * modules/unistd-safer (Makefile.am): Likewise.
62823         * modules/unlinkdir (Makefile.am): Likewise.
62824         * modules/userspec (Makefile.am): Likewise.
62825         * modules/utime (Makefile.am): Likewise.
62826         * modules/utimecmp (Makefile.am): Likewise.
62827         * modules/utimens (Makefile.am): Likewise.
62828         * modules/vasnprintf (Makefile.am): Likewise.
62829         * modules/vasprintf (Makefile.am): Likewise.
62830         * modules/vsnprintf (Makefile.am): Likewise.
62831         * modules/xalloc (Makefile.am): Likewise.
62832         * modules/xgetcwd (Makefile.am): Likewise.
62833         * modules/xnanosleep (Makefile.am): Likewise.
62834         * modules/xreadlink (Makefile.am): Likewise.
62835         * modules/xstrtod (Makefile.am): Likewise.
62836         * modules/xstrtol (Makefile.am): Likewise.
62837         * modules/xstrtold (Makefile.am): Likewise.
62838         * modules/yesno (Makefile.am): Likewise.
62839
62840 2006-10-12  Jim Meyering  <jim@meyering.net>
62841
62842         * m4/getloadavg.m4: Revert the change below.
62843
62844         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62845         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62846         fail with a symlink, which is what coreutils' ./bootstrap now
62847         creates by default.
62848
62849 2006-10-12  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62852         mingw.
62853         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62854         MSVC and mingw explicitly.
62855
62856 2006-10-11  Simon Josefsson  <jas@extundo.com>
62857             Bruno Haible  <bruno@clisp.org>
62858
62859         Add support for multiple gnulib-tool invocations in the scope of a
62860         single configure.ac file.
62861         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62862         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62863         with the same contents as the _LIBADD variable.
62864         (func_emit_initmacro_start, func_emit_initmacro_end,
62865         func_emit_initmacro_done): New functions.
62866         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62867         gl_LIBOBJS and gl_LTLIBOBJS.
62868
62869 2006-10-11  Bruno Haible  <bruno@clisp.org>
62870
62871         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62872         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62873         autoreconf. Instead, invoke autopoint explicitly but move back the
62874         *.m4 files from gnulib.
62875
62876 2006-10-11  Bruno Haible  <bruno@clisp.org>
62877
62878         * gnulib-tool (func_usage): Make module names after --create-testdir
62879         optional.
62880         (func_create_testdir): If no module was specified, use nearly all
62881         modules.
62882
62883 2006-10-12  Jim Meyering  <jim@meyering.net>
62884
62885         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62886         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62887         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62888         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62889         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62890         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62891         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62892         (fts_set_stat_required): New function.
62893         (fts_open): Defer the calls to fts_stat, if possible or requested.
62894         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62895         into fts_stat itself.
62896         (fts_read): Perform any required (deferred) fts_stat call.
62897         (fts_build): Likewise, for the directory we're about to open and read.
62898         In the readdir loop, carefully decide whether each entry will require
62899         an eventual call to fts_stat, using dirent.d_type info if available.
62900         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62901         a command line argument into this function.  Update all callers.
62902         Map a return value of FTS_DOT to FTS_D for a command line argument.
62903         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62904         Thanks to Miklos Szeredi for his tenacity and for the initial
62905         bug report about "find" failing on a FUSE-based file system.
62906
62907         * lib/fts.c (fts_open): Use consistent indentation.
62908
62909 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62912         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62913         reported by Jim Meyering.  All uses of cache variables renamed
62914         to match Autoconf's.
62915         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62916         the other one.
62917
62918         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62919         Fix misspelling in diagnostic.
62920
62921 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62924         defined.  Problem reported by Matthew Woehlke.
62925
62926         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62927         Add support for Tandem NonStop R series.
62928         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62929         Use new macro.
62930
62931         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62932         (has_trailing_slash): Omit size arg; all callers changed.
62933         Omit 'inline', since it doesn't help performance and we'd
62934         need to configure it.
62935         Don't count //, ///, etc. as having a trailing slash.
62936         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62937         (rpl_rename_dest_slash): On failure, use rename's errno rather
62938         than (in some cases) an incorrect or junk errno.
62939         Simplify code by removing need to compute length; this does
62940         cause it to make two passes instead of one over the file name,
62941         but it's worth it.
62942
62943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62944         change, since Autoconf's version may no longer be appropriate now
62945         that we are using CVS Autoconf's version.  Add support for Tandem.
62946
62947 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62948             Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62951         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62952         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62953         gl_AC_TYPE_LONG_LONG.
62954
62955         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62956         instead of HAVE_LONG_LONG.
62957         * lib/printf-args.c (printf_fetchargs): Likewise.
62958         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62959         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62960         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62961         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62962         gl_AC_TYPE_LONG_LONG.
62963
62964 2006-10-11  Bruno Haible  <bruno@clisp.org>
62965
62966         * m4/longlong.m4: Add comments.
62967         * m4/ulonglong.m4: Likewise.
62968
62969 2006-10-10  Bruno Haible  <bruno@clisp.org>
62970
62971         Make it possible to #define stpcpy, strdup to aliases.
62972         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62973         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62974
62975 2006-10-10  Bruno Haible  <bruno@clisp.org>
62976
62977         Make it possible to #define gcd to an alias.
62978         * lib/gcd.c: Include config.h.
62979
62980 2006-10-10  Bruno Haible  <bruno@clisp.org>
62981
62982         Make it possible to #define c_isascii to an alias.
62983         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62984         defined. Undefine the macros before defining them, to avoid gcc
62985         warnings.
62986         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62987         define NO_C_CTYPE_MACROS early.
62988
62989 2006-10-10  Bruno Haible  <bruno@clisp.org>
62990
62991         Make it possible to #define set_program_name to an alias.
62992         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62993         ENABLE_RELOCATABLE early.
62994
62995 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62996
62997         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62998         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62999         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63000         More generally, don't assume that 64-bit signed int is available
63001         if unsigned int is, and vice versa.
63002         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63003         unsigned symbols, not on their signed counterparts.
63004         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63005         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63006         (UINT64_C, UINTMAX_C):
63007         Likewise.
63008         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63009         unsigned counterparts.
63010         (Have_long_long, Unsigned): New macros.
63011         (Int): Renamed from INT.
63012         (strtoimax): Use the new macros.
63013         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63014         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63015         * modules/inttypes (inttypes.h): Substitute
63016         HAVE_UNSIGNED_LONG_LONG_INT.
63017         * modules/stdint (stdint.h): Likewise.
63018         (Files): Add m4/ulonglong.m4.
63019
63020 2006-10-10  Bruno Haible  <bruno@clisp.org>
63021
63022         Fix a gcc -Wshadow warning.
63023         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63024         to 'bucket'.
63025         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63026         gl_linked_indexof_from_to): Likewise.
63027         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63028         Likewise.
63029         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63030         Likewise.
63031         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63032         Reported by Eric Blake.
63033
63034 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63035
63036         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63037         for NetBSD.  Problem reported by Bruno Haible.
63038
63039 2006-10-09  Jim Meyering  <jim@meyering.net>
63040
63041         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63042         Patch from Bruno Haible.
63043
63044 2006-10-09  Jim Meyering  <jim@meyering.net>
63045
63046         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63047         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63048         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63049
63050 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         Don't include <config.h> twice; this doesn't work in some cases,
63053         e.g., when config.h has "#define intmax_t long long int" and
63054         we include <config.h>, <inttypes.h>, <config.h> in that order.
63055         Problem reported by Matthew Woehlke in:
63056         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63057         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63058         * lib/fts-cycle.c: Don't include config.h.
63059         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63060         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63061         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63062         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63063         inttypes.h.
63064         * lib/xstrtoumax.c: Likewise.
63065         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63066         __strtol and the like, so that this module is more like its siblings.
63067         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63068         Remove; no longer needed now that we assume gnulib inttypes.h.
63069
63070 2006-10-08  Bruno Haible  <bruno@clisp.org>
63071
63072         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63073         option.
63074
63075 2006-10-07  Jim Meyering  <jim@meyering.net>
63076
63077         * modules/inttypes (inttypes.h): Revert what seems to have been
63078         an inadvertent part of today's change: use "|", not "/" in the
63079         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63080
63081 2006-10-07  Bruno Haible  <bruno@clisp.org>
63082
63083         * modules/sublist: New file.
63084
63085 2006-10-07  Bruno Haible  <bruno@clisp.org>
63086
63087         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63088         * modules/argz (argz.h): Likewise.
63089         * modules/arpa_inet (arpa/inet.h): Likewise.
63090         * modules/byteswap (byteswap.h): Likewise.
63091         * modules/configmake (configmake.h): Likewise.
63092         * modules/fcntl (fcntl.h): Likewise.
63093         * modules/fnmatch (fnmatch.h): Likewise.
63094         * modules/getopt (getopt.h): Likewise.
63095         * modules/glob (glob.h): Likewise.
63096         * modules/inttypes (inttypes.h): Likewise.
63097         * modules/netinet_in (netinet/in.h): Likewise.
63098         * modules/poll (poll.h): Likewise.
63099         * modules/stdbool (stdbool.h): Likewise.
63100         * modules/stdint (stdint.h): Likewise.
63101         * modules/sys_select (sys/select.h): Likewise.
63102         * modules/sys_socket (sys/socket.h): Likewise.
63103         * modules/sys_stat (sys/stat.h): Likewise.
63104         * modules/sysexits (sysexits.h): Likewise.
63105         * modules/unistd (unistd.h): Likewise.
63106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63107         Add a "DO NOT EDIT" comment to the generated file.
63108         (func_import): Likewise for gnulib-comp.m4.
63109
63110 2006-10-07  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/gl_sublist.h: New file.
63113         * lib/gl_sublist.c: New file.
63114
63115 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63118         name (relative to the original working directory) and the file
63119         name component (relative to the temporary working directory).  All
63120         callers changed.
63121         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63122         * lib/mkdir-p.c (make_dir_parents): Likewise.
63123         * lib/mkdir-p.h (make_dir_parents): Likewise.
63124
63125 2006-10-06  Eric Blake  <ebb9@byu.net>
63126
63127         Define several macros for use by the clean-temp module.
63128         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63129         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63131
63132         * lib/clean-temp.h (close_stream_temp): New declaration.
63133         * lib/clean-temp.c (includes): Pull in headers according to what
63134         other modules are in use.
63135         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63136
63137 2006-10-06  Bruno Haible  <bruno@clisp.org>
63138
63139         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63140         instead of fopen, fwriteerror.
63141
63142 2006-10-06  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63145         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63146         int.
63147         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63148         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63149         Return an error indicator.
63150         Suggested by Eric Blake.
63151
63152 2006-10-06  Bruno Haible  <bruno@clisp.org>
63153
63154         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63155         Reported by Eric Blake.
63156
63157 2006-10-06  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/closeout (Description): Mention stderr too.
63160
63161 2006-10-06  Bruno Haible  <bruno@clisp.org>
63162         and Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         * lib/closeout.c (close_stdout): Also close stderr.
63165         * lib/closeout.h: Update comment.
63166
63167 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63170         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63171         * lib/dirchownmod.c: Include lchown.h.
63172         * lib/lchown.c: Don't include files that lchown.h now includes.
63173         Don't declare chown, since lchown.h now does that.
63174         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63175         (lchown): Define to rpl_chown if lchown is declared but
63176         does not exist.  Declare using a prototype if lchown is not
63177         declared.  Add a copyright notice.
63178         * lib/mkstemp.h: Include <unistd.h>.
63179         * lib/openat.c: Include lchown.h.
63180
63181         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63182         we now test for that separately.
63183         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63184         rather than O_NOFOLLOW, when testing whether it's possible to
63185         avoid a race condition reliably.
63186         * lib/savewd.c (savewd_chdir): Likewise.
63187
63188         Remove macros that are no longer needed now that stdint.h is
63189         reliable.
63190         * lib/fsusage.c (UINTMAX_MAX): Remove.
63191         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63192         * lib/utimecmp.c (SIZE_MAX): Remove.
63193
63194         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63195
63196         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63197         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63198         O_NOATIME works.
63199
63200 2006-10-05  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/gl_list.h (gl_sortedlist_search_from_to,
63203         gl_sortedlist_indexof_from_to): New declarations.
63204         (gl_list_implementation): New fields sortedlist_search_from_to,
63205         sortedlist_indexof_from_to.
63206         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63207         inline functions.
63208         * lib/gl_list.c (gl_sortedlist_search_from_to,
63209         gl_sortedlist_indexof_from_to): New functions.
63210         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63211         function.
63212         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63213         (gl_array_sortedlist_search_from_to): New function.
63214         (gl_array_list_implementation): Update.
63215         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63216         function.
63217         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63218         (gl_carray_sortedlist_search_from_to): New function.
63219         (gl_carray_list_implementation): Update.
63220         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63221         gl_linked_sortedlist_indexof_from_to): New functions.
63222         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63223         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63224         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63225         gl_tree_sortedlist_indexof_from_to): New functions.
63226         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63227         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63228         Update.
63229         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63230         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63231         Update.
63232
63233 2006-10-05  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63236         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63237         (struct gl_list_implementation): Add fields search_from_to,
63238         indexof_from_to. Remove fields search, indexof.
63239         (gl_list_search): Use the search_from_to method.
63240         (gl_list_search_from, gl_list_search_from_to): New functions.
63241         (gl_list_indexof): Use the indexof_from_to method.
63242         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63243         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63244         (gl_list_search_from, gl_list_search_from_to): New functions.
63245         (gl_list_indexof): Use the indexof_from_to method.
63246         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63247         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63248         gl_array_indexof. Add start_index, end_index arguments.
63249         (gl_array_search_from_to): Renamed from gl_array_search. Add
63250         start_index, end_index arguments.
63251         (gl_array_remove, gl_array_list_implementation): Update.
63252         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63253         gl_carray_indexof. Add start_index, end_index arguments.
63254         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63255         start_index, end_index arguments.
63256         (gl_carray_remove, gl_carray_list_implementation): Update.
63257         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63258         gl_linked_search. Add start_index, end_index arguments.
63259         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63260         start_index, end_index arguments.
63261         (gl_linked_remove): Update.
63262         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63263         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63264         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63265         field to 'size_t'.
63266         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63267         gl_tree_search. Add start_index, end_index arguments.
63268         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63269         start_index, end_index arguments.
63270         (gl_tree_remove): Update.
63271         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63272         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63273         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63274         function.
63275         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63276         gl_tree_search. Add start_index, end_index arguments.
63277         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63278         start_index, end_index arguments.
63279         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63280         Update.
63281         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63282
63283 2006-10-05  Bruno Haible  <bruno@clisp.org>
63284
63285         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63286
63287         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63288         fwriteerror_temp): New declarations.
63289         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63290         (descriptors): New variable.
63291         (cleanup): First, close the descriptors.
63292         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63293         fclose_temp, fwriteerror_temp): New functions.
63294
63295 2006-10-04  Jim Meyering  <jim@meyering.net>
63296
63297         * lib/fts.c (fts_open): Tiny comment change.
63298
63299 2006-10-04  Bruno Haible  <bruno@clisp.org>
63300
63301         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63302         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63303         gl_LOCK_BODY.
63304         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63305         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63306         gl_LOCK_EARLY_BODY.
63307         (gl_LOCK): Require gl_LOCK_BODY.
63308
63309 2006-10-04  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63312         (gl_oset_search_atleast): New declaration.
63313         (struct gl_oset_implementation): Add field 'search_atleast'.
63314         (gl_oset_search_atleast): New inline function.
63315         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63316         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63317         (gl_array_oset_implementation): Update.
63318         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63319         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63320         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63321
63322 2006-10-04  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63325
63326 2006-10-03  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63329         from gl_avltreehash_list_implementation.
63330
63331 2006-10-03  Bruno Haible  <bruno@clisp.org>
63332
63333         * lib/gl_oset.c (gl_oset_add): Fix return type.
63334
63335 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63336
63337         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63338
63339 2006-10-02  Eric Blake  <ebb9@byu.net>
63340
63341         * modules/strnlen (Depends-on): Add extensions.
63342
63343 2006-10-02  Eric Blake  <ebb9@byu.net>
63344
63345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63346         definition in 2.60+.
63347
63348 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63349
63350         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63351         checks.
63352
63353 2006-10-02  Bruno Haible  <bruno@clisp.org>
63354
63355         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63356         to the AUTOMAKE_OPTIONS.
63357         Reported by Jim Meyering.
63358
63359 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         Work around bug in Solaris 10 /proc file system:
63362         /proc/self/fd/NNN/.. isn't the parent directory of
63363         the directory whose file descriptor is NNN.  This needs to
63364         be worked around at run time, not compile time, since a
63365         program might be built on Solaris 8, where things work, and
63366         run on Solaris 10.
63367         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63368         to use the following interface instead:
63369         (OPENAT_BUFFER_SIZE): New macro.
63370         (openat_proc_name): New function.
63371         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63372         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63373         Likewise.
63374         * lib/openat-proc.c: New file.
63375         * modules/openat (Files): Add lib/openat-proc.c.
63376         (Depends-on): Add same-inode, stdbool.
63377         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63378
63379 2006-09-29  Bruno Haible  <bruno@clisp.org>
63380
63381         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63382         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63383         argument. Set stdout_closed before testing for ferror, not after.
63384         (fwriteerror, fwriteerror_no_ebadf): New functions.
63385
63386 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63387
63388         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63389
63390 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63391
63392         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63393         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63394
63395 2006-09-28  Jim Meyering  <jim@meyering.net>
63396
63397         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63398         Include <unistd.h>.
63399
63400 2006-09-28  Bruno Haible  <bruno@clisp.org>
63401
63402         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63403         * modules/linkedhash-list (Depends-on): Likewise.
63404         * modules/rbtreehash-list (Depends-on): Likewise.
63405
63406 2006-09-28  Bruno Haible  <bruno@clisp.org>
63407
63408         * lib/strndup.h: Simplify the redefinition of strndup.
63409         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63411
63412 2006-09-28  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63415         * lib/gl_linkedhash_list.c: Likewise.
63416         * lib/gl_rbtreehash_list.c: Likewise.
63417
63418 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63421         getaddrinfo.
63422
63423         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63424         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63425         it causes <stdio_ext.h> to cause a compile-time error.
63426         Problem reported by Nelson H. F. Beebe.
63427         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63428         of HAVE_DECL___PENDING.
63429
63430         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63431         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63432         declaration.
63433
63434 2006-09-27  Jim Meyering  <jim@meyering.net>
63435
63436         This file could end up with a definition for a function
63437         named __strndup, rather than rpl_strndup on a system with
63438         incomplete weak_alias support.
63439         * lib/strndup.c (strndup): Rename from __strndup.
63440         Remove #defines that used to map __strndup to strndup.
63441         Don't use K&R prototypes.
63442         Remove LIBC-related code, since this file is not sync'd with glibc.
63443         * lib/strndup.h: Revamp, accordingly.
63444         * m4/strndup.m4: Modernize.
63445
63446 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * modules/savewd (Depends-on): Add 'raise'.
63449         * lib/savewd.c: Include <signal.h>, for 'raise'.
63450
63451 2006-09-26  Jim Meyering  <jim@meyering.net>
63452
63453         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63454         when we detect Darwin 8.7.0's acl_get_file bug.
63455         Rearrange to perform the new (below) run-test while $LIBS
63456         contains any acl-related library.  Set USE_ACL at the end.
63457         (gl_ACL_GET_FILE): New function.
63458
63459 2006-09-26  Eric Blake  <ebb9@byu.net>
63460
63461         * lib/verror.c: Include <config.h> unconditionally.
63462
63463 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * modules/clock-time (Maintainer): Add self.
63466         * modules/getlogin_r (Depends-on): Add extensions.
63467
63468 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63469
63470         * modules/clock-time: New module.
63471         * modules/nanosleep (Depends-on): Add clock-time.
63472         * modules/gethrxtime (Depends-on): Likewise.
63473         * modules/gettime (Depends-on): Likewise.
63474         * modules/settime (Depends-on): Likewise.
63475
63476         * modules/fts-lgpl: Depend on openat.
63477         * modules/mkancesdirs: Depend on savewd.
63478         * modules/mkdir-p: Likewise.
63479
63480 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63481
63482         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63483
63484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63485         `gl_have_arbitrary_file_name_length_limit' to
63486         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63487         actually works between configure runs.
63488
63489 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63490             Bruno Haible  <bruno@clisp.org>
63491
63492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63493
63494 2006-09-25  Jim Meyering  <jim@meyering.net>
63495
63496         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63497         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63498
63499 2006-09-25  Eric Blake  <ebb9@byu.net>
63500
63501         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63502         exec's in 2006-09-18 patch when shuffling fds.
63503
63504 2006-09-25  Bruno Haible  <bruno@clisp.org>
63505
63506         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63507         Reported by Jim Meyering.
63508
63509 2006-09-24  Jim Meyering  <jim@meyering.net>
63510
63511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63512         compare a pointer against a literal "0".  That caused failures with
63513         at least HP-UX's hpcc.
63514
63515 2006-09-22  Simon Josefsson  <jas@extundo.com>
63516
63517         * modules/gc-sha1:
63518         * modules/gc-md4:
63519         * modules/gc-hmac-sha1:
63520         * modules/gc-hmac-md5:
63521         * modules/gc-des:
63522         * modules/gc-arcfour: Distribute more files.
63523
63524 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63525
63526         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63527         (gl_linked_iterator_from_to): Initialize struct completely.
63528         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63529         (gl_tree_iterator_from_to): Likewise
63530         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63531         * lib/gl_array_list.c [lint] (gl_array_iterator)
63532         (gl_array_iterator_from_to): Likewise.
63533         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63534         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63535         (gl_carray_iterator_from_to): Likewise.
63536
63537         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63538         * lib/md4.c (md4_process_block): Remove unused variable.
63539         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63540         parentheses for clarity.
63541
63542 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63543
63544         * modules/bison-i18n (Depends-on): Add gettext.
63545
63546 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63547
63548         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63549         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63550         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63551         also add missing comma that caused broken test.
63552         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63553         stdlib.h, for `abort'.
63554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63555         variables.
63556         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63557         include unistd.h if present, for `rmdir'.
63558         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63559         variables.
63560         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63561         in the process include standard headers for prototypes.
63562         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63563         gets declared on GNU/Linux.
63564         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63565         unistd.h, for `rmdir'.
63566         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63567
63568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63569         always true.
63570         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63571
63572         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63573
63574 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63575
63576         * gnulib-tool (func_version): Create output all at once.  This
63577         may help avoid triggering unnecessary SIGPIPEs, and at any
63578         rate it doesn't hurt.
63579
63580 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63581             Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63584         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63585         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63586
63587         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63588         (gl_FUNC_VASPRINTF): Invoke it.
63589
63590 2006-09-22  Bruno Haible  <bruno@clisp.org>
63591
63592         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63593         getloadavg.c as first argument.
63594
63595 2006-09-22  Bruno Haible  <bruno@clisp.org>
63596
63597         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63598         at the beginning of the gl_INIT macro.
63599         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63600         gl_GETLOADAVG.
63601
63602 2006-09-22  Bruno Haible  <bruno@clisp.org>
63603
63604         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63605         module.
63606         Suggested by Ralf Wildenhues.
63607
63608 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         Import this patch from libc:
63611
63612         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63613
63614         * lib/regex_internal.c (re_string_reconstruct): Handle
63615         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63616         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63617         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63618         re_string_context_at.
63619
63620         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63621         now requires it.
63622         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63623         gl_REGEX now does it for us.
63624         (gl_REGEX): Add test taken from
63625         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63626
63627         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63628         Check that large offsets work.  Modernize Autoconf usages.
63629         Prefer "yes" to mean a good thing rather than a bad.
63630         Don't put "#define mkstemp" in config.h, as this might interfere
63631         with standard system headers that "#define mkstemp mkstemp64".
63632
63633         * modules/mkstemp (Depends-on): Add extensions, so that
63634         mkstemp is visible on some platforms.
63635         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63636         (Include): Change to "mkstemp.h" from <stdlib.h>.
63637         (Files): Add mkstemp.h.
63638
63639         * lib/mkstemp.h: New file, since some standard headers
63640         #define mkstemp.
63641         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63642         Include "mkstemp.h".
63643         Make the _LIBC code resemble glibc original more,
63644         e.g., use K&R style.
63645         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63646         (mkstemp): Remove, since mkstemp.h does this for us.
63647         * lib/stdlib--.h: Include mkstemp.h.
63648
63649         Import this patch from libc:
63650
63651         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63652
63653         * lib/tempname.c (__gen_tempname): Change attempts_min
63654         into a macro.  Use preprocessor to decide how to initialize
63655         attempts [Coverity CID 67].
63656
63657 2006-09-20  Bruno Haible  <bruno@clisp.org>
63658
63659         * lib/mkdtemp.c: Import from libc.
63660         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63661                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63662                 attempts_min into a macro.  Use preprocessor to decide how to
63663                 initialize attempts [Coverity CID 67].
63664         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63665                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63666                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63667
63668 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63669
63670         * gnulib-tool (func_exit): New function, to allow to pass the
63671         exit status portably through the trap.  Use everywhere.
63672         (--help, --version): Signal a write error.
63673         (trap): catch SIGPIPE, for write errors.
63674         Exit at the end of the trap, with the correct exit status.
63675
63676 2006-09-19  Karl Berry  <karl@gnu.org>
63677
63678         * doc/gnulib.texi: note about the license texinfo files.
63679
63680 2006-09-19  Eric Blake  <ebb9@byu.net>
63681
63682         * gnulib-tool: Avoid space-tab.
63683
63684 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63687         that prevented coreutils 6.1 from building.  Problem reported
63688         by Petter Reinholdtsen.
63689
63690 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * gnulib-tool (avoidlist): Fix typo that broke options like
63693         --avoid=lock that are used by coreutils bootstrap.
63694
63695 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63696
63697         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63698         more systematically.
63699
63700 2006-09-18  Jim Meyering  <jim@meyering.net>
63701
63702         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63703
63704 2006-09-18  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63707
63708 2006-09-18  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63711         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63712         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63713         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63714         * m4/gettext.m4: Require autoconf >= 2.52.
63715         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63716         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63717         of gl_cv_header_inttypes_h.
63718
63719 2006-09-18  Bruno Haible  <bruno@clisp.org>
63720
63721         * lib/javaversion.c: Include configmake.h.
63722
63723 2006-09-18  Bruno Haible  <bruno@clisp.org>
63724
63725         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63726         avoid that the while loops be executed in a subshell.
63727
63728 2006-09-18  Bruno Haible  <bruno@clisp.org>
63729
63730         * MODULES.html.sh (func_module): Break long lines.
63731         Suggested by Bruce Korb <bkorb@gnu.org>.
63732
63733 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63734
63735         Speed up by a factor of 1.12.
63736         * gnulib-tool (nl): New variable.
63737         (func_import): Rewrite include directive extraction to only read each
63738         directive once.
63739
63740 2006-09-17  Bruno Haible  <bruno@clisp.org>
63741
63742         * modules/javaversion (Makefile.am): Remove DEFS setting.
63743         (Depends-on): Add configmake, for PKGDATADIR definition.
63744
63745 2006-09-17  Bruno Haible  <bruno@clisp.org>
63746
63747         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63748
63749 2006-09-17  Bruno Haible  <bruno@clisp.org>
63750
63751         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63752         (func_modules_transitive_closure, func_modules_add_dummy,
63753         func_modules_to_filelist, func_import, func_create_testdir,
63754         func_create_megatestdir, ...): Use it wherever possible.
63755         Suggested by Ralf Wildenhues.
63756
63757 2006-09-16  Karl Berry  <karl@gnu.org>
63758
63759         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63760         to avoid sectioning errors.
63761         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63762         [ifinfo]: blank line after @center-ed titles.
63763         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63764         Spell FSF address consistently with others.
63765         (These changes approved by rms.)
63766
63767 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63768
63769         Speed up by a factor of 1.61.
63770         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63771         already checked module names again.
63772
63773 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63774
63775         Speed up by a factor of 1.13.
63776         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63777         for new_files, and the input to func_add_or_update.
63778
63779 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63780
63781         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63782         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63783
63784 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * modules/mkancesdirs (Depends-on): Add fcntl.
63787         * modules/savewd: New file.
63788         * MODULES.html.sh (File system functions): Add savewd.
63789
63790         * modules/configmake (Makefile.am): Add support for the
63791         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63792
63793 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * m4/savewd.m4: New file.
63796
63797 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63800         (dirchownmod): New arg FD.  All callers changed.
63801         Use FD rather than opening the directory ourself, as opening is
63802         now the caller's responsibility.
63803         * lib/dirchownmod.h: Likewise.
63804         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63805         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63806         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63807         (test_dir): Remove.
63808         (mkancesdirs): Return length of prefix of FILE that has already
63809         been made, or -2 if there is a child doing the work.  Redo
63810         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63811         ".", and treat ".." specially since it might stray back into
63812         already-created areas.  Use a subprocess if necessary.  New arg
63813         WD; all users changed.  MAKE_DIR function should now return 1
63814         if it creates a directory that is not readable.  Return -2 if
63815         a child process is spun off.
63816         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63817         Adjust signature to match code.
63818         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63819         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63820         all users changed.
63821         * lib/savewd.c, lib/savewd.h: New files.
63822
63823 2006-09-15  Jim Meyering  <jim@meyering.net>
63824
63825         * modules/rename-dest-slash: New module.
63826         * MODULES.html.sh (posix_compat): Add it here.
63827
63828         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63829
63830 2006-09-15  Jim Meyering  <jim@meyering.net>
63831
63832         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63833         file.
63834
63835         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63836
63837 2006-09-15  Jim Meyering  <jim@meyering.net>
63838
63839         * lib/rename-dest-slash.c (has_trailing_slash): Use
63840         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63841         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63842         test before testing whether SRC is a directory.
63843         Suggestions from Bruno Haible.
63844
63845         Avoid a warning about an unused variable.
63846         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63847         into the #ifdef block where it's used.
63848
63849         * lib/rename-dest-slash.c: New file.
63850
63851 2006-09-14  Bruno Haible  <bruno@clisp.org>
63852
63853         * lib/allocsa.c: Include <config.h> unconditionally.
63854         * lib/asnprintf.c: Likewise.
63855         * lib/asprintf.c: Likewise.
63856         * lib/c-strcasecmp.c: Likewise.
63857         * lib/c-strcasestr.c: Likewise.
63858         * lib/c-strncasecmp.c: Likewise.
63859         * lib/c-strstr.c: Likewise.
63860         * lib/classpath.c: Likewise.
63861         * lib/clean-temp.c: Likewise.
63862         * lib/concatpath.c: Likewise.
63863         * lib/copy-file.c: Likewise.
63864         * lib/csharpcomp.c: Likewise.
63865         * lib/csharpexec.c: Likewise.
63866         * lib/execute.c: Likewise.
63867         * lib/fatal-signal.c: Likewise.
63868         * lib/findprog.c: Likewise.
63869         * lib/fwriteerror.c: Likewise.
63870         * lib/gl_array_list.c: Likewise.
63871         * lib/gl_array_oset.c: Likewise.
63872         * lib/gl_avltree_list.c: Likewise.
63873         * lib/gl_avltree_oset.c: Likewise.
63874         * lib/gl_avltreehash_list.c: Likewise.
63875         * lib/gl_carray_list.c: Likewise.
63876         * lib/gl_linked_list.c: Likewise.
63877         * lib/gl_linkedhash_list.c: Likewise.
63878         * lib/gl_list.c: Likewise.
63879         * lib/gl_oset.c: Likewise.
63880         * lib/gl_rbtree_list.c: Likewise.
63881         * lib/gl_rbtree_oset.c: Likewise.
63882         * lib/gl_rbtreehash_list.c: Likewise.
63883         * lib/imaxabs.c: Likewise.
63884         * lib/imaxdiv.c: Likewise.
63885         * lib/javacomp.c: Likewise.
63886         * lib/javaexec.c: Likewise.
63887         * lib/javaversion.c: Likewise.
63888         * lib/linebreak.c: Likewise.
63889         * lib/localcharset.c: Likewise.
63890         * lib/lock.c: Likewise.
63891         * lib/mbchar.c: Likewise.
63892         * lib/mbswidth.c: Likewise.
63893         * lib/mkdtemp.c: Likewise.
63894         * lib/pipe.c: Likewise.
63895         * lib/printf-args.c: Likewise.
63896         * lib/printf-parse.c: Likewise.
63897         * lib/progname.c: Likewise.
63898         * lib/progreloc.c: Likewise.
63899         * lib/readlink.c: Likewise.
63900         * lib/sh-quote.c: Likewise.
63901         * lib/stpcpy.c: Likewise.
63902         * lib/stpncpy.c: Likewise.
63903         * lib/strcasecmp.c: Likewise.
63904         * lib/strcasestr.c: Likewise.
63905         * lib/strcspn.c: Likewise.
63906         * lib/striconv.c: Likewise.
63907         * lib/strncasecmp.c: Likewise.
63908         * lib/strnlen1.c: Likewise.
63909         * lib/strstr.c: Likewise.
63910         * lib/strtok_r.c: Likewise.
63911         * lib/tls.c: Likewise.
63912         * lib/tmpdir.c: Likewise.
63913         * lib/unicodeio.c: Likewise.
63914         * lib/unsetenv.c: Likewise.
63915         * lib/vasnprintf.c: Likewise.
63916         * lib/vasprintf.c: Likewise.
63917         * lib/wait-process.c: Likewise.
63918         * lib/xallocsa.c: Likewise.
63919         * lib/xsetenv.c: Likewise.
63920         * lib/xstriconv.c: Likewise.
63921
63922 2006-09-13  Simon Josefsson  <jas@extundo.com>
63923
63924         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63925         that internally, suggested by Ralf Wildenhues
63926         <Ralf.Wildenhues@gmx.de>.
63927
63928 2006-09-13  Simon Josefsson  <jas@extundo.com>
63929
63930         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63931         @LIBOBJS@.
63932         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63933
63934 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63935
63936         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63937         longer worry about uses that don't define HAVE_CONFIG_H.
63938         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63939         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63940         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63941         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63942         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63943         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63944         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63945         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63946         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63947         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63948         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63949         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63950         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63951         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63952         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63953         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63954         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63955         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63956         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63957         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63958         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63959         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63960         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63961         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63962         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63963         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63964         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63965         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63966         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63967         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63968         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63969         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63970         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63971         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63972         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63973         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63974         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63975         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63976         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63977         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63978         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63979         Likewise.
63980
63981 2006-09-13  Eric Blake  <ebb9@byu.net>
63982
63983         * lib/getopt.c: Fix typo in last commit.
63984
63985 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63986
63987         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63988         dgettext.
63989
63990 2006-09-12  Jim Meyering  <jim@meyering.net>
63991
63992         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63993         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63994         Reported by Nelson H. F. Beebe.
63995
63996 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63997
63998         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63999         program_invocation_name and program_invocation_short_name are
64000         initialized.
64001         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64002         and program_invocation_short_name to argp.h, so they are visible
64003         to user programs.
64004         * lib/argp.h: Likewise
64005
64006 2006-09-10  Bruno Haible  <bruno@clisp.org>
64007
64008         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64009         m4/inttypes_h.m4, m4/uintmax_t.m4.
64010
64011 2006-09-10  Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64014         gl_AC_TYPE_UINTMAX_T.
64015
64016 2006-09-10  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64019
64020 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64021
64022         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64023         convention.  Text proposed by Bruno Haible.
64024         (struct argp_option): Document the use of N_() wrappers.
64025
64026         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64027         '\v', and translate the two parts separately, instead of feeding
64028         the whole string to gettext.  This allows to exclude
64029         '\v' from the strings visible to the translator by writing doc
64030         strings as N_("..") "\v" N_("..").
64031
64032 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * config/srclist.txt: Undo latest change; the bug was fixed.
64035
64036 2006-09-09  Bruno Haible  <bruno@clisp.org>
64037
64038         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64039         assignments if building a library without libtool.
64040         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64041         in func_emit_lib_Makefile_am.
64042         (func_import): When building a static library libfoo.a, arrange to
64043         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64044         (func_create_testdir): Likewise.
64045         * modules/gc (configure.ac, Makefile.am): If building statically,
64046         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64047         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64048         * modules/striconv (configure.ac, Makefile.am): Likewise.
64049         Based on a suggestion by Ralf Wildenhues.
64050
64051 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64054         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64055         Also:
64056
64057         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64058         Add year_2050_test to catch glibc bug 2821
64059         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64060
64061         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64062         Prefer #ifdef to #if.
64063
64064         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64065         Return from 'main' instead of calling 'exit'.
64066
64067 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64070         returned the maximum time_t value rather than (time_t) -1.
64071         Problem originally reported by William Bardwell
64072         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64073
64074         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64075         Moved to here ...
64076         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64077         ... from here.
64078
64079 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64082         2821 is fixed.
64083
64084 2006-09-08  Jim Meyering  <jim@meyering.net>
64085
64086         Don't make generated files read-only.  That would bother too many
64087         people.  However, do retain the ability to work when targets are
64088         read-only: remove the destination and temporary files before writing
64089         them (when generated via sed or echo), or by using the -f option for
64090         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64091         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64092         * modules/byteswap, modules/configmake, modules/fcntl:
64093         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64094         * modules/localcharset, modules/netinet_in, modules/poll:
64095         * modules/stdbool, modules/stdint, modules/sys_select:
64096         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64097
64098 2006-09-08  Jim Meyering  <jim@meyering.net>
64099
64100         Avoid new build failure on FreeBSD 6.0.
64101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64102         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64103         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64104
64105 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64106
64107         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64108
64109 2006-09-07  Jim Meyering  <jim@meyering.net>
64110
64111         Fix global typo in last change: use chmod u-w, not chmod u-x.
64112         Spotted by Paul Eggert and Bruce Korb.
64113         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64114         * modules/byteswap, modules/configmake, modules/fcntl:
64115         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64116         * modules/localcharset, modules/netinet_in, modules/poll:
64117         * modules/stdbool, modules/stdint, modules/sys_select:
64118         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64119
64120 2006-09-06  Jim Meyering  <jim@meyering.net>
64121
64122         Make generated files be read-only.
64123         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64124         Ensure that each generated file is now read-only.
64125         * modules/argz: Likewise.
64126         * modules/arpa_inet: Likewise.
64127         * modules/byteswap: Likewise.
64128         * modules/configmake: Likewise.
64129         * modules/fcntl: Likewise.
64130         * modules/fnmatch: Likewise.
64131         * modules/getopt: Likewise.
64132         * modules/glob: Likewise.
64133         * modules/inttypes: Likewise.
64134         * modules/netinet_in: Likewise.
64135         * modules/poll: Likewise.
64136         * modules/stdbool: Likewise.
64137         * modules/stdint: Likewise.
64138         * modules/sys_select: Likewise.
64139         * modules/sys_socket: Likewise.
64140         * modules/sys_stat: Likewise.
64141         * modules/sysexits: Likewise.
64142         * modules/localcharset: Same as above, but continue using temporary
64143         file named "t-$@" (why different?) rather than the "$@-t" used
64144         everywhere else.
64145
64146         * modules/sysexits (Makefile.am): Replace literal occurrences
64147         of "sysexit.h" more readable, and more consistent, "$@".
64148
64149 2006-09-06  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/striconv: New file.
64152         * modules/xstriconv: New file.
64153         * MODULES.html.sh (Internationalization functions): Add striconv,
64154         xstriconv.
64155
64156 2006-09-06  Bruno Haible  <bruno@clisp.org>
64157
64158         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64159         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64160         not using libtool correctly.
64161
64162 2006-09-06  Bruno Haible  <bruno@clisp.org>
64163
64164         * lib/striconv.h: New file.
64165         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64166         iconvstring.c.
64167         * lib/xstriconv.h: New file.
64168         * lib/xstriconv.c: New file.
64169
64170 2006-09-06  Bruno Haible  <bruno@clisp.org>
64171
64172         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64173         lib_..._LDFLAGS.
64174
64175 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64176
64177         * lib/argz_.h: Sync from Libtool.
64178
64179         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64180                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64181
64182         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64183
64184 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64185
64186         * modules/trim: New file.
64187
64188 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64189
64190         * lib/trim.h: New file.
64191         * lib/trim.c: New file.
64192
64193 2006-09-05  Bruno Haible  <bruno@clisp.org>
64194
64195         * MODULES.html.sh (String handling): Add trim.
64196
64197 2006-09-04  Karl Berry  <karl@gnu.org>
64198
64199         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64200         until next release.
64201
64202 2006-09-03  Bruno Haible  <bruno@clisp.org>
64203
64204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64205         correctly.
64206
64207 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64210         not gl_GETLOADAVG.  Omit unneeded semicolons.
64211         Problems reported by Ralf Wildenhues in
64212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64213         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64214         at the end, which is the usual gnulib style.
64215
64216         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64217         of doing all the work ourselves.
64218         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64219         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64220
64221 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64224         Problem reported by Ralf Wildenhues in
64225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64226
64227         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64228         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64229
64230 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64231
64232         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64233         yesterday's patch by changing test -n to test -z.
64234
64235 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64238         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64239         the former is now obsolescent.
64240
64241         * modules/chdir-long (Depends-on): Add fcntl.
64242
64243 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64246         obsolescent, and programs should use gnulib instead.
64247         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64248         but with prefixes changed.
64249
64250 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64251
64252         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64253         or stdbool.h, because they might not exist while configuring.
64254
64255         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64256         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64257         does that for us.
64258         (O_DIRECTORY): Remove.
64259
64260 2006-08-31  Eric Blake  <ebb9@byu.net>
64261
64262         * gnulib-tool: Don't let emacs change spaces to TAB.
64263
64264 2006-08-31  Bruno Haible  <bruno@clisp.org>
64265
64266         * gnulib-tool: When calling func_import more than once, do it in a
64267         subshell.
64268         Reported by Eric Blake <ebb9@byu.net>.
64269
64270 2006-08-31  Bruno Haible  <bruno@clisp.org>
64271
64272         * gnulib-tool (nl): Remove variable.
64273         (sed_transform_lib_file): Use more robust test for config-h module.
64274         (func_import): Fix typo in 2006-08-25 patch.
64275
64276 2006-08-31  Bruno Haible  <bruno@clisp.org>
64277
64278         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64279         specified, augment Makefile.am variables instead of assigning them.
64280
64281 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64282
64283         Work around a bug in both the Linux and SunOS 64-bit kernels:
64284         nanosleep mishandles sleeps for longer than 2**31 seconds.
64285         Problem reported by Frank v Waveren in
64286         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64288         Check for nanosleep bug.
64289         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64290
64291 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64292
64293         Work around a bug in both the Linux and SunOS 64-bit kernels:
64294         nanosleep mishandles sleeps for longer than 2**31 seconds.
64295         Problem reported by Frank v Waveren in
64296         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64297         * lib/nanosleep.c (BILLION): New constant.
64298         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64299         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64300         implementation.
64301
64302 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * modules/nanosleep (Depends-on): Add gettime.
64305
64306 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64307         and Simon Josefsson  <jas@extundo.com>
64308         and Oskar Liljeblad  <oskar@osk.mine.nu>
64309
64310         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64311         * gnulib-tool (func_import): New license type 'unmodifiable license
64312         text'.
64313         * modules/fdl: Use it.  Longer description.
64314         * module/gpl, module/lgpl: New files.
64315
64316 2006-08-30  Jim Meyering  <jim@meyering.net>
64317
64318         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64319         shadowing the parameter.
64320
64321 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64322
64323         Sync from Libtool:
64324
64325         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64326
64327         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64328         sharing with gnulib.  Report by Eric Blake.
64329
64330 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * modules/isapipe: New file.
64333         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64334
64335 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * modules/configmake (Makefile.am): Add a comment, and omit
64338         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64339         by Bruno Haible.
64340
64341 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         * m4/isapipe.m4: New file.
64344
64345 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64346
64347         * lib/isapipe.c, lib/isapipe.h: New files.
64348
64349 2006-08-29  Jim Meyering  <jim@meyering.net>
64350
64351         * modules/configmake (Makefile.am): Make configmake.h depend on
64352         Makefile.  Otherwise, a stale configmake.h could hang around.
64353
64354 2006-08-29  Eric Blake  <ebb9@byu.net>
64355
64356         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64357         resolution of upstream bug 3044.
64358
64359 2006-08-29  Bruno Haible  <bruno@clisp.org>
64360
64361         * modules/localcharset (Depends-on): Add configmake.
64362         (Makefile.am): Remove setting of LIBDIR through DEFS.
64363
64364 2006-08-29  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64367         defined.
64368
64369 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * modules/fcntl: New file.
64372         * modules/chdir-safer (Depends-on): Add fcntl.
64373         * modules/fts: Likewise.
64374         * modules/mkdir-p: Likewise.
64375
64376         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64377         This undoes the most recent change, since we're now addressing the
64378         problem in a different way.
64379
64380         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64381         into output, since the output might be called Makefile.am even
64382         if $makefile_name is something different.
64383         (func_import): Use $makefile_am rather than
64384         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64385         empty.
64386
64387         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64388
64389 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64392         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64393         recent change to stdint.m4, since we're now addressing the problem in a
64394         different way.
64395
64396 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64397
64398         * m4/fcntl_h.m4: New file.
64399
64400 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * lib/fcntl_.h: New file.
64403         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64404         the fcntl module.
64405         * lib/dirchownmod.c: Likewise.
64406         * lib/fts.c: Likewise.
64407
64408         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64409         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64410         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64411         just before including <inttypes.h>, to avoid circular inclusion.
64412
64413 2006-08-28  Jim Meyering  <jim@meyering.net>
64414
64415         * doc/visibility.texi: Actually read and correct the grammar of the
64416         sentence affected by yesterday's change.
64417
64418 2006-08-28  Eric Blake  <ebb9@byu.net>
64419
64420         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64421         needs wrapper.
64422
64423 2006-08-28  Eric Blake  <ebb9@byu.net>
64424
64425         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64426
64427 2006-08-28  Eric Blake  <ebb9@byu.net>
64428
64429         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64430
64431 2006-08-28  Bruno Haible  <bruno@clisp.org>
64432
64433         * modules/c-strstr: New file, from GNU gettext.
64434         * MODULES.html.sh (String handling): Add c-strstr.
64435
64436 2006-08-28  Bruno Haible  <bruno@clisp.org>
64437
64438         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64439         macros.
64440         Reported by Eric Blake.
64441
64442 2006-08-28  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64445         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64446         * lib/vasprintf.c: Include errno.h, limits.h.
64447         (EOVERFLOW): New fallback definition.
64448         (vasprintf): Test here whether the string length is > INT_MAX.
64449         * lib/vsnprintf.c: Include errno.h, limits.h.
64450         (EOVERFLOW): New fallback definition.
64451         (vsnprintf): Fix bug when generated string was too long for the buffer.
64452         Test here whether the string length is > INT_MAX.
64453
64454 2006-08-28  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/inttypes_.h (SCNX*): Remove definitions.
64457         Reported by Eric Blake.
64458
64459 2006-08-28  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/c-strstr.h: New file, from GNU gettext.
64462         * lib/c-strstr.c: New file, from GNU gettext.
64463
64464 2006-08-28  Bruno Haible  <bruno@clisp.org>
64465
64466         * gnulib-tool: Reorder some statements.
64467
64468 2006-08-28  Bruno Haible  <bruno@clisp.org>
64469
64470         * gnulib-tool: New option --makefile-name.
64471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64472         $makefile_name.
64473         (func_import): Write $makefile_name to the cache file, and read it from
64474         there unless explicitly specified. Use $makefile_name as file name
64475         instead of Makefile.am. Adjust the recommendations accordingly.
64476
64477 2006-08-28  Bruno Haible  <bruno@clisp.org>
64478
64479         * gnulib-tool (func_verify_module): Check against misapplying patch.
64480
64481 2006-08-28  Bruno Haible  <bruno@clisp.org>
64482
64483         * gnulib-tool (func_relativize, func_relconcat): New functions.
64484         Give an error if --local-dir is given with --update.
64485         Remove trailing slashes from $local_gnulib_dir.
64486         (func_import): Store the relativized $local_gnulib_dir in
64487         gnulib-cache.m4, and read it from there if not specified explicitly.
64488
64489 2006-08-28  Bruno Haible  <bruno@clisp.org>
64490
64491         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64492         is the current directory. Respect also $local_gnulib_dir.
64493
64494 2006-08-28  Bruno Haible  <bruno@clisp.org>
64495             Simon Josefsson  <jas@extundo.com>
64496
64497         BeOS portability.
64498         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64499
64500 2006-08-27  Jim Meyering  <jim@meyering.net>
64501
64502         * doc/visibility.texi: Remove duplicate word: "pointer".
64503
64504 2006-08-26  Bruno Haible  <bruno@clisp.org>
64505
64506         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64507         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64508         (Makefile.am): Create inttypes.h from inttypes_.h.
64509         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64510
64511         * modules/imaxabs: New file.
64512
64513         * modules/imaxdiv: New file.
64514
64515 2006-08-26  Bruno Haible  <bruno@clisp.org>
64516
64517         * m4/inttypes.m4: New file.
64518         * m4/_inttypes_h.m4: Remove file.
64519         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64520         PRI_MACROS_BROKEN.
64521         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64522
64523         * m4/imaxabs.m4: New file.
64524
64525         * m4/imaxdiv.m4: New file.
64526
64527 2006-08-26  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/inttypes_.h: New file.
64530         * lib/inttypes.h: Remove file.
64531         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64532
64533         * lib/imaxabs.c: New file.
64534
64535         * lib/imaxdiv.c: New file.
64536
64537 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         New config-h module, so that "make" output needn't be cluttered
64540         by -DHAVE_CONFIG_H.
64541         * MODULES.html.sh (Support for building libraries and executables):
64542         Add config-h.
64543         * modules/config-h: New file.
64544         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64545         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64546         the config-h module is used.
64547
64548         New configmake module, so that "make" output needn't be cluttered
64549         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64550         * MODULES.html.sh (Support for building libraries and executables):
64551         Add configmake.
64552         * modules/configmake: New file.
64553
64554 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * m4/config-h.m4: New file.
64557
64558 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         * config/srclist.txt: Add elisp-comp.
64561
64562 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * MODULES.html.sh (Support for building libraries and executables):
64565         Add elisp-comp.
64566         * build-aux/elisp-comp: New file.
64567         * modules/elisp-comp: New file.
64568
64569 2006-08-24  Bruno Haible  <bruno@clisp.org>
64570
64571         * gnulib-tool (func_create_testdir): Use non-default values of
64572         sourcebase and m4base.
64573
64574 2006-08-24  Bruno Haible  <bruno@clisp.org>
64575
64576         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64577         HTML structure.
64578
64579 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64580
64581         * modules/openat (Depends-on): Add lchown.
64582
64583 2006-08-23  Bruno Haible  <bruno@clisp.org>
64584
64585         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64586         of gl_LOCK_EARLY instead of gl_LOCK.
64587
64588 2006-08-23  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64591         on OSF/1 to no.
64592         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64593
64594 2006-08-23  Bruno Haible  <bruno@clisp.org>
64595
64596         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64597         as unusable.
64598
64599         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64600         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64601         (gl_LOCK): New macro.
64602
64603 2006-08-22  Simon Josefsson  <jas@extundo.com>
64604
64605         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64606         to md5 module.
64607
64608 2006-08-22  Simon Josefsson  <jas@extundo.com>
64609
64610         * MODULES.html.sh: Add "Support for maintaining and release
64611         projects".
64612
64613         * build-aux/gnupload: New file, from coreutils.
64614
64615 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         Avoid the need for AC_LIBSOURCES in m4 macros.
64618         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64619         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64620         * modules/check-version (EXTRA_DIST): Add check-version.h.
64621         * modules/crc (EXTRA_DIST): Add crc.h.
64622         * modules/des (EXTRA_DIST): Add des.h.
64623         * modules/gc (EXTRA_DIST): Add gc.h.
64624         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64625         * modules/getline (EXTRA_DIST): Add getline.h.
64626         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64627         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64628         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64629         * modules/md2 (EXTRA_DIST): Add md2.h.
64630         * modules/md4 (EXTRA_DIST): Add md4.h.
64631         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64632         * modules/read-file (EXTRA_DIST): Add read-file.h.
64633         * modules/readline (EXTRA_DIST): Add readline.h.
64634         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64635         rijndael-api-fst.h.
64636
64637 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * m4/rijndael.m4 (gl_ARCFOUR):
64640         * m4/arctwo.m4 (gl_ARCTWO):
64641         * m4/check-version.m4 (gl_CHECK_VERSION):
64642         * m4/crc.m4 (gl_CRC):
64643         * m4/des.m4 (gl_DES):
64644         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64645         * m4/gc.m4 (gl_GC):
64646         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64647         * m4/getline.m4 (gl_FUNC_GETLINE):
64648         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64649         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64650         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64651         * m4/md2.m4 (gl_MD2):
64652         * m4/md4.m4 (gl_MD4):
64653         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64654         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64655         * m4/readline.m4 (gl_FUNC_READLINE):
64656         * m4/rijndael.m4 (gl_RIJNDAEL):
64657         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64658         to get the necessary .h files and whatnot.
64659
64660 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64661
64662         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64663         gnulib rather than the other way around.
64664         * config/srclistvars.sh (COREUTILS): Remove.
64665
64666 2006-08-22  Jim Meyering  <jim@meyering.net>
64667
64668         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64669
64670         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64671
64672 2006-08-22  Eric Blake  <ebb9@byu.net>
64673
64674         * modules/regexprops-generic: New file.
64675         * MODULES.html.sh (Support for building documentation): List it.
64676
64677 2006-08-22  Eric Blake  <ebb9@byu.net>
64678
64679         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64680         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64682         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64683
64684 2006-08-22  Bruno Haible  <bruno@clisp.org>
64685
64686         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64687         and lib_LTLIBRARIES like the other lib_* variables.
64688
64689 2006-08-22  Bruno Haible  <bruno@clisp.org>
64690
64691         * build-aux/x-to-1.in: New file, from GNU gettext.
64692
64693 2006-08-22  Bruno Haible  <bruno@clisp.org>
64694
64695         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64696         <utmpx.h> exists.
64697
64698 2006-08-22  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64701         <utmpx.h> exists.
64702
64703 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64704
64705         BeOS portability.
64706         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64707         exist.
64708         Problem reported by Bruno Haible.
64709
64710 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         Avoid the need for AC_LIBSOURCES in m4 macros.
64713         * modules/acl (EXTRA_DIST): Add acl.h.
64714         * modules/argmatch (Files): Add m4/argmatch.m4.
64715         (configure.ac): Add gl_ARGMATCH.
64716         (EXTRA_DIST): Renamed from lib_SOURCES, for
64717         consistency with the other modules.  Remove argmatch.c.
64718         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64719         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64720         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64721         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64722         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64723         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64724         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64725         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64726         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64727         * modules/closeout (EXTRA_DIST): Add closeout.h.
64728         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64729         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64730         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64731         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64732         dirname.h; remove basename.c and stripslash.c.
64733         * modules/exclude (EXTRA_DIST): Add exclude.h.
64734         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64735         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64736         * modules/file-type (EXTRA_DIST): Add file-type.h.
64737         * modules/filemode (EXTRA_DIST): Add filemode.h.
64738         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64739         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64740         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64741         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64742         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64743         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64744         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64745         * modules/getdate (EXTRA_DIST): Add getdate.c.
64746         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64747         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64748         * modules/getpass (EXTRA_DIST): Add getpass.h.
64749         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64750         * modules/group-member (EXTRA_DIST): Add group-member.h.
64751         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64752         * modules/hash (EXTRA_DIST): Add hash.h.
64753         * modules/human (EXTRA_DIST): Add human.h.
64754         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64755         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64756         * modules/lchown (EXTRA_DIST): Add lchown.h.
64757         * modules/long-options (EXTRA_DIST): Add long-options.h.
64758         * modules/lstat (EXTRA_DIST): Add lstat.h.
64759         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64760         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64761         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64762         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64763         * modules/memxor (EXTRA_DIST): Add memxor.h.
64764         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64765         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64766         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64767         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64768         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64769         * modules/physmem (EXTRA_DIST): Add physmem.h.
64770         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64771         * modules/posixver (EXTRA_DIST): Add posixver.h.
64772         * modules/quote (EXTRA_DIST): Add quote.h.
64773         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64774         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64775         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64776         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64777         regex_internal.h regexec.c.
64778         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64779         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64780         * modules/same (EXTRA_DIST): Add same.h.
64781         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64782         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64783         * modules/savedir (EXTRA_DIST): Add savedir.h.
64784         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64785         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64786         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64787         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64788         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64789         * modules/strdup (EXTRA_DIST): Add strdup.h.
64790         * modules/strftime (EXTRA_DIST): Add strftime.h.
64791         * modules/strndup (EXTRA_DIST): Add strndup.h.
64792         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64793         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64794         * modules/time_r (EXTRA_DIST): Add time_r.h.
64795         * modules/timespec (EXTRA_DIST): Add timespec.h.
64796         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64797         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64798         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64799         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64800         * modules/userspec (EXTRA_DIST): Add userspec.h.
64801         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64802         * modules/utimens (EXTRA_DIST): Add utimens.h.
64803         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64804         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64805         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64806         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64807         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64808         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64809         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64810         * modules/yesno (EXTRA_DIST): Add yesno.h.
64811
64812 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64815
64816         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64817         * m4/dev-ino.m4, same-inode.m4: Remove.
64818
64819         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64820         * m4/acl.m4 (AC_FUNC_ACL):
64821         * m4/backupfile.m4 (gl_BACKUPFILE):
64822         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64823         * m4/canon-host.m4 (gl_CANON_HOST):
64824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64825         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64826         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64827         * m4/cloexec.m4 (gl_CLOEXEC):
64828         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64829         * m4/closeout.m4 (gl_CLOSEOUT):
64830         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64831         * m4/dirname.m4 (gl_DIRNAME):
64832         * m4/exclude.m4 (gl_EXCLUDE):
64833         * m4/exitfail.m4 (gl_EXITFAIL):
64834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64835         * m4/file-type.m4 (gl_FILE_TYPE):
64836         * m4/filemode.m4 (gl_FILEMODE):
64837         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64838         * m4/fpending.m4 (gl_FUNC_FPENDING):
64839         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64840         * m4/fts.m4 (gl_FUNC_FTS):
64841         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64842         * m4/getdate.m4 (gl_GETDATE):
64843         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64844         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64845         * m4/getpass.m4 (gl_FUNC_GETPASS):
64846         * m4/gettime.m4 (gl_GETTIME):
64847         * m4/getugroups.m4 (gl_GETUGROUPS):
64848         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64849         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64850         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64851         * m4/hash.m4 (gl_HASH):
64852         * m4/idcache.m4 (gl_IDCACHE):
64853         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64854         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64855         * m4/long-options.m4 (gl_LONG_OPTIONS):
64856         * m4/lstat.m4 (gl_FUNC_LSTAT):
64857         * m4/md5.m4 (gl_MD5):
64858         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64859         * m4/memcoll.m4 (gl_MEMCOLL):
64860         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64861         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64862         * m4/memxor.m4 (gl_MEMXOR):
64863         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64865         * m4/modechange.m4 (gl_MODECHANGE):
64866         * m4/mountlist.m4 (gl_MOUNTLIST):
64867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64868         * m4/openat.m4 (gl_FUNC_OPENAT):
64869         * m4/pathmax.m4 (gl_PATHMAX):
64870         * m4/physmem.m4 (gl_PHYSMEM):
64871         * m4/posixtm.m4 (gl_POSIXTM):
64872         * m4/posixver.m4 (gl_POSIXVER):
64873         * m4/quote.m4 (gl_QUOTE):
64874         * m4/quotearg.m4 (gl_QUOTEARG):
64875         * m4/readtokens.m4 (gl_READTOKENS):
64876         * m4/readutmp.m4 (gl_READUTMP):
64877         * m4/regex.m4 (gl_REGEX):
64878         * m4/safe-read.m4 (gl_SAFE_READ):
64879         * m4/safe-write.m4 (gl_SAFE_WRITE):
64880         * m4/same.m4 (gl_SAME):
64881         * m4/save-cwd.m4 (gl_SAVE_CWD):
64882         * m4/savedir.m4 (gl_SAVEDIR):
64883         * m4/settime.m4 (gl_SETTIME):
64884         * m4/sha1.m4 (gl_SHA1):
64885         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64886         * m4/stat-macros.m4 (gl_STAT_MACROS):
64887         * m4/stat-time.m4 (gl_STAT_TIME):
64888         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64889         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64890         * m4/strdup.m4 (gl_FUNC_STRDUP):
64891         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64892         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64893         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64894         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64895         * m4/time_r.m4 (gl_TIME_R):
64896         * m4/timespec.m4 (gl_TIMESPEC):
64897         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64898         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64899         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64900         * m4/userspec.m4 (gl_USERSPEC):
64901         * m4/utimecmp.m4 (gl_UTIMECMP):
64902         * m4/utimens.m4 (gl_UTIMENS):
64903         * m4/xalloc.m4 (gl_XALLOC):
64904         * m4/xgetcwd.m4 (gl_XGETCWD):
64905         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64906         * m4/xreadlink.m4 (gl_XREADLINK):
64907         * m4/xstrtod.m4 (gl_XSTRTOD):
64908         * m4/yesno.m4 (gl_YESNO):
64909         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64910         to get the necessary .h files and whatnot.
64911
64912 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64913             Bruno Haible  <bruno@clisp.org>
64914
64915         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64916         /bin/sh understanding of '!' conditional negation.
64917
64918 2006-08-21  Jim Meyering  <jim@meyering.net>
64919
64920         * modules/openat (Depends-on): Really alphabetize.
64921
64922         * modules/acl (Depends-on): Add error and quote.
64923
64924         * check-module (find_included_lib_files): Add at-func.c to the
64925         ok-to-include-more-than-once white list.
64926
64927         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64928
64929 2006-08-21  Bruno Haible  <bruno@clisp.org>
64930
64931         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64932         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64933         Reported by Martin Lambers <marlam@marlam.de>.
64934
64935 2006-08-21  Bruno Haible  <bruno@clisp.org>
64936
64937         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64938         specify an installation location, don't emit a noinst_LIBRARIES or
64939         noinst_LTLIBRARIES assignment.
64940
64941 2006-08-21  Bruno Haible  <bruno@clisp.org>
64942
64943         BeOS portability.
64944         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64945         BeOS has mbrtowc() but no <wctype.h>.
64946
64947 2006-08-21  Bruno Haible  <bruno@clisp.org>
64948
64949         BeOS portability.
64950         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64951         exist.
64952
64953 2006-08-21  Bruno Haible  <bruno@clisp.org>
64954
64955         BeOS portability.
64956         * lib/mbchar.h: Include <wctype.h> only if it exists.
64957
64958 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         Remove files that are no longer needed by their respective modules.
64961         * m4/obstack.m4: Remove.
64962         * m4/strerror_r.m4: Remove.
64963         * m4/uint32_t.m4: Remove.
64964         * m4/uintptr_t.m4: Remove.
64965         * m4/ullong_max.m4: Remove.
64966         * m4/xstrtoimax.m4: Remove.
64967         * m4/xstrtoumax.m4: Remove.
64968
64969         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64970         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64971         dependencies now capture this.
64972
64973         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64974         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64975         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64976         * m4/human.m4 (gl_HUMAN): Likewise.
64977         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64978         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64979
64980         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64981
64982         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64983         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64984         stdint.
64985         * m4/human.m4 (gl_HUMAN): Likewise.
64986         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64987         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64988         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64989         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64990         * m4/xstrtol (gl_XSTRTOL): Likewise.
64991
64992         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64993         AC_TYPE_LONG_LONG_INT.
64994         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64995         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64996         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64997         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64998
64999         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65000         on stdbool.
65001
65002         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65003         (gl_PREREQ_XSTRTOUL): Remove.
65004
65005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65006
65007         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65008         mode.
65009
65010 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65011
65012         Add and change modules to make it easier for coreutils to use
65013         gnulib-tool.
65014         * modules/backupfile (Files): Remove m4/d-ino.m4.
65015         (Depends-on): Add d-ino.
65016         * modules/cycle-check (Depends-on): Add stdint.
65017         (lib_SOURCES): Add cycle-check.h.
65018         * modules/d-ino: New module.
65019         * modules/d-type: New module.
65020         * modules/error (Files): Remove m4/strerror_r.m4.
65021         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65022         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65023         m4/inttypes_h.m4, m4/uintmax_t.m4.
65024         (Depends-on): Add stdint.
65025         (lib_SOURCES): Add fsusage.h.
65026         * modules/getcwd (Files): Remove d-ino.m4.
65027         (Depends-on): Add d-ino.
65028         * modules/getndelim2 (Depends-on): Add stdint.
65029         * modules/glob (Files): Remove m4/d-type.m4.
65030         (Depends-on): Add d-type.
65031         * modules/host-os: New module.
65032         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65033         m4/inttypes_h.m4, m4/uintmax_t.m4.
65034         * Depends-on: Add stdint.
65035         (lib_SOURCES): Add human.h.
65036         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65037         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65038         m4/uintmax_t.m4, m4/ulonglong.m4.
65039         (Depends-on): Add stdint.
65040         (EXTRA_DIST): Add inttostr.h.
65041         * modules/lchmod: New module.
65042         * modules/link-follow: New module.
65043         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65044         (Depends-on): Add lchmod.
65045         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65046         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65047         (Depends-on): Add stdint.
65048         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65049         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65050         (Depends-on): Add stdint.
65051         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65052         * modules/perl: New module.
65053         * modules/regex (Depends-on): Add stdint.
65054         * modules/rmdir-errno: New module.
65055         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65056         m4/intmax_t.m4.
65057         (Depends-on): Add stdint.
65058         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65059         m4/uintmax_t.m4.
65060         (Depends-on): Add stdint.
65061         * modules/unlink-busy: New module.
65062         * modules/utimecmp (Depends-on): Add stdint.
65063         * modules/uptime: New module.
65064         * modules/winsz-ioctl: New module.
65065         * modules/winsz-termios: New module.
65066         * modules/xnanosleep (Depends-on): Add nanosleep.
65067         * modules/ullong_max: Remove.
65068         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65069         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65070         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65071         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65072         (Depends-on): Add inttypes.
65073         (lib_SOURCES): Add xstrtol.h.
65074         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65075         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65076         * MODULES.html.sh: Move 'assert' into the assert section.
65077         Move 'dummy' into the linking section.
65078         Remove ullong_max.
65079         Add section for compatibility checks for POSIX:2001 functions,
65080         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65081         winsz-ioctl, and winsz-termios into it.
65082         Add lchmod.
65083         Add top-level Misc section and put host-os, perl, and uptime
65084         into it.
65085
65086 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65087
65088         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65089         now assume the stdint module.  Do not include inttypes.h.
65090         * lib/fsusage.h: Likewise.
65091         * lib/getndelim2.c: Likewise.
65092         * lib/human.h: Likewise.
65093         * lib/inttostr.h: Likewise.
65094         * lib/obstack.c: Likewise.
65095         * lib/regex_internal.h: Likewise.
65096         * lib/tempname.c: Likewise.
65097         * lib/utimecmp.c: Likewise.
65098         * lib/xstrtol.h: Likewise.
65099
65100         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65101
65102         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65103         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65104         * lib/xtime.h: Likewise.
65105
65106 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * modules/openat (Files): Add lib/fchmodat.c.
65109         Fixes problem reported by Jay Youngman.
65110
65111 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65114         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65115
65116 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65117             Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65120         and is a script that invokes bison. Tighten the code. Add comments.
65121
65122 2006-08-18  Jim Meyering  <jim@meyering.net>
65123
65124         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65125         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65126         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65127         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65128
65129 2006-08-18  Bruno Haible  <bruno@clisp.org>
65130
65131         * modules/bison-i18n: New file.
65132         * MODULES.html.sh (Internationalization functions): Add it.
65133
65134 2006-08-18  Bruno Haible  <bruno@clisp.org>
65135
65136         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65137         sys/statvfs.h. When getmntinfo was found, check its declaration and
65138         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65139
65140 2006-08-18  Bruno Haible  <bruno@clisp.org>
65141
65142         * m4/bison-i18n.m4: New file, from bison.
65143
65144 2006-08-18  Bruno Haible  <bruno@clisp.org>
65145
65146         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65147         (ME_DUMMY): Treat "kernfs" as a dummy.
65148         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65149
65150 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         Update from coreutils.
65153
65154         2006-08-15  Jim Meyering  <jim@meyering.net>
65155
65156         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65157
65158         2006-01-17  Jim Meyering  <jim@meyering.net>
65159
65160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65161
65162         2006-01-11  Jim Meyering  <jim@meyering.net>
65163
65164         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65165         Check for the lchmod function.
65166
65167 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         Update from coreutils.
65170
65171         * lib/__fpending.h: Add copyright notice.
65172         * lib/fprintftime.h: Likewise.
65173         * lib/savedir.c: Use (C) in copyright notice.
65174         * lib/savedir.h: Likewise.
65175
65176         2006-08-15  Jim Meyering  <jim@meyering.net>
65177
65178         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65179         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65180         in support of the EXPECTED_ERRNO macro.
65181         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65182         definitions.  Instead, define the appropriate symbols and include
65183         "at-func.c".
65184         * lib/mkdirat.c (mkdirat): Likewise.
65185         * lib/fchmodat.c (fchmodat): Likewise.
65186         (ENOSYS): Remove definition.
65187         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65188         it.  Don't include "unistd--.h" -- it wasn't ever used.
65189
65190         2006-01-17  Jim Meyering  <jim@meyering.net>
65191
65192         Rewrite fts.c not to change the current working directory,
65193         by using openat, fstatat, fdopendir, etc..
65194
65195         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65196         (HAVE_OPENAT_SUPPORT): Define.
65197         [_LIBC] (fchdir): Don't undef or define; no longer used.
65198         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65199         Now, this `function' always succeeds, and consumes its file descriptor
65200         parameter -- so callers must not close such FDs.  Update callers.
65201         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65202         (diropen): Add parameter, SP.  Adjust all callers.
65203         Implement using diropen_fd, rather than open.
65204         (fts_open): Initialize new member, fts_cwd_fd.
65205         Remove fts_rft-setting code.
65206         (fts_close): Close fts_cwd_fd, if necessary.
65207         (__opendir2): Define in terms of opendir or opendirat,
65208         depending on whether the FST_NOCHDIR flag is set.
65209         (fts_build): Since fts_safe_changedir consumes its FD, and since
65210         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65211         and close the dup'd file descriptor upon failure.
65212         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65213         (fts_safe_changedir): Tweak semantics to reflect that this function
65214         now calls cwd_advance_fd and hence consumes its FD argument.
65215         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65216         [struct FTS] (fts_rft): Remove now-unused member.
65217         [struct FTS] (fts_cycle.state): Improve comment.
65218
65219         * lib/openat.c (openat_needs_fchdir): New function.
65220         * lib/openat.h (openat_needs_fchdir): Declare it.
65221
65222 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65225         Problem and fix reported by Pádraig Brady in
65226         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65227
65228 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65229
65230         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65231
65232 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65233
65234         * lib/memcoll.c (memcoll): Optimize for the common case where the
65235         arguments are bytewise equal.
65236
65237 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * doc/regexprops-generic.texi: Add a copyright notice.
65240
65241 2006-08-15  Bruno Haible  <bruno@clisp.org>
65242
65243         * modules/tmpdir (License): Change to LGPL.
65244
65245 2006-08-15  Bruno Haible  <bruno@clisp.org>
65246
65247         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65248         module.
65249
65250 2006-08-14  Simon Josefsson  <jas@extundo.com>
65251
65252         * config/srclist.txt: Add gnupload.
65253
65254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         Change copyright notice from LGPL 2 to GPL 2, since that's the
65257         standard form used in the gnulib repository.
65258         * tests/test-lock.c: Likewise.
65259         * tests/test-stdint.c: Likewise.
65260         * tests/test-tls.c: Likewise.
65261
65262         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65263         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65264         Add copyright notice.
65265
65266         * check-module: Add copyright notice.  Output a copyright
65267         notice if "--version" is specified.
65268         * modules/COPYING: New file.
65269         * tests/test-getaddrinfo.c: Add copyright notice.
65270         * tests/test-verify.c: Likewise.
65271
65272 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         Change copyright notice from LGPL 2 to GPL 2, since that's the
65275         standard form used in the gnulib repository.
65276         * lib/lock.c: LGPL -> GPL.
65277         * lib/lock.h: Likewise.
65278         * lib/strnlen1.c: Likewise.
65279         * lib/strnlen1.h: Likewise.
65280         * lib/tls.c: Likewise.
65281         * lib/tls.h: Likewise.
65282         * lib/tmpdir.c: Likewise.
65283
65284         * lib/TODO: Remove; this belongs only in coreutils.
65285
65286 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65287
65288         Add copyright notices to long-enough files that lack them, since
65289         otherwise the files aren't clearly free.  Use the same notice that
65290         getdate.texi already uses.
65291         * doc/alloca-opt.texi: Add copyright notice.
65292         * doc/alloca.texi: Likewise.
65293         * doc/ctime.texi: Likewise.
65294         * doc/functions.texi: Likewise.
65295         * doc/gcd.texi: Likewise.
65296         * doc/gnulib-tool.texi: Likewise.
65297         * doc/inet_ntoa.texi: Likewise.
65298         * doc/visibility.texi: Likewise.
65299
65300         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65301         * doc/quote.texi: Add copyright notice.
65302
65303         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65304         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65305         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65306         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65307         is now obsolete, and give a pointer to the Sun list.
65308         Add copyright notice.
65309
65310 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * config/srclistvars.sh: Add copyright notice.
65313
65314 2006-08-14  Eric Blake  <ebb9@byu.net>
65315
65316         Import the following change from libc:
65317
65318         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65319
65320         Upstream bug 2997.
65321         * lib/misc/error.c: Add space between program name and message if file
65322         name is missing.
65323
65324 2006-08-12  Karl Berry  <karl@gnu.org>
65325
65326         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65327         remove, these originate in gnulib now.
65328
65329 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65330
65331         * doc/Makefile (standards.info standards.html standards.dvi):
65332         Also depend on make-stds.texi.
65333
65334 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65337         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65338
65339         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65340         in wchar_t.  Problem reported by Eric Blake.
65341
65342         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65343         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65344         Also, help the compiler to keep LEN in a register.
65345
65346 2006-08-11  Eric Blake  <ebb9@byu.net>
65347
65348         * users.txt: Sort.  Add tar.
65349
65350 2006-08-11  Bruno Haible  <bruno@clisp.org>
65351
65352         * users.txt: New file.
65353
65354 2006-08-11  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65357         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65358
65359 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65360
65361         * modules/snprintf (Depends-on): Remove minmax.
65362         (Maintainer): Add self and Bruno.
65363
65364 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65367         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65368         (EOVERFLOW): Define if the system does not.
65369         Do not include "minmax.h"; it wasn't used.
65370         (snprintf): Don't assume size_t promotes to an unsigned type.
65371         Fix bug when generated string was too long for the buffer: the
65372         buffer's contents are supposed to be the initial prefix of the
65373         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65374         exceeds INT_MAX; do the check ourselves.
65375
65376         Import the following changes from libc:
65377
65378         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65379
65380         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65381         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65382         set wc to the byte which couldn't be converted.
65383         (re_string_reconstruct): Don't clear valid_raw_len before calling
65384         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65385         tip_context using re_string_context_at.
65386
65387         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65388
65389         * lib/posix/regex.h: g++ still cannot handled [restrict].
65390
65391         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65392
65393         * lib/posix/regex.h: Remove special handling for VMS.
65394
65395 2006-08-10  Jim Meyering  <jim@meyering.net>
65396
65397         * modules/same-inode: New module.
65398         * modules/dev-ino: New module.
65399         * modules/cycle-check: Depend on these modules, rather than simply
65400         including their .h files.
65401         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65402         required via m4/cycle-check.m4.
65403         * modules/same: Depend on new same-inode module, rather than
65404         including same-inode.h.
65405         * modules/chdir-safer: New file.
65406
65407         * modules/chown (Depends-on): Add stat-macros.
65408
65409 2006-08-10  Jim Meyering  <jim@meyering.net>
65410
65411         * m4/cycle-check.m4: New file.
65412         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65413         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65414
65415 2006-08-10  Eric Blake  <ebb9@byu.net>
65416
65417         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65418         in from original proposal.
65419
65420 2006-08-10  Eric Blake  <ebb9@byu.net>
65421         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65422
65423         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65424         namespace.
65425
65426 2006-08-10  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65429         as well.
65430
65431 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         Sync from coreutils.
65434
65435         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65436
65437         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65438         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65439
65440 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         * modules/restrict: Remove; no longer needed now that we assume
65443         Autoconf 2.59 or later.
65444         * MODULES.html.sh: Remove 'restrict'.
65445         * modules/argp (Depends-on): Remove 'restrict'.
65446         * modules/base64 (Depends-on): Likewise.
65447         * modules/gc (Depends-on): Likewise.
65448         * modules/getaddrinfo (Depends-on): Likewise.
65449         * modules/glob (Depends-on): Likewise.
65450         * modules/inet_ntop (Depends-on): Likewise.
65451         * modules/inet_pton (Depends-on): Likewise.
65452         * modules/memxor (Depends-on): Likewise.
65453         * modules/regex (Depends-on): Likewise.
65454         * modules/strtok_r (Depends-on): Likewise.
65455         * modules/time_r (Depends-on): Likewise.
65456
65457 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65458
65459         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65460         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65461         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65462         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65463         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65464         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65465         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65466         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65467
65468         Merge from coreutils.
65469         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65470         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65472         * m4/time_r.m4 (gl_TIME_R): Likewise.
65473
65474 2006-08-09  Karl Berry  <karl@gnu.org>
65475
65476         * config/srclist.txt: no more gettext-tools, per Bruno.
65477
65478 2006-08-08  Eric Blake  <ebb9@byu.net>
65479
65480         * modules/verror: New module.
65481         * MODULES.html.sh: Document it.
65482
65483 2006-08-08  Eric Blake  <ebb9@byu.net>
65484
65485         * lib/verror.h, lib/verror.c: New files.
65486
65487 2006-08-08  Eric Blake  <ebb9@byu.net>
65488
65489         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65490         verror_at_line output complies with GNU Coding Standards even when
65491         file is NULL.
65492
65493 2006-08-07  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65496         versions of AIX.
65497         Reported by Ralf Wildenhues.
65498
65499 2006-08-07  Bruno Haible  <bruno@clisp.org>
65500
65501         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65502         in an AC_DEFUN. Needed so that the autoconf snippets can use
65503         AC_REQUIRE.
65504
65505 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65506
65507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65508         Initialize pkgdata_DATA.
65509         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65510         overriding it.
65511
65512 2006-08-06  Eric Blake  <ebb9@byu.net>
65513
65514         * lib/error.h: Fold in some upstream changes from glibc.
65515         * lib/error.c: Likewise.
65516
65517 2006-08-04  Bruno Haible  <bruno@clisp.org>
65518
65519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65520         Make the mostlyclean-local rule depend on mostlyclean-generic.
65521         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65522
65523 2006-07-31  Bruno Haible  <bruno@clisp.org>
65524
65525         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65526         <stdlib.h>, <string.h>.
65527
65528 2006-07-30  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/readlink (License): Change to LGPL.
65531
65532 2006-07-30  Bruno Haible  <bruno@clisp.org>
65533
65534         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65535         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65536         set PKGDATADIR to point to it.
65537
65538 2006-07-30  Bruno Haible  <bruno@clisp.org>
65539
65540         * modules/csharpexec (configure.ac): Comment out macro invocation.
65541         * modules/javaexec (configure.ac): Likewise.
65542         * modules/javacomp-script (configure.ac): Likewise.
65543
65544         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65545
65546 2006-07-30  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65549         linked-list.
65550
65551 2006-07-30  Bruno Haible  <bruno@clisp.org>
65552
65553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65554
65555 2006-07-30  Bruno Haible  <bruno@clisp.org>
65556
65557         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65558         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65559         get removed.
65560
65561 2006-07-29  Bruno Haible  <bruno@clisp.org>
65562
65563         Make it possible for gnulib-tool to work with locally modified or
65564         augmented gnulib repositories.
65565         * gnulib-tool (func_usage): Document --local-dir option.
65566         (local_gnulib_dir): New variable.
65567         Handle --local-dir option.
65568         (func_lookup_file): New function.
65569         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65570         (func_get_description, func_get_filelist, func_get_description,
65571         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65572         func_get_automake_snippet, func_get_include_directive,
65573         func_get_license, func_get_maintainer): Use func_lookup_file.
65574         (func_import, func_create_testdir): Use func_lookup_file.
65575
65576 2006-07-29  Bruno Haible  <bruno@clisp.org>
65577
65578         * modules/setenv (Depends-on): Add unistd.
65579
65580 2006-07-29  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65583
65584 2006-07-29  Bruno Haible  <bruno@clisp.org>
65585
65586         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65587
65588 2006-07-29  Bruno Haible  <bruno@clisp.org>
65589
65590         * gnulib-tool (import, update): If there is no Makefile.am, look at
65591         aclocal.m4, instead of bailing out.
65592
65593 2006-07-29  Bruno Haible  <bruno@clisp.org>
65594
65595         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65596         Categorize the options by when they are useful.
65597
65598 2006-07-29  Bruno Haible  <bruno@clisp.org>
65599
65600         * gnulib-tool (func_usage): Document option --no-libtool.
65601         Handle option --no-libtool.
65602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65603         for changed semantics of $libtool variable.
65604         (func_import): Likewise. If libtool is not used, show this through
65605         an option --no-libtool.
65606         (func_create_testdir): Update.
65607
65608 2006-07-29  Bruno Haible  <bruno@clisp.org>
65609
65610         * gnulib-tool (func_import): Extend error message about missing
65611         --doc-base.
65612
65613 2006-07-29  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_import): Don't create the $docbase directory if
65616         there is no file to store there.
65617
65618 2006-07-29  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65621         relevant, look for configure.ac there, not in the current directory.
65622         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65623
65624 2006-07-29  Bruno Haible  <bruno@clisp.org>
65625
65626         * gnulib-tool (SORT): New variable.
65627         (func_usage): Undocument --assume-autoconf option.
65628         Remove --assume-autoconf option handling.
65629         (autoconf_minversion): Determine from the contents of configure.ac.
65630         (func_import): Remove autoconf_minversion handling.
65631         Suggested by Eric Blake.
65632
65633 2006-07-29  Bruno Haible  <bruno@clisp.org>
65634
65635         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65636
65637 2006-07-29  Bruno Haible  <bruno@clisp.org>
65638
65639         * config/srclist.txt (*setenv.[ch]): Remove rules.
65640
65641 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65642
65643         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65644
65645 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65646
65647         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65648         arpa/inet.h.
65649
65650 2006-07-28  Simon Josefsson  <jas@extundo.com>
65651
65652         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65653         * modules/inet_pton (Depends-on): Likewise.
65654
65655 2006-07-28  Simon Josefsson  <jas@extundo.com>
65656
65657         * m4/netinet_in_h.m4: New file.
65658
65659 2006-07-28  Simon Josefsson  <jas@extundo.com>
65660
65661         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65662         #include's.
65663
65664 2006-07-28  Simon Josefsson  <jas@extundo.com>
65665
65666         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65667         #include's.
65668
65669 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65672         setgid on directories only if they set these bits.
65673         * lib/modechange.h: Remove obsolete comment about masks.
65674
65675 2006-07-28  Eric Blake  <ebb9@byu.net>
65676
65677         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65678         macro expansion.
65679
65680 2006-07-28  Bruno Haible  <bruno@clisp.org>
65681
65682         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65683
65684 2006-07-28  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65687
65688 2006-07-28  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65691         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65692         Define fallbacks.
65693         Avoids link error on FreeBSD 4.x.
65694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65695
65696         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65697         encoding.
65698         * lib/mbswidth.c (iswcntrl): Likewise.
65699
65700 2006-07-27  Bruno Haible  <bruno@clisp.org>
65701
65702         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65703         test.
65704
65705 2006-07-27  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65708         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65709         defined.
65710
65711 2006-07-26  Eric Blake  <ebb9@byu.net>
65712
65713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65714
65715 2006-07-26  Eric Blake  <ebb9@byu.net>
65716
65717         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65718         like mingw that lack mkstemp.
65719         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65720         avoid compilation warning on mingw.
65721
65722 2006-07-26  Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65725         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65726         INT_FAST*_MIN, INTPTR_MIN.
65727
65728 2006-07-25  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/version-etc (Depends-on): Add stdarg.
65731
65732 2006-07-25  Bruno Haible  <bruno@clisp.org>
65733
65734         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65735         complex commands.
65736
65737 2006-07-25  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65740         defined in <stdarg.h> or config.h.
65741
65742 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65745         (gl_STDIO_SAFER): Remove.
65746
65747 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * MODULES.html.sh (File stream based Input/Output):
65750         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65751         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65752         * modules/fopen-safer, modules/tmpfile-safer: New files.
65753         * modules/stdio-safer: Remove.
65754
65755 2006-07-24  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/tmpdir: New file.
65758         * MODULES.html.sh (File system functions): Add it.
65759
65760 2006-07-24  Bruno Haible  <bruno@clisp.org>
65761
65762         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65763         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65764
65765 2006-07-24  Bruno Haible  <bruno@clisp.org>
65766
65767         * modules/clean-temp: New file.
65768
65769 2006-07-24  Bruno Haible  <bruno@clisp.org>
65770
65771         * m4/tmpdir.m4: New file, from GNU gettext.
65772
65773 2006-07-24  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/tmpdir.h: New file, from GNU gettext.
65776         * lib/tmpdir.c: New file, from GNU gettext.
65777
65778 2006-07-24  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/clean-temp.h: New file, from GNU gettext.
65781         * lib/clean-temp.c: New file, from GNU gettext.
65782
65783 2006-07-23  Eric Blake  <ebb9@byu.net>
65784
65785         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65786         (Depends-on): Add binary-io.
65787
65788 2006-07-23  Eric Blake  <ebb9@byu.net>
65789
65790         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65791
65792 2006-07-23  Eric Blake  <ebb9@byu.net>
65793
65794         * lib/tmpfile-safer.c: New file.
65795         * lib/stdio-safer.h (fopen_safer): Add prototype.
65796         * lib/stdio--.h (tmpfile): Make safer.
65797
65798 2006-07-23  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65801         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65802         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65803         gl_linked_remove_at): Use it.
65804
65805 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65806         and Simon Josefsson <jas@extundo.com>
65807
65808         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65809
65810         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65811
65812 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65813
65814         * modules/close-stream: New file.
65815         * modules/closeout (Description): Make it clear that it exits
65816         with a diagnostic on error.
65817         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65818         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65819
65820 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * m4/close-stream.m4: New file.
65823
65824 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * lib/close-stream.c, lib/close-stream.h: New files.
65827
65828 2006-07-22  Bruno Haible  <bruno@clisp.org>
65829
65830         Merge from GNU gettext 0.15.
65831
65832         2006-05-01  Bruno Haible  <bruno@clisp.org>
65833
65834                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65835
65836         2006-07-22  Bruno Haible  <bruno@clisp.org>
65837
65838                 * modules/javaversion: New file.
65839                 * MODULES.html.sh (Java): Add javaversion.
65840
65841         2006-03-12  Bruno Haible  <bruno@clisp.org>
65842
65843                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65844
65845         2005-12-04  Bruno Haible  <bruno@clisp.org>
65846
65847                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65848                 (untested).
65849
65850         2006-06-21  Bruno Haible  <bruno@clisp.org>
65851
65852                 Avoid warnings from recent versions of mcs.
65853                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65854                 -o, -L, -r any more. Use options documented since mcs-1.0
65855                 instead. Similarly for -g.
65856
65857         2005-12-04  Bruno Haible  <bruno@clisp.org>
65858
65859                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65860                 .resources, not .resource.
65861
65862         2005-07-09  Bruno Haible  <bruno@clisp.org>
65863
65864                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65865                 add a .dll suffix.
65866                 Reported by Mark Junker <mjscod@gmx.de>.
65867
65868         2006-07-22  Bruno Haible  <bruno@clisp.org>
65869
65870                 * modules/gettext: Upgrade to gettext-0.15.
65871                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65872                 m4/visibility.m4.
65873                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65874
65875 2006-07-22  Bruno Haible  <bruno@clisp.org>
65876
65877         Merge from GNU gettext 0.15.
65878
65879         2006-03-25  Bruno Haible  <bruno@clisp.org>
65880
65881                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65882
65883         2006-07-21  Bruno Haible  <bruno@clisp.org>
65884
65885                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65886                 "1.1".
65887
65888         2006-05-09  Bruno Haible  <bruno@clisp.org>
65889
65890                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65891                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65892                 for the conftestver execution.
65893
65894         2006-05-01  Bruno Haible  <bruno@clisp.org>
65895
65896                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65897                 optional target-version argument. Verify that the compiler
65898                 groks source of the specified source-version, or add -source
65899                 option as necessary. Verify that the compiler produces
65900                 bytecode in the specified target-version, or add -target and
65901                 -source options as necessary. Make the result of the test
65902                 available as variable CONF_JAVAC. Also log error output in
65903                 config.log.
65904
65905         2006-03-11  Bruno Haible  <bruno@clisp.org>
65906
65907                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65908
65909         2006-05-09  Bruno Haible  <bruno@clisp.org>
65910
65911                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65912                 CLASSPATH_SEPARATOR to a semicolon.
65913
65914         2006-03-12  Bruno Haible  <bruno@clisp.org>
65915
65916                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65917                 available as variable CONF_JAVA, for subsequent autoconf
65918                 tests. Also log error output in config.log.
65919
65920         2006-07-19  Bruno Haible  <bruno@clisp.org>
65921
65922                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65923                 that getline works on glibc2 systems. Needed to avoid trouble
65924                 in relocatable.c.
65925                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65926
65927         2005-12-04  Bruno Haible  <bruno@clisp.org>
65928
65929                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65930                 launcher (untested).
65931
65932         2005-12-04  Bruno Haible  <bruno@clisp.org>
65933
65934                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65935
65936         2006-07-22  Bruno Haible  <bruno@clisp.org>
65937
65938                 * gettext.m4: Update from GNU gettext-0.15.
65939                 * nls.m4: Likewise.
65940                 * po.m4: Likewise.
65941                 * inttypes-pri.m4: Likewise.
65942                 * inttypes-h.m4: Renamed from inttypes.m4.
65943                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65944
65945 2006-07-22  Bruno Haible  <bruno@clisp.org>
65946
65947         Merge from GNU gettext 0.15.
65948
65949         2005-07-05  Bruno Haible  <bruno@clisp.org>
65950
65951                 * printf-args.c (printf_fetchargs): Work around broken
65952                 definition of wint_t on mingw.
65953
65954         2005-02-12  Bruno Haible  <bruno@clisp.org>
65955
65956                 * xallocsa.h: Add extern "C" for C++.
65957
65958         2006-05-17  Bruno Haible  <bruno@clisp.org>
65959
65960                 Cygwin portability.
65961                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65962
65963         2006-04-30  Bruno Haible  <bruno@clisp.org>
65964
65965                 * progreloc.c: Include <mach-o/dyld.h> if available.
65966                 (find_executable): Use _NSGetExecutablePath when possible.
65967
65968         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65969
65970                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65971                 function.
65972
65973         2005-12-29  Bruno Haible  <bruno@clisp.org>
65974
65975                 * progreloc.c (set_program_name_and_installdir): Fix
65976                 compilation error.
65977
65978         2005-12-04  Bruno Haible  <bruno@clisp.org>
65979
65980                 Cygwin portability.
65981                 * progreloc.c: Include <windows.h> also on Cygwin.
65982                 (find_executable): Add support for Cygwin.
65983                 (set_program_name_and_installdir): Handle also platforms with
65984                 nonempty EXEEXT.
65985
65986         2006-07-11  Bruno Haible  <bruno@clisp.org>
65987
65988                 * javacomp.c: Fix a comment.
65989                 Reported by Jim Meyering.
65990
65991         2006-04-30  Bruno Haible  <bruno@clisp.org>
65992
65993                 * javacomp.h (compile_java_class): Add source_version,
65994                 target_version arguments.
65995                 * javacomp.c: Rewritten to choose only a compiler that
65996                 respects the specified source_version and target_version.
65997
65998         2006-06-27  Bruno Haible  <bruno@clisp.org>
65999
66000                 Assume correct S_ISDIR macro.
66001                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66002
66003         2006-07-22  Bruno Haible  <bruno@clisp.org>
66004
66005                 * javaversion.h: New file, from GNU gettext.
66006                 * javaversion.c: New file, from GNU gettext.
66007                 * javaversion.java: New file, from GNU gettext.
66008                 * javaversion.class: New file, from GNU gettext.
66009
66010         2006-05-17  Bruno Haible  <bruno@clisp.org>
66011
66012                 Cygwin portability.
66013                 * javaexec.c (execute_java_class): Test for jview program
66014                 also on Cygwin.
66015
66016         2006-04-09  Bruno Haible  <bruno@clisp.org>
66017
66018                 * fatal-signal.c: Don't include string.h.
66019                 (at_fatal_signal): Use a copying loop instead of memcpy.
66020
66021         2005-12-04  Bruno Haible  <bruno@clisp.org>
66022
66023                 * csharpexec.c: Add support for 'clix' launcher (untested).
66024                 (execute_csharp_using_sscli): New function.
66025                 (execute_csharp_program): Call it.
66026
66027         2006-06-21  Bruno Haible  <bruno@clisp.org>
66028
66029                 Avoid warnings from recent versions of mcs.
66030                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66031                 -o, -L, -r any more. Use options documented since mcs-1.0
66032                 instead. Similarly for -g.
66033
66034         2005-07-09  Bruno Haible  <bruno@clisp.org>
66035
66036                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66037                 add a .dll suffix.
66038                 Reported by Mark Junker <mjscod@gmx.de>.
66039
66040         2006-06-17  Bruno Haible  <bruno@clisp.org>
66041
66042                 * config.charset: Update for NetBSD 3.0.
66043
66044         2006-05-17  Bruno Haible  <bruno@clisp.org>
66045
66046                 Cygwin portability.
66047                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66048
66049         2006-05-16  Bruno Haible  <bruno@clisp.org>
66050
66051                 * localcharset.c [CYGWIN]: Include <windows.h>.
66052                 (get_charset_aliases): For Cygwin, return the same CPxxx
66053                 aliases list as under WIN32.
66054                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66055                 the environment variables. Fall back to GetACP().
66056
66057         2006-04-05  Bruno Haible  <bruno@clisp.org>
66058
66059                 * config.charset: Update Juan Manuel Guerrero's address.
66060
66061         2005-02-12  Bruno Haible  <bruno@clisp.org>
66062
66063                 * allocsa.h: Add extern "C" for C++.
66064
66065         2005-02-10  Bruno Haible  <bruno@clisp.org>
66066
66067                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66068                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66069
66070         2006-07-22  Bruno Haible  <bruno@clisp.org>
66071
66072                 * gettext.h: Update to GNU gettext-0.15.
66073
66074 2006-07-22  Bruno Haible  <bruno@clisp.org>
66075
66076         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66077         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66078         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66079
66080 2006-07-21  Eric Blake  <ebb9@byu.net>
66081
66082         * modules/stdlib-safer: New file.
66083         * MODULES.html.sh (File stream based Input/Output): Add
66084         stdlib-safer.
66085
66086 2006-07-21  Eric Blake  <ebb9@byu.net>
66087
66088         * lib/stdlib-safer.h: New file from coreutils, required by
66089         stdlib--.h.
66090
66091 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66092
66093         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66094
66095 2006-07-20  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool: Recognize new option --assume-autoconf.
66098         (autoconf_minversion): New variable.
66099         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66100
66101 2006-07-20  Bruno Haible  <bruno@clisp.org>
66102
66103         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66104
66105 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66106
66107         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66108         Reindent and repaginate.
66109
66110 2006-07-19  Derek Price  <derek@ximbiot.com>
66111
66112         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66113         Correct grammar.
66114
66115 2006-07-17  Bruno Haible  <bruno@clisp.org>
66116
66117         * modules/list: New file.
66118         * modules/array-list: New file.
66119         * modules/carray-list, modules/carray-list-tests: New files.
66120         * modules/linked-list, modules/linked-list-tests: New files.
66121         * modules/avltree-list, modules/avltree-list-tests: New files.
66122         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66123         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66124         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66125         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66126         * modules/oset: New file.
66127         * modules/array-oset: New file.
66128         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66129         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66130         * tests/test-carray_list.c: New file.
66131         * tests/test-linked_list.c: New file.
66132         * tests/test-avltree_list.c: New file.
66133         * tests/test-rbtree_list.c: New file.
66134         * tests/test-linkedhash_list.c: New file.
66135         * tests/test-avltreehash_list.c: New file.
66136         * tests/test-rbtreehash_list.c: New file.
66137         * tests/test-avltree_oset.c: New file.
66138         * tests/test-rbtree_oset.c: New file.
66139         * MODULES.html.sh (Container data structures): New section.
66140
66141 2006-07-17  Bruno Haible  <bruno@clisp.org>
66142
66143         * m4/gl_list.m4: New file.
66144
66145 2006-07-17  Bruno Haible  <bruno@clisp.org>
66146
66147         * lib/gl_list.h: New file.
66148         * lib/gl_list.c: New file.
66149         * lib/gl_array_list.h: New file.
66150         * lib/gl_array_list.c: New file.
66151         * lib/gl_carray_list.h: New file.
66152         * lib/gl_carray_list.c: New file.
66153         * lib/gl_linked_list.h: New file.
66154         * lib/gl_linked_list.c: New file.
66155         * lib/gl_anylinked_list1.h: New file.
66156         * lib/gl_anylinked_list2.h: New file.
66157         * lib/gl_avltree_list.h: New file.
66158         * lib/gl_avltree_list.c: New file.
66159         * lib/gl_anyavltree_list1.h: New file.
66160         * lib/gl_anyavltree_list2.h: New file.
66161         * lib/gl_rbtree_list.h: New file.
66162         * lib/gl_rbtree_list.c: New file.
66163         * lib/gl_anyrbtree_list1.h: New file.
66164         * lib/gl_anyrbtree_list2.h: New file.
66165         * lib/gl_anytree_list1.h: New file.
66166         * lib/gl_anytree_list2.h: New file.
66167         * lib/gl_linkedhash_list.h: New file.
66168         * lib/gl_linkedhash_list.c: New file.
66169         * lib/gl_anyhash_list1.h: New file.
66170         * lib/gl_anyhash_list2.h: New file.
66171         * lib/gl_avltreehash_list.h: New file.
66172         * lib/gl_avltreehash_list.c: New file.
66173         * lib/gl_rbtreehash_list.h: New file.
66174         * lib/gl_rbtreehash_list.c: New file.
66175         * lib/gl_anytreehash_list1.h: New file.
66176         * lib/gl_anytreehash_list2.h: New file.
66177
66178         * lib/gl_oset.h: New file.
66179         * lib/gl_oset.c: New file.
66180         * lib/gl_array_oset.h: New file.
66181         * lib/gl_array_oset.c: New file.
66182         * lib/gl_avltree_oset.h: New file.
66183         * lib/gl_avltree_oset.c: New file.
66184         * lib/gl_rbtree_oset.h: New file.
66185         * lib/gl_rbtree_oset.c: New file.
66186         * lib/gl_anytree_oset.h: New file.
66187
66188 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * m4/mkancesdirs.m4: New file.
66191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66192         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66193         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66194         it.
66195
66196 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66199         * lib/mkancesdirs.h: New files.
66200         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66201         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66202         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66203         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66204         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66205         callers changed.  Revamp internals significantly, by not
66206         attempting to create directories that are temporarily more
66207         permissive than the final results.  Do not attempt to use
66208         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66209         This removes some race conditions, fixes some bugs, and simplifies
66210         things.  Use new dirchownmod function to do owner and mode changes.
66211         * lib/mkdir-p.h: Likewise.
66212         * lib/modechange.c (octal_to_mode): New function.
66213         (struct mode_change): New member mentioned.
66214         (make_node_op_equals): New arg mentioned.  All callers changed.
66215         (mode_compile): Keep track of which mode bits the user has explicitly
66216         mentioned.
66217         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66218         New arg PMODE_BITS, to keep track of which mode bits the user
66219         mentioned; it treats S_ISUID and S_ISGID speciall.
66220         All callers changed.
66221         * lib/modechange.h: Likewise.
66222
66223 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * MODULES.html.sh: Add mkancestors.
66226         * modules/mkancesdirs: New module.
66227         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66228         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66229         The chdir-safer and afs files are now orphans; I'll remove them
66230         unless someone speaks up.
66231         Add lib/dirchownmod.c, lib/dirchownmod.h.
66232         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66233         Add lchown, mkancesdirs.
66234         (Maintainer): Add self.
66235
66236 2006-07-15  Karl Berry  <karl@gnu.org>
66237
66238         * gnulib-tool: help message wording/arrangement.
66239
66240 2006-07-14  Simon Josefsson  <jas@extundo.com>
66241
66242         * doc/gnulib.texi (Libtool and Windows): New section.
66243
66244 2006-07-12  Simon Josefsson  <jas@extundo.com>
66245
66246         * modules/gendocs (License): Fix license, approved by Karl.
66247
66248 2006-07-12  Eric Blake  <ebb9@byu.net>
66249
66250         * MODULES.html.sh: Add gendocs.
66251
66252 2006-07-11  Eric Blake  <ebb9@byu.net>
66253
66254         * modules/fdl: New module, to install doc/fdl.texi.
66255         * MODULES.html.sh: Add new section for documentation modules.
66256         * gnulib-tool: Avoid space-tab.
66257         (--doc-base): New option, to manage files from doc.
66258
66259 2006-07-11  Eric Blake  <ebb9@byu.net>
66260
66261         * m4/absolute-header.m4: Fix comments to match recent change.
66262
66263 2006-07-11  Eric Blake  <ebb9@byu.net>
66264
66265         * gnulib-tool: List --doc-base before --tests-base.
66266
66267 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66268
66269         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66270
66271 2006-07-11  Bruno Haible  <bruno@clisp.org>
66272
66273         * README: Mention where to put documentation.
66274
66275 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66276
66277         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66278
66279 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66280
66281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66282         to stdint.m4.
66283
66284 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66287         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66288         "no/such/file/stdint.h" when there is no such file, so that
66289         the resulting C code can be parsed by dodgy compilers.
66290         Problems reported by Bob Proulx.
66291
66292 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66293
66294         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66295         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66296         macros into the GNU _D_EXACT_NAMLEN.
66297         * lib/savedir.c:  Likewise.
66298         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66299
66300 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66301         and Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66304         * m4/savedir.m4:
66305         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66306         macros into the GNU _D_EXACT_NAMLEN.
66307
66308 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66311         around the absolute name, to work around a problem with the HP-UX
66312         11.23 native C compiler, reported by Bob Proulx.
66313
66314 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66315
66316         * doc/maintain.texi, make-stds.texi: Sync from
66317         <http://savannah.gnu.org/projects/gnustandards>.
66318
66319 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66322
66323 2006-07-09  Jim Meyering  <jim@meyering.net>
66324
66325         * m4/glob.m4: Remove a doubled word in a comment.
66326
66327 2006-07-09  Jim Meyering  <jim@meyering.net>
66328
66329         * lib/argp-pv.c: Remove a doubled word in a comment.
66330         * lib/check-version.c (check_version): Likewise.
66331         * lib/javacomp.c (compile_java_class): Likewise.
66332
66333 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66336         for the benefit of people using Autoconf 2.60.  If you want to
66337         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66338         (or m4/onceonly.m4, if pre-2.57) manually.
66339
66340 2006-07-08  Jim Meyering  <jim@meyering.net>
66341
66342         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66343         comment.
66344         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66345         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66346         comment.
66347
66348 2006-07-08  Jim Meyering  <jim@meyering.net>
66349
66350         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66351
66352 2006-07-07  Simon Josefsson  <jas@extundo.com>
66353
66354         * tests/test-crc.c: Change expected crc value, the test vector
66355         were probably computed using the old broken crc.c?
66356
66357 2006-07-06  Simon Josefsson  <jas@extundo.com>
66358
66359         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66360         now the canonical place for the M4 file).
66361
66362         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66363         from the sys_socket dependency now.
66364
66365         * modules/inet_pton (Files): Ditto.
66366
66367         * modules/inet_ntop (Files): Ditto.
66368
66369 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66370
66371         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66372         not gl_PREREQ_GETUSERSHELL.
66373
66374 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66375
66376         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66377         with only one argument, for Autoconf 2.60.
66378         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66379         expand to nothing, so add a shell command to avoid syntax error.
66380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66381
66382 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66383
66384         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66385
66386 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66389         no longer needed.  Check for isblank decl.
66390         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66391         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66392         of existence.
66393
66394 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * lib/getloadavg.c: Use __VMS, not VMS.
66397         * lib/getopt.c: Likewise.
66398         * lib/getpagesize.h: Likewise.
66399         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66400         and probably does not work.
66401
66402 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         * lib/.cppi-disable: Add wcwidth.
66405         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66406         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66407         (ISGRAPH): Remove.  All uses changed to isgraph.
66408         (FOLD) [!defined _LIBC]: Remove special case.
66409         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66410         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66411         HAVE_ISBLANK.
66412         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66413         case.
66414
66415 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66416
66417         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66418         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66419         brackets.  Other minor changes to suppress some compiler
66420         warnings.
66421
66422 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66423         and Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66426         of invoking obsolescent AC_HEADER_DIRENT macro.
66427         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66428         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66431         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66432         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66433         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66434         * m4/readdir.m4: Remove; no longer needed.
66435
66436 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66437         and Paul Eggert  <eggert@cs.ucla.edu>
66438
66439         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66440         Don't worry about this obsolete case any more.
66441         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66442         directories.
66443         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66444         worry about this obsolete case any more.
66445         * lib/fts.c: Likewise.
66446         * lib/getcwd.c: Likewise.
66447         * lib/glob.h: Likewise.
66448         * lib/savedir.c: Likewise.
66449
66450 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66453         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66454         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66455         needed.
66456         All uses removed.
66457         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66458         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66459         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66460         needed.
66461         * m4/getdate.m4 (gl_GETDATE): Likewise.
66462         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66463         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66464         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66465         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66466         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66467         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66468         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66469         needed.
66470
66471 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * lib/memcasecmp.c: Include <limits.h>.
66474         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66475         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66476         Don't assume isdigit succeeds only on '0' through '9'.
66477
66478 2006-07-05  Eric Blake  <ebb9@byu.net>
66479
66480         * modules/getaddrinfo (Depends-on): Add snprintf.
66481
66482 2006-07-05  Eric Blake  <ebb9@byu.net>
66483
66484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66485         to avoid 'header present but could not be compiled' on cygwin.
66486
66487 2006-07-05  Eric Blake  <ebb9@byu.net>
66488
66489         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66490         missing from netdb.h.
66491         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66492
66493 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66494
66495         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66496         no longer needed.
66497         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66498         * m4/getdate.m4 (gl_GETDATE): Likewise.
66499         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66500         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66501         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66502         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66504
66505 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66506
66507         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66508         All uses of is_space replaced by isspace.
66509         * lib/exit.h: Don't talk about STDC_HEADERS.
66510         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66511         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66512         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66513         replaced by isprint etc.
66514         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66515         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66516         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66517         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66518         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66519         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66520
66521 2006-07-05  Bruno Haible  <bruno@clisp.org>
66522
66523         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66524         the function exists, before testing against AIX.
66525         Reported by Martin Lambers <marlam@marlam.de>.
66526
66527 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66530         From Mark D. Baushke.
66531
66532 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66533
66534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66535         to the absolute name, not just one, to bypass Sun C 5.8's
66536         "warning: #include of /usr/include/... may be non-portable".
66537
66538 2006-07-04  Eric Blake  <ebb9@byu.net>
66539
66540         * modules/dirname-tests: New test module.
66541         * tests/test-dirname.c: New file, replacing dirname.c
66542         TEST_DIRNAME section that was recently deleted.
66543
66544 2006-07-04  Bruno Haible  <bruno@clisp.org>
66545
66546         Assume ANSI C header files and <ctype.h> functions.
66547         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66548         (mbsnwidth): Use isprint, iscntrl instead.
66549
66550 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         Merge from coreutils.
66553         * MODULES.html.sh: Add xstrtold.
66554         * modules/xstrtold: New file.
66555         * modules/cycle-check (Files): Add lib/same-inode.h.
66556         * modules/dirname (Files): Add m4/double-slash-root.m4.
66557         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66558         * modules/mkdir-p (Files): Add lib/same-inode.h.
66559         * modules/same (Files): Add lib/same-inode.h.
66560
66561 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66562
66563         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66564         This is to keep the terminology clean; POSIX talks about
66565         "absolute pathnames", not "full pathnames", but the GNU
66566         Coding Standards say to use "path" for something else;
66567         so use "absolute" to keep both sides happy.
66568         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66569         Set gl_absolute_header, not gl_full_header_path.
66570         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66571         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66572         All uses changed.
66573
66574         Merge from coreutils.
66575
66576         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66579         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66580         want to require the building of c-strtod.o.
66581         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66582         needs -lm directly.
66583         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66584
66585         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66588         --as-needed option if available.  Problem reported by Albert Chin in
66589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66590         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66591         cc merely issues a bunch of annoying warnings for --as-needed
66592         (this problem was reported by Bob Proulx).  Also, try linking with
66593         -lm to detect a bug in binutils 2.16 (this problem was reported
66594         by Ralf Wildenhues).
66595
66596         2006-06-18  Jim Meyering  <jim@meyering.net>
66597
66598         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66599         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66600         macro.
66601         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66602         also check for glibc-2.4's abort-inducing bug.
66603
66604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66605         Low-probability clean-up should be to use rmdir to get rid of
66606         the just-created directory, not unlink.
66607
66608         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66609         configure fail, and request a bug report to inform us about it.
66610         Add a comment that, barring reports to the contrary, in 2007 we'll
66611         assume ftruncate is universally available.
66612
66613         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66616
66617         2006-03-12  Jim Meyering  <jim@meyering.net>
66618
66619         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66620         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66621         * m4/same.m4 (gl_SAME): Likewise.
66622         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66623
66624         2006-03-11  Eric Blake  <ebb9@byu.net>
66625
66626         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66627         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66628         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66629         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66630
66631 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66634         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66635         reported by Mark D. Baushke, one in
66636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66637
66638         Merge from coreutils.
66639
66640         * lib/.cppi-disable: Add stdint_.h.
66641         * lib/.cvsignore: Add stdint.h.
66642
66643         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66646         both double and long double versions.
66647         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66648         * lib/xstrtold.c: New file.
66649         * lib/xstrtod.h (xstrtold): New decl.
66650
66651         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * lib/filemode.c (setst): Remove.
66654         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66655         (arguably) clearer, and the generated code is a bit smaller on my
66656         Debian GNU/Linux stable x86 host.
66657
66658         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66661         Assume that filemode.h includes sys/types.h and sys/stat.h.
66662         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66663         (ftypelet): Reorder to put common cases first, for efficiency.
66664         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66665         to do 'M'.
66666         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66667         of 10, for compatibility with FreeBSD.  All callers changed.
66668         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66669         types that can't be deduced solely from st_mode.  First arg is now a
66670         const pointer.
66671         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66672         (strmode): Renamed from mode_string.
66673         (filemodestring): New decl.
66674         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66675         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66676         needed.
66677         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66678
66679         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66682         fsusage.h now does that.  Include fsusage.h first, to test interface.
66683         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66684         at most one method (the old code could have generated decls that
66685         didn't conform to C89, not that this was ever exercised).
66686         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66687
66688         2006-03-19  Jim Meyering  <jim@meyering.net>
66689
66690         Work even in a chroot where d_ino values for entries in "/"
66691         don't match the stat.st_ino values for the same names.
66692         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66693         number, iterate through all entries again, using lstat instead.
66694         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66695         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66696
66697         * lib/getcwd.c (__getcwd): Clarify a comment.
66698         Use memcpy in place of a call to strcpy.
66699
66700         2006-03-12  Jim Meyering  <jim@meyering.net>
66701
66702         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66703         matches that of the current directory (which we're about to chdir ".."
66704         out of), then save the dev-ino of the parent, instead.
66705
66706         * lib/same-inode.h (SAME_INODE): New file/macro.
66707         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66708         Include "same-inode.h", instead.
66709         * lib/same.c: Likewise.
66710         * lib/cycle-check.h: Include "same-inode.h".
66711         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66712         * lib/cycle-check.c (SAME_INODE): Remove definition.
66713         * lib/root-dev-ino.h: Include "same-inode.h".
66714
66715         2006-03-11  Eric Blake  <ebb9@byu.net>
66716
66717         * lib/same.c (same_name): s/base_name/last_component/
66718         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66719         * lib/filenamecat.c (file_name_concat): Likewise.
66720
66721         2006-03-11  Eric Blake  <ebb9@byu.net>,
66722                     Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66725         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66726         drive prefix.
66727         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66728         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66729         (last_component): New method.
66730         * lib/dirname.c (dir_len): Determine when drive letters need a
66731         subsequent slash.  Preserve // when it is special.
66732         (dir_name): Don't append dot when drive letter is absolute.
66733         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66734         * lib/basename.c (base_name): New semantics - malloc the result.
66735         Preserve // when it is special.  Preserve relative files that look
66736         like drive letters.
66737         (base_len): Preserve // when it is special.
66738         (last_component): New method, similar to old base_name semantics.
66739         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66740         base_name.  Strip redundant slashes from ///.
66741
66742 2006-07-03  Jim Meyering  <jim@meyering.net>
66743
66744         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66745         macro is used before the first cycle_check call.
66746
66747 2006-07-03  Eric Blake  <ebb9@byu.net>
66748
66749         * modules/dirname (Depends-on): Add xstrndup.
66750
66751 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66754         test cases, so that config.log is a bit easier to follow.
66755
66756 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66759         both are 64 bits, since this seems to be the tradition, and this
66760         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66761         we ever run into a host that prefers long long to long in this
66762         case, we'll need another configure-time test.  Problem reported by
66763         Jim Meyering.
66764
66765 2006-07-02  Eric Blake  <ebb9@byu.net>
66766
66767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66768
66769 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * modules/inttypes (Depends-on): No longer depends on stdint.
66772         * modules/stdint (Description): Say more about assumptions.
66773         Say that the fast types might differ.  Say macros are used.
66774         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66775         (Makefile.am): Revise list of substituted symbols to match
66776         new stdint.m4.
66777         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66778         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66779         * tests/test-stdint.c (verify_same_types)
66780         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66781         the code conforms to C99/C89.
66782         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66783         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66784
66785 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66788         but fix a bug, by requiring at least 64 bits.
66789         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66790         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66791         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66792         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66793
66794         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66795         changes.  Make 2.59 a prerequisite.  Check and substitute for
66796         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66797         inttypes.h.  Do not use special include files; just use the
66798         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66799         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66800         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66801         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66802         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66803         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66804         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66805         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66806         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66807         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66808         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66809         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66810         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66811         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66812         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66813         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66814         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66815         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66816         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66817         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66818         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66819         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66820         not check for things that C99 does not require, e.g., int8_t.  If
66821         a test isn't needed unless <stdint.h> isn't working, and is
66822         unlikely to be needed for any other reason, then don't do it
66823         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66824         size_t, since we assume C89 freestanding at least.  Do not check
66825         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66826         the right thing even if the types are not defined.  Instead use:
66827         (gl_STDINT_TYPE_PROPERTIES): New macro.
66828         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66829         testing whether <sys/types.h> clashes, as Autoconf does this for
66830         us now.  All uses removed.
66831         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66832         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66833         (gl_CHECK_TYPE_SAME):
66834         Remove; no longer needed.
66835         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66836         exists, since we'll return 0 anyway in that case.
66837         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66838
66839 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66842         possible collision with system files.
66843         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66844         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66845         WCHAR_MIN and WCHAR_MAX in this case.
66846         (<stddef.h>): Do not include; no longer needed.
66847         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66848         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66849         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66850         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66851         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66852         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66853         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66854         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66855         !defined(__c99))]: Include in this case too, since it's harmless
66856         now.
66857         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66858         dangerous to do so.
66859         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66860         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66861         (_STDINT_MIN, _STDINT_MAX): New macros.
66862         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66863         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66864         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66865         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66866         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66867         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66868         macros, not typedefs; this simplifies things quite a bit.
66869         Use long int for all types narrower than int64_t.
66870         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66871         Define in terms of long long int or int64_t or long int,
66872         not int64_t or int32_t.  This saves some compile-time testing.
66873         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66874         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66875         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66876         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66877         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66878         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66879         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66880         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66881         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66882         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66883         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66884         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66885         undef any previous version and define our own version, for
66886         simplicity and consistency with the new macros for types.
66887         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66888         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66889         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66890         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66891         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66892         @WINT_T_SUFFIX@ to keep things simple here.
66893         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66894         Simplify by assuming typical 8/16/32/64 host, since we're
66895         already doing that elsewhere anyway.
66896         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66897         and assume long long int is 64 bits if available.  This
66898         speeds up 'configure'.
66899
66900 2006-07-01  Eric Blake  <ebb9@byu.net>
66901
66902         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66903         Reported by Andreas Buening.
66904
66905 2006-07-01  Eric Blake  <ebb9@byu.net>
66906
66907         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66908
66909 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66910
66911         * lib/getaddrinfo.c: fixed typo
66912
66913 2006-06-29  Jim Meyering  <jim@meyering.net>
66914
66915         * modules/strftime (Maintainer): Add my name, since with the
66916         FPRINTFTIME changes strftime.c has forked from glibc.
66917
66918 2006-06-29  Eric Blake  <ebb9@byu.net>
66919
66920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66921
66922 2006-06-29  Eric Blake  <ebb9@byu.net>
66923
66924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66925
66926 2006-06-29  Eric Blake  <ebb9@byu.net>
66927
66928         * lib/stat_.h: New file.
66929
66930 2006-06-29  Eric Blake  <ebb9@byu.net>
66931
66932         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66933         unused static function.
66934
66935 2006-06-29  Eric Blake  <ebb9@byu.net>
66936
66937         * doc/functions.texi (Function Portability): Document missing lstat
66938         on mingw.
66939
66940 2006-06-29  Eric Blake  <ebb9@byu.net>
66941
66942         * MODULES.html.sh: Add sys_stat.
66943         * modules/sys_stat: New module.
66944         * modules/mkstemp (Depends-on): Add sys_stat.
66945
66946 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66947
66948         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66949
66950 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66951
66952         * m4/c-bs-a.m4: Removed.
66953
66954 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66955
66956         * lib/strftime.c: Assume strftime() exists.
66957
66958 2006-06-29  Derek Price  <derek@ximbiot.com>
66959
66960         * modules/c-bs-a: Removed - \a is C89.
66961         * MODULES.html.sh: Remove c-bs-a.
66962
66963 2006-06-29  Bruno Haible  <bruno@clisp.org>
66964
66965         * modules/wcwidth (License): Change to LGPL.
66966
66967 2006-06-28  Simon Josefsson  <jas@extundo.com>
66968
66969         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66970         on _WIN32.
66971
66972         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66973         getnameinfo.
66974
66975 2006-06-28  Simon Josefsson  <jas@extundo.com>
66976
66977         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66978
66979 2006-06-28  Simon Josefsson  <jas@extundo.com>
66980
66981         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66982         functions there.  It will succeed on Windows XP, but on Windows
66983         2000 and (presumably) earlier, it will fail, and use the internal
66984         re-implementation.
66985         (use_win32_p): New function.
66986         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66987         Support AI_NUMERICSERV to disable getservbyname.
66988         (getnameinfo): New function, only supports
66989         NI_NUMERICHOST|NI_NUMERICSERV for now.
66990
66991         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66992         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66993         getnameinfo.
66994
66995 2006-06-28  Eric Blake  <ebb9@byu.net>
66996
66997         * modules/wcwidth: New file.
66998         * modules/mbchar (Depends-on): Add wcwidth.
66999         * modules/mbswidth (Depends-on): Add wcwidth.
67000         * MODULES.html.sh: Add wcwidth.
67001
67002 2006-06-28  Eric Blake  <ebb9@byu.net>
67003
67004         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67006
67007 2006-06-28  Eric Blake  <ebb9@byu.net>
67008
67009         * lib/xvasprintf.h: Fix comments.
67010
67011 2006-06-28  Eric Blake  <ebb9@byu.net>
67012
67013         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67014         * lib/mbswidth.c (wcwidth): Move from here...
67015         * lib/wcwidth.h: ...to this new file.
67016
67017 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67018
67019         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67020
67021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67022         it's obsolete.
67023         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67024
67025 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67026
67027         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67028         Autoconf 2.60 says this stuff was obsolete.
67029
67030 2006-06-28  Bruno Haible  <bruno@clisp.org>
67031
67032         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67033
67034 2006-06-28  Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67037         gt_TYPE_WCHAR_T.
67038
67039 2006-06-28  Bruno Haible  <bruno@clisp.org>
67040
67041         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67042         declaration for wcwidth.
67043         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67044
67045 2006-06-28  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67048         (mkdir): Define using _mkdir.
67049
67050 2006-06-28  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/getaddrinfo.h: Fix POSIX URL.
67053         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67054         _WIN32.
67055         (use_win32_p): Make static.
67056         (getaddrinfo): Reject service name if it is empty or does not consist
67057         solely of decimal digits, or if its value is > 65535.
67058         (getnameinfo): Remove useless casts.
67059
67060 2006-06-27  Simon Josefsson  <jas@extundo.com>
67061
67062         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67063         Eggert and Martin Lambers.
67064
67065 2006-06-27  Simon Josefsson  <jas@extundo.com>
67066
67067         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67068         Eggert and Martin Lambers.
67069
67070 2006-06-27  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67073         result to 0, not to empty.
67074         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67075
67076 2006-06-27  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67079
67080 2006-06-26  Simon Josefsson  <jas@extundo.com>
67081
67082         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67083         present.
67084
67085 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67086
67087         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67088         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67089         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67090
67091 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67092
67093         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67094
67095 2006-06-26  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67098
67099 2006-06-26  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67102
67103 2006-06-26  Bruno Haible  <bruno@clisp.org>
67104
67105         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67106         SGI C compiler in pre-C99 mode.
67107         Suggested by Mark D. Baushke and Larry Jones.
67108
67109 2006-06-26  Bruno Haible  <bruno@clisp.org>
67110
67111         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67112         WCHAR_MAX.
67113         Reported by Mark D. Baushke and Larry Jones.
67114
67115 2006-06-26  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67118         in pre-C99 mode.
67119         Suggested by Mark D. Baushke and Larry Jones.
67120
67121 2006-06-23  Simon Josefsson  <jas@extundo.com>
67122             Bruno Haible  <bruno@clisp.org>
67123
67124         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67125         Emit mostlyclean-local rule.
67126         (func_emit_tests_Makefile_am): Likewise.
67127         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67128
67129 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67130
67131         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67132
67133 2006-06-23  Bruno Haible  <bruno@clisp.org>
67134
67135         * tests/test-stdint.c: Update to match ISO C 99 Technical
67136         Corrigendum 1.
67137
67138 2006-06-23  Bruno Haible  <bruno@clisp.org>
67139
67140         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67141
67142 2006-06-23  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/stdint_.h: Treat IRIX like OpenBSD.
67145
67146 2006-06-23  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67149         ISO C 99 Technical Corrigendum 1.
67150
67151 2006-06-22  Simon Josefsson  <jas@extundo.com>
67152
67153         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67154         MinGW.
67155
67156 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67159         needed.  Some compiler complained about some of them.  Problem reported
67160         by Larry Jones in
67161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67162
67163 2006-06-21  Simon Josefsson  <jas@extundo.com>
67164
67165         * tests/test-getaddrinfo.c: New file.
67166
67167         * modules/getaddrinfo-tests: New file.
67168
67169         * MODULES.html.sh: Add inet_pton.
67170
67171         * modules/inet_pton: New file.
67172
67173 2006-06-21  Simon Josefsson  <jas@extundo.com>
67174
67175         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67176         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67177         of using the (limited) gnulib implementation on Windows XP.
67178
67179         * m4/inet_pton.m4: New file.
67180
67181 2006-06-21  Simon Josefsson  <jas@extundo.com>
67182
67183         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67184         variable.
67185
67186         * lib/socket_.h: Don't define WINVER.
67187
67188         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67189         slightly modified to work in gnulib.
67190
67191 2006-06-21  Simon Josefsson  <jas@extundo.com>
67192
67193         * doc/gnulib.texi (Windows sockets): Add.
67194
67195 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * lib/read-file.c (fread_file): Start with buffer allocation of
67198         0 bytes rather than 1 byte; this simplifies the code.
67199         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67200         code to free buffer and save/restore errno.
67201         (internal_read_file): Remove unused local.
67202
67203 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67206         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67207         Problem reported by Denis Excoffier in
67208         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67209
67210 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67211
67212         * modules/sys_socket, modules/socklen: Include sys/types since
67213         FreeBSD 4.x's sys/socket.h needs it.
67214
67215 2006-06-19  Simon Josefsson  <jas@extundo.com>
67216
67217         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67218
67219 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67222
67223 2006-06-19  Bruno Haible  <bruno@clisp.org>
67224
67225         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67226         and FULL_PATH_INTTYPES_H in angle brackets.
67227         Reported by Mark D. Baushke <mdb@gnu.org>.
67228
67229 2006-06-17  Eric Blake  <ebb9@byu.net>
67230
67231         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67232         errno.
67233
67234 2006-06-17  Bruno Haible  <bruno@clisp.org>
67235
67236         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67237         <sys/inttypes.h>.
67238
67239 2006-06-17  Bruno Haible  <bruno@clisp.org>
67240
67241         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67242         whether errno is declared. Assume <errno.h> declares errno.
67243
67244 2006-06-17  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67247
67248 2006-06-17  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67251         problem on Solaris 2.5.1.
67252
67253 2006-06-16  Eric Blake  <ebb9@byu.net>
67254
67255         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67256         * lib/unicodeio.c [!defined errno]: Likewise.
67257         * lib/strtol.c [!defined errno]: Likewise.
67258         * lib/strtod.c [!defined errno]: Likewise.
67259
67260 2006-06-15  Eric Blake  <ebb9@byu.net>
67261
67262         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67263
67264 2006-06-15  Eric Blake  <ebb9@byu.net>
67265
67266         * config/srclist.txt (ssize_t.m4): Lose sync.
67267
67268 2006-06-15  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/stdint (Files): Include m4/full-header-path.m4,
67271         m4/size_max.m4, m4/wchar_t.m4.
67272         (Makefile.am): Many more substitutions.
67273         * modules/stdint-tests: New file.
67274         * tests/test-stdint.c: New file.
67275
67276 2006-06-15  Bruno Haible  <bruno@clisp.org>
67277
67278         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67279         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67280         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67281         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67282         gl_CHECK_TYPE_SAME): New macros.
67283
67284 2006-06-15  Bruno Haible  <bruno@clisp.org>
67285
67286         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67287
67288 2006-06-15  Bruno Haible  <bruno@clisp.org>
67289
67290         * lib/stdint_.h: Rewritten to be fully auto-configured.
67291         Fixes bug on HP-UX/IA64.
67292
67293 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * lib/getdate.y (__attribute__): Don't define if already defined.
67296         Problem reported by Larry Jones.
67297         * lib/utimens.c (__attribute__): Likewise.
67298
67299 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67302         reported by Andreas Schwab.
67303
67304 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67305             Bruno Haible  <bruno@clisp.org>
67306
67307         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67308         check for the declaration of strnlen and a run test that exposes the
67309         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67310         rpl_strndup.
67311
67312 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67313             Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67316
67317 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67318
67319         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67320         compile test, for Tru64 4.0D.
67321
67322 2006-05-28  Karl Berry  <karl@gnu.org>
67323
67324         * config/srclist.txt (printf-args.c): lose sync.
67325
67326 2006-05-26  Martin Lambers  <marlam@marlam.de>
67327
67328         * lib/getpass.c: Updates the test for the native W32 API, and adds
67329         missing includes, thus fixing compilation warnings.
67330
67331 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67332
67333         * lib/exclude.c (exclude_fnmatch): New function.
67334         (excluded_file_name): Call exclude_fnmatch.
67335         * lib/exclude.h (excluded_file_name): New prototype
67336
67337 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/tempname.c (small_open, large_open): New macros.
67340         (__open, __open64) [!_LIBC]: Remove.
67341         (__gen_tempname): Use small_open and large_open instead of __open
67342         and __open64.  This fixes a portability bug on HP-UX 11.11i
67343         reported by Simon Wing-Tang in
67344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67345
67346 2006-05-24  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67349         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67350         Reported by Thorsten Maerz <torte@netztorte.de> via
67351         Aaron Stone <aaron@serendipity.cx>.
67352
67353 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67356         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67357         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67358         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67359         not really conditional on the cache.
67360         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67361
67362 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67365         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67366         (my_usleep): Don't mishandle maximum value.
67367
67368 2006-05-19  Jim Meyering  <jim@meyering.net>
67369
67370         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67371
67372 2006-05-17  Bruno Haible  <bruno@clisp.org>
67373
67374         Cygwin portability.
67375         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67376
67377 2006-05-17  Bruno Haible  <bruno@clisp.org>
67378
67379         * lib/stdint_.h: Fix recognition of Cygwin.
67380
67381 2006-05-15  Bruno Haible  <bruno@clisp.org>
67382
67383         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67384         on libtool patch by Ralf Wildenhues.
67385
67386 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67389         test for C99 conformance; (bool) 0.5 is an integer constant
67390         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67391         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67392
67393 2006-05-11  Simon Josefsson  <jas@extundo.com>
67394
67395         * m4/xvasprintf.m4: Fix obvious typo.
67396
67397 2006-05-11  Jim Meyering  <jim@meyering.net>
67398
67399         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67400         James Lemley.
67401
67402 2006-05-10  Simon Josefsson  <jas@extundo.com>
67403
67404         * lib/md4.c: Typo fix, update copyright years.
67405         (K1, K2): Don't use L because it turn computations into 64-bit on
67406         64-bit platforms.
67407
67408 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67411         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67412         unwanted sign propagation, e.g., on hosts with 64-bit int.
67413         There still are some problems with reeelly weird theoretical hosts
67414         (e.g., 33-bit int) but it's not worth worrying about now.
67415         * lib/sha1.c (rol): Likewise.
67416         (K1, K2, K3, K4): Remove unnecessary L suffix.
67417
67418 2006-05-10  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/des.c: Cast to avoid warnings.
67421
67422 2006-05-09  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67425         (Depends-on): Depend also on xsize, stdarg.
67426         (configure.ac): Add gl_XVASPRINTF.
67427
67428 2006-05-09  Bruno Haible  <bruno@clisp.org>
67429
67430         * m4/xvasprintf.m4: New file.
67431
67432 2006-05-09  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67435         (EOVERFLOW): Define fallback value.
67436         (xstrcat): New function.
67437         (xvasprintf): Recognize the special case of a string concatenation.
67438
67439 2006-05-08  Eric Blake  <ebb9@byu.net>
67440
67441         * gnulib-tool (func_version): Base copyright year on CVS date.
67442         (func_emit_copyright_notice): New function.
67443         (func_emit_lib_Makefile_am): Use it.
67444         (func_emit_tests_Makefile_am): Likewise.
67445         (func_import): Likewise.
67446
67447 2006-05-08  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/stdarg: New file.
67450         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67451
67452 2006-05-08  Bruno Haible  <bruno@clisp.org>
67453
67454         * m4/stdarg.m4: New file, from GNU gettext.
67455
67456 2006-05-08  Bruno Haible  <bruno@clisp.org>
67457
67458         * config/srclist.txt (build-aux/config.rpath): different from latest
67459         release.
67460
67461 2006-05-08  Bruno Haible  <bruno@clisp.org>
67462
67463         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67464
67465 2006-05-05  Jim Meyering  <jim@meyering.net>
67466
67467         * m4/warning.m4: New file, derived from bison's file by the same name.
67468
67469 2006-05-03  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/stdint_.h: Shorter URL.
67472         * lib/inttypes.h: Likewise.
67473
67474 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67477
67478 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * lib/verify.h: Document the internals better.  Most of this change
67481         was written by Bruno Haible.
67482
67483 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * doc/verify.texi: New file, partly based on a proposal by
67486         Bruno Haible.
67487
67488 2006-05-02  Bruno Haible  <bruno@clisp.org>
67489
67490         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67491         test from here...
67492         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67493
67494 2006-04-29  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67497         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67498
67499 2006-04-29  Bruno Haible  <bruno@clisp.org>
67500
67501         * gnulib-tool: Make --update option actually work.
67502
67503 2006-04-29  Bruno Haible  <bruno@clisp.org>
67504
67505         * doc/gcd.texi: New file.
67506         * doc/gnulib.texi: Include it.
67507
67508 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67509
67510         * lib/getdate.y (get_date): When adding relative date, start with the
67511         initial time, not with the result of the first mktime call.
67512
67513 2006-04-25  Bruno Haible  <bruno@clisp.org>
67514
67515         * gnulib-tool (func_import): Output the include directives in three
67516         blocks, sorted separately.
67517         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67518
67519 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67522         to define main with arguments, for C++.  Reported by Eric Blake.
67523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67524         Prefer 'int main ()' to 'int main (void)', for C++.
67525         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67526         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67527         for 'main', for C99 and C++.
67528
67529 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67532         Don't assume that exit status -1 is valid.
67533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67534         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67535         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67536         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67537         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67538         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67539         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67540         functions can be used without declaring them, or that you can
67541         exit with status -1.
67542         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67543
67544 2006-04-24  Karl Berry  <karl@gnu.org>
67545
67546         * config/srclist.txt (longdouble.m4): sync lost.
67547
67548 2006-04-24  Eric Blake  <ebb9@byu.net>
67549
67550         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67551
67552 2006-04-24  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67555         poll() implementation in AIX.
67556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67557
67558 2006-04-24  Bruno Haible  <bruno@clisp.org>
67559
67560         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67561         assigned exactly once.
67562
67563 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67564             Bruno Haible  <bruno@clisp.org>
67565
67566         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67567         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67568         for AM_CPPFLAGS.
67569
67570 2006-04-23  Bruno Haible  <bruno@clisp.org>
67571
67572         * modules/copy-file: Depend on unistd.
67573         * modules/execute: Likewise.
67574         * modules/fatal-signal: Likewise.
67575         * modules/findprog: Likewise.
67576         * modules/mkdtemp : Likewise.
67577         * modules/pipe: Likewise.
67578         * modules/wait-process: Likewise.
67579
67580 2006-04-23  Bruno Haible  <bruno@clisp.org>
67581
67582         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67583         condition was already detected.
67584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67585
67586 2006-04-23  Bruno Haible  <bruno@clisp.org>
67587
67588         * lib/copy-file.c: Include <unistd.h> unconditionally.
67589         * lib/execute.c: Likewise.
67590         * lib/fatal-signal.c: Likewise.
67591         * lib/findprog.c: Likewise.
67592         * lib/mkdtemp.c: Likewise.
67593         * lib/pipe.h: Likewise.
67594         * lib/pipe.c: Likewise.
67595         * lib/wait-process.h: Likewise.
67596
67597 2006-04-23  Bruno Haible  <bruno@clisp.org>
67598
67599         * gnulib-tool (func_usage): Fix --import description. Document
67600         --update.
67601         (func_import): Create temporary file in a temporary directory, if
67602         --dry-run is specified. Silence errors from 'grep' when there are no
67603         m4 files in $m4dir.
67604         (func_create_testdir): Silence errors from 'grep' when there are no
67605         m4 files in $m4dir.
67606         Reported by Karl Berry <karl@freefriends.org>.
67607
67608 2006-04-20  Bruno Haible  <bruno@clisp.org>
67609
67610         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67611         one argument, so that the code will be portable to Autoconf 2.60.
67612         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67613         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67614         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67615
67616 2006-04-19  Derek Price  <derek@ximbiot.com>
67617             Eric Blake  <ebb9@byu.net>
67618
67619         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67620         rather than "/full/path.h".  Update comment to match.  Shorten &
67621         generalize m4_translit call via AS_TR_CPP.
67622
67623 2006-04-19  Derek Price  <derek@ximbiot.com>
67624             Eric Blake  <ebb9@byu.net>
67625
67626         * lib/inttypes.h: Correct grammar in comment.
67627
67628 2006-04-18  Derek Price  <derek@ximbiot.com>
67629             Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         * modules/inttypes: New file.
67632         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67633
67634 2006-04-18  Derek Price  <derek@ximbiot.com>
67635             Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67638         New files.
67639
67640 2006-04-18  Derek Price  <derek@ximbiot.com>
67641             Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * lib/inttypes.h: New file.
67644         * lib/strtoimax.c: Assume <inttypes.h>.
67645
67646 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67647
67648         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67649         isn't mounted.  Problem reported by Kir Kolyshkin.
67650
67651 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67654         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67655         Derek R. Price.
67656         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67657         implementation.
67658
67659 2006-04-12  Eric Blake  <ebb9@byu.net>
67660
67661         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67662         is now done automatically by the corresponding Autoconf macro.
67663
67664 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67667         time_r.h.
67668
67669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         Merge regex changes from libc, removing some of our
67672         POSIX-conformance changes that were rejected and redoing them in a
67673         less-intrusive way.
67674
67675         * lib/regcomp.c (re_compile_internal, init_dfa):
67676         Length arg is now size_t, not Idx.  All uses changed.
67677         (peek_token): Forward decl now says internal_function.
67678         (__re_error_msgid, __re_error_msgid_idx):
67679         Now static rather than extern with attribute_hidden.
67680         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67681         For some reason libc prefers K&R style defns for external functions.
67682         (regerror) [!defined _LIBC]: Likewise.
67683         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67684         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67685         (build_range_exp, build_collating_symbol):
67686         Use K&R-style defn.
67687         (re_compile_fastmap): Use '\0' to memset, not 0.
67688         (utf8_sb_map): Make the calculations more obvious.
67689         (init_dfa, parse_bracket_exp, build_charclass_op):
67690         Call calloc and cast result, as glibc does.
67691         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67692         (build_range_exp, build_collating_symbol):
67693         Now internal functions.
67694
67695         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67696
67697         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67698         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67699         Don't depend on VMS; depend on __VMS instead, for POSIX
67700         namespace cleanness.
67701         (regoff_t): Define to ssize_t, not long int.
67702
67703         Remove the REG_ macros named below.  Instead, make the old names
67704         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67705         __USE_GNU_REGEX.
67706         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67707         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67708         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67709         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67710         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67711         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67712         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67713         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67714         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67715         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67716         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67717         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67718         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67719         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67720         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67721         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67722         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67723         (REG_NREGS):
67724         Remove.  All uses replaced by the old RE_* names.
67725         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67726         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67727         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67728         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67729         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67730         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67731         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67732         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67733         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67734         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67735         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67736         Don't bother having these macros be independent of each others'
67737         values, since they no longer exist in the POSIX name space.
67738
67739         Rename the following member names back to their old names,
67740         unless !__USE_GNU_REGEX.  All uses changed back.
67741         (buffer): Renamed from re_buffer.
67742         (allocated): Renamed from re_allocated.
67743         (used): Renamed from re_used.
67744         (syntax): Renamed from re_syntax.
67745         (fastmap): Renamed from re_fastmap.
67746         (translate): Renamed from re_translate.
67747         (can_be_null): Renamed from re_can_be_null.
67748         (regs_allocated): Renamed from re_regs_allocated.
67749         (fastmap_accurate): Renamed from re_fastmap_accurate.
67750         (no_sub): Renamed from re_no_sub.
67751         (not_bol): Renamed from re_not_bol.
67752         (not_eol): Renamed from re_not_eol.
67753         (newline_anchor): Renamed from re_newline_anchor.
67754         (num_regs): Renamed from rm_num_regs.
67755         (start): Renamed from rm_start.
67756         (end): Renamed from rm_end.
67757
67758         (free_state): Move up a bit.
67759
67760         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67761         #define to be empty.
67762         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67763         when that is what is intended.
67764         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67765         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67766         (MAX): New macro.
67767         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67768         All uses changed back to re_malloc, etc.  It's now the caller's
67769         responsibility to check for overflow; all callers changed.
67770         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67771         (re_x2nrealloc): Remove.
67772         (free_state): Remove decl.
67773
67774         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67775         (re_set_registers, re_exec):
67776         Use K&R-style defn.
67777
67778         2006-01-31  Roland McGrath  <roland@redhat.com>
67779
67780         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67781         Reported by Mike Frysinger <vapier@gentoo.org>.
67782
67783         2006-01-15  Andreas Jaeger  <aj@suse.de>
67784
67785         [BZ #1950]
67786         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67787         build_wcs_upper_buffer change.
67788         (build_wcs_upper_buffer): Change return type.
67789
67790         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67791
67792         * lib/regex_internal.h: Include <stdint.h> if available.
67793
67794         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67795
67796         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67797
67798         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67799
67800         * lib/regcomp.c: Adjust for changed secondary hash function.
67801
67802         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67803
67804         * lib/regex.h: Pretty printing.
67805         Clean up namespace a bit.
67806
67807         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67808
67809         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67810         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67811
67812         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67813                     Ulrich Drepper  <drepper@redhat.com>
67814
67815         [BZ #1302]
67816         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67817         changed.
67818         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67819
67820         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67821
67822         [BZ #281]
67823         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67824         * lib/regcomp.c: Remove unnecessary uses of
67825         unsigned RE_TRANSLATE_TYPE.
67826         * lib/regex_internal.h: Likewise.
67827         * lib/regex_internal.c: Likewise.
67828         * lib/regexec.c: Likewise.
67829         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67830
67831         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67832
67833         * lib/regexec.c (find_recover_state): Remove unnecessary
67834         initialization.
67835         (transit_state_bkref): Make DFA a const pointer.
67836         (get_subexp): Likewise.
67837         (check_arrival): Likewise.
67838         (update_cur_sifted_state): Likewise.
67839         (re_search_internal): Likewise.
67840         (prune_impossible_nodes): Likewise.
67841         (acquire_init_state_context): Likewise.
67842         (proceed_next_node): Likewise.
67843         (set_regs): Likewise.
67844         (free_fail_stack_return): Likewise.
67845         (check_arrival_expand_ecl): Mark DFA parameter as const.
67846         (check_arrival_expand_ecl_sub): Likewise.
67847         (check_subexp_limits): Likewise.
67848         (sub_epsilon_src_nodes):  Likewise.
67849         (add_epsilon_src_nodes):  Likewise.
67850         (merge_state_array): Likewise.
67851         (update_regs): Likewise.
67852         (build_trtable): Likewise.
67853         (sift_states_backward): Mark MCTX parameter as const.
67854         (build_sifted_states): Likewise.
67855         (update_cur_sifted_state): Likewise.
67856         (sift_states_mkref): Likewise.
67857         (check_arrival_expand_ecl): Mark eclosure as const.
67858         (check_dst_limits_calc_pos_1): Likewise.
67859         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67860         pointer.
67861
67862         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67863
67864         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67865         (transit_state_sb): Likewise.
67866         (transit_state_mb): Likewise.
67867         (sift_states_iter_mb): Likewise.
67868         (check_arrival_add_next_nodes): Likewise.
67869         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67870         [_LIBC] (re_search_2_stub): Use mempcpy.
67871
67872         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67873         mbrtowc for very simple UTF-8 case.
67874
67875         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67876         a pointer-to-const.
67877         (re_acquire_state_context): Likewise.
67878         * lib/regex_internal.h: Adjust prototypes.
67879
67880         * lib/regex.c: Prevent using C++ compilers.
67881
67882         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67883         (re_acquire_state_context): Likewise.
67884
67885 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         * modules/regex (Depends-on): Add ssize_t.
67888
67889 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67892         translation table.
67893
67894 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67897
67898 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67899             Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67902         <sys/types.h> and <inttypes.h>.
67903
67904 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67905
67906         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67907         `__error_t_defined', so argp.h will not typedef the former.
67908
67909 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67912         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67913         glibc names.  Even if glibc is changed to conform to POSIX, the
67914         traditional names will be available anyway, since regex depends on
67915         the extensions module.  Also, fix a longstanding typo in the
67916         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67917         reported by Emanuele Giaquinta.  Also, change sense of cached
67918         variable, so that the message makes sense.
67919
67920 2006-03-24  Simon Josefsson  <jas@extundo.com>
67921
67922         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67923         including some doc fixes.
67924         (base64_encode_alloc): Fix +1 bug on allocation failures.
67925
67926 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67927
67928         * lib/base64.c (base64_encode): Do not read past end of array with
67929         unsanitized input on systems with CHAR_BIT > 8.
67930
67931 2006-03-24  Eric Blake  <ebb9@byu.net>
67932
67933         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67934
67935 2006-03-22  Karl Berry  <karl@gnu.org>
67936
67937         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67938         * config/srclistvars.sh (COREUTILS): new var.
67939
67940 2006-03-17  Jim Meyering  <jim@meyering.net>
67941
67942         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67943         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67944
67945 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67946
67947         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67948         no longer needs it.  Instead, check that regoff_t is as least
67949         as wide as ptrdiff_t.
67950
67951         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67952         so that our regex.h stays compatible with the installed regex.
67953         This is helpful for installers who configure --without-included-regex.
67954         Problem reported by Emanuele Giaquinta.
67955
67956 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67959         Typedef to long int, not to off_, as POSIX will likely change
67960         in that direction.
67961
67962 2006-03-15  Eric Blake  <ebb9@byu.net>
67963
67964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67965
67966 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67967
67968         * lib/argp-help.c (validate_uparams): Fix typo
67969         * lib/argp-parse.c (argp_default_options): Consistently begin help
67970         messages with a lowercase letter.
67971
67972 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67973
67974         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67975         overrun buffers and shouldn't be used (much as gets shouldn't be
67976         used).
67977         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67978
67979 2006-03-08  Simon Josefsson  <jas@extundo.com>
67980
67981         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67982         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67983
67984 2006-03-08  Simon Josefsson  <jas@extundo.com>
67985
67986         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67987         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67988
67989 2006-03-08  Simon Josefsson  <jas@extundo.com>
67990
67991         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67992         signal that configure disabled the device.
67993
67994 2006-03-08  Simon Josefsson  <jas@extundo.com>
67995
67996         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67997         languages.
67998
67999 2006-03-07  Simon Josefsson  <jas@extundo.com>
68000
68001         * modules/getopt (Depends-on): Add unistd.
68002
68003         * modules/unistd: New file.
68004
68005 2006-03-07  Simon Josefsson  <jas@extundo.com>
68006
68007         * modules/gc-random: New file.
68008
68009 2006-03-07  Simon Josefsson  <jas@extundo.com>
68010
68011         * m4/unistd_h.m4: New file.
68012
68013 2006-03-07  Simon Josefsson  <jas@extundo.com>
68014
68015         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68016         test to be side-effect free by storing the result in the cache
68017         variable gl_cv_lib_readline, and moving the assignment of
68018         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68019         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68020
68021 2006-03-07  Simon Josefsson  <jas@extundo.com>
68022
68023         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68024         error on missing devices (the functions will return an error).
68025
68026         * m4/gc.m4: Move random stuff to gc-random.m4
68027
68028 2006-03-07  Simon Josefsson  <jas@extundo.com>
68029
68030         * lib/unistd_.h: New file.
68031
68032 2006-03-07  Simon Josefsson  <jas@extundo.com>
68033
68034         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68035
68036 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68039         Problem reported by Juan Manuel Guerrero.
68040
68041 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68044         the unistd module.
68045         * lib/getlogin_r.c: Likewise.
68046         * lib/getlogin_r.h: Likewise.
68047         * lib/glob.c: Likewise.
68048         * lib/pagealign_alloc.c: Likewise.
68049         * lib/unistd_.h: Remove; no longer needed.
68050
68051 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68054         Add unistd.
68055         * modules/c-stack (Depends-on): Add unistd.
68056         * modules/getlogin_r: Likewise.
68057         * modules/glob: Likewise.
68058         * modules/pagealign_alloc: Likewise.
68059         * modules/unistd (Files): Remove lib/unistd_.h.
68060         (EXTRA_DIST): Remove.
68061         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68062         need unistd_.h.
68063         (MOSTLYCLEANFILES): Remove unistd.h-t.
68064
68065 2006-03-03  Simon Josefsson  <jas@extundo.com>
68066
68067         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68068
68069 2006-03-03  Simon Josefsson  <jas@extundo.com>
68070
68071         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68072         libidn and bison.
68073
68074 2006-03-03  Simon Josefsson  <jas@extundo.com>
68075
68076         * build-aux/maint.mk: Add indent target.
68077
68078 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68079
68080         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68081         our replacement poll.h in any case, to avoid a differing
68082         declaration from a system header.  Seen on AIX.
68083
68084 2006-03-01  Simon Josefsson  <jas@extundo.com>
68085
68086         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68087         <kasal@ucw.cz>.
68088
68089 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * modules/gettime (Depends-on): Add extensions module.
68092         * modules/nanosleep (Depends-on): Likewise.
68093         * modules/settime (Depends-on): Likewise.
68094
68095 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68098         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68099         pedantically.
68100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68101         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68102
68103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68104         not "==".  Reported by Ralf Wildenhues.
68105
68106 2006-03-01  Karl Berry  <karl@gnu.org>
68107
68108         * doc/Copyright/request-*: new files, synced from gnuorg.
68109
68110 2006-03-01  Karl Berry  <karl@gnu.org>
68111
68112         * config/srclist.txt (Copyright/*): new entries.
68113
68114 2006-02-28  Simon Josefsson  <jas@extundo.com>
68115
68116         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68117
68118 2006-02-27  Simon Josefsson  <jas@extundo.com>
68119
68120         * lib/base64.h: Indent #define's.  From Jim Meyering
68121         <jim@meyering.net>.
68122
68123 2006-02-27  Jim Meyering  <jim@meyering.net>
68124
68125         Revert the change of 2006-02-24, so these files can continue
68126         to be sync'd from gettext.
68127         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68128         of `config.h'.
68129
68130 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * modules/intprops: New file.
68133         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68134         Add intprops.
68135         * modules/getloadavg (Files): Remove lib/intprops.h.
68136         (Depends-on): Add intprops.
68137         * modules/human: Likewise.
68138         * modules/inttostr: Likewise.
68139         * modules/openat: Likewise.
68140         * modules/sig2str: Likewise.
68141         * modules/userspec: Likewise.
68142         * modules/utimecmp: Likewise.
68143         * modules/xnanosleep: Likewise.
68144         * modules/xstrtol: Likewise.
68145
68146 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68147
68148         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68149         * modules/lock-tests (TESTS): Use $(EXEEXT).
68150         * modules/tls-tests: Likewise.
68151         * modules/argp-tests: Likewise.
68152         (check_PROGRAMS): New var, replacing...
68153         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68154
68155 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68156
68157         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68158         `config.h'.
68159
68160 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68163
68164 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68165
68166         Sync from coreutils.
68167         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68168         gl_CHDIR_SAFER.
68169
68170 2006-02-22  Jim Meyering  <jim@meyering.net>
68171
68172         Sync from coreutils.
68173         * m4/chdir-safer.m4: New file.
68174
68175 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68178         AT_FDCWD exceeds INT_MAX.
68179         * lib/openat.h (AT_FDCWD): Likewise.
68180
68181 2006-02-17  Eric Blake  <address@hidden>
68182
68183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68184
68185 2006-02-16  Simon Josefsson  <jas@extundo.com>
68186
68187         * modules/getaddrinfo (Depends-on): Add sys_socket.
68188
68189 2006-02-15  Simon Josefsson  <jas@extundo.com>
68190
68191         * build-aux/maint.mk: Add dsyntax-check rule.
68192
68193 2006-02-15  Eric Blake  <ebb9@byu.net>
68194
68195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68196         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68197         'present but cannot compile' warnings on cygwin.
68198         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68199         use ws2tcpip.h if sys/socket.h works.
68200         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68201         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68202
68203 2006-02-14  Simon Josefsson  <jas@extundo.com>
68204
68205         * modules/maintainer-makefile (Files): Rename.
68206
68207         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68208         and (the local) Makefile.cfg to maint-cfg.mk.
68209
68210         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68211         to the latter.
68212
68213         * modules/maintainer-makefile: New module.
68214
68215         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68216         severaly stripped to make it possible to build it up from scratch
68217         with reliable tests.
68218
68219         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68220         fixes to permit overriding the default actions when configure and
68221         makefile are not available.
68222
68223 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68224
68225         Sync from coreutils.
68226         * modules/lstat (Depends-on): Don't depend on xalloc.
68227         (License): Change from GPL to LGPL, since this is now simply a
68228         replacement for a libc function.
68229
68230 2006-02-14  Jim Meyering  <jim@meyering.net>
68231
68232         Sync from coreutils.
68233
68234         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68235         failure on deficient systems, and simplify gnulib lgpl dependencies.
68236         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68237         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68238
68239         * lib/xalloc-die.c: Remove unused definition of N_.
68240
68241 2006-02-14  Jim Meyering  <jim@meyering.net>
68242
68243         Sync from coreutils.
68244         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68245         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68246         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68247         double-quote uses of that variable, to accommodate the rare case in
68248         which getmntent is available in none of the libraries checked.  This
68249         happens at least on FreeBSD 5.0.
68250
68251 2006-02-13  Simon Josefsson  <jas@extundo.com>
68252
68253         * gnulib-tool (Usage): Fix --import, from
68254         karl@freefriends.org (Karl Berry).
68255
68256 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68257
68258         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68259
68260 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68261
68262         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68263         "autoupdate" on 2005-12-12.
68264
68265 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68266
68267         * modules/closeout (Depends-on): Remove atexit.
68268
68269 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68272         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68273
68274 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68277         __EXTENSIONS__ if this causes compilation to fail.  Problem
68278         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68279         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68280
68281 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68284         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68286         All uses changed.
68287
68288 2006-01-26  Simon Josefsson  <jas@extundo.com>
68289
68290         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68291         prototype is visible on mingw32.
68292
68293         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68294         for mingw32.
68295
68296         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68297         mingw32).
68298
68299 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68302         attempt to open for write; this always fails, at least on POSIX
68303         hosts.  This reinstates the 2006-01-09 change, which was
68304         inadvertently removed.
68305
68306 2006-01-26  Bruno Haible  <bruno@clisp.org>
68307
68308         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68309         Reported by Paul Eggert.
68310
68311 2006-01-26  Bruno Haible  <bruno@clisp.org>
68312             Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * lib/stdbool_.h (_Bool)
68315         [(! (defined __cplusplus || defined __BEOS__)
68316           && !defined __GNUC__
68317           && !(defined __HP_cc || defined __xlc__
68318                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68319                || defined __sgi))]:
68320         #define to signed char in these cases too; this simplifies
68321         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68322         etc., separately) and makes it more conservative.
68323
68324 2006-01-25  Simon Josefsson  <jas@extundo.com>
68325
68326         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68327         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68328         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68329
68330 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68331
68332         * lib/argp-namefrob.h: Bugfix. Remove stray #
68333
68334 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68337         so that we test the test.
68338         Check for yet another HP-UX cc bug involving *bool |= bool.
68339
68340 2006-01-25  Karl Berry  <karl@gnu.org>
68341
68342         * config/srclist.txt (vasnprintf.c): sync lost.
68343
68344 2006-01-25  Jim Meyering  <jim@meyering.net>
68345
68346         Sync from the stable (b5) branch of coreutils:
68347
68348         * lib/fts.c (fts_children): Don't let close() clobber errno from
68349         failed fchdir().
68350
68351         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68352         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68353         a dangling symlink.  That can also happen at least for ELOOP.
68354         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68355         FYI, this bug predates the inclusion of fts.c in coreutils.
68356
68357         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68358         in their own block, so pre-c99 compilers don't object.
68359
68360         Avoid the double-free (first in fts_read, second in fts_close) that
68361         would occur when an `active' directory is made inaccessible (e.g.,
68362         via chmod a-x) during a traversal.
68363         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68364         before returning.  Reproduce this failure by
68365         mkdir -p a/b; cd a; chmod a-x . b
68366         Reported by Stavros Passas.
68367
68368 2006-01-25  Jim Meyering  <jim@meyering.net>
68369
68370         * lib/fileblocks.c: Remove more useless parentheses.
68371         * lib/readutmp.h: Likewise.
68372
68373 2006-01-25  Bruno Haible  <bruno@clisp.org>
68374
68375         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68376         warnings.
68377         Reported by Paul Eggert.
68378
68379 2006-01-25  Bruno Haible  <bruno@clisp.org>
68380
68381         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68382         rid of a trap command. For Solaris sh.
68383         Reported by Mark D. Baushke <mdb@gnu.org>.
68384
68385 2006-01-24  Simon Josefsson  <jas@extundo.com>
68386
68387         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68388         Bruno.
68389
68390 2006-01-24  Karl Berry  <karl@gnu.org>
68391
68392         * config/srclist.txt (argp-namefrob.h): sync lost.
68393
68394 2006-01-24  Jim Meyering  <jim@meyering.net>
68395
68396         * modules/openat (Files): Add lib/intprops.h.
68397         From Mark D. Baushke.
68398
68399 2006-01-24  Jim Meyering  <jim@meyering.net>
68400
68401         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68402         Reported by Mark D. Baushke.
68403
68404 2006-01-24  Jim Meyering  <jim@meyering.net>
68405
68406         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68407
68408 2006-01-24  Bruno Haible  <bruno@clisp.org>
68409
68410         * modules/strnlen (Maintainer): Change from glibc to all.
68411
68412 2006-01-24  Bruno Haible  <bruno@clisp.org>
68413
68414         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68415         Patch by Paul Eggert.
68416
68417 2006-01-24  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68420         already has it.
68421         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68422         2005-11-26.
68423
68424         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68425         'signed char' to avoid problems with the built-in _Bool type.
68426         Reported by Paul Eggert on 2005-11-26.
68427
68428 2006-01-24  Bruno Haible  <bruno@clisp.org>
68429
68430         * gnulib-tool (func_import): Avoid constructing complicated sed
68431         expressions inside backquote.
68432         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68433
68434 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68435
68436         These changes imported from libc.
68437         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68438         test and two separate function calls.
68439         * lib/strndup.c (__strndup): Add libc_hidden_def.
68440
68441 2006-01-23  Simon Josefsson  <jas@extundo.com>
68442
68443         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68444         Remove the test_*_SOURCES variable: automake infers it by default.
68445         * modules/tls-tests: Likewise.
68446
68447 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         Work around porting bugs reported by Dieter in
68450         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68451         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68452         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68453         Include "getopt.h" first, to check interface.
68454         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68455         !HAVE_DECL_GETENV.
68456         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68457         (__strndup): Revert to K&R-style function dfns, the glibc style.
68458         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68459         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68460         Include strnlen.h first, to get prototype properly.
68461         (strnlen): Renamed from __strnlen.
68462         Remove weak alias.
68463
68464 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68465
68466         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68467
68468 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         * config/srclist.txt: Adjust to reflect glibc reorganization.
68471         This affects only comments.
68472
68473 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68474
68475          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68476          Reported by Bruce Korb <bkorb@gnu.org>.
68477
68478 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68481         to pacify gcc -Wswitch-default.
68482
68483 2006-01-22  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68486         temporary buffer for sprintf, take into account the precision also
68487         for 'd', 'i', 'u', 'o', 'x', 'X'.
68488
68489 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68490
68491         * modules/argp-tests: New module
68492         * tests/test-argp.c: New file
68493         * tests/test-argp-2.sh: New file
68494
68495 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68496
68497         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68498         (__argp_base_name): Removed
68499         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68500         typo.
68501         (__argp_base_name): Provide macro definition or extern declaration
68502         depending on the configuration
68503
68504 2006-01-20  Simon Josefsson  <jas@extundo.com>
68505
68506         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68507
68508 2006-01-20  Simon Josefsson  <jas@extundo.com>
68509
68510         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68511
68512 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68515         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68516         Suggested by Bruno Haible.
68517
68518 2006-01-20  Karl Berry  <karl@gnu.org>
68519
68520         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68521         until changes propagate, I guess.
68522
68523 2006-01-19  Simon Josefsson  <jas@extundo.com>
68524
68525         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68526
68527 2006-01-19  Simon Josefsson  <jas@extundo.com>
68528
68529         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68530
68531 2006-01-19  Simon Josefsson  <jas@extundo.com>
68532
68533         * gnulib-tool: Set check_PROGRAMS.
68534
68535         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68536         modules/des-tests, modules/gc-arcfour-tests,
68537         modules/gc-arctwo-tests, modules/gc-des-tests,
68538         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68539         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68540         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68541         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68542         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68543         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68544         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68545         test_*_SOURCES.
68546
68547 2006-01-18  Simon Josefsson  <jas@extundo.com>
68548
68549         * modules/socklen (Depends-on): Depend on sys_socket.
68550
68551 2006-01-18  Simon Josefsson  <jas@extundo.com>
68552
68553         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68554         modules/des-tests, modules/gc-arcfour-tests,
68555         modules/gc-arctwo-tests, modules/gc-des-tests,
68556         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68557         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68558         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68559         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68560         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68561         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68562         $(EXEEXT) to automake TESTS variable, for mingw32.
68563
68564 2006-01-17  Simon Josefsson  <jas@extundo.com>
68565
68566         * modules/socklen (Include): Need sys/socket.h.
68567
68568 2006-01-17  Bruno Haible  <bruno@clisp.org>
68569
68570         * modules/ssize_t (Include): Add <sys/types.h>.
68571
68572 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68575         it's not portable and it doesn't work with cross-compiles.
68576         Problem reported by Bruno Haible.  Fix missing-$ typo in
68577         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68578         -zignore from being used with Sun's C compiler.
68579
68580 2006-01-12  Simon Josefsson  <jas@extundo.com>
68581
68582         * lib/base64.c: Fix warning, reported by Bruno Haible
68583         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68584
68585 2006-01-12  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/ldd: New file.
68588         * build-aux/ldd.sh.in: New file.
68589         * MODULES.html.sh (Support for building libraries and executables): Add
68590         ldd.
68591
68592 2006-01-12  Bruno Haible  <bruno@clisp.org>
68593
68594         * m4/ldd.m4: New file.
68595
68596 2006-01-12  Bruno Haible  <bruno@clisp.org>
68597
68598         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68599         endless loop while replacing $auxdir with build-aux.
68600
68601 2006-01-11  Simon Josefsson  <jas@extundo.com>
68602
68603         * lib/stdint_.h (SIZE_MAX): Add missing (.
68604
68605 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         Sync from coreutils.
68608         * lib/md5.c: Fix commentary typos.
68609         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68610         * lib/md5.h (__attribute__): Remove; unused.
68611         * lib/sha1.c: Fix commentary to match md5 better.
68612         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68613         so that we don't need to worry about alignment.  All uses changed.
68614         This merges the 2005-10-28 md5 change into sha1.
68615
68616 2006-01-11  Jim Meyering  <jim@meyering.net>
68617
68618         Sync from coreutils.
68619         * lib/md5.c (OP): Fix spacing.
68620
68621 2006-01-11  Bruno Haible  <bruno@clisp.org>
68622
68623         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68624         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68625         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68626
68627 2006-01-11  Bruno Haible  <bruno@clisp.org>
68628
68629         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68630         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68631         the "early" section as well.
68632
68633 2006-01-11  Bruno Haible  <bruno@clisp.org>
68634
68635         Avoid "ar: no archive members specified" error on MacOS X.
68636         * gnulib-tool (func_modules_add_dummy): New function.
68637         (func_import, func_create_testdir): Invoke it.
68638
68639 2006-01-11  Bruno Haible  <bruno@clisp.org>
68640
68641         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68642         with $auxdir in AC_CONFIG_FILES statements.
68643
68644 2006-01-11  Bruno Haible  <bruno@clisp.org>
68645
68646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68647         Initialize also noinst_HEADERS to empty.
68648
68649 2006-01-11  Bruno Haible  <bruno@clisp.org>
68650
68651         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68652         variables.
68653         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68654         autoreconf.
68655
68656 2006-01-11  Bruno Haible  <bruno@clisp.org>
68657
68658         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68659         overridable by the user.
68660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68661
68662 2006-01-10  Simon Josefsson  <jas@extundo.com>
68663
68664         * modules/sys_socket: New file.
68665
68666 2006-01-10  Simon Josefsson  <jas@extundo.com>
68667
68668         * m4/sys_socket_h.m4: New file.
68669
68670 2006-01-10  Simon Josefsson  <jas@extundo.com>
68671
68672         * lib/socket_.h: New file.
68673
68674 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * modules/readutmp (Maintainer): Add myself.
68677
68678 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68681         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68682         People who are still concerned with buggy memcmp implementations
68683         can invoke gl_FUNC_MEMCMP themselves.
68684
68685 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * lib/regex_internal.h (BITSET_WORD_BITS):
68688         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68689         preprocessor mishandles large unsigned values as if they were signed.
68690         Problem reported by Claudio Fontana in
68691         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68692
68693 2006-01-10  Jim Meyering  <jim@meyering.net>
68694
68695         Avoid the double-free (first in fts_read, second in fts_close) that
68696         would occur when an `active' directory is made inaccessible (e.g.,
68697         via chmod a-x) during a traversal.
68698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68699         before returning.  Reproduce this failure by
68700         mkdir -p a/b; cd a; chmod a-x . b
68701         Reported by Stavros Passas.
68702
68703         Sync from coreutils.
68704         * lib/sha1.c: Tweak grammar in a comment.
68705
68706 2006-01-10  Jim Meyering  <jim@meyering.net>
68707
68708         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68709         Patch by Joerg Sonnenberger.
68710
68711 2006-01-10  Bruno Haible  <bruno@clisp.org>
68712
68713         * modules/readutmp: Depend on module free.
68714         * modules/strtok_r: Depend on module restrict.
68715
68716 2006-01-10  Bruno Haible  <bruno@clisp.org>
68717
68718         * modules/gettext (configure.ac): Add an invocation of
68719         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68720
68721 2006-01-10  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68724         Reported by Werner Lemberg <wl@gnu.org>.
68725
68726 2006-01-10  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/localcharset.c: Update from GNU gettext.
68729
68730 2006-01-10  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/argp.h (__const): Remove macro. Use const instead.
68733         * lib/argp-fmtstream.h (__const): Likewise.
68734         * lib/glob_.h (__const): Remove macro.
68735         * lib/glob-libc.h: Use const instead of __const.
68736
68737 2006-01-10  Bruno Haible  <bruno@clisp.org>
68738
68739         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68740         variable.
68741         Needed to avoid an automake error regarding the 'gettext' module.
68742
68743 2006-01-09  Simon Josefsson  <jas@extundo.com>
68744
68745         * modules/inet_ntop (Depends-on): Add restrict.
68746
68747 2006-01-09  Simon Josefsson  <jas@extundo.com>
68748
68749         * modules/gc-rijndael-tests (License): Put under LGPL.
68750
68751         * modules/gc-des-tests (License): Likewise.
68752
68753         * modules/gc-arcfour-tests (License): Likewise.
68754
68755         * modules/gc-arctwo-tests (License): Likewise.
68756
68757         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68758
68759         * modules/gc-hmac-sha1-tests (Files): Likewise.
68760
68761         * modules/gc-hmac-md5-tests (License): Likewise.
68762
68763         * modules/gc-sha1-tests (License): Likewise.
68764
68765         * modules/gc-md5-tests (License): Likewise.
68766
68767         * modules/gc-md4-tests (License): Likewise.
68768
68769         * modules/gc-md2-tests (License): Likewise.
68770
68771         * modules/gc-tests (License): Likewise.
68772
68773         * modules/des-tests (License): Likewise.
68774
68775         * modules/md4-tests (License): Likewise.
68776
68777         * modules/md2-tests (License): Likewise.
68778
68779 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         Sync from coreutils:
68782
68783         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68784         * modules/lib-ignore: New file.
68785         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68786         chdir-safer.m4, lchmod.m4.
68787         * modules/openat: Add mkdirat.c, openat-priv.h.
68788
68789 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         Sync from coreutils.
68792         * m4/lib-ignore.m4: New file.
68793         * m4/lchmod.m4: New file.
68794
68795 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         Sync from coreutils.
68798         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68799         for write access: POSIX says that must fail.
68800         * lib/fts.c (diropen): Likewise.
68801         * lib/save-cwd.c (save_cwd): Likewise.
68802         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68803         well, for minor improvements on hosts that lack O_DIRECTORY.
68804         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68805         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68806         Fall back on chown if open failed with EACCES.
68807
68808         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68809         Report an error at compile-time if only a 1-second nominal clock
68810         resolution is found.
68811
68812         * lib/lchmod.h: New file.
68813         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68814         (make_dir_parents): Use lchown rather than chown, and
68815         lchmod rather than chmod.
68816
68817         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68818         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68819         "proc" reported by n0dalus.
68820
68821         * lib/mountlist.c: Include <limits.h>.
68822         (dev_from_mount_options)
68823         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68824         New function.  It no longer assumes "dev=" has the System V meaning
68825         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68826         (read_file_system_list)
68827         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68828         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68829         dev= in that case.
68830
68831         * lib/posixtm.h (PDS_PRE_2000): New macro.
68832         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68833         allow_century.  All usages changed.  Reject dates outside the range
68834         1969-1999 if PDS_PRE_2000 is used.
68835
68836 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         Sync from coreutils.
68839         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68840         (Time of day items): Mention the possibility of leap seconds.
68841         Problem reported by Dr. David Alan Gilbert.
68842
68843 2006-01-09  Jim Meyering  <jim@meyering.net>
68844
68845         Sync from coreutils.
68846
68847         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68848
68849         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68850
68851         * lib/modechange.c (mode_compile): Reject an invalid mode string
68852         that starts with an octal digit.  From Andreas Gruenbacher.
68853
68854         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68855         and dup to open_safer and dup_safer, respectively.
68856         (openat_permissive): Fix typo in comment.
68857
68858         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68859         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68860         (_): Remove; no longer needed.
68861         (openat): Renamed from rpl_openat; no need for rpl_openat
68862         since openat.h renames openat for us.
68863         Replace most of the body with a call to openat_permissive,
68864         to avoid duplicate code.
68865         Port to (probably hypothetical) environments were mode_t is
68866         wider than int.
68867         (openat_permissive): Require mode arg, so that we can check
68868         types better.  Put it just after flags.  Change cwd failure
68869         indicator from pointer-to-bool to pointer-to-errno-value.
68870         All callers changed.
68871         Invoke openat_save_fail and/or openat_restore_fail if
68872         cwd_errno is null, so that openat can call us.
68873         (openat_permissive, fdopendir, fstatat, unlinkat):
68874         Simplify errno handling to avoid some duplicate code,
68875         as it's OK to set errno on success.
68876         * lib/openat.h: Revamp code so that function macros depend on
68877         __OPENAT_PREFIX only, not also on AT_FDCWD.
68878         (openat_ro): Remove.  Caller changed to use openat_permissive.
68879         (openat_permissive): Now a macro, if not a function.
68880         (openat_restore_fail, openat_save_fail): Now always functions,
68881         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68882
68883         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68884         and openat.c.
68885         * lib/mkdirat.c: Include openat-priv.h.
68886         Remove definitions of macros defined therein.
68887         * lib/openat.c: Likewise.
68888
68889         * lib/mkdirat.c (mkdirat): New file and function.
68890         * lib/openat.h (mkdirat): Declare.
68891
68892         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68893
68894         * lib/openat.h (openat_permissive): Declare.
68895         (openat_ro): Define.
68896
68897         * lib/openat.c (EXPECTED_ERRNO): New macro.
68898         (openat_permissive): New function -- used in remove.c rewrite.
68899         (all functions): Set errno just before returning, only if there
68900         was an actual failure.
68901         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68902
68903         Emulate openat-family functions using Linux's procfs, if possible.
68904         Idea and some code based on Ulrich Drepper's glibc changes.
68905
68906         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68907         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68908         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68909         before falling back on save_cwd and restore_cwd.
68910         (fdopendir, fstatat, unlinkat): Likewise.
68911
68912         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68913         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68914
68915         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68916         as second argument to va_arg.  Otherwise, some versions of gcc
68917         warn that `if this code is reached, the program will abort'.
68918
68919 2006-01-09  Jim Meyering  <jim@meyering.net>
68920
68921         Sync from coreutils.
68922         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68923         Require openat-priv.h.
68924
68925 2006-01-09  Bruno Haible  <bruno@clisp.org>
68926
68927         * modules/strnlen (Include): Use strnlen.h.
68928
68929 2006-01-09  Bruno Haible  <bruno@clisp.org>
68930
68931         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68932
68933 2006-01-09  Bruno Haible  <bruno@clisp.org>
68934
68935         * lib/sysexit_.h (EX_OK): New macro.
68936         Suggested by Martin Lambers <marlam@marlam.de>.
68937
68938 2006-01-09  Bruno Haible  <bruno@clisp.org>
68939
68940         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68941         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68942
68943 2006-01-09  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68946         numbers.
68947
68948 2006-01-09  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68951         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68952         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68953         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68954
68955 2006-01-09  Bruno Haible  <bruno@clisp.org>
68956
68957         * build-aux/javacomp.sh.in: New file, moved from lib/.
68958         * modules/javacomp-script (Files): Update.
68959         (configure.ac): Add AC_CONFIG_FILES invocation.
68960         (EXTRA_DIST): Remove variable.
68961
68962         * build-aux/javaexec.sh.in: New file, moved from lib/.
68963         * modules/javaexec (Files): Update.
68964         (configure.ac): Add AC_CONFIG_FILES invocation.
68965         (EXTRA_DIST): Remove javaexec.sh.in.
68966
68967         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68968         * modules/csharpcomp-script (Files): Update.
68969         (configure.ac): Add AC_CONFIG_FILES invocation.
68970         (EXTRA_DIST): Remove variable.
68971
68972         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68973         * modules/csharpexec (Files): Update.
68974         (configure.ac): Add AC_CONFIG_FILES invocation.
68975         (EXTRA_DIST): Remove csharpexec.sh.in.
68976
68977 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68978
68979         Sync from coreutils.
68980
68981         Add POSIX ACL support
68982         * lib/acl.h (copy_acl, set_acl): Add declarations.
68983         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68984         systems other than Linux.
68985         (chmod_or_fchmod): New function: use fchmod when possible,
68986         and chmod otherwise.
68987         (file_has_acl): Add a POSIX ACL implementation, with a
68988         Linux-specific subcase.
68989         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68990         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68991         acls are unsupported.
68992         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68993         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68994         are unsupported.
68995
68996 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68997
68998         Sync from coreutils.
68999         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69000
69001 2006-01-07  Bruno Haible  <bruno@clisp.org>
69002
69003         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69004         gl_EARLY.
69005
69006 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69009         Problem reported for Mingw by Mark Junker.
69010
69011 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         * README: Gnulib normally doesn't generate a tarball.
69014
69015 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69018         long int, not int, for nanosecond counts, so that people who are
69019         used to POSIX struct timespec won't be surprised.  Reported by Jim
69020         Meyering.
69021
69022 2005-12-28  Bruno Haible  <bruno@clisp.org>
69023
69024         * build-aux/config.rpath: Update from GNU gettext.
69025
69026 2005-12-16  Jim Meyering  <jim@meyering.net>
69027
69028         * modules/fprintftime: New module.
69029         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69030
69031 2005-12-16  Jim Meyering  <jim@meyering.net>
69032
69033         * m4/fprintftime.m4: New file.
69034
69035 2005-12-16  Jim Meyering  <jim@meyering.net>
69036
69037         * lib/fprintftime.c, lib/fprintftime.h: New files.
69038
69039 2005-12-15  Simon Josefsson  <jas@extundo.com>
69040
69041         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69042         new m4/socklen.m4.
69043
69044 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69045
69046         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69047         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69048
69049 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69050
69051         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69052         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69053         struct uparams is valid. Fall back to the default values if it is
69054         not.
69055
69056 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69057
69058         * modules/argp (Files): Add argp-pin.c
69059         (Depends-on): dirname
69060         (lib_SOURCES): Add argp-pin.c
69061
69062 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69063
69064         * m4/argp.m4:  Check if program_invocation_name and
69065         program_invocation_short_name are declared and define appropriate
69066         macros if they are not.
69067
69068 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69069
69070         * lib/argp-help.c (__argp_base_name): New function
69071         (__argp_short_program_name): Rewrite using __argp_base_name
69072         * lib/argp-namefrob.h: Define program_invocation_name and
69073         program_invocation_short_name if requested
69074         (__argp_base_name): Add prototype
69075         * lib/argp-parse.c (argp_def): Use gettext wrappers
69076         (argp_default_parser): Use __argp_base_name
69077         * lib/argp-pin.c: New file. Defines program_invocation_name and
69078         program_invocation_short_name on systems that lack them.
69079
69080 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69083         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69084         porting problem reported by Georg Schwarz in
69085         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69086
69087 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69090         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69091         porting problem reported by Georg Schwarz in
69092         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69093
69094 2005-12-05  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69097         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69098         Reported by Mark Junker <mjscod@gmx.de>.
69099
69100 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69101
69102         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69103         Use implementation from Albert Chin, with some
69104         comments/corrections by Stepan Kasal and myself.
69105
69106 2005-12-02  Bruno Haible  <bruno@clisp.org>
69107
69108         * gnulib-tool (func_import): Accept GPLed build tool modules when
69109         --lgpl is given.
69110         * modules/csharpcomp-script: New file.
69111         * modules/csharpcomp: Depend on it.
69112         * modules/javacomp-script: New file.
69113         * modules/javacomp: Depend on it.
69114         Suggested by Simon Josefsson.
69115
69116 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69119         statement, to work around an HP-UX 10.20 compiler bug reported by
69120         Peter O'Gorman.
69121
69122 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * modules/savedir (Depends-on): Add openat.
69125
69126 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69129         (uintmax_t) [defined uintmax_t]: Do not declare.
69130         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69131         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69132         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69133         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69134         sake of portability to weird hosts that C allows (though we don't
69135         know of any practical examples).
69136
69137         * lib/savedir.h (fdsavedir): New decl.
69138         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69139         contains most of the former guts of savedir.
69140         (savedir): Use savedirstream.
69141         Include "openat.h".
69142
69143 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * modules/obstack (Files): Add m4/ulonglong.m4.
69146         Problem reported by Davide Angelocola.
69147
69148 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69151         coreutils no longer futzes with rounding modes.
69152
69153 2005-11-14  Jim Meyering  <jim@meyering.net>
69154
69155         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69156         replacement of mkstemp.
69157
69158 2005-11-10  Simon Josefsson  <jas@extundo.com>
69159
69160         * lib/readline.c: Remove EOL.
69161
69162 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * modules/gethrxtime (Depends-on): Add gettime.
69165
69166 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69169         or gettimeofday; no longer needed.
69170
69171 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69174         time business.
69175         (gethrxtime) [! (HAVE_NANOUPTIME
69176         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69177         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69178         our own approximation.
69179
69180 2005-11-08  Eric Blake  <ebb9@byu.net>
69181
69182         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69183
69184 2005-11-08  Eric Blake  <ebb9@byu.net>
69185
69186         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69187
69188 2005-11-04  Bruno Haible  <bruno@clisp.org>
69189
69190         * gnulib-tool: Implement --update mode.
69191
69192 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         Fix porting problem reported by Theodoros V. Kalamatianos.
69195         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69196         Don't assume that futimes failing means we must fail.
69197
69198 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69201         variables to suggest the intended function of the PATH_MAX check.
69202
69203 2005-10-30  Kean Johnston  <jkj@sco.com>
69204
69205         Trivial changes to support SCO systems.
69206         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69207         as PATH_MAX.
69208         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69209         where __ptr is null when no I/O is pending.
69210
69211 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69214         leave errno alone.  Problem reported by Dmitry V. Levin.
69215
69216 2005-10-28  Simon Josefsson  <jas@extundo.com>
69217
69218         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69219         Test more.
69220
69221         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69222
69223         * modules/md2, modules/md2-tests: New files.
69224
69225 2005-10-28  Simon Josefsson  <jas@extundo.com>
69226
69227         * m4/inet_ntop.m4: More tests.
69228
69229         * m4/gc-md2.m4, md2.m4: New file.
69230
69231 2005-10-28  Simon Josefsson  <jas@extundo.com>
69232
69233         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69234         "restrict" keywords, as per POSIX.  Protect the function
69235         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69236         Don't use K&R prototypes.  Check the sprintf return values.
69237         Re-define EAFNOSUPPORT if not present.  Indent.
69238
69239         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69240         suggested by Bruno Haible <bruno@clisp.org>.
69241
69242         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69243
69244         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69245
69246         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69247         libgcrypt).
69248
69249         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69250
69251         * lib/md2.h, lib/md2.c: New files.
69252
69253 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69256         errno alone.  Problem reported by Frederic Jolliton.
69257
69258 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69259
69260         * modules/verify (License): Change from GPL to LGPL.  This is a
69261         tiny module and there are apparently near-equivalents that are
69262         under the BSD license.
69263
69264 2005-10-24  Simon Josefsson  <jas@extundo.com>
69265
69266         * modules/sha1: Relicense to LGPL.
69267
69268 2005-10-24  Simon Josefsson  <jas@extundo.com>
69269
69270         * lib/md4.h: Shrink buffer size, now that we changed the type.
69271
69272 2005-10-23  Simon Josefsson  <jas@extundo.com>
69273
69274         * gnulib-tool (func_import): Fix --tests-base.
69275
69276 2005-10-22  Simon Josefsson  <jas@extundo.com>
69277
69278         * modules/arcfour (Depends-on): Need stdint.
69279
69280 2005-10-22  Simon Josefsson  <jas@extundo.com>
69281
69282         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69283         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69284
69285 2005-10-22  Simon Josefsson  <jas@extundo.com>
69286
69287         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69288         suggested by Bruno Haible <bruno@clisp.org>.
69289
69290 2005-10-22  Simon Josefsson  <jas@extundo.com>
69291
69292         * lib/crc.h: Include stddef.h, for size_t.
69293
69294 2005-10-22  Simon Josefsson  <jas@extundo.com>
69295
69296         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69297         arcfour_context struct (simplify test vector testing in GNU
69298         Shishi).
69299
69300 2005-10-21  Simon Josefsson  <jas@extundo.com>
69301
69302         * modules/des, modules/des-tests: New files.
69303
69304         * modules/gc-des, modules/gc-des-tests: New files.
69305
69306         * tests/test-des.c, tests/test-gc-des.c: New file.
69307
69308 2005-10-21  Simon Josefsson  <jas@extundo.com>
69309
69310         * modules/arctwo, modules/arctwo-tests: New files.
69311
69312         * tests/test-arctwo.c: New file.
69313
69314         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69315
69316         * tests/test-gc-arctwo.c: New file.
69317
69318 2005-10-21  Simon Josefsson  <jas@extundo.com>
69319
69320         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69321         Bruno Haible <bruno@clisp.org>.
69322
69323         * m4/gc-des.m4: New file.
69324
69325 2005-10-21  Simon Josefsson  <jas@extundo.com>
69326
69327         * m4/arctwo.m4: New file.
69328
69329         * m4/gc-arctwo.m4: New file.
69330
69331 2005-10-21  Simon Josefsson  <jas@extundo.com>
69332
69333         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69334         block.
69335
69336 2005-10-21  Simon Josefsson  <jas@extundo.com>
69337
69338         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69339         <bruno@clisp.org>.
69340
69341         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69342
69343         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69344         Bruno Haible <bruno@clisp.org>.
69345
69346         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69347         <bruno@clisp.org>.
69348
69349 2005-10-21  Simon Josefsson  <jas@extundo.com>
69350
69351         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69352
69353 2005-10-21  Simon Josefsson  <jas@extundo.com>
69354
69355         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69356
69357 2005-10-21  Simon Josefsson  <jas@extundo.com>
69358
69359         * lib/des.h, lib/des.c: New files.
69360
69361         * lib/gc-gnulib.c: Support DES.c
69362
69363 2005-10-21  Simon Josefsson  <jas@extundo.com>
69364
69365         * lib/arctwo.h, lib/arctwo.c: New files.
69366
69367         * lib/gc-gnulib.c: Support ARCTWO.
69368
69369 2005-10-21  Simon Josefsson  <jas@extundo.com>
69370
69371         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69373
69374 2005-10-21  Simon Josefsson  <jas@extundo.com>
69375
69376         * gnulib-tool (func_import, func_create_testdir): Define automake
69377         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69378         Makefile.am snippet),
69379         suggested by Bruno Haible <bruno@clisp.org>.
69380
69381         * modules/gc (Makefile.am): Use it.
69382
69383 2005-10-21  Bruno Haible  <bruno@clisp.org>
69384
69385         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69386         patch.
69387
69388 2005-10-19  Simon Josefsson  <jas@extundo.com>
69389
69390         * tests/test-gc-rijndael.c: New file.
69391
69392         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69393
69394 2005-10-19  Simon Josefsson  <jas@extundo.com>
69395
69396         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69397         interface too.
69398
69399 2005-10-19  Simon Josefsson  <jas@extundo.com>
69400
69401         * tests/test-gc-arcfour.c: New file.
69402
69403         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69404
69405 2005-10-19  Simon Josefsson  <jas@extundo.com>
69406
69407         * modules/gc-md4, modules/gc-md4-tests: New file.
69408
69409         * tests/test-gc-md4.c: New file.
69410
69411 2005-10-19  Simon Josefsson  <jas@extundo.com>
69412
69413         * m4/gc-md4.m4: New file.
69414
69415 2005-10-19  Simon Josefsson  <jas@extundo.com>
69416
69417         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69418         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69419         <kasal@ucw.cz>.
69420
69421 2005-10-19  Simon Josefsson  <jas@extundo.com>
69422
69423         * m4/gc-arcfour.m4: New file.
69424
69425         * m4/gc-rijndael.m4: New file.
69426
69427 2005-10-19  Simon Josefsson  <jas@extundo.com>
69428
69429         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69430
69431 2005-10-19  Simon Josefsson  <jas@extundo.com>
69432
69433         * lib/gc-gnulib.c: Support ARCFOUR.
69434
69435 2005-10-19  Simon Josefsson  <jas@extundo.com>
69436
69437         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69438         support.
69439
69440         * lib/gc.h: Add ECB enum type.
69441
69442         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69443
69444 2005-10-18  Simon Josefsson  <jas@extundo.com>
69445
69446         * tests/test-md5.c: New file.
69447
69448         * modules/md5-tests: New file.
69449
69450 2005-10-18  Simon Josefsson  <jas@extundo.com>
69451
69452         * tests/test-md4.c: New file.
69453
69454         * modules/md4, modules/md4-tests: New files.
69455
69456 2005-10-18  Simon Josefsson  <jas@extundo.com>
69457
69458         * m4/md4.m4: New file.
69459
69460 2005-10-18  Simon Josefsson  <jas@extundo.com>
69461
69462         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69463
69464 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69465
69466         * gnulib-tool (func_create_testdir): Omit the second check whether
69467         BUILT_SOURCES in nonempty.
69468
69469 2005-10-17  Simon Josefsson  <jas@extundo.com>
69470
69471         * tests/test-rijndael.c: New file.
69472
69473 2005-10-17  Simon Josefsson  <jas@extundo.com>
69474
69475         * modules/sha1: Depend on stdint instead of md5.
69476
69477         * modules/md5: Depend on stdint, remove uint32_t.
69478
69479 2005-10-17  Simon Josefsson  <jas@extundo.com>
69480
69481         * modules/gc-sha1-tests: New file.
69482
69483         * tests/test-gc-sha1.c: New file.
69484
69485 2005-10-17  Simon Josefsson  <jas@extundo.com>
69486
69487         * m4/md5.m4: Remove call to uint32_t.m4.
69488
69489 2005-10-17  Simon Josefsson  <jas@extundo.com>
69490
69491         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69492
69493         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69494         md5.h.
69495
69496         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69497
69498         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69499
69500 2005-10-17  Simon Josefsson  <jas@extundo.com>
69501
69502         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69503
69504 2005-10-17  Simon Josefsson  <jas@extundo.com>
69505
69506         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69507
69508 2005-10-17  Simon Josefsson  <jas@extundo.com>
69509
69510         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69511
69512         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69513
69514 2005-10-17  Bruno Haible  <bruno@clisp.org>
69515
69516         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69517         that it can also be used in a test.
69518
69519 2005-10-16  Bruno Haible  <bruno@clisp.org>
69520
69521         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69522         TESTS_ENVIRONMENT, so that individual tests can augment it.
69523
69524         * gnulib-tool (func_create_testdir): Use an intermediate target for
69525         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69526         macros, like $(ALLOCA_H), which cannot be passed through the command
69527         line.
69528
69529 2005-10-15  Simon Josefsson  <jas@extundo.com>
69530
69531         * modules/rijndael-tests: New file.
69532
69533         * modules/rijndael: New file.
69534
69535 2005-10-15  Simon Josefsson  <jas@extundo.com>
69536
69537         * m4/rijndael.m4: New file.
69538
69539 2005-10-15  Simon Josefsson  <jas@extundo.com>
69540
69541         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69542
69543         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69544
69545 2005-10-14  Simon Josefsson  <jas@extundo.com>
69546
69547         * tests/test-arcfour.c: New file.
69548
69549         * modules/arcfour, modules/arcfour-tests: New files.
69550
69551 2005-10-14  Simon Josefsson  <jas@extundo.com>
69552
69553         * m4/arcfour.m4: New file.
69554
69555 2005-10-14  Simon Josefsson  <jas@extundo.com>
69556
69557         * lib/arcfour.h, lib/arcfour.c: New files.
69558
69559 2005-10-14  Roland McGrath  <roland@redhat.com>
69560
69561         Import from libc.  [BZ #1331]
69562         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69563         macro argument.
69564         Reported by Matej Vela <vela@debian.org>.
69565
69566 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69569         include <wchar.h>; no longer needed.
69570
69571 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69574
69575 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69576         and  Ulrich Drepper  <drepper@redhat.com>
69577
69578         Import from libc.
69579         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69580         instead of inline stream orientation test and two separate
69581         function calls.  Pay no attention to USE_IN_LIBIO.
69582
69583 2005-10-13  Simon Josefsson  <jas@extundo.com>
69584
69585         * modules/gc-hmac-md5-tests: New file.
69586
69587         * tests/test-gc-hmac-sha1.c: New file.
69588
69589         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69590
69591         * modules/gc-hmac-md5-tests: New file.
69592
69593         * tests/test-gc-md5.c: New file.
69594
69595         * modules/gc-md5-tests: New file.
69596
69597 2005-10-13  Simon Josefsson  <jas@extundo.com>
69598
69599         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69600         Move memory allocation outside of loop.
69601
69602 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69605         intermediate directory is in a read-only file system.  Problem
69606         reported by Eric Blake.
69607
69608 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69609
69610         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69611
69612 2005-10-12  Simon Josefsson  <jas@extundo.com>
69613
69614         * tests/test-hmac-sha1.c: New file.
69615
69616         * modules/hmac-sha1-tests: New file.
69617
69618         * modules/hmac-sha1: New file.
69619
69620 2005-10-12  Simon Josefsson  <jas@extundo.com>
69621
69622         * modules/gc-sha1: New file.
69623
69624 2005-10-12  Simon Josefsson  <jas@extundo.com>
69625
69626         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69627
69628         * tests/test-gc-pbkdf2-sha1.c: New file.
69629
69630 2005-10-12  Simon Josefsson  <jas@extundo.com>
69631
69632         * modules/gc-md5, modules/gc-hmac-md5: New files.
69633
69634         * modules/gc (Files): Remove md5, memxor and hmac files.
69635
69636 2005-10-12  Simon Josefsson  <jas@extundo.com>
69637
69638         * m4/gc-pbkdf2-sha1.m4: New file.
69639
69640         * m4/gc-hmac-sha1.m4: New file.
69641
69642         * m4/gc-sha1: New file.
69643
69644         * m4/hmac-sha1.m4: New file.
69645
69646 2005-10-12  Simon Josefsson  <jas@extundo.com>
69647
69648         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69649
69650         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69651
69652 2005-10-12  Simon Josefsson  <jas@extundo.com>
69653
69654         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69655         suggested by Bruno Haible <bruno@clisp.org>.
69656
69657 2005-10-12  Simon Josefsson  <jas@extundo.com>
69658
69659         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69660
69661 2005-10-12  Simon Josefsson  <jas@extundo.com>
69662
69663         * lib/gc-pbkdf2-sha1.c: New file.
69664
69665         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69666
69667 2005-10-12  Simon Josefsson  <jas@extundo.com>
69668
69669         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69670
69671         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69672
69673 2005-10-12  Simon Josefsson  <jas@extundo.com>
69674
69675         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69676         GC_USE_HMAC_MD5, respectively.
69677
69678         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69679         (gc_md5): Fix typo.
69680
69681         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69682
69683         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69684
69685         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69686
69687 2005-10-12  Bruno Haible  <bruno@clisp.org>
69688
69689         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69690         Reported by Stepan Kasal <kasal@ucw.cz>.
69691
69692 2005-10-11  Simon Josefsson  <jas@extundo.com>
69693
69694         * tests/test-crc.c: New file.
69695
69696         * modules/crc, modules/crc-tests: New files.
69697
69698 2005-10-11  Simon Josefsson  <jas@extundo.com>
69699
69700         * m4/crc.m4: New file.
69701
69702 2005-10-11  Simon Josefsson  <jas@extundo.com>
69703
69704         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69705
69706         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69707
69708         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69709
69710 2005-10-11  Simon Josefsson  <jas@extundo.com>
69711
69712         * lib/crc.h, lib/crc.c: New files.
69713
69714         * lib/gc.h (gc_hash_buffer): Add doc.
69715
69716 2005-10-11  Bruno Haible  <bruno@clisp.org>
69717
69718         * modules/c-strcasestr: New file.
69719         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69720
69721 2005-10-11  Bruno Haible  <bruno@clisp.org>
69722
69723         * modules/c-strcase: New file.
69724         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69725
69726 2005-10-11  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/strcasecmp.c: Include limits.h.
69729         (strcasecmp): Avoid integer overflow on exotic platforms.
69730         * lib/strncasecmp.c: Include limits.h.
69731         (strncasecmp): Avoid integer overflow on exotic platforms.
69732         Reported by Paul Eggert.
69733
69734 2005-10-11  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/c-strcasestr.h: New file, from GNU gettext.
69737         * lib/c-strcasestr.c: New file, from GNU gettext.
69738
69739 2005-10-11  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/c-strcase.h: New file, from GNU gettext.
69742         * lib/c-strcasecmp.c: New file, from GNU gettext.
69743         * lib/c-strncasecmp.c: New file, from GNU gettext.
69744
69745 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * modules/mempcpy (License): GPL -> LGPL.
69748         * modules/strchrnul (License): Likewise.
69749         * modules/sysexits (License): Likewise.
69750
69751 2005-10-08  Simon Josefsson  <jas@extundo.com>
69752
69753         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69754
69755 2005-10-07  Simon Josefsson  <jas@extundo.com>
69756
69757         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69758
69759 2005-10-06  Simon Josefsson  <jas@extundo.com>
69760
69761         * tests/test-hmac-md5.c: New file.
69762
69763         * modules/hmac-md5-tests: New file.
69764
69765         * modules/hmac-md5: New file.
69766
69767 2005-10-06  Simon Josefsson  <jas@extundo.com>
69768
69769         * m4/hmac-md5.m4: New file.
69770
69771         * m4/memxor.m4: Require gl_C_RESTRICT.
69772
69773 2005-10-06  Simon Josefsson  <jas@extundo.com>
69774
69775         * lib/memxor.c (memxor): Avoid casts and warnings.
69776
69777 2005-10-06  Simon Josefsson  <jas@extundo.com>
69778
69779         * lib/hmac-md5.c: New file.
69780
69781         * lib/hmac.h: New file.
69782
69783 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69784
69785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69786         promotes to int, not unsigned int, to catch the AIX 5.3
69787         compiler bug.
69788
69789 2005-10-05  Simon Josefsson  <jas@extundo.com>
69790
69791         * modules/memxor: New file.
69792
69793         * modules/iconv (Files): Move config.rpath to havelib, it is used
69794         there.
69795
69796         * modules/havelib (Files): Add config.rpath.
69797
69798 2005-10-05  Simon Josefsson  <jas@extundo.com>
69799
69800         * m4/memxor.m4: New file.
69801
69802 2005-10-05  Simon Josefsson  <jas@extundo.com>
69803
69804         * lib/memxor.c (memxor): Fix compiler error.
69805
69806         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69807         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69808
69809         * lib/memxor.h, lib/memxor.c: New files.
69810
69811         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69812         we assume all systems have it, suggested by Jim Meyering
69813         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69814         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69815         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69816         same reasons.
69817
69818 2005-10-05  Simon Josefsson  <jas@extundo.com>
69819
69820         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69821
69822 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69825         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69826         needed, since the source code now assumes these .h files.
69827
69828 2005-10-05  Derek Price  <derek@ximbiot.com>
69829
69830         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69831
69832 2005-10-05  Bruno Haible  <bruno@clisp.org>
69833
69834         * modules/stdint (License): Change to LGPL.
69835
69836 2005-10-04  Simon Josefsson  <jas@extundo.com>
69837
69838         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69839         D. Baushke" <mdb@gnu.org>.
69840
69841 2005-10-04  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/verify.h (verify_true): Provide alternative definition for C++.
69844
69845 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69846
69847         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69848         (SSIZE_MAX): New macro, if not already defined.
69849         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69850         than 2 GiB.
69851
69852 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         Sync from coreutils.
69855         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69856         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69857         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69858         ULLONG_MAX doesn't work with 2.7.2.1.
69859
69860 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69863         From Ben Pfaff.
69864
69865         * modules/exclude (Depends-on): Depend on verify.
69866         * modules/strtoimax (Depends-on): Likewise.
69867         * modules/utimecmp (Depends-on): Likewise.
69868
69869 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         * lib/exclude.c: Include verify.h.
69872         (verify): Remove.  All callers changed to use verify.h's version.
69873         * lib/strtoimax.c: Likewise.
69874         * lib/utimecmp.c: Likewis.e
69875
69876         Sync from coreutils.
69877         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69878         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69879         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69880         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69881         bother returning ENOSYS if settimeofday or stime fails; just let
69882         them return whatever errno they want to return.
69883         * lib/utimens.c: Include unistd.h, for dup2.
69884         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69885         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69886
69887 2005-10-02  Jim Meyering  <jim@meyering.net>
69888
69889         Sync from coreutils.
69890         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69891         from glibc-2.2.5 that fails for read-only files.
69892
69893 2005-10-02  Jim Meyering  <jim@meyering.net>
69894
69895         Sync from coreutils.
69896         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69897         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69898         `#if HAVE_CONFIG_H'.
69899         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69900         Remove AT_FDCWD test.
69901         Do not consume the fd unless successful.
69902         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69903         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69904         block, so that we don't even try to compile it if settimeofday is
69905         available.  This works around a compilation failure on OSF1 V5.1,
69906         due to stime requiring a `long int*' while tv_sec is `int'.
69907
69908 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69909
69910         Sync from coreutils.
69911         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69912         against `yes', rather than just testing for nonempty.
69913
69914 2005-10-01  Simon Josefsson  <jas@extundo.com>
69915
69916         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69917         and Darwin.
69918
69919         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69920         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69921         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69922         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69923         Check if struct addrinfo is declared.
69924
69925 2005-10-01  Simon Josefsson  <jas@extundo.com>
69926
69927         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69928         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69929         AI_* and EAI_* definitions.  Protect function declarations.
69930
69931 2005-10-01  Jim Meyering  <jim@meyering.net>
69932
69933         Sync from coreutils.
69934
69935         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69936         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69937         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69938         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69939         in the inet and nsl libraries.  Required on Solaris 5.7.
69940
69941 2005-10-01  Jim Meyering  <jim@meyering.net>
69942
69943         Sync from coreutils.
69944         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69945         in the inet and nsl libraries.  Required on Solaris 5.7.
69946
69947 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69948
69949         * lib/getdelim.c (getdelim): Remove unused variables.
69950
69951 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69954         so that the code works even with ancient cpp.  Portability problem
69955         with GCC 2.7.2.1 reported by Thomas M.Ott.
69956
69957 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * modules/regex (Depends-on): Add strcase.
69960
69961         * modules/gethostname (Licence): Change from GPL to LGPL, since
69962         gethostname.c is a trivial implementation of a standard library
69963         function.
69964         * modules/poll (License): Change from GPL to LGPL, since it's
69965         derived from LGPL code.
69966
69967 2005-09-27  Jim Meyering  <jim@meyering.net>
69968
69969         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69970         HAVE_CONFIG_H.
69971
69972         * lib/intprops.h (signed_type_or_expr__): Define.
69973         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69974         for unsigned types.
69975
69976 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * lib/verify.h (verify_expr): Remove, replacing with:
69979         (verify_true): New macro that returns true instead of void.
69980         (verify_type__): Remove.
69981         (verify): Use verify_true rather than verify_type__.
69982
69983 2005-09-26  Bruno Haible  <bruno@clisp.org>
69984
69985         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69986         is necessary.
69987         (lib_SOURCES): Remove mbchar.c.
69988         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69989         (Files): Add m4/mbrtowc.m4.
69990         * modules/mbiter: Likewise.
69991         * modules/mbuiter: Likewise.
69992
69993 2005-09-26  Bruno Haible  <bruno@clisp.org>
69994
69995         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69996         compile mbchar.c if they are not both present.
69997         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69998         * m4/mbiter.m4 (gl_MBITER): Likewise.
69999         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70000         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70001         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70002
70003 2005-09-25  Jim Meyering  <jim@meyering.net>
70004
70005         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70006         also uses socklen_t.
70007
70008 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * lib/utimens.c (ENOSYS): Define if not already defined.
70011         (futimens): Support having a null PATH if the file descriptor
70012         is nonnegative.
70013
70014         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70015         Remove.
70016         (__attribute): Define to empty unless GCC 3.1 or later.
70017         This works around a core dump on OpenBSD 3.4, which has GCC
70018         2.95.3, which dumps core when given __attribute__(()).  It also
70019         simplifies other tests, since we really don't want to bother with
70020         worrying about which ancient version of GCC supported what.
70021         Original problem reported by Yoann Vandoorselaere, with part of
70022         the fix suggested by Derek Price.
70023
70024 2005-09-24  Jim Meyering  <jim@meyering.net>
70025
70026         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70027         so we can once again use a positive bitfield width of 1 -- now we
70028         don't have to explain why we were using a bitfield width of 2.
70029
70030 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70033         and similarly for the other external symbols.  Problem reported
70034         by James Gallager.
70035
70036         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70037         bug reported by Jim Meyering.
70038
70039         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70041         not needed, since socklen is a prerequisite module.
70042
70043 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70046         Problem reported by Eric Blake.
70047         (getaddrinfo): Initialize se so that it's not garbage.
70048         Redo internal storage allocation so that it doesn't make unportable
70049         assumptions about alignment.
70050         Fix a memory leak.
70051
70052         * lib/utimens.c (futimens): Use futimesat if available.
70053         Prefer it to futimes since it doesn't have the futimes bug.
70054
70055         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70056         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70057         Instead, declare a function that returns a pointer to an array,
70058         and use verify_type__ to declare the size of the array.
70059         Problem and germ of a solution reported by Bruno Haible.
70060         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70061         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70062
70063 2005-09-23  Jim Meyering  <jim@meyering.net>
70064
70065         Sync from coreutils.
70066         Correct build failure (socklen_t not defined) on at least
70067         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70069
70070 2005-09-23  Jim Meyering  <jim@meyering.net>
70071
70072         * modules/getaddrinfo (Depends-on): Add socklen.
70073
70074 2005-09-23  Bruno Haible  <bruno@clisp.org>
70075
70076         * tests/test-verify.c: New file.
70077
70078 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         Sync from coreutils.
70081
70082         * modules/argmatch (Depends-on): Add verify.
70083         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70084         unistd-safer.
70085         * modules/save-cwd (Depends-on): Likewise.
70086
70087         * modules/openat (Files): Add lib/openat-die.c.
70088         (Depends-on): Remove error, exitfail.
70089         Add dirname.
70090
70091         * modules/verify: New file.
70092         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70093         with "verify" module.
70094
70095 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         Sync from coreutils.
70098
70099         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70100         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70101         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70102         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70103         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70104         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70105         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70106         Don't bother checking for string.h, stdlib.h, unistd.h.
70107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70108         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70109         module's job.
70110         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70111         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70112
70113         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70114         (gl_GETDATE): Use it.
70115
70116         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70117
70118 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         Sync from coreutils.
70121
70122         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70123         stat-time.h.
70124         * lib/argmatch.h: Include verify.h
70125         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70126         (ARGMATCH_ASSERT): Remove; unused.
70127         * lib/canonicalize.c: Assume STDC_HEADERS.
70128         * lib/exclude.c: Include "strcase.h".
70129         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70130         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70131         and stdio-safer.h.
70132         (getusershell): Call fopen, not fopen_safer.
70133         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70134         Do not include unistd-safer.h.
70135         (save_cwd): Don't call fd_safer; no longer needed
70136         now that we include fcntl--.h.
70137
70138         * lib/getdate.y (relative_time): New type.
70139         (RELATIVE_TIME_0): New constant.
70140         (parser_control): Use relative_time instead of doing it ourselves.
70141         (%union): Add new relative_time rel member.
70142         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70143         Now typeless.
70144         (relunit, relunit_snumber): Now of type rel.
70145         (zone, rel, relunit, get_date): Adjust to above changes.
70146
70147         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70148         Do not include unistd-safer.h.
70149         (getloadavg): Don't call fd_safer; no longer needed
70150         now that we include fcntl--.h.
70151
70152         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70153         (make_dir_parents): Treat ENOSYS like EEXIST.
70154
70155         Improve quality of diagnostics on restore_cwd failure.
70156         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70157         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70158         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70159         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70160         each time through the loop.  Do not diagnose restore_cwd failure;
70161         that is the caller's job (and perhaps the caller does not care).
70162
70163         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70164         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70165         If the file already exists but is not a directory, don't bother
70166         to try to make its parents.
70167         Close potential file descriptor leak if we can't chdir("/") (!).
70168         Don't always return true if chdir($PWD) fails; return true only
70169         if the requested action was done successfully (except for the
70170         chdir($PWD)).
70171         Don't log final directory unless we actually made it.
70172         Refactor to avoid duplicate code to fix up permissions.
70173         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70174
70175         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70176         to make it a bit faster and (I hope) clearer.
70177         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70178         Fix bug in formats like %2N.
70179
70180         * lib/verify.h: New file.
70181
70182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         Sync from coreutils.
70185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70186
70187 2005-09-22  Jim Meyering  <jim@meyering.net>
70188
70189         Sync from coreutils.
70190
70191         * m4/lstat.m4 (gl_FUNC_LSTAT):
70192         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70193         Remove obsolete comment.
70194         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70195         * m4/xstrtod.m4: Likewise.
70196
70197         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70198
70199 2005-09-22  Jim Meyering  <jim@meyering.net>
70200
70201         Sync from coreutils.
70202
70203         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70204
70205         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70206         the .tm_year member, since otherwise gcc-4.0 would now warn about
70207         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70208
70209         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70210         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70211
70212         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70213         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70214         when run in a time zone for which daylight savings time is in effect
70215         for the starting date.
70216
70217         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70218         stop us from restricting permissions of just-created absolute-named
70219         directories.
70220         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70221         to restore initial working directory.
70222         * lib/mkdir-p.c (make_dir_parents): New parameter:
70223         different_working_dir, to tell caller if/when we change the working
70224         directory and are unable to return to the initial one.
70225         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70226         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70227         `return false'.  This fixes a bug introduced on 2004-07-30.
70228
70229         * lib/openat.c (fdopendir): Be sure to close the supplied
70230         file descriptor before returning.  This makes our replacement
70231         implementation a little closer to Solaris's, where fdopendir
70232         ties the file descriptor to the returned DIR* pointer.
70233         * lib/openat.c (unlinkat): New function.
70234         * lib/openat.h (unlinkat): Add prototype.
70235         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70236         (openat_restore_fail): Rename from openat_restore_die.
70237         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70238
70239         Provide an alternative to exiting immediately upon save_cwd or
70240         restore_cwd failure.  Now, an application can arrange e.g.,
70241         to perform a longjump in that case.
70242         * lib/openat.c: Include dirname.h.
70243         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70244         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70245         and openat_restore_die rather than calling error directly.
70246         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70247
70248         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70249         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70250         define.
70251
70252         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70253         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70254                             int utc, int nanoseconds);
70255         Background:
70256         date should not have to allocate a megabyte of virtual memory to
70257         handle a format argument like +%1048575T.  When implemented with
70258         strftime, it must allocate such a buffer, use strftime to fill it
70259         in, print it, then free it.
70260         With fprintftime, it simply prints everything and exits.
70261         With no need for memory allocation, that's one fewer way to fail.
70262         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70263         optional field width, not before, so we accept %9:z, not %:9z.
70264         (my_strftime): Be sure to use L_('x') for literals.
70265
70266         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70267         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70268         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70269         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70270         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70271         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70272         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70273         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70274         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70275         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70276         * lib/xgethostname.c, lib/xreadlink.c:
70277         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70278
70279         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70280         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70281         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70282         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70283         and don't include <sys/file.h>).
70284
70285 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70286
70287         Sync from coreutils.
70288
70289         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70290         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70291         [!LDAV_DONE]: Avoid unused variable warning.
70292
70293 2005-09-21  Bruno Haible  <bruno@clisp.org>
70294
70295         * lib/unicodeio.h (unicode_to_mb): New declaration.
70296
70297 2005-09-20  Derek Price  <derek@ximbiot.com>
70298
70299         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70300         getaddrinfo.h.
70301
70302 2005-09-20  Bruno Haible  <bruno@clisp.org>
70303
70304         * gnulib-tool: Remove trailing slashes from the values specified for
70305         --source-base, --m4-base, --tests-base, --aux-dir.
70306         Suggested by Simon Josefsson <jas@extundo.com>.
70307
70308 2005-09-20  Bruno Haible  <bruno@clisp.org>
70309
70310         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70311         func_modules_to_filelist, func_import, func_create_testdir): Make all
70312         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70313         change when gnulib-tool is invoked in a different locale.
70314
70315 2005-09-19  Simon Josefsson  <jas@extundo.com>
70316
70317         * m4/socklen.m4: Fix typo.
70318
70319 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70320
70321         Use a consistent style for including <config.h>.
70322         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70323         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70324         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70325         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70326         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70327         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70328         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70329         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70330         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70331         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70332         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70333         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70334         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70335         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70336         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70337         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70338         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70339         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70340         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70341         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70342         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70343         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70344         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70345         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70346         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70347         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70348         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70349         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70350         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70351         lib/xstrtoumax.c, lib/yesno.c:
70352         Standardize inclusion of config.h.
70353         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70354         lib/inttostr.h:  Removed inclusion of config.h from header files.
70355         * lib/inttostr.c:  Adjusted in-tree users.
70356         * lib/timespec.h: Remove superfluous warning to include config.h.
70357         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70358         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70359         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70360         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70361         config.h with HAVE_CONFIG_H.
70362
70363 2005-09-19  Jim Meyering  <jim@meyering.net>
70364
70365         * modules/pathmax (License): Change to LGPL.
70366
70367 2005-09-19  Derek Price  <derek@ximbiot.com>
70368
70369         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70370
70371 2005-09-19  Bruno Haible  <bruno@clisp.org>
70372
70373         * gnulib-tool (import): Provide default for --tests-base.
70374
70375 2005-09-19  Bruno Haible  <bruno@clisp.org>
70376
70377         * doc/quote.texi: New file, extracted from gnulib.texi.
70378         * doc/ctime.texi: New file, extracted from gnulib.texi.
70379         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70380         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70381         * doc/gnulib.texi: Include them.
70382
70383 2005-09-18  Bruno Haible  <bruno@clisp.org>
70384
70385         Portability fix.
70386         * gnulib-tool (func_readlink): New function.
70387         (func_ln_if_changed): Use it.
70388
70389 2005-09-18  Bruno Haible  <bruno@clisp.org>
70390
70391         * gnulib-tool: Support --with-tests also with --import.
70392         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70393         (func_import): Use variables $testsbase and $inctests. Emit a
70394         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70395         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70396         SUBDIRS += $testsdir.
70397         (func_create_testdir): Update.
70398
70399 2005-09-18  Bruno Haible  <bruno@clisp.org>
70400
70401         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70402         instead of $dry_run.
70403         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70404         (func_ln_if_changed): Don't handle dry-run here.
70405         (func_import): In dry-run mode, detect more precisely which actions
70406         would be performed, and don't use "...ing" verbs.
70407
70408 2005-09-18  Bruno Haible  <bruno@clisp.org>
70409
70410         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70411         (func_import): Use join on two temporary files instead of three nested
70412         loops, in order to determine which files are new or old.
70413
70414 2005-09-18  Bruno Haible  <bruno@clisp.org>
70415
70416         * gnulib-tool (func_import): Comment out code that spits out the
70417         new files with --dry-run.
70418
70419 2005-09-18  Bruno Haible  <bruno@clisp.org>
70420
70421         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70422
70423 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * lib/stat-time.h: New file.
70426         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70427         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70428         in a different way.
70429         (timespec_cmp): New function.
70430         * lib/utimecmp.c: Include stat-time.h.
70431         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70432         members exist, not on the obsolescent ST_MTIM_NSEC.
70433         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70434
70435 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70436
70437         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70438
70439 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * MODULES.html.sh (File system functions): Add stat-time.
70442         * modules/stat-time: New file.
70443         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70444         is now done in a different way, by the stat-time module.
70445         * modules/utimecmp (Depends-on): Add stat-time.
70446
70447 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * m4/st_mtim.m4: Remove.  Superseded by...
70450         * m4/stat-time.m4: New file.
70451         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70452         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70453
70454 2005-09-15  Derek Price  <derek@ximbiot.com>
70455
70456         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70457
70458 2005-09-15  Derek Price  <derek@ximbiot.com>
70459
70460         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70461         * lib/regex_internal.c: Ditto, using this...
70462         (__GNUC_PREREQ): ...new macro.
70463         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70464         using...
70465         (__GNUC_PREREQ): ...this new macro.
70466
70467         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70468
70469 2005-09-15  Derek Price  <derek@ximbiot.com>
70470             Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70473         changes, consolidating in...
70474         * lib/regex_internal.h: ...this file.
70475
70476 2005-09-13  Jim Meyering  <jim@meyering.net>
70477
70478         * lib/canon-host.c: Filter through gnu indent and reword comments
70479         slightly.
70480         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70481
70482 2005-09-13  Derek Price  <derek@ximbiot.com>
70483
70484         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70485         failure.
70486         Reported by Jim Meyering  <jim@meyering.net>.
70487
70488 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70489
70490         * lib/base64.c: Typo.
70491         (base64_encode): Put b64str in initialized data section.
70492
70493 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         Merge glibc and coreutils changes into gnulib, plus a few
70496         extra fixes.
70497         * lib/md5.c: Use #error rather than a string.
70498         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70499         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70500         (__attribute__): Define to empty for non recent-GCC.
70501         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70502         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70503         Renamed from their non-__ counterparts, with new macros replacing
70504         them if not _LIBC.  Add __THROW attribute.
70505         (rol): Remove.
70506         (struct md5_ctx): Align buffer if using GCC.
70507         * lib/sha1.h (struct sha1_ctx): Likewise.
70508         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70509         The old name was backwards.
70510         (NOTSWAP): Remove; not used.
70511         (rol): New macro, moved here from md5.h.
70512         (sha1_process_block): Remove a FIXME that doesn't make sense.
70513
70514 2005-09-12  Derek Price  <derek@ximbiot.com>
70515
70516         Return usable errors from canon-host.
70517         * lib/canon-host.h: New file.
70518         * lib/canon-host.c (canon_host): Wrap...
70519         (canon_host_r): ...this new function, which now relies exclusively on
70520         getaddrinfo.
70521         (ch_strerror): New function.
70522         (last_cherror): New global.
70523         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70524         interface.
70525         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70526         void *.
70527         (freeaddrinfo): Free ai->ai_canonname when set.
70528
70529 2005-09-12  Derek Price  <derek@ximbiot.com>
70530
70531         Make canon-host require getaddrinfo.
70532         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70533         AC_LIBSOURCE canon-host.h.  Call...
70534         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70535         gl_GETADDRINFO.
70536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70537
70538 2005-09-12  Derek Price  <derek@ximbiot.com>
70539
70540         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70541         LGPL.
70542         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70543
70544 2005-09-12  Derek Price  <derek@ximbiot.com>
70545
70546         * lib/gai_strerror.c: Include config.h when available.  Include
70547         getaddrinfo.h before other headers to test interface.
70548         Reported by Larry Jones <lawrence.jones@ugs.com>.
70549
70550 2005-09-12  Derek Price  <derek@ximbiot.com>
70551             Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * modules/glob (Files): Add glob-libc.h.
70554
70555 2005-09-12  Derek Price  <derek@ximbiot.com>
70556             Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70559         glob_.h, glob-libc.h.
70560         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70561
70562 2005-09-12  Derek Price  <derek@ximbiot.com>
70563             Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70566         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70567         protecting things that should be done only in gnulib contexts.
70568         * lib/glob_.h: New file, containing only the glob things needed for
70569         gnulib.
70570         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70571         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70572         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70573         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70574         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70575         and to respect the namespace rules better.
70576
70577 2005-09-08  Simon Josefsson  <jas@extundo.com>
70578
70579         * modules/socklen: New file.
70580
70581 2005-09-08  Simon Josefsson  <jas@extundo.com>
70582
70583         * m4/socklen.m4: New file.
70584
70585 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70586
70587         * modules/utimens (Files): Add m4/utimbuf.m4, since
70588         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70589         Reported by Sergey Poznyakoff.
70590
70591 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70594         definitions, since that's the preferred style in glibc.
70595         Fix a minor spacing issue, and update copyright notice to match
70596         glibc's.
70597
70598 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70601
70602 2005-09-06  Simon Josefsson  <jas@extundo.com>
70603
70604         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70605         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70606
70607 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70610         warning.
70611
70612 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * config/srclist.txt: Add glibc bug 1302.
70615
70616 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         Change bitset word type from unsigned int to unsigned long int,
70619         as this has better performance on typical 64-bit hosts.
70620         Port bitset code to hosts with unusual word sizes.
70621         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70622         (build_collating_symbol):
70623         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70624         argument is a bitset.  This is merely a style issue, but it makes
70625         it clearer that an entire array is expected.
70626         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70627         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70628         Port to the case where bitset_word is not the same as unsigned int.
70629         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70630         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70631         Likewise.
70632         * lib/regexec.c (check_dst_limits_calc_pos_1,
70633         check_subexp_matching_top):
70634         (build_trtable, group_nodes_into_DFAstates):
70635         Likewise.
70636         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70637         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70638         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70639         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70640         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70641         * lib/regcomp.c (optimize_subexps, lower_subexp):
70642         Work even if bitset_word has holes in its bitwise representation.
70643         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70644         * lib/regexec.c (check_dst_limits_calc_pos_1,
70645         check_subexp_matching_top):
70646         Likewise.
70647         * lib/regex_internal.c (re_string_reconstruct):
70648         Don't assume UCHAR_MAX == 255.
70649         * lib/regex_internal.h (bitset_set_all): Likewise.
70650         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70651         All uses changed.
70652         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70653         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70654         All uses changed.
70655         (BITSET_WORD_MAX): New macro.
70656         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70657         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70658         (bitset_empty, bitset_copy):
70659         Prefer sizeof (bitset) to multiplying it out ourselves.
70660         (bitset_not_merge): Remove; unused.
70661         (bitset_contain): Return bool, not unsigned int with one bit on.
70662         All callers changed.
70663         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70664         alignment than re_node_set; do this by defining a new internal
70665         type struct dests_alloc and using it to allocate memory.
70666
70667 2005-09-05  Bruno Haible  <bruno@clisp.org>
70668
70669         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70670         links.
70671
70672 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70673
70674         * modules/size_max (Makefile.am): Add size_max.h
70675
70676 2005-09-04  Derek Price  <derek@ximbiot.com>
70677
70678         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70679
70680 2005-09-03  Simon Josefsson  <jas@extundo.com>
70681
70682         * gnulib-tool: Fix typo.
70683
70684 2005-09-03  Simon Josefsson  <jas@extundo.com>
70685
70686         * config/srclist.txt: Add glibc bug 1293.
70687
70688 2005-09-03  Derek Price  <derek@ximbiot.com>
70689
70690         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70691         From Larry Jones <lawrence.jones@ugs.com>.
70692
70693 2005-09-02  Simon Josefsson  <jas@extundo.com>
70694
70695         * modules/socklen: New file.
70696
70697 2005-09-02  Simon Josefsson  <jas@extundo.com>
70698
70699         * modules/havelib: New module.
70700
70701         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70702         Use havelib.
70703
70704 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         Check for arithmetic overflow when calculating sizes, to prevent
70707         some buffer-overflow issues.  These patches are conservative, in the
70708         sense that when I couldn't determine whether an overflow was possible,
70709         I inserted a run-time check.
70710         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70711         macros.
70712         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70713         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70714         (re_xnrealloc, re_x2nrealloc): New inline functions.
70715         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70716         parse_bracket_exp):
70717         (build_equiv_class, build_charclass): Check for arithmetic overflow
70718         in size expression calculations.
70719         * lib/regex_internal.c (re_string_realloc_buffers):
70720         (build_wcs_upper_buffer, re_node_set_add_intersect):
70721         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70722         (re_dfa_add_node, register_state): Likewise.
70723         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70724         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70725         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70726         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70727
70728 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70731         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70732
70733 2005-09-02  Bruno Haible  <bruno@clisp.org>
70734
70735         Support for lib vs. lib64 distinction on biarch platforms.
70736         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70737         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70738         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70739
70740 2005-09-02  Bruno Haible  <bruno@clisp.org>
70741
70742         * gnulib-tool (import): In the other first-use case, provide defaults
70743         as well.
70744
70745 2005-09-02  Bruno Haible  <bruno@clisp.org>
70746
70747         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70748         patches not yet found in the latest gettext release.
70749
70750 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70753         to avoid a collision with bits/local_lim.h in glibc.
70754         All uses changed.  Problem reported by Dmitry V. Levin in
70755         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70756
70757         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70758         bugs in int versus size_t comparisons.
70759         (re_string_context_at): Fix bug where the code assumed that
70760         Idx is signed.
70761
70762         Use bool where appropriate.
70763         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70764         All callers changed.
70765         (calc_eclosure_iter): Likewise, for ROOT arg.
70766         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70767         (build_charclass_op): Likewise, for NON_MATCH arg.
70768         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70769         (re_string_construct_common): Likewise, for ICASE arg.
70770         * lib/regexec.c (re_search_2_stub, re_search_stub):
70771         Likewise, for RET_LEN arg.
70772         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70773         (set_regs): Likewise, for FL_BACKTRACK arg.
70774         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70775         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70776         (calc_eclosure_iter, parse_bracket_exp):
70777         Use bool for internal variables that are booleans.
70778         * lib/regexec.c (re_search_internal, check_matching,
70779         proceed_next_node):
70780         (set_regs, build_sifted_states, sift_states_bkref):
70781         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70782         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70783         (find_collation_sequence_value):
70784         Likewise.
70785         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70786         (re_node_set_compare):
70787         Return bool, not int. All callers changed.
70788         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70789         (build_trtable, check_node_accept): Likewise.
70790         * lib/regex_internal.h: Include stdbool.h.
70791
70792         Fix bugs uncovered when converting to bool.
70793         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70794         failure instead of charging ahead blindly.
70795         * lib/regex_internal.c (register_state): Likewise.
70796         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70797         for freeing internal storage.
70798         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70799         bitset pieces used as boolean, to avoid undefined behavior
70800         on hosts that do int overflow checking.
70801
70802 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * config/srclist.txt: Add glibc bugs 1285-1287.
70805
70806 2005-09-01  Jim Meyering  <jim@meyering.net>
70807
70808         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70809         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70810         Require gl_STAT_MACROS, too.
70811
70812 2005-09-01  Bruno Haible  <bruno@clisp.org>
70813
70814         * gnulib-tool (import): In the first-use case, provide defaults.
70815
70816 2005-09-01  Bruno Haible  <bruno@clisp.org>
70817
70818         * gnulib-tool (func_import): Remove the .tmp files.
70819
70820 2005-09-01  Bruno Haible  <bruno@clisp.org>
70821
70822         * gnulib-tool (func_import): Fix handling of symbolic links.
70823
70824 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70825
70826         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70827         old glibc regex code mishandles strings longer than 2**31 bytes.
70828         This patch fixes this when the regex code is used in gnulib
70829         (i.e., outside glibc).
70830
70831         This patch should not affect the use of the regex code inside
70832         glibc.  No doubt this problem also needs to be handled for glibc
70833         as well, but the result will be an incompatible change to the
70834         glibc ABI, and the old ABI will have to be supported too.  That
70835         can be the the subject for another patch.
70836
70837         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70838         governing whether the rest of this patch is active.  By default,
70839         the macro is disabled and the patch has no effect.
70840         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70841         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70842         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70843         (re_match_2, re_set_registers): Use the new types.
70844         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70845         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70846         New macros.
70847         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70848         (re_string_context_at, bin_tree_t, re_dfastate_t):
70849         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70850         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70851         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70852         (re_string_char_size_at, re_string_wchar_at):
70853         (re_string_elem_size_at):
70854         Use the new types and macros to port to 64-bit hosts.
70855         Use unsigned types for internal values, so that the code
70856         mostly works even for arrays larger than SSIZE_MAX.
70857         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70858         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70859         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70860         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70861         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70862         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70863         (calc_inveclosure, parse_dup_op, build_range_exp):
70864         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70865         (fetch_number, create_token_tree, mark_opt_subexp):
70866         Likewise.
70867         * lib/regex_internal.c (re_string_construct_common,
70868         create_ci_newstate):
70869         (create_cd_newstate, re_string_allocate, re_string_construct):
70870         (re_string_realloc_buffers, build_wcs_upper_buffer):
70871         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70872         (re_string_reconstruct, re_string_peek_byte_case):
70873         (re_string_fetch_byte_case, re_string_context_at):
70874         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70875         (re_node_set_init_copy, re_node_set_add_intersect):
70876         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70877         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70878         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70879         (re_acquire_state, re_acquire_state_context, register_state):
70880         Likewise.
70881         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70882         search_cur_bkref_entry):
70883         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70884         (re_search_internal, re_search_2_stub, re_search_stub)
70885         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70886         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70887         (update_cur_sifted_state, check_dst_limits):
70888         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70889         (check_subexp_limits, sift_states_bkref, merge_state_array):
70890         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70891         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70892         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70893         (expand_bkref_cache, check_node_accept_bytes):
70894         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70895         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70896         (acquire_init_state_context, check_halt_node_context):
70897         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70898         (sift_states_backward, clean_state_log_if_needed):
70899         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70900         (find_recover_state, transit_state_sb, transit_state_mb):
70901         (transit_state_bkref, build_trtable, match_ctx_clean):
70902         Likewise.
70903         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70904         to work around an assumption that REG_MISSING is negative.
70905
70906         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70907         (seek_collating_symbol_entry) [defined _LIBC]:
70908         (lookup_collation_sequence_value) [defined _LIBC]:
70909         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70910         Use prototypes rather than old-style function definitions.
70911         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70912         (transit_state_sb) [0]:
70913         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70914
70915         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70916         rm_eo.
70917
70918         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70919         (optimize_subexps, lower_subexp):
70920         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70921         since the signed shift might overflow.  Use 1u<<31 instead.
70922         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70923         Likewise.
70924         * lib/regexec.c (check_dst_limits_calc_pos_1,
70925         check_subexp_matching_top): Likewise.
70926
70927         * lib/regcomp.c (optimize_subexps, lower_subexp):
70928         Use CHAR_BIT rather than 8, for clarity.
70929         * lib/regexec.c (check_dst_limits_calc_pos_1):
70930         (check_subexp_matching_top): Likewise.
70931         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70932         have to worry about portability issues when shifting it left.
70933         Remove no-longer-needed test for table_size > 0.
70934         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70935         in a word, as the resulting behavior is undefined.
70936         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70937         in one case, a <= should have been an <, and in another case the
70938         whole test was missing.
70939         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70940         the standard name CHAR_BIT.
70941         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70942         this is not true on one's complement and signed-magnitude hosts.
70943
70944         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70945         next_last_offset.
70946         (struct re_dfa_t): Remove unused member states_alloc.
70947         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70948
70949 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70952         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70953         and large-file glibc and in 32-bit large-file Solaris.
70954
70955 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70958         lengths fit in regoff_t; this isn't true if regoff_t is the same
70959         width as size_t.
70960         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70961         (= START + RANGE) instead of RANGE.  This avoids overflow
70962         problems when regoff_t is the same width as size_t.
70963         All callers changed.
70964         (re_search_2_stub): Check for overflow when adding the
70965         sizes of the two strings.
70966         (re_search_stub): Check for overflow when adding START
70967         to RANGE; if it occurs, substitute the extreme value.
70968
70969 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70972
70973 2005-08-31  Jim Meyering  <jim@meyering.net>
70974
70975         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70976         a pointer-to-const.
70977         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70978         (register_state): Likewise.
70979         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70980         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70981         (group_nodes_into_DFAstates): Likewise.
70982
70983 2005-08-31  Jim Meyering  <jim@meyering.net>
70984
70985         * check-module: Add a FIXME comment.
70986
70987 2005-08-31  Eric Blake  <ebb9@byu.net>
70988
70989         * modules/unistd-safer (Files): Add unistd--.h.
70990         * modules/stdio-safer (Files): Add stdio--.h.
70991
70992 2005-08-31  Derek Price  <derek@ximbiot.com>
70993
70994         * lib/getdelim.c (getdelim): Return EOF on EOF.
70995         Reported by Larry Jones <lawrence.jones@ugs.com>.
70996
70997 2005-08-31  Bruno Haible  <bruno@clisp.org>
70998
70999         Avoid unnecessary diffs in the generated lib/Makefile.am.
71000         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71001         the generated files.
71002         (func_import): Don't set cmd.
71003
71004 2005-08-31  Bruno Haible  <bruno@clisp.org>
71005
71006         * lib/strstr.c: Include <stddef.h>, for NULL.
71007         * lib/strcasestr.c: Likewise.
71008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71009
71010 2005-08-31  Bruno Haible  <bruno@clisp.org>
71011
71012         * gnulib-tool: New option --macro-prefix.
71013         (func_import): Use macro_prefix.
71014         (import): Handle option --macro-prefix.
71015
71016 2005-08-31  Bruno Haible  <bruno@clisp.org>
71017
71018         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71019         Also use new variables cached_lgpl, cached_libtool.
71020
71021 2005-08-31  Bruno Haible  <bruno@clisp.org>
71022
71023         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71024         always instantiating them.
71025
71026 2005-08-31  Bruno Haible  <bruno@clisp.org>
71027
71028         * gnulib-tool (func_import): Read the previous cached settings
71029         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71030         earlier added by gnulib but are now dropped. Warn when a gnulib file
71031         overwrites a non-gnulib file.
71032
71033 2005-08-31  Bruno Haible  <bruno@clisp.org>
71034
71035         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71036         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71037         projects that don't keep autogenerated files in CVS. Put into
71038         actioncmd only the specified modules, not the transitive closure.
71039
71040 2005-08-31  Bruno Haible  <bruno@clisp.org>
71041
71042         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71043         Create directories that shall be filled.
71044         (import): Don't look for gl_* macros in configure.ac. Recurse across
71045         all directories containing a gnulib-cache.m4 files, if meaningful.
71046
71047 2005-08-31  Bruno Haible  <bruno@clisp.org>
71048
71049         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71050         (import): Set seen_libtool when we see gl_LIBTOOL.
71051
71052 2005-08-31  Bruno Haible  <bruno@clisp.org>
71053
71054         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71055         declaration macro definitions from generated gnulib.m4.
71056
71057 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71058
71059         * lib/iconvme.h: Add prototype for iconv_alloc.
71060
71061 2005-08-29  Simon Josefsson  <jas@extundo.com>
71062
71063         * lib/iconvme.c: Fix errno.
71064
71065 2005-08-29  Bruno Haible  <bruno@clisp.org>
71066
71067         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71068         that it works when the directory contains spaces.
71069
71070 2005-08-29  Bruno Haible  <bruno@clisp.org>
71071
71072         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71073
71074 2005-08-29  Bruno Haible  <bruno@clisp.org>
71075
71076         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71077         Emit more advice.
71078
71079 2005-08-29  Bruno Haible  <bruno@clisp.org>
71080         and Stepan Kasal  <kasal@ucw.cz>
71081
71082         * check-module: If more parameters are given, check each of them
71083         separately; add more exceptions, as noted by Jim Meyering.
71084         (check_module): New procedure.
71085         (%exempt_header): Now contains all exceptions.
71086
71087 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71088
71089         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71090
71091 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71092
71093         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71094
71095 2005-08-28  Bruno Haible  <bruno@clisp.org>
71096
71097         * m4/gnulib-tool.m4: New file.
71098
71099 2005-08-27  Jim Meyering  <jim@meyering.net>
71100
71101         * modules/unistd-safer (Files): Add pipe-safer.c.
71102         * modules/fcntl-safer (Files): Add creat-safer.c.
71103
71104 2005-08-27  Jim Meyering  <jim@meyering.net>
71105
71106         * m4/stdlib-safer.m4: New file.  From coreutils.
71107         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71108         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71109         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71110         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71111         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71112
71113 2005-08-27  Jim Meyering  <jim@meyering.net>
71114
71115         * lib/fopen-safer.c: Merge minor changes from coreutils.
71116         * lib/dup-safer.c: Likewise.
71117         * lib/fd-safer.c: Likewise.
71118
71119         Merge from coreutils.
71120         * lib/stdio--.h: New file.
71121         * lib/stdlib--.h: New file.
71122         * lib/mkstemp-safer.c: New file.
71123
71124         GNU tar needs these.
71125         * lib/pipe-safer.c: New file.
71126         * lib/creat-safer.c: New file.
71127         * lib/fcntl--.h (creat): Define to creat_safer.
71128         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71129         * lib/unistd--.h (pipe): Define to pipe_safer.
71130         * lib/unistd-safer.h: Declare pipe_safer.
71131
71132 2005-08-26  Simon Josefsson  <jas@extundo.com>
71133
71134         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71135         Haible <bruno@clisp.org>.
71136
71137 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * lib/regex_internal.h: Remove all references to
71140         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71141         or better.
71142         (bitset_not, bitset_merge, bitset_not_merge):
71143         (bitset_mask, re_string_allocate, re_string_construct):
71144         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71145         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71146         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71147         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71148         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71149         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71150         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71151         (re_acquire_state_context):
71152         Remove unnecessary forward decls.
71153         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71154         Put __attribute at function definition,
71155         now that the function decl has been removed.
71156         * lib/regex_internal.c (re_string_peek_byte_case):
71157         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71158         Likewise.
71159
71160 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71161
71162         * m4/regex.m4: Add AC_PREREQ(2.50).
71163         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71164
71165 2005-08-25  Simon Josefsson  <jas@extundo.com>
71166
71167         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71168         __fsetlocking.
71169
71170 2005-08-25  Simon Josefsson  <jas@extundo.com>
71171
71172         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71173         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71174         GLIBC specific code.
71175
71176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         Make regex safe for g++.  This fixes one real bug (an "err"
71179         that should have been "*err").  g++ problem reported by
71180         Sam Steingold.
71181         * lib/regex_internal.h (re_calloc): New macro, consistent with
71182         re_malloc etc.  All callers of calloc changed to use re_calloc.
71183         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71184         not int.  All callers changed.
71185         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71186         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71187         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71188         (find_recover_state): Change "err" to "*err"; this fixes what
71189         appears to be a real bug.
71190         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71191         versus int.
71192
71193 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * modules/regex (Depends-on): Add malloc, since the code
71196         assumes that !malloc(0) means failure.
71197
71198 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71199
71200         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71201
71202         alloca modernization/simplification for regex.
71203         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71204         needs to be at the start of the file, and can be moved into
71205         regex_internal.h and simplified.
71206         * lib/regex_internal.h: Include <alloca.h>.
71207         (__libc_use_alloca) [!defined _LIBC]: New macro.
71208         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71209         now works outside glibc.
71210
71211 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * config/srclist.txt: Add glibc bugs 1241, 1245.
71214
71215 2005-08-25  Jim Meyering  <jim@meyering.net>
71216
71217         * lib/open-safer.c: Include <config.h>.
71218         Otherwise, we'd lose LARGEFILE support in any file using
71219         e.g. "fcntl--.h"
71220
71221 2005-08-25  Bruno Haible  <bruno@clisp.org>
71222
71223         * m4/minmax.m4: Require autoconf 2.52.
71224         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71225         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71226         alternatives of translit over the alphabet.
71227         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71228
71229 2005-08-24  Simon Josefsson  <jas@extundo.com>
71230
71231         * tests/test-getpass.c: New file.
71232
71233 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71236         for GNU regex features.
71237
71238 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71241         * lib/regex.h (regerror): Likewise.
71242
71243         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71244         requires this.  (The code never needed it.)
71245
71246         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71247         All uses of recently-renamed identifiers changed to use the new,
71248         POSIX-compliant names.  The code will build and run just fine
71249         without these changes, but it's better to eat our own dog food
71250         and use the standard-conforming names.
71251
71252         * lib/regex.h: Fix a multitude of POSIX name space violations.
71253         These changes have an effect only for programs that define
71254         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71255         do not change anything for programs compiled in the normal way.
71256         Also, there is no effect on the ABI.
71257
71258         (_REGEX_SOURCE): New macro.
71259         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71260         defined and _GNU_SOURCE is not; this fixes a name space violation.
71261
71262         Rename the following macros to obey POSIX requirements.
71263         The old names are still visible as macros if _REGEX_SOURCE is defined.
71264         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71265         RE_BACKSLASH_ESCAPE_IN_LISTS.
71266         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71267         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71268         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71269         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71270         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71271         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71272         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71273         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71274         (REG_INTERVALS): renamed from RE_INTERVALS.
71275         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71276         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71277         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71278         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71279         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71280         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71281         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71282         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71283         RE_UNMATCHED_RIGHT_PAREN_ORD.
71284         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71285         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71286         (REG_DEBUG): renamed from RE_DEBUG.
71287         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71288         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71289         unusual, since we can't clash with the POSIX REG_ICASE.
71290         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71291         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71292         (REG_NO_SUB): renamed from RE_NO_SUB.
71293         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71294         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71295         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71296         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71297         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71298         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71299         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71300         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71301         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71302         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71303         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71304         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71305         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71306         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71307         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71308         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71309         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71310         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71311         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71312         (REG_FIXED): Renamed from REGS_FIXED.
71313         (REG_NREGS): Renamed from RE_NREGS.
71314
71315         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71316         of other REG_* macros, since POSIX says the user is allowed to
71317         #undef these macros selectively.
71318
71319         (reg_errcode_t): Update comment stating what other tables need
71320         to be consistent.
71321
71322         Rename the following enum values to obey POSIX requirements.
71323         The old names are still visible as macros.
71324         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71325         is not defined, since GNU is supposed to be a superset of POSIX as
71326         much as possible, and since we want reg_errcode_t to be a signed
71327         type for implementation consistency.
71328         (_REG_NOERROR): Renamed from REG_NOERROR.
71329         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71330         (_REG_BADPAT): Renamed from REG_BADPAT.
71331         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71332         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71333         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71334         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71335         (_REG_EBRACK): Renamed from REG_EBRACK.
71336         (_REG_EPAREN): Renamed from REG_EPAREN.
71337         (_REG_EBRACE): Renamed from REG_EBRACE.
71338         (_REG_BADBR): Renamed from REG_BADBR.
71339         (_REG_ERANGE): Renamed from REG_ERANGE.
71340         (_REG_ESPACE): Renamed from REG_ESPACE.
71341         (_REG_BADRPT): Renamed from REG_BADRPT.
71342         (_REG_EEND): Renamed from REG_EEND.
71343         (_REG_ESIZE): Renamed from REG_ESIZE.
71344         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71345         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71346         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71347         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71348         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71349
71350         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71351         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71352         changed.  But support the old name if the new one is not defined
71353         and if _REGEX_SOURCE.
71354
71355         Change the following member names in struct re_pattern_buffer.
71356         The old names are still supported if !_REGEX_SOURCE.
71357         The new names are always supported, regardless of _REGEX_SOURCE.
71358         (re_buffer): Renamed from buffer.
71359         (re_allocated): Renamed from allocated.
71360         (re_used): Renamed from used.
71361         (re_syntax): Renamed from syntax.
71362         (re_fastmap): Renamed from fastmap.
71363         (re_translate): Renamed from translate.
71364         (re_can_be_null): Renamed from can_be_null.
71365         (re_regs_allocated): Renamed from regs_allocated.
71366         (re_fastmap_accurate): Renamed from fastmap_accurate.
71367         (re_no_sub): Renamed from no_sub.
71368         (re_not_bol): Renamed from not_bol.
71369         (re_not_eol): Renamed from not_eol.
71370         (re_newline_anchor): Renamed from newline_anchor.
71371
71372         Change the following member names in struct re_registers.
71373         The old names are still supported if !_REGEX_SOURCE.
71374         The new names are always supported, regardless of _REGEX_SOURCE.
71375         (rm_num_regs): Renamed from num_regs.
71376         (rm_start): Renamed from start.
71377         (rm_end): Renamed from end.
71378
71379         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71380         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71381         Prepend __ to parameter names.
71382
71383         Undo yesterday's changes.
71384
71385 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71388         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71389         lib/regex.c.
71390
71391 2005-08-24  Jim Meyering  <jim@meyering.net>
71392
71393         Sync from coreutils.
71394         * m4/fcntl-safer.m4: New file.
71395
71396         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71397         and object files for this module.
71398
71399 2005-08-24  Jim Meyering  <jim@meyering.net>
71400
71401         Sync from coreutils.
71402         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71403
71404 2005-08-24  Jim Meyering  <jim@meyering.net>
71405
71406         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71407         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71408
71409 2005-08-24  Jim Meyering  <jim@meyering.net>
71410
71411         * modules/fcntl-safer: New module.
71412         * modules/fts (Depends-on): Add fcntl-safer.
71413         * MODULES.html.sh (File descriptor based Input/Output):
71414         Add fcntl-safer.
71415
71416 2005-08-24  Bruno Haible  <bruno@clisp.org>
71417
71418         Support for unit test modules.
71419         * modules/README: Mention tests modules.
71420         * modules/TEMPLATE-TESTS: New file.
71421         * gnulib-tool: New options --extract-tests-module, --with-tests and
71422         --tests-base (unused for the moment).
71423         (testsbase, inctests): New variables.
71424         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71425         (func_verify_module): Exclude TEMPLATE-TESTS.
71426         (func_verify_nontests_module, func_verify_tests_module): New functions.
71427         (func_get_dependencies): Add implicit dependency for tests modules.
71428         (func_get_tests_module): New function.
71429         (func_modules_transitive_closure): When --with-tests was specified,
71430         include the unit tests as well, unless explicitly avoided.
71431         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71432         (func_emit_tests_Makefile_am): New function.
71433         (func_create_testdir): When --with-tests was specified, emit a
71434         tests/ directory.
71435         * MODULES.html.sh (Future developments): Update.
71436
71437 2005-08-24  Bruno Haible  <bruno@clisp.org>
71438
71439         * modules/tls-tests: New file.
71440         * tests/test-tls.c: New file, from GNU gettext.
71441
71442 2005-08-24  Bruno Haible  <bruno@clisp.org>
71443
71444         * modules/lock-tests: New file.
71445         * tests/test-lock.c: New file, from GNU gettext.
71446
71447 2005-08-24  Bruno Haible  <bruno@clisp.org>
71448
71449         * lib/lock.h: Add multiple inclusion guard.
71450         * lib/tls.h: Add multiple inclusion guard.
71451
71452 2005-08-24  Bruno Haible  <bruno@clisp.org>
71453
71454         * gnulib-tool: Add support for the --aux-dir option to
71455         --create-testdir, --create-megatestdir, --test, --megatest.
71456         (func_create_testdir, func_create_megatestdir): Optionally emit a
71457         AC_CONFIG_AUX_DIR directive.
71458         (create-testdir, create-megatestdir, test, megatest): Provide a
71459         default value for $auxdir.
71460
71461 2005-08-24  Bruno Haible  <bruno@clisp.org>
71462
71463         * gnulib-tool (import): Use compound statement instead of subshell
71464         where possible.
71465
71466 2005-08-24  Bruno Haible  <bruno@clisp.org>
71467
71468         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71469
71470 2005-08-24  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool (func_version): Update.
71473
71474 2005-08-24  Bruno Haible  <bruno@clisp.org>
71475
71476         * gnulib-tool (func_import, func_create_testdir,
71477         func_create_megatestdir): Quote all autoconf macro arguments.
71478
71479 2005-08-24  Bruno Haible  <bruno@clisp.org>
71480
71481         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71482         option --force, because --force causes the aclocal.m4 of each
71483         subdirectory to be newer than the corresponding config.h.in.
71484
71485 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71488         All contents moved to gl_REGEX.
71489         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71490         assume that it does.
71491
71492 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * lib/regex.h (REG_NOSYS)
71495         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71496         Define, since POSIX requires it as of 2001.
71497         (_REG_ENOSYS)
71498         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71499         New private symbol, used to keep the enum signed in all cases.
71500         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71501         Youngman in
71502         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71503
71504         * lib/regex_internal.c (re_string_skip_chars, register_state):
71505         (calc_state_hash):
71506         Remove forward decls; no longer needed now that we use prototypes.
71507         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71508         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71509         (clean_state_log_if_needed): Likewise.
71510
71511 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * config/srclist.txt: Add glibc bugs 1231-1233.
71514
71515 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         Fix problems reported by Sam Steingold in
71518         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71519         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71520         assumed that reg_errcode_t is a signed type, which is not
71521         necessarily true if _XOPEN_SOURCE is not defined.
71522         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71523         since some compilers warn about it otherwise.
71524
71525 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71526
71527         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71528         (init_word_char, create_initial_state, duplicate_node_closure):
71529         (fetch_token, peek_token_bracket, build_range_exp):
71530         (build_collating_symbol): Remove forward decls; no longer needed
71531         now that we use prototypes.
71532
71533         * lib/regcomp.c:
71534         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71535         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71536         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71537         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71538         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71539         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71540         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71541         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71542         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71543         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71544         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71545         (build_charclass, build_charclass_op, fetch_number, create_tree):
71546         (create_token_tree, mark_opt_subexp, duplicate_tree):
71547         Use prototypes rather than old-style definitions.
71548
71549         * lib/regex_internal.c:
71550         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71551         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71552         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71553         (re_string_reconstruct, re_string_peek_byte_case):
71554         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71555         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71556         (re_node_set_init_copy, re_node_set_add_intersect):
71557         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71558         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71559         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71560         (re_acquire_state, re_acquire_state_context, register_state):
71561         (create_ci_newstate, create_cd_newstate, free_state):
71562         Likewise.
71563         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71564         re_search_2):
71565         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71566         (re_search_internal, prune_impossible_nodes):
71567         (acquire_init_state_context, check_matching, static):
71568         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71569         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71570         (update_regs, sift_states_backward, build_sifted_states):
71571         (clean_state_log_if_needed, merge_state_array):
71572         (update_cur_sifted_state, add_epsilon_src_nodes):
71573         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71574         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71575         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71576         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71577         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71578         (check_arrival, check_arrival_add_next_nodes):
71579         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71580         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71581         (check_node_accept_bytes, check_node_accept, extend_buffers):
71582         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71583         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71584         (sift_ctx_init):
71585         Likewise.
71586
71587         * lib/regex_internal.h:
71588         (re_string_allocate, re_string_construct, re_string_reconstruct):
71589         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71590         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71591         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71592         (re_string_context_at, re_string_peek_byte_case):
71593         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71594         is defined, since we now use prototypes always.
71595
71596         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71597         C89 or better.  All uses removed.
71598
71599 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * config/srclist.txt: Add glibc bugs 1220-1227.
71602
71603 2005-08-20  Jim Meyering  <jim@meyering.net>
71604
71605         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71606         of unused local, dfa.
71607
71608 2005-08-20  Bruno Haible  <bruno@clisp.org>
71609
71610         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71611
71612 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71615         (re_node_set_insert_last, re_dfa_add_node):
71616         Rename local variables to avoid GCC shadowing warnings.
71617
71618 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71621         [defined lint]: Suppress bogus uninitialized-variable warnings.
71622
71623         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71624         and let the caller return REG_ESPACE if out of space.  This
71625         removes an uninitialied-variable warning with GCC 4.0.1, and also
71626         avoids taking the address of a local variable.  All callers
71627         changed.
71628
71629 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71632         $LIBCSRC/posix/regexec.c.
71633         Add glibc bug 1217 for regcomp.c.
71634
71635 2005-08-19  Jim Meyering  <jim@meyering.net>
71636
71637         * lib/regexec.c (proceed_next_node): Redo local variables to
71638         avoid GCC shadowing warnings.
71639
71640 2005-08-18  Bruno Haible  <bruno@clisp.org>
71641
71642         * lib/strstr.c (strstr): Fix return value in multibyte case.
71643         * lib/strcasestr.c (strcasestr): Likewise.
71644
71645 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71648
71649 2005-08-17  Jim Meyering  <jim@meyering.net>
71650
71651         Make the %s format (seconds since the epoch) work for a negative
71652         number and when used with a zero-padded field width, e.g. %015s.
71653
71654         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71655         label so that it precedes the code to set `digits'.  Otherwise,
71656         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71657         print `00-22'.  Now, it prints `-0022', as it should.
71658
71659 2005-08-17  Bruno Haible  <bruno@clisp.org>
71660
71661         * modules/strstr (Files): Add m4/mbrtowc.m4.
71662         (Depends-on): Add mbuiter.
71663
71664 2005-08-17  Bruno Haible  <bruno@clisp.org>
71665
71666         * modules/strcasestr: New file.
71667         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71668         strcasestr.
71669
71670 2005-08-17  Bruno Haible  <bruno@clisp.org>
71671
71672         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71673
71674 2005-08-17  Bruno Haible  <bruno@clisp.org>
71675
71676         * modules/mbuiter: New file.
71677         * MODULES.html.sh (Extended multibyte and wide character utilities):
71678         Add mbuiter.
71679
71680 2005-08-17  Bruno Haible  <bruno@clisp.org>
71681
71682         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71683         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71684
71685 2005-08-17  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/strcasestr.m4: New file.
71688
71689 2005-08-17  Bruno Haible  <bruno@clisp.org>
71690
71691         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71692         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71693
71694 2005-08-17  Bruno Haible  <bruno@clisp.org>
71695
71696         * lib/strcasestr.h: New file.
71697         * lib/strcasestr.c: New file.
71698
71699 2005-08-17  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/strcasecmp.c: Use mbuiter.h.
71702
71703 2005-08-17  Bruno Haible  <bruno@clisp.org>
71704
71705         * lib/mbuiter.h: New file.
71706
71707 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71708
71709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71710         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71711         and gl_GETOPT are both invoked via different paths (as happens
71712         with GNU tar CVS because it uses both argp and getopt), the former
71713         wins.
71714
71715 2005-08-16  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/tls: New file.
71718         * MODULES.html.sh (Multithreading): Add tls.
71719
71720 2005-08-16  Bruno Haible  <bruno@clisp.org>
71721
71722         * modules/strnlen1: New file.
71723         * MODULES.html.sh (String handling): Add strnlen1.
71724
71725 2005-08-16  Bruno Haible  <bruno@clisp.org>
71726
71727         * modules/strcase (Files): Add m4/mbrtowc.m4.
71728         (Depends-on): Add strnlen1, mbchar.
71729
71730 2005-08-16  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/mbiter: New file.
71733         * MODULES.html.sh (Extended multibyte and wide character utilities):
71734         Add mbiter.
71735
71736 2005-08-16  Bruno Haible  <bruno@clisp.org>
71737
71738         * modules/mbfile: New file.
71739         * MODULES.html.sh (Extended multibyte and wide character utilities):
71740         Add mbfile.
71741
71742 2005-08-16  Bruno Haible  <bruno@clisp.org>
71743
71744         * modules/mbchar: New file.
71745         * MODULES.html.sh (Extended multibyte and wide character utilities):
71746         New section.
71747
71748 2005-08-16  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/tls.m4: New file, from GNU gettext.
71751
71752 2005-08-16  Bruno Haible  <bruno@clisp.org>
71753
71754         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71755         always.
71756         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71757
71758 2005-08-16  Bruno Haible  <bruno@clisp.org>
71759
71760         * m4/mbiter.m4: New file.
71761
71762 2005-08-16  Bruno Haible  <bruno@clisp.org>
71763
71764         * m4/mbfile.m4: New file.
71765
71766 2005-08-16  Bruno Haible  <bruno@clisp.org>
71767
71768         * m4/mbchar.m4: New file.
71769
71770 2005-08-16  Bruno Haible  <bruno@clisp.org>
71771
71772         * lib/tls.h: New file, from GNU gettext.
71773         * lib/tls.c: New file, from GNU gettext.
71774
71775 2005-08-16  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/strnlen1.h: New file.
71778         * lib/strnlen1.c: New file.
71779
71780 2005-08-16  Bruno Haible  <bruno@clisp.org>
71781
71782         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71783         (mbi_init): Update.
71784         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71785         NUL byte, not after it.
71786
71787 2005-08-16  Bruno Haible  <bruno@clisp.org>
71788
71789         * lib/strcase.h (strcasecmp): Add note in comments.
71790         * lib/strncasecmp.c: Use code from strcasecmp.c.
71791         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71792         (strcasecmp): Work correctly in multibyte locales.
71793
71794 2005-08-16  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/mbiter.h: New file.
71797
71798 2005-08-16  Bruno Haible  <bruno@clisp.org>
71799
71800         * lib/mbfile.h: New file.
71801
71802 2005-08-16  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/mbchar.h: New file.
71805         * lib/mbchar.c: New file.
71806
71807 2005-08-16  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71810         the valid ones. Makes the comparison operations transitive:
71811         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71812         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71813
71814 2005-08-15  Simon Josefsson  <jas@extundo.com>
71815
71816         * modules/ssize_t (License): Change to 'unlimited'.
71817
71818         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71819
71820 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71823         Add comments for each pending glibc patch.
71824
71825 2005-08-15  Bruno Haible  <bruno@clisp.org>
71826
71827         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71828         __cplusplus is defined.
71829
71830 2005-08-14  Jim Meyering  <jim@meyering.net>
71831
71832         Sync from coreutils.
71833
71834         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71835         Use the hash-table-based cycle-detection code not just when
71836         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71837         Reported by James Youngman in
71838         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71839         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71840         FTS_TIGHT_CYCLE_CHECK.
71841         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71842         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71843         once again.
71844         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71845         * lib/fts.c (fd_safer): Remove decl.
71846         Include fcntl--.h rather than unistd-safer.h
71847         (fts_safe_changedir): Don't call fd_safer; no longer needed
71848         now that we include fcntl--.h.
71849
71850 2005-08-12  Simon Josefsson  <jas@extundo.com>
71851
71852         * modules/getndelim2: Use ssize_t module.
71853         * modules/getnline: Likewise.
71854         * modules/safe-read: Likewise.
71855         * modules/xreadlink: Likewise.
71856
71857         * modules/ssize_t: New file.
71858
71859 2005-08-12  Simon Josefsson  <jas@extundo.com>
71860
71861         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71862
71863 2005-08-12  Simon Josefsson  <jas@extundo.com>
71864
71865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71866         ssize_t.
71867
71868 2005-08-12  Simon Josefsson  <jas@extundo.com>
71869
71870         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71871         readline, getdelim and check_version.
71872         (Support for systems lacking ISO C 99: Sizes of integer types):
71873         Add size_max.
71874
71875 2005-08-12  Bruno Haible  <bruno@clisp.org>
71876
71877         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71878
71879 2005-08-11  Simon Josefsson  <jas@extundo.com>
71880
71881         * modules/readline: New file.
71882
71883         * modules/strnlen (Files): Add strnlen.h.
71884
71885 2005-08-11  Simon Josefsson  <jas@extundo.com>
71886
71887         * m4/readline.m4: New file.
71888
71889 2005-08-11  Simon Josefsson  <jas@extundo.com>
71890
71891         * lib/readline.h, readline.c: New file.
71892
71893 2005-08-11  Simon Josefsson  <jas@extundo.com>
71894
71895         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71896         gl_AVOID.
71897
71898 2005-08-11  Bruno Haible  <bruno@clisp.org>
71899
71900         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71901
71902 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71903
71904         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71905
71906 2005-08-10  Simon Josefsson  <jas@extundo.com>
71907
71908         * tests/test-iconvme.c: New file.
71909
71910 2005-08-10  Simon Josefsson  <jas@extundo.com>
71911
71912         * m4/strnlen.m4: New file.
71913
71914         * m4/strndup.m4: Don't check for strnlen declaration, done in
71915         strnlen.m4.
71916
71917 2005-08-10  Simon Josefsson  <jas@extundo.com>
71918
71919         * lib/strndup.c: Use strnlen.h.
71920
71921         * lib/strnlen.h: New file.
71922
71923 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71924
71925         * README: Typos.
71926
71927 2005-08-02  Simon Josefsson  <jas@extundo.com>
71928
71929         * modules/readline: New file.
71930
71931 2005-08-02  Simon Josefsson  <jas@extundo.com>
71932
71933         * modules/getdelim: New file.
71934
71935         * modules/getline: Rewrite, don't use getndelim2.
71936
71937 2005-08-02  Simon Josefsson  <jas@extundo.com>
71938
71939         * m4/getline.m4: Separate out getdelim stuff into separate module.
71940
71941         * m4/getdelim.m4: New file.
71942
71943 2005-08-02  Simon Josefsson  <jas@extundo.com>
71944
71945         * lib/getline.h, getline.c: Rewrite.
71946
71947         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71948
71949 2005-07-31  Bruno Haible  <bruno@clisp.org>
71950
71951         * lib/lock.h (gl_lock_initializer): New macro.
71952         (gl_lock_define_initialized): Use it.
71953         (gl_rwlock_initializer): New macro.
71954         (gl_rwlock_define_initialized): Use it.
71955         (gl_recursive_lock_initializer): New macro.
71956         (gl_recursive_lock_define_initialized): Use it.
71957
71958 2005-07-30  Karl Berry  <karl@gnu.org>
71959
71960         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71961         Report from Ben Pfaff, regarding getopt.
71962
71963 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71966         normal way.
71967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71968         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71969         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71970         (gl_GETOPT): Use the new macros.  Most of the implementation
71971         is moved to the new macros.  This is for programs like Emacs
71972         that don't want all the functionality of gl_GETOPT.
71973
71974 2005-07-26  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/lock.m4: Update from GNU gettext.
71977
71978 2005-07-26  Bruno Haible  <bruno@clisp.org>
71979
71980         * lib/lock.h: Update from GNU gettext.
71981         * lib/lock.c: Update from GNU gettext.
71982
71983 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71986         obsolescent AC_TRY_RUN.  Include the default includes files, for
71987         'exit'.
71988
71989 2005-07-24  Bruno Haible  <bruno@clisp.org>
71990
71991         * modules/visibility: New file.
71992         * MODULES.html.sh (Misc): Add visibility.
71993
71994 2005-07-24  Bruno Haible  <bruno@clisp.org>
71995
71996         * m4/visibility.m4: New file.
71997
71998 2005-07-24  Bruno Haible  <bruno@clisp.org>
71999
72000         * doc/visibility.texi: New file.
72001
72002 2005-07-22  Bruno Haible  <bruno@clisp.org>
72003
72004         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72005         $(ALLOCA_H), redundant through BUILT_SOURCES.
72006         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72007         redundant through BUILT_SOURCES.
72008         * modules/byteswap (Makefile.am): Remove explicit dependency on
72009         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72010         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72011         $(FNMATCH_H), redundant through BUILT_SOURCES.
72012         * modules/getopt (Makefile.am): Remove explicit dependency on
72013         $(GETOPT_H), redundant through BUILT_SOURCES.
72014         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72015         redundant through BUILT_SOURCES.
72016         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72017         redundant through BUILT_SOURCES.
72018         * modules/stdbool (Makefile.am): Remove explicit dependency on
72019         $(STDBOOL_H), redundant through BUILT_SOURCES.
72020         * modules/stdint (Makefile.am): Remove explicit dependency on
72021         $(STDINT_H), redundant through BUILT_SOURCES.
72022         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72023         Remove explicit dependency on $(SYSEXITS_H).
72024         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72025
72026 2005-07-18  Simon Josefsson  <jas@extundo.com>
72027
72028         * lib/check-version.c (check_version): Accept identical versions too.
72029
72030 2005-07-18  Bruno Haible  <bruno@clisp.org>
72031
72032         * modules/lock: New file.
72033         * MODULES.html.sh (Multithreading): New section.
72034
72035 2005-07-18  Bruno Haible  <bruno@clisp.org>
72036
72037         * m4/lock.m4: New file, from GNU gettext.
72038
72039 2005-07-18  Bruno Haible  <bruno@clisp.org>
72040
72041         * lib/lock.h: New file, from GNU gettext.
72042         * lib/lock.c: New file, from GNU gettext.
72043
72044 2005-07-18  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/lock.h (gl_once_t): New type.
72047         (gl_once_define, gl_once): New macros.
72048         * lib/lock.c (fresh_once): New variable.
72049         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72050         functions.
72051
72052 2005-07-16  Simon Josefsson  <jas@extundo.com>
72053
72054         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72055         workaround, suggested by Bruno.
72056
72057 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         * modules/xalloc (Depends-on): Add xalloc-die.
72060         * modules/xvasprintf (Depends-on): Add xalloc-die.
72061
72062 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72065         with a minor change.
72066
72067 2005-07-15  Bruno Haible  <bruno@clisp.org>
72068
72069         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72070         When using lib/poll.c, define poll as rpl_poll.
72071
72072 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         * modules/argp (Depends-on): Remove unlocked-io.
72075
72076 2005-07-14  Derek Price  <derek@ximbiot.com>
72077
72078         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72079         for glob symlink bug.
72080
72081 2005-07-14  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72084         Instead, test for *_unlocked function declarations directly.
72085
72086 2005-07-11  Simon Josefsson  <jas@extundo.com>
72087
72088         * modules/size_max: New file.
72089
72090         * modules/xsize: Depend on size_max module for size_max.m4.
72091
72092 2005-07-11  Simon Josefsson  <jas@extundo.com>
72093
72094         * lib/size_max.h: New file.
72095
72096 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72099         copyright symbol and the year.
72100         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72101         (version_etc_va): Use parameterized copyright notice.
72102         Reword to conform to the current GNU coding standards.
72103
72104 2005-07-11  Karl Berry  <karl@gnu.org>
72105
72106         * doc/gnulib.texi (Quoting): new node.
72107         (Initial import): more info, from Patrice.
72108
72109 2005-07-11  Bruno Haible  <bruno@clisp.org>
72110
72111         * gnulib-tool (func_usage): Document option --avoid.
72112         (Command line options): Handle --avoid.
72113         (func_acceptable): New function.
72114         (func_modules_transitive_closure): Use it.
72115
72116 2005-07-11  Bruno Haible  <bruno@clisp.org>
72117
72118         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72119         Reported by Jim Meyering.
72120
72121 2005-07-10  Bruno Haible  <bruno@clisp.org>
72122
72123         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72124         Needed when size_t is smaller than 'unsigned int'.
72125         Reported by Paul Eggert.
72126
72127 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72128
72129         * modules/argp (Depends-on): Add unlocked-io
72130
72131 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72132
72133         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72134         block of defines.
72135
72136 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72139         fix now.
72140
72141 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72142         and Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72145         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72146
72147 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * modules/regex (Files): Add lib/regex_internal.c,
72150         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72151         (Depends-on): Add extensions.
72152         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72153
72154 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72157         pathconf.
72158         * m4/same.m4 (gl_SAME): Likewise.
72159         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72160
72161         * m4/regex.m4: Adjust to new libc regex implementation.
72162         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72163         all the .c and .h parts of (the new) regex.
72164         Quote the m4 stuff better.
72165         Check for RE_ICASE bug of old gnulib.
72166         Check for REG_STARTEND of recent libc.
72167         Rename local variables from jm_* to gl_*.
72168         Quote operand of "test -f".
72169         Say "recent enough" version of libc, not "version 2".
72170         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72171         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72172         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72173         Remove check for btowc, isascii.
72174         Require AM_LANGINFO_CODESET.
72175
72176 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72177
72178         * lib/regex.c, regex.h: Sync from libc.
72179         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72180         * lib/regexec.c:
72181         New files, synced from libc, except that regex_internal.h
72182         currently has a small porting fix.
72183
72184 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72187         regex_internal.c, regexec.c.
72188         Add regex_internal.h too, but as a comment, since the libc version
72189         is currently broken in gnulib mode.
72190
72191 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         Support programs like Emacs that use gnulib but not gettext.
72194         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72195         * modules/gettext-h: New file.
72196         * modules/gettext (Files): Remove lib/gettext.h.
72197         (Depends-on): Add gettext-h.
72198         (Makefile.am): Remove lib_SOURCES.
72199         * modules/argmatch, modules/c-stack, modules/closeout:
72200         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72201         * modules/execute, modules/file-type, modules/getaddrinfo:
72202         * modules/getopt, modules/human, modules/javacomp:
72203         * modules/javaexec, modules/mkdir-p, modules/obstack:
72204         * modules/openat, modules/pagealign_alloc, modules/pipe:
72205         * modules/quotearg, modules/regex, modules/rpmatch:
72206         * modules/unicodeio, modules/userspec, modules/version-etc:
72207         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72208         * modules/xsetenv:
72209         Depend on gettext-h, not gettext.
72210
72211 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72212
72213         * gnulib-tool (func_import): Add support for 'public domain' license.
72214         * modules/alloca, modules/atexit, modules/memmove:
72215         Now public domain, not GPL.
72216         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72217         * modules/realloc, modules/strerror, modules/strtod:
72218         Now LGPL, not GPL.
72219
72220 2005-07-05  Bruno Haible  <bruno@clisp.org>
72221
72222         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72223         autoconf CVS. Needed for mingw.
72224
72225 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         Remove the dependency of the strftime module on the tzset module.
72228         * modules/strftime (Depends-on): Remove dependency on tzset.
72229
72230 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         Remove the dependency of the strftime module on the tzset module.
72233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72234         gl_FUNC_TZSET_CLOBBER.
72235
72236 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72237
72238         Remove the dependency of the strftime module on the tzset module.
72239         * lib/strftime.c (my_strftime)
72240         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72241         Copy the input structure, to work around some of the bug with
72242         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72243         Solaris releases, you should also use the tzset module, but we won't
72244         require it as a dependency any more since we don't want LGPLed code
72245         to depend on GPLed code.
72246
72247 2005-07-02  Jim Meyering  <jim@meyering.net>
72248
72249         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72250         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72251         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72252         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72253
72254 2005-07-02  Jim Meyering  <jim@meyering.net>
72255
72256         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72257
72258 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72261         declares only 'struct timespec;' (!).
72262
72263 2005-07-01  Jim Meyering  <jim@meyering.net>
72264
72265         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72266         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72267         * lib/save-cwd.c, tempname.c:
72268         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72269         and don't include <sys/file.h>).
72270
72271 2005-06-29  Jim Meyering  <jim@meyering.net>
72272
72273         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72274         type name.  Use the variable name instead.
72275         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72276         Likewise.
72277
72278 2005-06-28  Simon Josefsson  <jas@extundo.com>
72279
72280         * modules/check-version (Files): Add check-version.m4.
72281
72282 2005-06-28  Simon Josefsson  <jas@extundo.com>
72283
72284         * m4/check-version.m4: New file, suggested by Jim Meyering
72285         <jim@meyering.net>.
72286
72287 2005-06-28  Simon Josefsson  <jas@extundo.com>
72288
72289         * lib/check-version.h, lib/check-version.c: New files.
72290
72291 2005-06-28  Simon Josefsson  <jas@extundo.com>
72292
72293         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72294         collision with global variable.  Better indentation.  Don't
72295         increment buffer pointer beyond buffer end.  Based on comments
72296         from Paul Eggert <eggert@cs.ucla.edu>.
72297
72298         * lib/base64.h: Indent.
72299
72300 2005-06-28  Simon Josefsson  <jas@extundo.com>
72301
72302         * doc/gnulib.texi (Library version handling): New section.
72303
72304 2005-06-28  Jim Meyering  <jim@meyering.net>
72305
72306         * check-module (find_included_lib_files): Hard-code another
72307         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72308         but modules/fts-lgpl (correctly) does not list those files.
72309
72310         * modules/canonicalize (Files): Add lib/pathmax.h.
72311
72312 2005-06-25  Simon Josefsson  <jas@extundo.com>
72313
72314         * modules/check-version: New file.
72315
72316 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72319         initializer of struct addrinfo, as an indication that we don't
72320         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72328         * m4/stat.m4: Remove this file.
72329
72330 2005-06-24  Derek Price  <derek@ximbiot.com>
72331         and Bruno Haible  <bruno@clisp.org>
72332
72333         Remove stat module & update lstat.
72334         * lib/stat.c: Remove this file...
72335         (slash_aware_lstat): ...moving this content and its support...
72336         * lib/lstat.c (rpl_lstat): ...into here.
72337         * lib/lstat.h: New file.
72338
72339 2005-06-24  Derek Price  <derek@ximbiot.com>
72340         and Bruno Haible  <bruno@clisp.org>
72341
72342         Remove stat module & update lstat.
72343         * config/srclist.txt (libc sources): Remove stat.
72344
72345 2005-06-24  Derek Price  <derek@ximbiot.com>
72346         and Bruno Haible  <bruno@clisp.org>
72347
72348         Remove stat module & update lstat.
72349         * MODULES.html.sh (stat): Remove.
72350         * MODULES.html: Regenerated.
72351         * modules/lstat (Description): Correct function name.
72352         (Files): Add "lstat.h".
72353         (Depends-on): Remove stat, add xalloc, stat-macros.
72354         * modules/stat: Remove this file.
72355         (Include): Add "lstat.h", remove <sys/stat.h>.
72356
72357 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72360         (ranged_convert): Don't save conversion in a temporary struct.
72361         This causes a warning with GCC 4.0.0, and anyway in the typical
72362         case it's not worth the extra 100 bytes or so of code.
72363         (ranged_convert, __mktime_internal): When calling a function via a
72364         pointer P, use P () rather than (*P) (), as we now assume C89 or
72365         better.
72366
72367 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72370         "who -r" failed to give output.  Problem reported by Tim Waugh.
72371
72372         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72373         (xcalloc): Use it to avoid needless tests.
72374         Problem reported by Jim Meyering.
72375
72376 2005-06-20  Derek Price  <derek@ximbiot.com>
72377
72378         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72379         unnecessary for Autoconfs > 2.59c.
72380
72381 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72382
72383         * lib/argp.h (__option_is_short): Check upper limit of
72384         __key. Isprint() requires its argument to have the value
72385         of an unsigned char or EOF.
72386
72387 2005-06-16  Jim Meyering  <jim@meyering.net>
72388
72389         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72390         when either N or S is zero.
72391
72392 2005-06-16  Derek Price  <derek@ximbiot.com>
72393
72394         * m4/bison.m4: Declare YACC & YFLAGS precious.
72395
72396 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72399         multibyte string or pattern, fall back on unibyte matching.
72400         Problem reported by James Youngman.
72401
72402 2005-06-08  Bruno Haible  <bruno@clisp.org>
72403
72404         * modules/csharpcomp: New file.
72405         * MODULES.html.sh (C#): Add csharpcomp.
72406
72407 2005-06-08  Bruno Haible  <bruno@clisp.org>
72408
72409         * m4/csharpcomp.m4: New file, from GNU gettext.
72410
72411 2005-06-08  Bruno Haible  <bruno@clisp.org>
72412
72413         * lib/csharpcomp.h: New file, from GNU gettext.
72414         * lib/csharpcomp.c: New file, from GNU gettext.
72415         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72416
72417 2005-06-08  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72420         warning on mingw.
72421
72422 2005-06-07  Derek Price  <derek@ximbiot.com>
72423
72424         Sync from CVS.
72425         * lib/glob_.h: Indent nested #ifdef.
72426
72427 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         Sync from coreutils.
72430         Use "file name" when talking about file names, instead of "filename"
72431         or "path", as per the GNU coding standards.
72432         * lib/mkdir-p.c: Renamed from makepath.c.
72433         (make_dir_parents): Renamed from make_path.  All callers changed.
72434         * lib/mkdir-p.h: Likewise.  All includers changed.
72435         * lib/filenamecat.c: Renamed from path-concat.c.
72436         (file_name_concat): Renamed from path_concat.  All callers changed.
72437         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72438         * lib/filenamecat.h: Likewise.  All includers changed.
72439         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72440         in comments or local variable names.
72441         * lib/basename.c: Likewise.
72442         * lib/canonicalize.c, canonicalize.h: Likewise.
72443         * lib/dirname.c, dirname.h: Likewise.
72444         * lib/euidaccess.c: Likewise.
72445         * lib/exclude.c: Likewise
72446         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72447         * lib/fsusage.c, fsuage.h: Likewise.
72448         * lib/fts.c, fts_.h: Likewise.
72449         * lib/getcwd.c: Likewise.
72450         * lib/getloadavg.c: Likewise.
72451         * lib/mkstemp.c: Likewise.
72452         * lib/mountlist.c, mountlist.h: Likewise.
72453         * lib/openat.c, openat.h: Likewise.
72454         * lib/readlink-stub.c: Likewise.
72455         * lib/readutmp.c, readutmp.h: Likewise.
72456         * lib/rename.c: Likewise.
72457         * lib/rmdir.c: Likewise.
72458         * lib/same.c: Likewise.
72459         * lib/savedir.c: Likewise.
72460         * lib/stripslash.c: Likewise.
72461         * lib/tempname.c: Likewise.
72462         * lib/xreadlink.c: Likewise.
72463         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72464         All uses changed.
72465         * lib/exclude.h: Likewise.
72466
72467         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72468         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72469         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72470         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72471         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72472         files have been getting away with it for years (MORE/BSD 4.3
72473         is extinct now).
72474         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72475         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72476
72477         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72478         Define to 256, not 255, as per modern POSIX.
72479
72480 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         Sync from coreutils.
72483         Use "file name" when talking about file names, instead of "filename"
72484         or "path", as per the GNU coding standards.
72485         * MODULES.html.sh: mkdir-p renamed from makepath.
72486         filenamecat renamed from path-concat.
72487         * modules/filenamecat: Renamed from modules/path-concat.
72488         (Files): filenamecat.h and filenamecat.c renamed from
72489         path-concat.h and path-concat.c.
72490         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72491         (Include): filenamecat.h, not path-concat.h.
72492         * modules/mkdir-p: Renamed from modules/makepath.
72493         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72494         makepath.c.
72495         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72496         (Include): mkdir-p.h, not makepath.h.
72497
72498 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         Sync from coreutils.
72501         * m4/mkdir-p.m4: Renamed from makepath.m4.
72502         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72503         Rename files from makepath.c to mkdir-p.c, and from
72504         makepath.h to mkdir-p.h.
72505         * m4/filenamecat.m4: Renamed from path-concat.m4.
72506         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72507         Rename files from path-concat.c to filenamecat.c,
72508         and from path-concat.h to filenamecat.h.
72509         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72510         "file name" in local variables or comments.
72511         * m4/rename.m4: Likewise.
72512
72513 2005-06-01  Bruno Haible  <bruno@clisp.org>
72514
72515         * modules/csharpexec: New file.
72516         * MODULES.html.sh (C#): New section.
72517
72518 2005-06-01  Bruno Haible  <bruno@clisp.org>
72519
72520         * m4/csharp.m4: New file, from GNU gettext.
72521         * m4/csharpexec.m4: New file, from GNU gettext.
72522
72523 2005-06-01  Bruno Haible  <bruno@clisp.org>
72524
72525         * lib/csharpexec.h: New file, from GNU gettext.
72526         * lib/csharpexec.c: New file, from GNU gettext.
72527         * lib/csharpexec.sh.in: New file, from GNU gettext.
72528
72529 2005-05-31  Derek Price  <derek@ximbiot.com>
72530             Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         Sync from cvs.
72533         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72534
72535 2005-05-31  Derek Price  <derek@ximbiot.com>
72536             Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         Sync from cvs.
72539         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72540
72541 2005-05-29  Derek Price  <derek@ximbiot.com>
72542
72543         * config/srclist.txt (glob_.h, glob.c): Add these files.
72544
72545 2005-05-29  Derek Price  <derek@ximbiot.com>
72546
72547         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72548         * modules/glob: New file.
72549         * modules/getlogin_r: Add link to POSIX spec in description.
72550
72551 2005-05-29  Derek Price  <derek@ximbiot.com>
72552             Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * m4/glob.m4: New file.
72555
72556 2005-05-29  Derek Price  <derek@ximbiot.com>
72557             Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * lib/glob_.h, lib/glob.c: New files.
72560
72561 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72564         * modules/fts-lgpl (Depends-on): Remove gettext.
72565
72566 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72569         and don't require gt_INTTYPES_PRI.
72570
72571 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72574
72575         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72576         the configuration hassle isn't worth it.
72577         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72578         (LONGEST_MODIFIER, PRIuMAX): Remove.
72579
72580 2005-05-27  Bruno Haible  <bruno@clisp.org>
72581
72582         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72583
72584 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72587         _POSIX_PTHREAD_SEMANTICS for Solaris.
72588
72589 2005-05-25  Derek Price  <derek@ximbiot.com>
72590
72591         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72592
72593 2005-05-25  Derek Price  <derek@ximbiot.com>
72594             Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72597         * lib/getlogin_r.c, getlogin_r.h: New files.
72598
72599 2005-05-25  Bruno Haible  <bruno@clisp.org>
72600             Derek Price  <derek@ximbiot.com>
72601
72602         * lib/getlogin_r.h: Simplify API documentation.
72603
72604 2005-05-23  Derek Price  <derek@ximbiot.com>
72605
72606         * modules/minmax (Files): Add m4/minmax.m4.
72607         (configure.ac): Add gl_MINMAX.
72608
72609 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72612         so that unistd-safer.h (GPL'ed code) need not be included.
72613
72614 2005-05-22  Bruno Haible  <bruno@clisp.org>
72615
72616         * m4/minmax.m4: New file.
72617         Based on a patch by Derek Price <derek@ximbiot.com>.
72618
72619 2005-05-22  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72622         (INT64_MIN): Fix definition.
72623         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72624
72625         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72626         NEED_SIGNED_INT_TYPES.
72627
72628         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72629         HAVE_SYSTEM_INTTYPES.
72630
72631 2005-05-22  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72634         Also include <sys/param.h> if it defines MIN, MAX.
72635         Based on a patch by Derek Price <derek@ximbiot.com>.
72636
72637 2005-05-21  Jim Meyering  <jim@meyering.net>
72638
72639         * modules/fts (Files): Add m4/inttypes-pri.m4.
72640         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72641
72642 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         New fts module.
72645         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72646         (setup_dir, free_dir): New functions.
72647         (enter_dir, leave_dir): Define trivial
72648         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72649         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72650         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72651         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72652         Move to fts-cycle.c.
72653         (fts_open): Use setup_dir.
72654         (fts_close): Use free_dir.
72655         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72656         This adds a label and some gotos, but the alternatives were messier.
72657         Check for memory allocation failure when entering a dir.
72658         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72659         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72660         (FTS): New member fts_cycle, that is a union that contains the
72661         old active_dir_ht and cycle_state.  All uses changed to mention
72662         fts_cycle.ht and fts_cycle.state.
72663         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72664         fts.c, with the following changes:
72665         (setup_dir, free_dir): New functions.
72666         (enter_dir): Now returns bool.  Return true if successful, false
72667         if memory exhausted.  All callers changed.
72668         Do not bother partly cleaning up on
72669         memory allocation failure; that is free_dir's job.
72670         However, free ad if hash_insert fails, to avoid memory leak.
72671         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72672         fts->fts_options to see which union member to use.
72673
72674 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72677         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72678
72679 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72682
72683 2005-05-20  Jim Meyering  <jim@meyering.net>
72684
72685         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72686         Now a macro, to pacify GCC.
72687
72688 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72689
72690         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72691         of -1.
72692
72693 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72694
72695         * lib/chown.c (rpl_chown): Return -1 on failure.
72696
72697 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72700         Don't check for stddef.h.
72701         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72702         don't use its results.
72703         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72704         since we include them unconditionally.  Don't require
72705         AM_STDBOOL_H, since stdbool is a prerequisite.
72706         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72707         since we assume C89 or better.
72708         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72709         as we don't use their results.
72710         Don't check for fchdir, memmove, memset, strrchr, as we use
72711         them unconditionally.
72712         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72713         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72714
72715 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72716
72717         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72718         Include <stddef.h> unconditionally, since we assume C89 now.
72719         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72720         * lib/fts.c: Include fts_.h first, to check interface.
72721         Do not include intprops.h; no longer needed.
72722         Include cycle-check.h and hash.h, since fts_.h no longer does.
72723         Remove unnecessary casts of closedir to void.
72724         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72725         decide whether to decrement nlinks.
72726         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72727         (FTS): Use struct hash_table * instead of Hash_table, so that
72728         we no longer need to include hash.h here.
72729
72730 2005-05-18  Jim Meyering  <jim@meyering.net>
72731
72732         * modules/dirfd (License): Change to LGPL.  Most of the code
72733         is already in the public domain.
72734
72735 2005-05-18  Jim Meyering  <jim@meyering.net>
72736
72737         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72738         Reported by Yoann Vandoorselaere.
72739
72740 2005-05-17  Jim Meyering  <jim@meyering.net>
72741
72742         * m4/fts.m4: New file, from coreutils.
72743
72744 2005-05-17  Jim Meyering  <jim@meyering.net>
72745
72746         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72747
72748 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         Sync from coreutils.
72751         * m4/unlinkdir.m4: New file.
72752
72753 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         Sync from coreutils.
72756         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72757         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72758         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72759         White space changes only.
72760         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72761         special.
72762         * lib/yesno.c: Include getline.h, not ctype.h.
72763         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72764         Use getline to remove arbitrary restriction on response length.
72765
72766 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * config/srclist-update: Spell out "Street" in FSF postal
72769         mail address; this is the style the FSF seems to prefer.
72770
72771         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72772         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72773         this updates FSF postal mail address.
72774
72775         Sync from coreutils.
72776         * modules/unlinkdir: New file.
72777         * modules/yesno (Depends-on): Add getline.
72778         * MODULES.html.sh (File system functions): Add unlinkdir.
72779
72780 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72783         lib/strsep.h:
72784         Change the initial comment to refer to GPL, not LGPL.
72785         gnulib-tool will change it to LGPL as needed.
72786
72787         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72788         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72789         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72790         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72791         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72792         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72793         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72794         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72795         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72796         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72797         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72798         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72799         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72800         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72801         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72802         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72803         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72804         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72805         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72806         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72807         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72808         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72809         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72810         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72811         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72812         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72813         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72814         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72815         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72816         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72817         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72818         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72819         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72820         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72821         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72822         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72823         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72824         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72825         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72826         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72827         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72828         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72829         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72830         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72831         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72832         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72833         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72834         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72835         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72836         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72837         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72838         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72839         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72840         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72841         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72842         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72843         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72844         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72845         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72846         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72847         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72848         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72849         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72850         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72851         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72852         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72853         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72854         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72855         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72856         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72857         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72858         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72859         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72860         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72861         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72862         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72863         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72864         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72865         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72866         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72867         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72868         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72869         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72870         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72871         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72872         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72873         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72874         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72875         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72876         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72877         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72878         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72879         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72880         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72881         lib/yesno.c, lib/yesno.h:
72882         Update FSF postal mail address.
72883
72884 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72887         tests/test-memmem.c, tests/test-stpncpy.c:
72888         Update FSF postal mail address.
72889
72890 2005-05-13  Bruno Haible  <bruno@clisp.org>
72891
72892         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72893         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72894         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72895         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72896         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72897         Add support for 64-bit integers in the MSVC compiler.
72898
72899 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72900
72901         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72902
72903 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72904
72905         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72906
72907 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * doc/getdate.texi (General date syntax): Don't say that date
72910         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72911         Problem reported by Nic Ferrier.
72912
72913 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72914
72915         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72916         specified in ai_socktype. Fix invalid ai_protocol
72917         check. ai_protocol is usually set to 0 or depending on
72918         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72919         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72920         ai_socktype / ai_protocol in the returned addrinfo structure.
72921
72922 2005-05-10  Simon Josefsson  <jas@extundo.com>
72923
72924         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72925         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72926
72927 2005-05-10  Karl Berry  <karl@gnu.org>
72928
72929         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72930         (from http://www.gnu.org/licenses).
72931         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72932         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72933         fdl.texi suffices.
72934
72935 2005-05-10  Karl Berry  <karl@gnu.org>
72936
72937         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72938         (COPYING.DOC): remove.
72939
72940         * config/srclist-update: new FSF address.
72941
72942 2005-05-10  Derek Price  <derek@ximbiot.com>
72943
72944         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72945         possible.
72946
72947 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72948             Bruno Haible  <bruno@clisp.org>
72949
72950         * modules/inet_ntop: New file.
72951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72952         inet_ntop.
72953
72954 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72955             Bruno Haible  <bruno@clisp.org>
72956
72957         * m4/inet_ntop.m4: New file.
72958
72959 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72960             Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/inet_ntop.h: New file.
72963         * lib/inet_ntop.c: New file, from glibc with modifications.
72964
72965 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * modules/time_r (License): Change to LGPL.
72968         * modules/extensions (License): Change to LGPL.  Actually,
72969         the license is more permissive than that, but currently gnulib-tool
72970         doesn't know how to handle more-permissive licenses.
72971
72972         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72973         Problem reported by Dave Love.
72974
72975 2005-05-08  Jim Meyering  <jim@meyering.net>
72976
72977         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72978         blank.
72979
72980 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * modules/argmatch (Depends-on): Add stdbool.
72983         * modules/backupfile (Depends-on): Likewise.
72984         * modules/chdir-long (Depends-on): Likewise.
72985         * modules/closeout (Depends-on): Likewise.
72986         * modules/cycle-check (Depends-on): Likewise.
72987         * modules/dirname (Depends-on): Likewise.
72988         * modules/fnmatch (Depends-on): Likewise.
72989         * modules/fsusage (Depends-on): Likewise.
72990         * modules/fwriteerror (Depends-on): Likewise.
72991         * modules/getcwd (Depends-on): Likewise.
72992         * modules/getloadavg (Depends-on): Likewise.
72993         * modules/hard-locale (Depends-on): Likewise.
72994         * modules/makepath (Depends-on): Likewise.
72995         * modules/mountlist (Depends-on): Likewise.
72996         * modules/nanosleep (Depends-on): Likewise.
72997         * modules/posixtm (Depends-on): Likewise.
72998         * modules/quotearg (Depends-on): Likewise.
72999         * modules/readtokens (Depends-on): Likewise.
73000         * modules/readtokens0 (Depends-on): Likewise.
73001         * modules/readutmp (Depends-on): Likewise.
73002         * modules/save-cwd (Depends-on): Likewise.
73003         * modules/strftime (Depends-on): Likewise.
73004         * modules/userspec (Depends-on): Likewise.
73005         * modules/utimecmp (Depends-on): Likewise.
73006         * modules/xgetcwd (Depends-on): Likewise.
73007         * modules/xnanosleep (Depends-on): Likewise.
73008         * modules/xstrtod (Depends-on): Likewise.
73009         * modules/yesno (Depends-on): Likewise.
73010
73011 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73014         needless checks.
73015
73016 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         Merge from coreutils.  Among other things,
73019         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73020         * lib/fd-safer.c: New file.
73021         * lib/fcntl-safer.h, open-safer.c: Remove.
73022         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73023         * lib/dup-safer.c: Include unistd-safer.h first.
73024         Don't include errno.h.
73025         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73026         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73027         * lib/file-type.c: Rely on file-type.h change.
73028         * lib/getloadavg.c: Include unistd-safer.h.
73029         (getloadavg): Use safer open.
73030         * lib/getusershell.c: Include "stdio-safer.h".
73031         (getusershell): Use safer fopen.
73032         * lib/long-options.c (long_options): Use NULL rather than 0.
73033         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73034         'free'.
73035         * lib/modechange.c: Likewise.
73036         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73037         (MODE_DONE): New constant.
73038         (struct mode_change): Remove 'next' member.
73039         (make_node_op_equals): New function; like the old one of the
73040         same name, except it allocates an array.
73041         (mode_compile, mode_create_from_ref): Use it.
73042         (mode_compile): Allocate result as an array, not a linked list.
73043         Parse octal string ourself, so that we catch mistakes like "+0".
73044         (mode_adjust): Arg is an array, not a linked list.
73045         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73046         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73047         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73048         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73049         Remove.  This is now stat-macros.h's job.
73050         (talloc): Remove.  All callers replaced by xalloc, so that
73051         our invokers don't have to worry about reporting memory failures.
73052         (make_node_op_equals): Remove.
73053         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73054         New constants.
73055         (struct mode_change): Moved here from modechange.h.
73056         (mode_append_entry): Remove.
73057         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73058         apps to have incorrect behavior.  Use simpler algorithm for head
73059         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73060         Detect more invalid usages rather than having somewhat-random behavior.
73061         Don't insert an "a=" action, as that leads to incorrect behavior.
73062         (mode_compile, mode_create_from_ref): Return NULL on error instead
73063         of an enum, since now there's only one way to have an error.  All
73064         callers changed.
73065         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73066         at the correct time.  Simplify calculation of "+u" and its ilk.
73067         Don't mishandle "+X".
73068         (mode_free): Remove "register" and localize decls.
73069         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73070         (struct mode_change): Move to modechange.c; callers don't
73071         need to see this stuff.
73072         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73073         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73074         (mode_change, mode_adjust): Reflect the new signatures noted above.
73075         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73076         that might redefine system include files.
73077         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73078         (my_usleep): Use NULL rather than (void *) 0.
73079         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73080         Use siginterrupt to specify that system calls should be interrupted.
73081         (rpl_nanosleep): Move initialization of suspended closer to call of
73082         my_usleep.
73083         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73084         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73085         (desirable_utmp_entry): New function.
73086         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73087         using x2nrealloc, to simplify logic.
73088         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73089         size calculation.  Do not assume utmp file is a regular file.
73090         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73091         (READ_UTMP_CHECK_PIDS): New constant.
73092         * lib/save-cwd.c: Include unistd-safer.h.
73093         (save_cwd): Use fd_safer.
73094         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73095         [!_LIBC] Include "stat-macros.h" instead.
73096         * lib/unistd-safer.h (fd_safer): New decl.
73097
73098 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         * modules/getloadavg (Depends-on): Add unistd-safer.
73101         * modules/getusershell (Depends-on): Add stdio-safer.
73102         * modules/lstat (Depends-on): Remove xalloc.
73103         * modules/mkstemp (Depends-on): Add stat-macros.
73104         * modules/modechange (Depends-on): Remove xstrtol.
73105         Add stat-macros, xalloc.
73106         * modules/save-cwd (Depends-on): Add unistd-safer.
73107         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73108         * modules/unistd-safer (Files): Add lib/fd-safer.c
73109         (Makefile.am): Remove lib_SOURCES.
73110
73111         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73112         Remove fcntl-safer; unistd-safer supersedes it.
73113
73114 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73117         AC_HEADER_STAT.
73118         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73119         (gl_PREREQ_CHOWN): Remove.
73120         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73121         it.  Don't require AC_HEADER_STAT.
73122         (gl_PREREQ_LSTAT): Remove.
73123         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73124         Don't require AC_HEADER_STAT.
73125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73126         (gl_PREREQ_RMDIR): Remove.
73127         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73128         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73129         the stat-macros module a prerequisite.
73130         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73131         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73132         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73133         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73134         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73135         variable names.
73136         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73137         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73138         variable prefixes.
73139         * m4/fcntl-safer.m4: Remove.
73140         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73141         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73142         Invoke gl_PREREQ_FD_SAFER.
73143         (gl_PREREQ_FD_SAFER): New macro.
73144         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73145         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73146         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73147         Remove duplicate call to AC_LIBOBJ(readutmp).
73148         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73149
73150         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73151         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73152
73153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * MODULES.html.sh (Misc): Add byteswap.
73156
73157 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73158
73159         * modules/getcwd (Depends-on): Add extensions.
73160         * modules/openat (Depends-on): Likewise.
73161
73162 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73163
73164         * modules/byteswap: New file.
73165
73166 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73167
73168         * m4/byteswap.m4: New file.
73169
73170 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73171
73172         * lib/byteswap_.h: New file.
73173
73174 2005-04-25  Karl Berry  <karl@gnu.org>
73175
73176         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73177
73178 2005-04-25  Albert Chin  <china@thewrittenword.com>
73179
73180         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73181         Toolkit C bug.
73182
73183 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73184
73185         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73186         (func_ln_if_changed): Remove forcibly for no error message
73187         in case file does not exist.
73188
73189 2005-04-19  Simon Josefsson  <jas@extundo.com>
73190
73191         * gnulib-tool (Options): Make --symlink mean --symbolic.
73192
73193 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73194
73195         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73196
73197 2005-04-16  Simon Josefsson  <jas@extundo.com>
73198
73199         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73200
73201 2005-04-15  Simon Josefsson  <jas@extundo.com>
73202
73203         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73204
73205 2005-04-15  Simon Josefsson  <jas@extundo.com>
73206
73207         * gnulib-tool: Rename --symlink to --symbolic.
73208
73209 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73210
73211         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73212         symbolic links to files instead of copying/moving.  Add --aux-dir,
73213         specifying directory relative --dir where auxiliary build tools
73214         are placed.
73215
73216 2005-04-14  Bruno Haible  <bruno@clisp.org>
73217
73218         * modules/allocsa (License): Change to LGPL.
73219         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73220
73221 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73224         that "UTC +1 second" continues to work.  Problem reported
73225         by Dmitry V. Levin.
73226         (relunit_snumber): New rule.
73227         (relunit): Use it.
73228
73229 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * lib/getdate.y (universal_time_zone_table): New constant.
73232         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73233         universal_time_zone_table.
73234         (lookup_zone): Prefer universal_time_zone_table to
73235         local_time_zone_table, so that "GMT" time stamps are allowed in
73236         London during the summer.  Problem reported by Ian Abbott.
73237
73238 2005-04-12  Jim Meyering  <jim@meyering.net>
73239
73240         * lib/human.c (humblock): Set *options even when returning due to
73241         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73242         warning from gcc-4.
73243
73244 2005-04-09  Jim Meyering  <jim@meyering.net>
73245
73246         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73247         -Wuninitialized: initialize tm0.tm_year.
73248
73249 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73252         count, since there's no maximum.  All uses changed.
73253         Add member dsts_seen.
73254         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73255         not being INT_MAX.
73256         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73257         Use pc_rels_seen to decide whther a date is absolute.
73258
73259         * lib/getdate.y (number): Don't overwrite year.
73260         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73261         check.
73262
73263 2005-04-02  Simon Josefsson  <jas@extundo.com>
73264
73265         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73266         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73267
73268 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73269
73270         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73271         where no absolute path name can be longer than PATH_MAX.
73272
73273 2005-03-27  Jim Meyering  <jim@meyering.net>
73274
73275         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73276
73277 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73280         "one's complement" -> "ones' complement" in comment, as per Knuth.
73281         "value of type" -> "type or expression" in comment.
73282         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73283
73284 2005-03-26  Jim Meyering  <jim@meyering.net>
73285
73286         Comment nits.
73287         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73288         Correct typos: s/or/of/.
73289
73290 2005-03-26  Jim Meyering  <jim@meyering.net>
73291
73292         * modules/check-include-files: Move to ../ and rename to...
73293         * check-module: ...this.
73294
73295 2005-03-25  Jim Meyering  <jim@meyering.net>
73296
73297         * modules/xvasprintf (Files): Add xalloc.h.
73298
73299 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * modules/gettext (Files): config/config.rpath ->
73302         build-aux/config.rpath
73303         * modules/iconv (Files): Likewise.
73304         Problem reported by Oskar Liljeblad.
73305
73306 2005-03-23  Jim Meyering  <jim@meyering.net>
73307
73308         * modules/check-include-files: New script to check for
73309         missing dependencies, multiple includes, etc.
73310
73311         * modules/c-strtold (Depends-on): Add xalloc.
73312         * modules/c-strtod (Depends-on): Add xalloc.
73313         * modules/hash (Depends-on): Add xalloc.
73314         (Files): Remove lib/xalloc.h.
73315
73316         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73317         * modules/userspec (Files): Add lib/inttostr.h.
73318
73319 2005-03-23  Jim Meyering  <jim@meyering.net>
73320
73321         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73322
73323 2005-03-22  Jim Meyering  <jim@meyering.net>
73324
73325         * modules/stat-macros: New module.
73326         * modules/canonicalize, modules/euidaccess, modules/file-type,
73327         * modules/filemode, modules/lchown, modules/makepath,
73328         * modules/rmdir, modules/stat: Depend on new stat-macros module
73329         rather than listing lib/stat-macros.h manually.
73330         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73331
73332 2005-03-22  Jim Meyering  <jim@meyering.net>
73333
73334         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73335
73336 2005-03-22  Bruno Haible  <bruno@clisp.org>
73337
73338         * config/srclist.txt: Replace target directory 'config' with
73339         'build-aux'.
73340         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73341         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73342         ../build-aux/.
73343
73344 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * modules/chdir-long (Depends-on): Add mempcpy.
73347
73348         * modules/acl, modules/backupfile, modules/c-strtod,
73349         modules/c-strtold, modules/canon-host, modules/canonicalize,
73350         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73351         modules/exclude, modules/exitfail, modules/file-type,
73352         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73353         modules/getdate, modules/getline, modules/getpagesize,
73354         modules/getpass, modules/getugroups, modules/group-member,
73355         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73356         modules/inttostr, modules/long-options, modules/makepath,
73357         modules/md5, modules/memcasecmp, modules/memcoll,
73358         modules/modechange, modules/mountlist, modules/path-concat,
73359         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73360         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73361         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73362         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73363         modules/strftime, modules/strndup, modules/strverscmp,
73364         modules/timespec, modules/unlocked-io, modules/userspec,
73365         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73366         modules/yesno:
73367         Remove lib_SOURCES line from Makefile.am section, as this is now
73368         done automatically by the corresponding Autoconf macro.
73369
73370 2005-03-21  Jim Meyering  <jim@meyering.net>
73371
73372         Changes imported from coreutils.
73373
73374         * lib/cycle-check.c: Don't include xalloc.h.
73375
73376         * lib/path-concat.c: Don't include assert.h.
73377         (path_concat): Remove assertion that would have triggered
73378         for ABASE starting with more than one slash.
73379         Reported by Andreas Schwab.
73380
73381         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73382         properly when ABASE is an absolute file name.
73383         Correct the description of this function.
73384         Include <assert.h>.
73385         Add an assertion and a test driver.
73386         This fixes a bug introduced on 2004-07-02.
73387         Andreas Schwab reported the resulting failure of cp --parents:
73388         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73389
73390 2005-03-21  Jim Meyering  <jim@meyering.net>
73391
73392         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73393         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73394
73395 2005-03-21  Jim Meyering  <jim@meyering.net>
73396         and  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73399         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73400         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73401         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73402         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73403         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73404         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73405         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73406         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73407         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73408         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73409         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73410         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73411         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73412         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73413         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73414         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73415         for these modules.
73416
73417 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73420         (which shouldn't happen), generate nothing instead of returning 0
73421         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73422
73423 2005-03-16  Bruno Haible  <bruno@clisp.org>
73424
73425         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73426         HAVE_LONGLONG_64BIT.
73427
73428 2005-03-16  Bruno Haible  <bruno@clisp.org>
73429
73430         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73431         HAVE_LONGLONG_64BIT.
73432
73433 2005-03-16  Bruno Haible  <bruno@clisp.org>
73434
73435         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73436         HAVE_LONGLONG_64BIT.
73437
73438 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73441         reliably distinguish strftime failure from empty output on POSIX
73442         hosts.
73443
73444 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73447         (iconv_string): Don't guess a size-zero buffer, as that might cause
73448         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73449         result would be 'too large', where 'too large' is (heuristically)
73450         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73451         overflow concerns.  This will prevent some unwanted malloc failures
73452         when the inputs are very large.
73453
73454 2005-03-15  Karl Berry  <karl@gnu.org>
73455
73456         * config/srclist.txt (config.rpath): from gettext.
73457         * config/config.rpath: update.
73458
73459 2005-03-15  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73462         to 'negate'.
73463
73464         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73465         variable.
73466
73467         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73468         results.
73469
73470 2005-03-14  Simon Josefsson  <jas@extundo.com>
73471
73472         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73473         <fx@gnu.org>.
73474
73475 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73478         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73479         intprops.h.
73480         * lib/strtol.c: Likewise.
73481
73482 2005-03-14  Jim Meyering  <jim@meyering.net>
73483
73484         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73485         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73486         to be nonzero so that we (and caller) can detect the difference
73487         between a valid zero-length expansion and an error return, even
73488         when the underlying strftime fails before writing anything into
73489         that location.
73490
73491 2005-03-14  Bruno Haible  <bruno@clisp.org>
73492
73493         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73494         Update from GNU gettext 0.14.3.
73495
73496 2005-03-10  Jim Meyering  <jim@meyering.net>
73497
73498         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73499
73500 2005-03-10  Jim Meyering  <jim@meyering.net>
73501
73502         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73503         so that this module works on systems without fchdir.
73504
73505 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         Factor int-properties macros into a single file, except for
73508         glibc-related files.
73509         * lib/intprops.h: New file.
73510         * lib/getloadavg.c: Include it instead of limits.h.
73511         (INT_STRLEN_BOUND): Remove.
73512         * lib/human.c: Include intprops.h.
73513         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73514         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73515         302/1000.
73516         * lib/inttostr.h: Include intprops.h instead of limits.h.
73517         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73518         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73519         for consistency with intprops.h.
73520         (time_t_is_integer, twos_complement_arithmetic): Use them.
73521         * lib/sig2str.h: Include <signal.h>, intprops.h.
73522         (INT_STRLEN_BOUND): Remove.
73523         * lib/strftime.c (TYPE_SIGNED): Remove.
73524         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73525         * lib/strtol.c: Adjust comments to match intprops.h.
73526         * lib/userspec.c: Include intprops.h.
73527         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73528         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73529         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73530         instead of rolling our own expressions.
73531         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73532
73533         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73534         instead of int.
73535         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73536         the right thing even if adding 1900 would overflow.  Similarly
73537         for tm_mon + 1 and tm_yday + 1.
73538         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73539         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73540         (DO_SIGNED_NUMBER): New macro.
73541         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73542
73543 2005-03-07  Bruno Haible  <bruno@clisp.org>
73544
73545         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73546
73547 2005-03-07  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73550
73551 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73552
73553         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73554         (func_import): Only replace files via --import when they have actually
73555         changed.
73556
73557 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73558
73559         * m4/mmap-anon.m4: New file.
73560         * m4/pagealign_alloc.m4: New file.
73561
73562 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73563             Bruno Haible  <bruno@clisp.org>
73564
73565         * modules/pagealign_alloc: New file.
73566         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73567
73568 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73569             Bruno Haible  <bruno@clisp.org>
73570
73571         * lib/pagealign_alloc.h: New file.
73572         * lib/pagealign_alloc.c: New file.
73573
73574 2005-03-03  Bruno Haible  <bruno@clisp.org>
73575
73576         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73577         Use an all-permissive copyright notice, recommended by RMS.
73578
73579 2005-03-02  Bruno Haible  <bruno@clisp.org>
73580
73581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73582         of AIX, the replacement has to be done only after <string.h> is
73583         included, therefore not in config.h. stpncpy.h does the replacement,
73584         and stpncpy.c uses it.
73585
73586 2005-03-02  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73589         stpncpy.c uses it.
73590
73591 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73592
73593         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73594         The workaround isn't strictly needed for POSIX conformance, and
73595         it's too much of a pain to configure and maintain.  We'll ask
73596         people to fix their kernels instead.
73597         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73598         (NANOSLEEP_BUG_WORKAROUND): Remove.
73599         (xnanosleep): Remove the workaround.
73600
73601 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73604         Reported by Derek Price.
73605         (Include): Add "timespec.h".
73606
73607         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73608
73609 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73612         to detect nanosleep bug.
73613
73614 2005-03-01  Bruno Haible  <bruno@clisp.org>
73615
73616         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73617
73618 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * modules/gethrxtime: New file.
73621         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73622         (Depends-on): Add gethrxtime.
73623         (configure.ac): Add gl_XNANOSLEEP.
73624         (Makefile.am): Remove lib_SOURCES line.
73625
73626 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73629         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73630
73631 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73634         * lib/timespec.h (gettime): Return void, since it always
73635         succeeds now.  All uses changed.
73636         * lib/gettime.c (gettime): Likewise.
73637         [HAVE_NANOTIME]: Prefer nanotime.
73638         Assume gettimeofday succeeds, as POSIX requires.
73639         Assime time () succeeds, since other code already does.
73640         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73641         (timespec_subtract): Remove.
73642         (NANOSLEEP_BUG_WORKAROUND): New constant.
73643         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73644         things considerably.  Use it only on GNU/Linux hosts, since the
73645         workaround shouldn't be needed elsewhere.
73646
73647 2005-02-24  Bruno Haible  <bruno@clisp.org>
73648
73649         * modules/gettext (Files): Add m4/glibc2.m4.
73650
73651 2005-02-24  Bruno Haible  <bruno@clisp.org>
73652
73653         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73654         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73655         * m4/progtest.m4:
73656         Update from GNU gettext 0.14.2.
73657         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73658
73659 2005-02-24  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73662         * lib/config.charset: Update from GNU gettext 0.14.2.
73663
73664 2005-02-24  Bruno Haible  <bruno@clisp.org>
73665
73666         * lib/gettext.h: Update from GNU gettext 0.14.2.
73667
73668 2005-02-23  Simon Josefsson  <jas@extundo.com>
73669
73670         * m4/iconvme.m4: New file.
73671
73672 2005-02-23  Jim Meyering  <jim@meyering.net>
73673
73674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73675         change.
73676         Thanks to Bruno Haible for catching it.
73677
73678 2005-02-22  Simon Josefsson  <jas@extundo.com>
73679
73680         * modules/iconvme: New file.
73681
73682         * MODULES.html.sh: Add iconvme.
73683
73684 2005-02-22  Simon Josefsson  <jas@extundo.com>
73685
73686         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73687
73688 2005-02-22  Simon Josefsson  <jas@extundo.com>
73689
73690         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73691
73692 2005-02-22  Jim Meyering  <jim@meyering.net>
73693
73694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73695         s/ifndef/ifdef/.
73696
73697 2005-02-20  Neil Conway  <neilc@samurai.com>
73698
73699         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73700         returned by OSX/Darwin if the specified buffer is not large
73701         enough for the hostname.
73702
73703 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73704
73705         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73706         pass it to _help, otherwise the latter coredumps trying to
73707         dereference state.root_argp.
73708
73709 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * modules/chdir-long (Depends-on): Add memrchr.
73712         * modules/memrchr (Files): Add lib/memrchr.h.
73713         (Include): "memrchr.h".
73714
73715 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73718
73719 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73720
73721         * lib/memrchr.h: New file.
73722         * lib/chdir-long.c: Include it.
73723         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73724         Don't bother including stddef.h.
73725
73726 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73729         inclusion.
73730         Include <sys/types.h>, for dev_t.
73731         (ME_DUMMY, ME_REMOTE): Move from here....
73732         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73733         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73734         Dmitry V. Levin.
73735         Include mountlist.h first, to test the interface.
73736
73737 2005-01-29  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/progname.c (program_name): Initialize.
73740         Needed when linking statically on MacOS X.
73741
73742 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         Sync from coreutils.
73745         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73746         (Depends-on): Add c-strtod.
73747         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73748
73749 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         Sync from coreutils.
73752         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73753
73754         Remove files that are specific to coreutils.
73755         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73756
73757 2005-01-28  Bruno Haible  <bruno@clisp.org>
73758
73759         * modules/javacomp: New file.
73760         * MODULES.html.sh (Java): Add javacomp.
73761
73762 2005-01-28  Bruno Haible  <bruno@clisp.org>
73763
73764         * m4/javacomp.m4: New file, from GNU gettext.
73765
73766 2005-01-28  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/javacomp.sh.in: New file, from GNU gettext.
73769         * lib/javacomp.h: New file, from GNU gettext.
73770         * lib/javacomp.c: New file, from GNU gettext.
73771
73772 2005-01-26  Simon Josefsson  <jas@extundo.com>
73773
73774         * lib/gai_strerror.c: Use GPL in header.
73775
73776 2005-01-26  Bruno Haible  <bruno@clisp.org>
73777
73778         * modules/javaexec: New file.
73779         * MODULES.html.sh (Java): Add javaexec.
73780
73781 2005-01-26  Bruno Haible  <bruno@clisp.org>
73782
73783         * m4/javaexec.m4: New file, from GNU gettext.
73784
73785 2005-01-26  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/javaexec.sh.in: New file, from GNU gettext.
73788         * lib/javaexec.h: New file, from GNU gettext.
73789         * lib/javaexec.c: New file, from GNU gettext.
73790
73791 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73792
73793         * modules/lchown (Depends-on): Remove lchown.h
73794
73795 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73796
73797         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73798         must be defined if the header file was not found, in order
73799         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73800
73801 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73802
73803         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73804         initializers for struct pentry_state.
73805         (__argp_error): Check return value of __asprintf
73806         (__argp_failure): Translate error message
73807
73808         * lib/argp-parse.c: Removed braces around the expansion of N_()
73809
73810 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73811
73812         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73813         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73814         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73815         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73816         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73817         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73818         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73819         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73820         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73821         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73822         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73823         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73824         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73825         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73826         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73827         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73828         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73829         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73830         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73831         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73832         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73833         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73834         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73835         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73836         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73837         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73838         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73839         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73840         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73841         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73842         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73843         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73844         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73845         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73846         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73847         Use an all-permissive copyright notice, recommended by RMS.
73848
73849 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * modules/chdir-long (Depends-on): Remove mempcpy.
73852
73853 2005-01-21  Jim Meyering  <jim@meyering.net>
73854
73855         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73856         same value as for Solaris 9.
73857
73858         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73859         component length.  This included changing the parameter to be
73860         of type `char *' rather than `char const *'.
73861         * lib/chdir-long.h (chdir_long): Update prototype.
73862
73863         * lib/openat.c (fdopendir, fstatat): New functions.
73864         * lib/openat.h: Include headers required for use of DIR and struct
73865         stat.
73866         [AT_SYMLINK_NOFOLLOW]: Define.
73867         (fdopendir, fstatat): Add prototypes.
73868
73869 2005-01-21  Bruno Haible  <bruno@clisp.org>
73870
73871         * modules/classpath: New file.
73872         * MODULES.html.sh (Java): Add classpath.
73873
73874 2005-01-21  Bruno Haible  <bruno@clisp.org>
73875
73876         * lib/classpath.h: New file, from GNU gettext.
73877         * lib/classpath.c: New file, from GNU gettext.
73878
73879 2005-01-20  Simon Josefsson  <jas@extundo.com>
73880
73881         * modules/version-etc-fsf: New file.
73882
73883 2005-01-20  Simon Josefsson  <jas@extundo.com>
73884
73885         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73886         * lib/version-etc.c: Remove version_etc_copyright.
73887         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73888         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73889
73890 2005-01-20  Simon Josefsson  <jas@extundo.com>
73891
73892         * lib/base64.h (isbase64): Add.
73893
73894         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73895         using a unsigned prototype, don't inline.
73896         (base64_decode): Use it.
73897
73898 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73901         it.
73902
73903 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * lib/save-cwd.c (save_cwd): Remove code to support the case
73906         where fchdir is missing or flaky.
73907
73908 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73911
73912 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73915         AC_LIBSOURCES now does this.
73916         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73917         with new ullong_max module.
73918
73919 2005-01-19  Bruno Haible  <bruno@clisp.org>
73920
73921         * modules/sh-quote: New file.
73922         * MODULES.html.sh (Executing programs): Add sh-quote.
73923
73924 2005-01-19  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/sh-quote.h: New file, from GNU gettext.
73927         * lib/sh-quote.c: New file, from GNU gettext.
73928
73929 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         Merge from coreutils.
73932         * m4/ullong_max.m4: New file.
73933         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73934         (gl_MACROS): Assume localeconv exists.
73935
73936 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         Merge changes from coreutils, as described below in several
73939         changelogs dated today.
73940
73941         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73942         (O_DIRECTORY): Remove; not needed here, since "." must be
73943         a directory.  All uses removed.
73944         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73945         universal on Suns, and we also need to test for IRIX.
73946         Revamp code to use 'if' rather than '#if'.
73947         Avoid unnecessary comparison of cwd->desc to 0.
73948
73949         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73950         for known valid error numbers rather than observed invalid ones.
73951
73952 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * modules/ullong_max: New file.
73955
73956         * modules/chdir-long, modules/openat: New files.
73957         * modules/save-cwd (Depends-on): Depend on chdir-long.
73958         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73959
73960 2005-01-18  Jim Meyering  <jim@meyering.net>
73961
73962         Merge from coreutils.
73963         * m4/chdir-long.m4, m4/openat.m4: New files.
73964         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73965         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73966         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73967         is sane and DOES follow symlinks.  Besides, testing 20 different
73968         systems found no broken chown implementations.
73969         Prompted by a change in rsync's copy of this macro.
73970         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73971
73972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73973
73974         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73975         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73976         NULL-means-set-to-current-time semantics.
73977         Remove temporary file immediately, rather than waiting
73978         for configure's at-exit trap code to do it.
73979
73980 2005-01-18  Jim Meyering  <jim@meyering.net>
73981
73982         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73983
73984         * lib/utimens.c (futimens): Account for the fact that futimes
73985         can also fail with errno == ENOSYS or errno == ENOENT.
73986         Patch from Dmitry V. Levin.
73987
73988         Change the name of the robust chdir function from chdir to chdir_long.
73989         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73990         (restore_cwd): Use chdir_long, not chdir.
73991         * lib/chdir-long.c: Renamed from chdir.c.
73992         * lib/chdir-long.h: Renamed from chdir.h.
73993         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73994         Hurd.
73995
73996 2005-01-18  Bruno Haible  <bruno@clisp.org>
73997
73998         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73999         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74000         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74001         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74002         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74003         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74004         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74005         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74006         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74007         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74008         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74009         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74010         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74011         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74012         Use an all-permissive copyright notice, recommended by RMS.
74013
74014 2005-01-18  Bob Proulx  <bob@proulx.com>
74015
74016         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74017         simplify offsetof() macro construct to avoid compile failure with
74018         native HP-UX 11.0 ANSI C compiler.
74019
74020 2005-01-17  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74023         redundant because stpncpy.m4 takes care of it.
74024
74025 2005-01-17  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74028
74029 2005-01-17  Bruno Haible  <bruno@clisp.org>
74030
74031         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74032         used.
74033
74034 2005-01-17  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/fwriteerror.h (fwriteerror): Change specification to include
74037         fclose.
74038         * lib/fwriteerror.c: Include <stdbool.h>.
74039         (fwriteerror): At the end, close the file stream. Record whether
74040         stdout was already closed.
74041
74042 2005-01-17  Bruno Haible  <bruno@clisp.org>
74043
74044         * lib/execute.c (environ): Declare if needed.
74045         * lib/pipe.c (environ): Likewise.
74046         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74047
74048 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74049
74050         * modules/argp: Depend on vsnprintf
74051
74052 2005-01-10  Jim Meyering  <jim@meyering.net>
74053
74054         * modules/closeout (Depends-on): Add atexit.
74055
74056 2005-01-06  Bruno Haible  <bruno@clisp.org>
74057
74058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74059
74060 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74063         definitions to be after all include files, to avoid collisions.
74064         Problem reported by Bob Proulx.
74065
74066 2005-01-04  Jim Meyering  <jim@meyering.net>
74067
74068         Changes imported from coreutils.
74069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74070         as the mkstemp template, use a temporary directory and an
74071         8.3-friendly template to avoid trouble on systems like DJGPP.
74072         Reported by Juan M. Guerrero via Stepan Kasal.
74073         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74074         close. Remove the temporary directory right away, rather than waiting
74075         for configure's at-exit trap code to do it.
74076         Suggestion from Stepan Kasal.
74077
74078 2005-01-01  Simon Josefsson  <jas@extundo.com>
74079
74080         * gnulib-tool: Print #include directives when --import'ing.
74081
74082 2004-12-28  Simon Josefsson  <jas@extundo.com>
74083
74084         * tests/test-base64.c: Include required header files.  Remove
74085         unused variables.
74086
74087 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * modules/error (Depends-on): Remove gettext.
74090
74091 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74094         not needed.  This removes a dependency on the gettext module.
74095         [defined _LIBC]: Do not include <libintl.h>; not needed.
74096
74097 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74100         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74101
74102 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74105         HAVE_DECL_STRTOLD.
74106
74107 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * modules/getdate (Depends-on): Remove alloca-opt.
74110
74111 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74114
74115 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         * lib/argp-parse.c: Include <stddef.h>.
74118         (alignof, alignto): New macros.
74119         (parser_init): Don't assume that void * is aligned sufficiently
74120         for struct option.
74121
74122         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74123         need to extend the stack.
74124         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74125         large.
74126
74127 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74128
74129         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74130
74131 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74134         (2004-10-24) change.  Apparently this was a false alarm.
74135
74136         * modules/getdate: Depend on alloca-opt, not alloca.
74137
74138 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74141         Remove now-obsolete comment about AIX.
74142         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74143         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74144         (YYMAXDEPTH): New macro.
74145
74146 2004-12-18  Simon Josefsson  <jas@extundo.com>
74147
74148         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74149
74150 2004-12-18  Bruno Haible  <bruno@clisp.org>
74151
74152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74153
74154 2004-12-18  Bruno Haible  <bruno@clisp.org>
74155
74156         * lib/fatal-signal.c (fatal_signals): Make non-const.
74157         (init_fatal_signals): New function.
74158         (uninstall_handlers, install_handlers): Ignore signals that were set to
74159         SIG_IGN.
74160         (at_fatal_signal): Call init_fatal_signals.
74161         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74162         SIG_IGN.
74163         Reported by Paul Eggert.
74164
74165 2004-12-18  Bruno Haible  <bruno@clisp.org>
74166
74167         * doc/alloca.texi: New file.
74168         * doc/alloca-opt.texi: New file.
74169
74170 2004-12-17  Jim Meyering  <jim@meyering.net>
74171
74172         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74173         Otherwise, install-sh could exit with improper exit status when
74174         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74175
74176 2004-12-16  Simon Josefsson  <jas@extundo.com>
74177
74178         * tests/test-base64.c: Add license.
74179
74180 2004-12-15  Stepan Kasal  <address@hidden>
74181
74182         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74183
74184 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * modules/getcwd (Files): Add m4/d-ino.m4.
74187         Suggested by Mark D. Baushke.
74188
74189 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * lib/getdate.y (textint): New member "negative".
74192         (time_zone_hhmm): New function.
74193         Expect 14 shift-reduce conflicts, not 13.
74194         (o_colon_minutes): New rule.
74195         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74196         (yylex): Set the "negative" member of signed numbers.
74197
74198 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * doc/getdate.texi (Time of day items, Time zone items):
74201         Describe new formats +00:00, UTC+00:00.
74202
74203 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74206         spurious "-l"s.  Problem reported by Stepan Kasal.
74207
74208 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74211         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74212
74213 2004-12-04  Simon Josefsson  <jas@extundo.com>
74214
74215         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74216         Vandoorselaere <yoann@prelude-ids.org>.
74217
74218 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         Changes imported from coreutils.
74221         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74222         exist.
74223         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74224
74225 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74226
74227         Changes imported from coreutils.
74228         * lib/hard-locale.c: Assume <locale.h> exists.
74229         Include "strdup.h".
74230         (GLIBC_VERSION): New macro.
74231         (hard_locale): Assume setlocale exists.
74232         Rewrite to avoid #ifdef.
74233         Use strdup rather than malloc + strcpy.
74234         * lib/human.c: Assume <locale.h> exists.
74235         (human_readable): Assume localeconv exists.
74236
74237 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * modules/hard-locale (Depends-on): Add strdup.
74240
74241 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74242
74243         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74244         convert T2, not T.  (Imported from libc.)
74245
74246 2004-11-30  Simon Josefsson  <jas@extundo.com>
74247
74248         * modules/restrict (License): Change to LGPL.
74249
74250 2004-11-30  Simon Josefsson  <jas@extundo.com>
74251
74252         * m4/restrict.m4: Add copyright and copying conditions.
74253
74254 2004-11-30  Simon Josefsson  <jas@extundo.com>
74255
74256         * m4/base64.m4: New file.
74257
74258 2004-11-30  Simon Josefsson  <jas@extundo.com>
74259
74260         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74261         base64.
74262
74263         * tests/test-base64.c: New file.
74264
74265         * modules/base64: New file.
74266
74267 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74268
74269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74270         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74271
74272         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74273
74274 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74277         (__getcwd.c): Don't restore errno; glibc doesn't.
74278         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74279         first, falling back to our code only if its results look suspicious.
74280         Ensure that the resulting buffer is only as large as necessary.
74281
74282         * lib/readutmp.c: Include readutmp.h first.
74283         Include <errno.h>, since readutmp.h no longer does that.
74284         * lib/readutmp.h: Don't include <errno.h>,
74285         <sys/param.h>, <time.h>; not needed to establish interface.
74286         (errno): Remove decl.
74287         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74288         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74289         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74290
74291 2004-11-28  Simon Josefsson  <jas@extundo.com>
74292
74293         * lib/base64.h, base64.c: New file.
74294
74295 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74298
74299 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74300
74301         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74302         (Depends-on): Remove pathmax, same.  Add mempcpy.
74303         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74304         (Makefile.am): Append getcwd.h to lib_SOURCES.
74305         (Include): Add getcwd.h.
74306         (Maintainer): Change from Jim Meyering to "all, glibc",
74307         since getdate now uses intended-for-glibc code.
74308         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74309         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74310
74311 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74314         HP's ANSI C compiler.
74315         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74316         Declaring int functions causes warnings on some modern systems and
74317         shouldn't be needed to compile on ancient ones.
74318         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74319         defined.
74320
74321         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74322         with the following changes.
74323         (__set_errno): Parenthesize properly.
74324         Include <stdbool.h>.
74325         (MIN, MAX, MATCHING_INO): New macros.
74326         (__getcwd): Define with prototype, not K&R form.
74327         Use heuristics to allocate default buffer on stack if possible.
74328         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74329         behavior, and to avoid the PATH_MAX limit when computing
74330         ../../../../...
74331         Use MATCHING_INO to compare inode number to file.
74332         Check for arithmetic overflow in size calculations.
74333         Fix bug in reallocation of dot array that caused getcwd to fail
74334         on directories nested deeper than 75.
74335         Be more careful about saving errno on error.
74336         Do not use realloc; use only free+malloc, as this is a bit
74337         more flexible and avoids a needless copy operation.
74338         Do not inspect st_dev and st_ino for symbolic links; POSIX
74339         doesn't specify the latter.
74340         Check for closedir errors.
74341         Avoid needless casts.
74342         Use "#ifdef weak_alias" around weak_alias, to be like other
74343         glibc code.
74344         The following changes to getcwd.c have effect only when used in
74345         gnulib; they have no effect inside glibc proper.
74346         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74347         as alloca isn't used.
74348         (alloca, __alloca): Likewise.
74349         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74350         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74351         unconditionally, as gnulib assumes C89 or better.
74352         Do not include <sys/param.h>.
74353         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74354         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74355         better.
74356         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74357         Include <dirent.h> in a way that is compatible with modern Autoconf.
74358         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74359         New macros, if not already defined.
74360         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74361         Use "_LIBC", not "defined _LIBC", for consistency.
74362         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74363         a mempcpy module.
74364         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74365         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74366         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74367         credit only to Jim Meyering and adjust the copyright dates.
74368         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74369         <stdlib.h>, <unistd.h>, "pathmax.h".
74370         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74371         (INITIAL_BUFFER_SIZE): Remove.
74372         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74373
74374 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74377         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74378         Use the _ONCE methods, for efficiency.
74379         Check for fcntl.h.  In test program, include <errno.h>
74380         and <fcntl.h> if available.  Remove old K&R cruft from
74381         test program.  Check for common errors in GNU/Linux,
74382         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74383         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74384         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74385         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74386         name accordingly.
74387         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74388         accommodate new getcwd.c.
74389         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74390         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74391         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74392         that's all we need now.
74393
74394 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74395
74396         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74397         argp-parse.c depends on getopt internals, that means we should
74398         always use our getopt, to be on the safe side.
74399         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74400         order not to spoil the result of an eventual previous invocation
74401         of gl_GETOPT_SUBSTITUTE.
74402
74403 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74404
74405         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74406         redefinition warnings. To avoid them, include the defines
74407         in `#if !defined __need_getopt ... #endif'. The only place
74408         where __getopt_argv_const is used is in definitions
74409         of getopt_long and getopt_long_only below, which are as well
74410         protected by `#ifndef __need_getopt'.
74411         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74412         __need_getopt after including <stdio.h> and <unistd.h> These
74413         headers might have defined it.
74414
74415 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74418
74419 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74422         (futimens): New function, which uses futimes if available.
74423         (futimens, utimens): Support timespec==NULL, with same semantics
74424         as utime and utimens.
74425         * lib/utimens.h (futimens): New decl.
74426
74427 2004-11-23  Jim Meyering  <jim@meyering.net>
74428
74429         * lib/getopt_.h: Remove trailing blanks.
74430
74431 2004-11-23  Jim Meyering  <jim@meyering.net>
74432
74433         * lib/__fpending.c: Add comment.
74434
74435 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * modules/canonicalize (Depends-on): Add xreadlink.
74438         Problem reported by James Youngman.
74439
74440 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74443         New macros.
74444         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74445         optopt): Use them instead of invoking ## directly; otherwise, the
74446         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74447
74448 2004-11-19  Bruno Haible  <bruno@clisp.org>
74449
74450         * lib/strtok_r.c: Move comments from here...
74451         * lib/strtok_r.h: ... to here.
74452
74453 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74456         implementations that mishandle size_t overflow.
74457
74458 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74461         might fail.  Problem reported by Yoann Vandoorselaere.
74462         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74463         implementations that mishandle size_t overflow.
74464
74465 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * modules/canon-host (Depends-on): Add strdup.
74468
74469 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74472
74473 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * lib/canon-host.c: Include "strdup.h".
74476         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74477         Use strdup instead of malloc/strcpy to duplicate strings.
74478
74479         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74480         (human_space_before_unit): New constant.
74481         * lib/human.c (human_readable): Support it.
74482
74483         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74484         (xgetcwd): Set errno correctly when failing.
74485         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74486         the failure is actually due to a PATH_MAX problem.
74487
74488         Further getopt changes to make it more likely that glibc will
74489         buy the changes back.
74490         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74491         (getopt): Use it, so to preserve glibc semantic
74492         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74493         when compiling for libc.
74494         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74495         (getopt_long, getopt_long_only): Use it.
74496
74497         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74498         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74499         (getopt): Argv is now char * const *, as per standard.
74500         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74501         not char *__getopt_argv_const *.
74502         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74503         _getopt_long_only_r): Likewise.
74504         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74505         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74506         _getopt_long_r, _getopt_long_only_r): Likewise.
74507         * lib/getopt_.h (__getopt_argv_const): Remove.
74508         (getopt): Argv is now char * const *, as per standard.
74509
74510         * lib/getdate.y (tORDINAL): New token.
74511         (day, relunit): Allow it for relative times.
74512         (relative_time_table): Use tORDINAL for ordinals.
74513
74514 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74517         Document that "second" isn't allowed as an ordinal number.
74518
74519 2004-11-16  Jim Meyering  <jim@meyering.net>
74520
74521         * modules/closeout (Depends-on): Add fpending.
74522
74523 2004-11-15  Jim Meyering  <jim@meyering.net>
74524
74525         * lib/closeout.c: Include "__fpending.h" once again.
74526         Include <stdbool.h>.
74527         (close_stdout): Don't fail just because stdout was closed initially,
74528         since some programs don't write to stdout in the normal course of
74529         operation (other than --version and --help), and we don't want this
74530         function to make e.g. `touch file >&-' fail.
74531         But do fail if it was closed and someone has tried to write to it.
74532         E.g., `printf foo >&-' must fail.
74533
74534 2004-11-13  Jim Meyering  <jim@meyering.net>
74535
74536         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74537
74538 2004-11-12  Simon Josefsson  <jas@extundo.com>
74539
74540         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74541         small doc fix is still pending.
74542
74543 2004-11-11  Simon Josefsson  <jas@extundo.com>
74544
74545         * modules/strtok_r: New file.
74546
74547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74548         strtok_r.
74549
74550 2004-11-11  Simon Josefsson  <jas@extundo.com>
74551
74552         * m4/strtok_r.m4: New file.
74553
74554         * m4/getopt.m4: Replace opterr.
74555
74556 2004-11-11  Simon Josefsson  <jas@extundo.com>
74557
74558         * lib/strtok_r.h, strtok_r.c: New file.
74559
74560 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74563         of replacing opterr, getopt, etc.  This should handle the
74564         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74565
74566 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74569         we can stop lying to compilers about the constness of argv when we
74570         are compiled outside glibc.
74571         (getopt, getopt_long, getopt_long_only): Use it.
74572         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74573         _getopt_internal, getopt): Likewise.
74574         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74575         _getopt_long_only_r): Likewise.
74576         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74577         _getopt_long_r, _getopt_long_only_r): Likewise.
74578
74579         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74580         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74581         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74582         the other external symbols.
74583         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74584         declaration, since the above renaming now works around collisions.
74585
74586 2004-11-11  Jim Meyering  <jim@meyering.net>
74587
74588         * lib/linebreak.c: Remove trailing blanks.
74589         * lib/alloca_.h: Likewise.
74590         * lib/acosl.c: Likewise.
74591         * lib/euidaccess.c: Likewise.
74592         * lib/allocsa.h: Likewise.
74593
74594 2004-11-10  Simon Josefsson  <jas@extundo.com>
74595
74596         * m4/getaddrinfo.m4: New file.
74597
74598 2004-11-10  Simon Josefsson  <jas@extundo.com>
74599
74600         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74601
74602 2004-11-10  Simon Josefsson  <jas@extundo.com>
74603
74604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74605         getaddrinfo.
74606
74607         * modules/getaddrinfo: New file.
74608
74609 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74612
74613 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * lib/mktime.c (SHR): New macro, which is a portable
74616         substitute for >> that should work even on Crays.
74617         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74618         Problem reported by Mark D. Baushke in
74619         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74620         * lib/getdate.y (SHR): Likewise.
74621         (tm_diff): Use it.
74622         * lib/strftime.c (SHR): Likewise.
74623         (tm_diff): Use it.
74624         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74625         quote_these_too, so that right shifts are well defined.  All uses
74626         changed.
74627
74628 2004-11-10  Jim Meyering  <jim@meyering.net>
74629
74630         Ensure that no close failure goes unreported.
74631         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74632         return early when it seems there's nothing to flush.
74633         Don't include __fpending.h.
74634
74635 2004-11-10  Jim Meyering  <jim@meyering.net>
74636
74637         * modules/closeout (Depends-on): Remove fpending.
74638
74639 2004-11-10  Jim Meyering  <jim@meyering.net>
74640
74641         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74642
74643 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74646         gl_FUNC_STRFTIME.
74647         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74648         and AC_REQUIRE when possible, to avoid duplicate checks.
74649         Check for <wchar.h>.
74650
74651 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74652
74653         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74654
74655 2004-11-09  Bruno Haible  <bruno@clisp.org>
74656
74657         * m4/sockpfaf.m4: New file.
74658
74659 2004-11-05  Bruno Haible  <bruno@clisp.org>
74660
74661         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74662         Reported by Mark D. Baushke <mdb@cvshome.org>.
74663
74664 2004-11-04  Bruno Haible  <bruno@clisp.org>
74665
74666         2004-09-11  Bruno Haible  <bruno@clisp.org>
74667                 * allocsa.valgrind: New file.
74668         2004-02-06  Bruno Haible  <bruno@clisp.org>
74669                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74670                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74671                 Reported by Christopher Seip <chris.seip@hp.com>.
74672
74673 2004-11-04  Bruno Haible  <bruno@clisp.org>
74674
74675         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74676         (Makefile.am): Distribute it.
74677
74678 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74681         with errno == ERANGE if the buffer is too small.
74682         Problem reported by Mark D. Baushke.
74683
74684 2004-11-03  Albert Chin  <china@thewrittenword.com>
74685             Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74688         equivalent, substitute $ac_type for equivalent type rather than
74689         blindly using uint32_t *always* which won't work if uint32_t is not
74690         available.  Define _UINT32_T to work around typedef of uint32_t if
74691         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74692         2.5.1.
74693
74694 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * m4/jm-macros.m4: Sync from coreutils.
74697         (gl_MACROS): Check for mbrlen, for pathchk.
74698         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74699
74700 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * lib/xreadlink.c (MAXSIZE): New macro.
74703         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74704         size does not exceed MAXSIZE.  Avoid cast.
74705         As suggested by Mark D. Baushke in
74706         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74707         if readlink fails with buffer size just under MAXSIZE, try again
74708         with MAXSIZE.
74709
74710 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74713
74714 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74715         and  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74718         (get_date): Overparenthesize to avoid GCC warning.
74719
74720 2004-11-02  Bruno Haible  <bruno@clisp.org>
74721
74722         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74723         returns void.
74724
74725 2004-11-02  Bruno Haible  <bruno@clisp.org>
74726
74727         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74728         function returns void.
74729
74730 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74733         fflush_unlocked, flockfile, funlockfile, funlockfile,
74734         fputs_unlocked, putc_unlocked.
74735
74736 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74739         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74740         already declared.
74741
74742 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         * modules/getdate (Files): Add doc/getdate.texi.
74745         (Depends-on): Add setenv, xalloc.
74746
74747 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * lib/getdate.y: Add support for TZ="foo" within a date string.
74750         Fix some bugs near time_t boundaries.  Reject dates with
74751         out-of-range components, e.g., "Sept 31".
74752         Include <stdlib.h>, "setenv.h", "xalloc.h".
74753         (ISDIGIT_LOCALE): Remove; unused.
74754         Note that the TZ and time functions used here are not reentrant.
74755         (mktime_ok, get_tz): New functions.
74756         (TZBUFSIZE): New constant.
74757         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74758         This requires that we sometimes generate our own TZ="XXX..." setting.
74759
74760 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         * doc/getdate.texi: New file, from coreutils with modifications for
74763         the new TZ parsing.
74764
74765 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74766
74767         * lib/mktime.c (not_equal_tm): Remove redundant check.
74768
74769 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74770
74771         * modules/regex (lib_SOURCES): Add regex.c.
74772         Reported by James Youngman in
74773         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74774
74775 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * lib/getdate.y: Use Bison 1.875 features, and some minor
74778         code cleanups.  This change does not affect semantics.
74779         Don't include <stdlib.h>; no longer needed.
74780         Don't include unlocked-io.h; only the "#if TEST" code uses
74781         stdio, and performance isn't crucial there.
74782         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74783         Bison 1.875 features as described below.
74784         All uses of "PC." replaced by "pc->".
74785         (YYSTYPE): Add a forward declaration.
74786         (yylex, yyerror): Use full prototypes in forward decls.
74787         Use "%pure-parser" rather than obsolescent "%pure_parser".
74788         Use %parse-param and %lex-param instead of obsolescent
74789         YYPARSE_PARAM and YYLEX_PARAM.
74790         (meridian_table, month_and_day_table, time_units_table,
74791         relative_time_table, time_zone_table, military_table,
74792         lookup_zone, lookup_word, get_date):
74793         Use NULL instead of 0 where appropriate.
74794         (to_hour): Avoid abort (), to avoid a dependency on
74795         stdlib.h.
74796         (yyerror, yylex): Now accepts parser_control * arg.
74797         (main) [TEST]: Use '\0' rather than 0 for char.
74798
74799 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74802
74803 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74806         It's now the caller's responsibility to handle the case where
74807         !HAVE_GETPAGESIZE && !defined getpagesize.
74808
74809         * lib/mktime.c (leapyear): Arg is long int, not int.
74810
74811 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74814
74815 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74818         missing.  Problem reported by James Youngman.
74819
74820 2004-10-16  Simon Josefsson  <jas@extundo.com>
74821
74822         * gnulib-tool: Fix comments.  Fix parse problem.
74823         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74824
74825 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74828         implementation of getopt_long.  Problem reported by Alexander Taler in:
74829         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74830
74831 2004-10-15  Bruno Haible  <bruno@clisp.org>
74832
74833         * gnulib-tool: Untabify. Initialize supplied_libname.
74834         (func_usage): More homogenous output.
74835         (func_modules_transitive_closure, func_modules_to_filelist,
74836         func_emit_lib_Makefile_am): New functions.
74837         (func_import): New function, extracted from big case statement. Use
74838         func_get_license, func_modules_transitive_closure,
74839         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74840         opt_lgpl. Don't use test -a, as it's not portable.
74841         (func_create_testdir): Use func_modules_transitive_closure,
74842         func_modules_to_filelist, func_emit_lib_Makefile_am.
74843
74844 2004-10-15  Bruno Haible  <bruno@clisp.org>
74845
74846         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74847
74848 2004-10-15  Bruno Haible  <bruno@clisp.org>
74849
74850         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74851         the portions belonging to each module.
74852         Suggested by Derek Robert Price <derek@ximbiot.com>.
74853
74854 2004-10-12  Simon Josefsson  <jas@extundo.com>
74855
74856         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74857         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74858         to real functions.
74859
74860 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74861
74862         * modules/vsnprintf: New file.
74863
74864 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74865
74866         * m4/vsnprintf.m4: New file.
74867
74868 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74869
74870         * lib/vsnprintf.h: New file.
74871         * lib/vsnprintf.c: New file.
74872
74873 2004-10-11  Bruno Haible  <bruno@clisp.org>
74874
74875         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74876         vsnprintf.
74877
74878 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74881
74882 2004-10-07  Bruno Haible  <bruno@clisp.org>
74883
74884         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74885         fits into the provided buffer.
74886
74887 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * lib/diacrit.c, diacrit.h: Add GPL notice.
74890
74891         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74892         notice.
74893         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74894         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74895         This avoids a potential constant-folding bug.
74896
74897 2004-10-05  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74900         for the declaration of strsep.
74901
74902 2004-10-05  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74905
74906 2004-10-04  Simon Josefsson  <jas@extundo.com>
74907
74908         * modules/memmem: New file.
74909         * tests/test-memmem.c: New file.
74910         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74911
74912 2004-10-04  Simon Josefsson  <jas@extundo.com>
74913
74914         * m4/memmem.m4: New file.
74915
74916 2004-10-04  Simon Josefsson  <jas@extundo.com>
74917
74918         * lib/memmem.h: New file.
74919         * lib/memmem.c: New file, taken from glibc.
74920
74921 2004-10-04  Simon Josefsson  <jas@extundo.com>
74922
74923         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74924         '#ifdef USE_UNLOCKED_IO'.
74925
74926 2004-10-04  Simon Josefsson  <jas@extundo.com>
74927
74928         * config/srclist.txt: Add memmem from glibc.
74929
74930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74933
74934         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74935         modules/exclude, modules/getdate, modules/getline,
74936         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74937         modules/getusershell, modules/linebuffer, modules/md5,
74938         modules/mountlist, modules/posixtm, modules/readtokens,
74939         modules/readutmp, modules/regex, modules/sha1,
74940         modules/version-etc, modules/yesno:
74941         Remove dependency on unlocked-io.
74942
74943 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74944
74945         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74946
74947         * m4/unlocked-io.m4: Add copyright notice.
74948         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74949
74950 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74953         * lib/xmalloc.c (xmemdup): Likewise.
74954         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74955         XFREE): Remove these long-obsolescent macros.
74956         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74957         * lib/xstrdup.c: Remove.
74958
74959         * lib/regex.c (re_comp): Cast gettext return value to char *,
74960         Problem reported by Martin Neitzel via Mark D. Baushke.
74961
74962 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74965         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74966         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74967         regex.c, sha1.c, version-etc.c, yesno.c:
74968         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74969         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74970         the includer's responsibility.
74971
74972         Sync from coreutils.
74973
74974         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74975         points to the start of a string, as the C Standard says the
74976         resulting behavior is undefined.
74977
74978         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74979         simple -> simple_backups, numbered_existing ->
74980         numbered_existing_backups, numbered -> numbered_backups
74981         to avoid shadowing problems.  All uses changed.
74982         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74983         * lib/backupfile.c (check_extension, numbered_backup):
74984         Rename locals to avoid shadowing 'basename'.
74985         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74986         once.
74987
74988         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74989         * lib/.cvsignore: Add getopt.h.
74990
74991 2004-10-04  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/README: New file.
74994         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74995         not a module.
74996
74997 2004-10-02  Jim Meyering  <jim@meyering.net>
74998
74999         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75000
75001 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75002
75003         * modules/strsep: New file.
75004
75005 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75006
75007         * m4/strsep.m4: New file.
75008
75009 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75010
75011         * lib/strsep.h: New file.
75012         * lib/strsep.c: New file.
75013
75014 2004-10-01  Simon Josefsson  <jas@extundo.com>
75015
75016         * lib/snprintf.c (snprintf): Handle size==0.
75017
75018 2004-10-01  Simon Josefsson  <jas@extundo.com>
75019             Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75022         (snprintf): Declare 'args'.
75023
75024 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * lib/snprintf.c: Remove comments as to why each header is needed.
75027
75028 2004-10-01  Bruno Haible  <bruno@clisp.org>
75029
75030         * MODULES.html.sh: Add strsep.
75031
75032 2004-09-30  Simon Josefsson  <jas@extundo.com>
75033
75034         * modules/snprintf: New file.
75035
75036 2004-09-30  Simon Josefsson  <jas@extundo.com>
75037
75038         * m4/snprintf.m4: New file.
75039
75040 2004-09-30  Simon Josefsson  <jas@extundo.com>
75041
75042         * lib/snprintf.h, lib/snprintf.c: New files.
75043
75044 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75045
75046         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75047         (hol_entry_help): Never translate an empty string.
75048         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75049         * lib/argp.h (OPTION_NO_TRANS): New option.
75050
75051 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * modules/argp (Maintainer): Replace Simon Josefsson
75054         by Sergey Poznyakoff.
75055
75056 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75059         changes merged back into glibc.
75060
75061 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75062
75063         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75064
75065 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75066
75067         * lib/xvasprintf.c: Include xalloc.h.
75068         (xvasprintf): Use xalloc_die, not xmalloc_die.
75069
75070 2004-09-29  Bruno Haible  <bruno@clisp.org>
75071
75072         * modules/alloca-opt: New file, derived from modules/alloca.
75073         * modules/allocsa: Depend on alloca-opt instead of alloca.
75074         * modules/setenv: Likewise.
75075         * modules/vasnprintf: Likewise.
75076         * MODULES.html.sh: Add alloca-opt.
75077
75078 2004-09-28  Simon Josefsson  <jas@extundo.com>
75079
75080         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75081         LGPL, and to replace license template from GPL to LGPL.
75082
75083 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * modules/dummy: Change license to LGPL.
75086
75087 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75090
75091 2004-09-24  Simon Josefsson  <jas@extundo.com>
75092
75093         * modules/minmax (License): Change from GPL to LGPL.
75094
75095 2004-09-23  Simon Josefsson  <jas@extundo.com>
75096
75097         * gnulib-tool (--import): Typo.
75098
75099 2004-09-23  Simon Josefsson  <jas@extundo.com>
75100
75101         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75102
75103 2004-09-22  Bruno Haible  <bruno@clisp.org>
75104
75105         * modules/*: Add 'License' field.
75106         * gnulib-tool: Accept --extract-license option.
75107         (func_get_license): New function.
75108
75109 2004-09-21  Bruno Haible  <bruno@clisp.org>
75110
75111         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75112         Reported by Simon Josefsson.
75113
75114 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75117         gl_AC_TYPE_LONG_LONG.
75118
75119 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75122
75123 2004-09-18  Simon Josefsson  <jas@extundo.com>
75124         and  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75127         calls with autoreconf.  Define GL_LIB.
75128
75129 2004-09-14  Karl Berry  <karl@gnu.org>
75130
75131         * config/srclist.txt: unsync setenv.c, sigh.
75132
75133 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75136         Problem reported by Bruno Haible in:
75137         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75138
75139 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * config/srclist.txt: Comment out argp-pvh.c.
75142
75143 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75146         in case some system header has #define'd it.  Problem reported by
75147         Soeren D. Schulze in
75148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75149
75150 2004-09-09  Karl Berry  <karl@gnu.org>
75151
75152         * regex.[ch]: delete from the root.  These were supposed to be
75153                 synced with emacs cvs, but this has not happened for about
75154                 a year, and anyway nothing else uses emacs regex.[ch].
75155                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75156                 lib/regex[.ch] is untouched.
75157
75158 2004-09-09  Bruno Haible  <bruno@clisp.org>
75159
75160         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75161
75162 2004-09-09  Bruno Haible  <bruno@clisp.org>
75163
75164         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75165         modifications.
75166         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75167
75168 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75169
75170         * modules/xvasprintf: New file.
75171         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75172
75173 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75174
75175         * lib/xvasprintf.h: New file.
75176         * lib/xvasprintf.c: New file.
75177         * lib/xasprintf.c: New file.
75178
75179 2004-09-08  Bruno Haible  <bruno@clisp.org>
75180
75181         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75182
75183 2004-09-08  Bruno Haible  <bruno@clisp.org>
75184
75185         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75186         length is > INT_MAX.
75187         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75188         more.
75189
75190 2004-09-08  Bruno Haible  <bruno@clisp.org>
75191
75192         * lib/stdint_.h: New file, taken from GNU clisp.
75193
75194 2004-09-08  Bruno Haible  <bruno@clisp.org>
75195             Oskar Liljeblad  <oskar@osk.mine.nu>
75196
75197         * modules/stdint: New file.
75198         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75199
75200 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75201
75202         Import from coreutils.
75203         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75204         strings on unbounded length.  alloca's performance benefits aren't
75205         that important here.
75206         (V_STRDUP): Remove.
75207         (parse_with_separator): New function, with most of the internals
75208         of the old parse_user_spec.  Allow user to omit both user and group,
75209         for compatibility with FreeBSD.
75210         Clone only the user name, not the entire spec.
75211         Do not set *uid, *gid unless entirely successful.
75212         Avoid memory leak in some failing cases.
75213         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75214         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75215         (parse_user_spec): Rewrite to use parse_with_separator.
75216
75217 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * modules/userspec: Don't depend on alloca.
75220
75221 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75224
75225 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75228         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75229         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75230
75231 2004-08-16  Simon Josefsson  <jas@extundo.com>
75232
75233         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75234         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75235         Add --dry-run for --import.
75236         Let user provided command line parameters override configure.ac
75237         settings.
75238
75239 2004-08-12  Simon Josefsson  <jas@extundo.com>
75240
75241         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75242         as discussed with Paul Eggert in threads rooted at
75243         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75244         and
75245         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75246         Before, the test was empty, and relied on ELIDE_CODE in source
75247         code.)
75248         (gl_PREREQ_GETOPT): New macro.
75249         (gl_GETOPT): Use them.
75250
75251 2004-08-12  Simon Josefsson  <jas@extundo.com>
75252
75253         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75254         * lib/getopt_.h: Renamed from getopt.h.
75255
75256 2004-08-12  Simon Josefsson  <jas@extundo.com>
75257
75258         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75259         Change default library name from libfoo to libgnu.
75260         Now, if you have a configure.ac that says:
75261                 gl_SOURCE_BASE(gl)
75262                 gl_M4_BASE(gl/m4)
75263                 gl_MODULES(error getopt etcetera)
75264                 gl_INIT
75265         you can import all you need by running:
75266                 ../gnulib/gnulib-tool --import
75267
75268         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75269         (Makefile.am): Rewrite, use logic from argz.
75270         (Include): Use <getopt.h> instead of "getopt.h".
75271
75272 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * modules/argp (Files): Add m4/unlocked-io.m4.
75275         (Depends-on): Add extensions.
75276
75277 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75278
75279         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75280         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75281         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75282         Check for program_invocation_name, program_invocation_short_name,
75283         flockfile, funlockfile, features.h, _getopt_long_only_r.
75284
75285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75288         its complicated substitute.
75289         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75290         and program_invocation_name.
75291         (__argp_basename) [!_LIBC]: Remove; the only use was
75292         replaced by its body.
75293         (__argp_short_program_name): Change condition from
75294         !defined __argp_short_program_name to
75295         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75296         to match argp-namefrob.h.
75297         (__argp_failure): Don't assume strerror_r returns char *.
75298         * lib/argp-parse.c (N_): Define unconditionally.
75299         (argp_default_options): Fill out initializers with 0 to avoid
75300         gcc warnings.
75301
75302 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75305         getopt1.c.
75306
75307 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         Merge from coreutils.
75310
75311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75312
75313         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75314         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75315
75316 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         Merge from coreutils.
75319
75320         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75321         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75322         for Reliant Unix 5.43.
75323
75324         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75325         (union fooround): Use uintmax_t, not long int.
75326         The rest is a merge from libc:
75327         [defined _LIBC]: Include <shlib-compat.h>.
75328         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75329
75330         * lib/settime.c (settime): Recode to avoid warning with
75331         Sun Forte C 6U2.
75332
75333         * lib/strverscmp.c: Convert to UTF-8.
75334
75335 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75338         m4/uintmax_t.m4.
75339
75340 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * modules/xalloc-die: New file.
75343         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75344
75345         * modules/md5 (Files): Add m4/uint32_t.m4.
75346         * modules/sha1: Renamed from modules/sha.
75347         (Files):
75348         Rename lib/sha.h to lib/sha1.h.
75349         Rename lib/sha.c to lib/sha1.c.
75350         Rename m4/sha.m4 to m4/sha1.m4.
75351         (lib_SOURCES): Likewise.
75352         (configure.ac): Rename gl_SHA to gl_SHA1.
75353         (Include): sha.h -> sha1.h.
75354
75355 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75358         * m4/sha1.m4: Renamed from sha.m4.
75359         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75360
75361 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * lib/obstack.h (obstack_empty_p):
75364         Don't assume that chunk->contents is suitably aligned.
75365         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75366         Likewise. Problem reported by Benno in
75367         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75368
75369         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75370         readable.  This could be improved further but it'd take some work.
75371
75372 2004-08-08  Simon Josefsson  <jas@extundo.com>
75373
75374         * modules/xgethostname (Depends-on): Remove exit and error (not
75375         used).
75376
75377         * modules/getpass-gnu: Add getpass.h.
75378         (Depends-on): Add stdbool.
75379         * modules/getpass: Add getpass.h.
75380
75381 2004-08-08  Simon Josefsson  <jas@extundo.com>
75382
75383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75384         Check getpass declaration.
75385
75386 2004-08-08  Simon Josefsson  <jas@extundo.com>
75387
75388         * lib/xgethostname.c: Don't include error.h (not used).
75389
75390         * lib/getpass.h: Add.
75391         * lib/getpass.c: Include getpass.h first.
75392
75393 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * lib/xalloc-die.c: New file.
75396         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75397         All uses removed.
75398         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75399         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75400         xalloc-die.c.
75401         (_, N_, xalloc_die): Move to xalloc-die.c.
75402         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75403         so that we needn't mess with xalloc_msg_memory_exhausted.
75404
75405         * lib/sha1.h: Renamed from sha.h.
75406         (SHA1_H): Renamed from _SHA_H.
75407         (sha1_ctx): Renamed from sha_ctx.
75408         (sha1_init_ctx): Renamed from sha_init_ctx.
75409         (sha1_process_block): Renamed from sha_process_block.
75410         (sha1_process_bytes): Renamed from sha_process_bytes.
75411         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75412         (sha1_read_ctx): Renamed from sha_read_ctx.
75413         (sha1_stream): Renamed from sha_stream.
75414         (sha1_buffer): Renamed from sha_buffer.
75415         * lib/sha1.c: Likewise; renamed from sha.c.
75416         Do not include <sys/types.h>.
75417         Include <stddef.h> rather than <stdlib.h>.
75418
75419 2004-08-08  Bruno Haible  <bruno@clisp.org>
75420
75421         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75422         FILESYSTEM_PREFIX_LEN.
75423         * lib/progreloc.c: Likewise.
75424         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75425
75426 2004-08-06  Simon Josefsson  <jas@extundo.com>
75427
75428         * modules/progname (Depends-on): Don't depend on stdbool.
75429
75430 2004-08-06  Simon Josefsson  <jas@extundo.com>
75431
75432         * modules/getsubopt: New file.
75433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75434         getsubopt.
75435
75436 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         More merge from coreutils.
75439
75440         * m4/utimens.m4, m4/utimecmp.m4: New files.
75441         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75442         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75443         prereq.m4, sha.m4: Import changes from coreutils.
75444
75445 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         More merge from coreutils.
75448         * modules/raise, modules/readtokens0, modules/utimens:
75449         * modules/utimecmp, module/xnanosleep: New files.
75450         * modules/strftime: Add lib/strftime.h.
75451         Change include from <time.h> to "strftime.h".
75452         * modules/yesno: Add lib/yesno.h.
75453         * modules/backupfile: Remove lib/addext.c.
75454         * modules/euidaccess: Add stat-macros.h.
75455         * modules/canonicalize, modules/euidaccess,
75456         modules/filemode, modules/lchown, modules/makepath,
75457         modules/rmdir, modules/stat: Likewise.
75458
75459 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         Merge from tar.
75462         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75463         SIZE_MAX is a valid preprocessor constant.
75464         (__argp_basename): Change from "#ifndef _LIBC"
75465         to "#ifndef __argp_short_program_name", so that
75466         we don't compile these functions for tar.
75467
75468         More merges from coreutils.
75469         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75470         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75471         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75472         * lib/addext.c: Remove; no longer needed.
75473         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75474         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75475         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75476         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75477         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75478         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75479         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75480         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75481         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75482         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75483         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75484         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75485         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75486         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75487         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75488         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75489         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75490         Import changes from coreutils.
75491
75492 2004-08-05  Simon Josefsson  <jas@extundo.com>
75493
75494         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75495
75496 2004-08-05  Simon Josefsson  <jas@extundo.com>
75497
75498         * m4/getsubopt.m4: New file.
75499
75500 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         Merge from coreutils.
75503
75504         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75505         * m4/getcwd-path-max.m4: New files.
75506
75507         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75508         FILESYSTEM_PREFIX_LEN ->
75509         FILE_SYSTEM_PREFIX_LEN.
75510         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75511         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75512         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75513         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75514
75515         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75516         prerequisite modules now handle the DOS stuff.
75517         Don't check for unistd.h.
75518
75519 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         Merge from coreutils.
75522
75523         * lib/.gdb-history: Remove; this doesn't belong here.
75524
75525         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75526         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75527         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75528         * lib/getcwd.c: New files.
75529
75530         * lib/dirname.h: Include <stdbool.h>.
75531         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75532         for consistency with POSIX terminology.  All uses changed.
75533         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75534         (strip_trailing_slashes): Use bool for booleans.
75535         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75536
75537         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75538         sometimes returns a positive errno value even when it succeeds.
75539         (print_errno_message) [!LIBC]: Fall back on strerror if
75540         __strerror_r fails.
75541
75542         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75543         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75544         (longest_relative_suffix): New function.
75545         (path_concat): Use it.  Assume first argument is not NULL.
75546         Port to DOS.  Omit redundant separators.
75547         Report an error instead of returning NULL.
75548         Use mempcpy instead of memcpy.
75549         (xpath_concat): Remove: not declared or used.
75550
75551         * lib/same.h: Include <stdbool.h>
75552         (same_name): Return bool, not int.
75553         * lib/same.c (same_name): Likewise.
75554         (errno): Don't declare; we assume C89 or better now.
75555
75556         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75557         if not already defined.
75558
75559         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75560         * lib/dup-safer.c (errno): Likewise.
75561
75562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         Merge from coreutils.
75565         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75566         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75567         * modules/path-concat: Don't depend on strdup.
75568
75569 2004-08-03  Simon Josefsson  <jas@extundo.com>
75570
75571         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75572         * lib/progname.h: Don't include stdbool.h.
75573
75574 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75577         * MODULES.html.sh (func_all_modules): Remove fatal.
75578
75579 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75582
75583 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75586         working.
75587
75588 2004-08-02  Simon Josefsson  <jas@extundo.com>
75589
75590         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75591         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75592         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75593
75594 2004-08-01  Simon Josefsson  <jas@extundo.com>
75595
75596         * lib/xgetdomainname.c: Include stdlib.h, for free().
75597
75598 2004-07-19  Bruno Haible  <bruno@clisp.org>
75599
75600         * MODULES.html.sh (func_all_modules): Add dummy.
75601
75602 2004-07-16  Simon Josefsson  <jas@extundo.com>
75603
75604         * modules/dummy: New file.
75605
75606 2004-07-16  Simon Josefsson  <jas@extundo.com>
75607
75608         * lib/dummy.c: New file.
75609
75610 2004-07-16  Bruno Haible  <bruno@clisp.org>
75611
75612         * lib/backupfile.h: Add extern "C" for C++.
75613         * lib/closeout.h: Likewise.
75614         * lib/copy-file.h: Likewise.
75615         * lib/findprog.h: Likewise.
75616         * lib/full-write.h: Likewise.
75617         * lib/pathname.h: Likewise.
75618         * lib/progname.h: Likewise.
75619         * lib/stpcpy.h: Likewise.
75620         * lib/stpncpy.h: Likewise.
75621         * lib/strcase.h: Likewise.
75622         * lib/strstr.h: Likewise.
75623         * lib/xalloc.h: Likewise.
75624
75625         * lib/mbswidth.h: Add extern "C" for C++.
75626         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75627
75628 2004-07-13  Robert Millan  <robertmh@gnu.org>
75629
75630         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75631
75632 2004-07-09  Simon Josefsson  <jas@extundo.com>
75633
75634         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75635         failed without this.)
75636
75637 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * modules/chown (Files): Add lib/fchown-stub.c, since
75640         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75641
75642 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * lib/fchown-stub.c: New file.
75645
75646 2004-06-24  Jim Meyering  <jim@meyering.net>
75647
75648         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75649
75650 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * modules/argz: Omit "#include".
75653
75654         * MODULES.html.sh (func_all_modules): Add calloc, to match
75655         2004-06-01 addition of calloc module.
75656
75657 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * m4/argz.m4: New file, which is autoupdated from libtool.
75660
75661 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75664         libtool.
75665
75666 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * config/srclist-update: Don't insist on "USA." before the
75669         close-comment, as libtool omits the period and puts the */ on a
75670         separate line.
75671         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75672         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75673
75674 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75675
75676         * modules/argz: New file.
75677         * MODULES.html.sh (func_all_modules): Add argz.
75678
75679 2004-06-12  Jim Meyering  <jim@meyering.net>
75680         and  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * modules/hash (Files): Add lib/xalloc.h.
75683         * modules/pipe (Depends-on): Add wait-process.
75684         * modules/stat (Depends-on): Add xalloc.
75685         * modules/userspec (Files): Add lib/userspec.h.
75686         * modules/xstrto
75687
75688         Upgrade from gettext-0.13.
75689         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75690         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75691         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75692
75693 2004-06-10  Jim Meyering  <jim@meyering.net>
75694
75695         * lib/calloc.c: New file.
75696
75697 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * lib/getdate.y (yylex): Allow space between sign and number.
75700         Problem reported by Dan Jacobson.
75701
75702 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         Merge from coreutils CVS.
75705
75706         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75707         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75708         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75709         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75710         xstrtol.m4: Fix copyright date and/or serial number.
75711
75712         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75713         See if we need an fchown replacement.
75714         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75715         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75716         and use the replacement function if we detect either defect.
75717
75718         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75719         gl_UTIMECMP.
75720
75721 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75722         and  Jim Meyering  <jim@meyering.net>
75723
75724         Merge from coreutils CVS.
75725
75726         * lib/stat-macros.h: New file, with contents from file-type.h
75727         and coreutils' system.h.
75728         * lib/file-type.c: Include "stat-macros.h".
75729         * lib/file-type.h (file_type): Move all macro definitions to new file,
75730         stat-macros.h.
75731
75732         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75733         Wrap old code with this conditional.
75734         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75735         function that does not dereference symlinks.
75736         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75737
75738         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75739         dependency problems.
75740         (xreadlink): Accept new arg SIZE, for efficiency.
75741         All decls and uses changed.
75742         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75743
75744         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75745         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75746
75747         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75748         sysexits.h.
75749
75750 2004-06-01  Jim Meyering  <jim@meyering.net>
75751
75752         * m4/calloc.m4: New file.
75753
75754 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75757         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75758         Also, fix a typo in a diagnostic.
75759
75760 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75761
75762         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75763         or AC_FUNC_REALLOC.
75764
75765 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75768         macros to be defined.
75769         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75770         the allocator returns NULL because the requested size is zero.
75771
75772 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75775         var.  Add comment explaining why libc still defines it.  This
75776         merges the following patch from glibc:
75777         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75778
75779 2004-05-20  Andreas Schwab  <schwab@suse.de>
75780
75781         * m4/free.m4: Replace free if it not known to work, not the other
75782         way round.
75783
75784 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75785
75786         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75787         present in glibc since revision 1.1 of this file.
75788         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75789         obstack_alignment_mask, obstack_alloc, obstack_base,
75790         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75791         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75792         obstack_grow0, obstack_init, obstack_int_grow,
75793         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75794         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75795         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75796         nonexistent functions.
75797
75798 2004-05-18  Karl Berry  <karl@gnu.org>
75799
75800         * config/srclist.txt: break link for vasnprintf.c.
75801
75802 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         Port obstack to the AS/400, where pointers are 16 bytes wide and
75805         you cannot cast an integer to a valid pointer.  This patch is
75806         currently waiting to be integrated into glibc; see
75807         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75808
75809         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75810         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75811         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75812         (struct obstack): temp member is now a union of a pointer and
75813         an integer, instead of an integer.  All integer uses changed.
75814         This does not affect the physical layout of struct obstack,
75815         except on hosts (like the AS/400) where the size or alignment of
75816         void * is greater than that of ptrdiff_t.
75817         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75818         __STDC__)]: Store temporary in pointer member of union, not
75819         integer member.
75820         * lib/obstack.c: Include <stddef.h>, for offsetof.
75821         (struct fooalign): Remove; it doesn't need a name.
75822         (union fooround): Change double to long double, and add void *.
75823         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75824         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75825         not a macro.  Hence the values are always int; so remove all
75826         casts-to-int in uses.
75827
75828 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75831         we can get this patch merged into glibc.
75832
75833 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75834             Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * m4/argp: Depend on alloca.
75837
75838 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75839             Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75842         freecoding.
75843
75844 2004-05-17  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75847         precision that consists of a '.' followed by an empty digit string.
75848         Patch by Tor Lillqvist <tml@iki.fi>.
75849
75850 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75853         for backward compatibility with older code.  We need our own
75854         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75855         it under some other name, and our alloca.h will define it.
75856
75857 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75858             Derek Price  <derek@ximbiot.com>
75859
75860         * lib/alloca.c: Include <alloca.h>, to get our interface.
75861         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75862         include <alloca.h> first.  Use C89 prototype for alloca; this
75863         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75864         Use #elif for simplicity, since we can assume C89 now.
75865         Don't try to source the system alloca.h since it will not be found
75866         and to prevent recursively including its replacement.
75867         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75868         * lib/regex.c: Likewise.
75869
75870 2004-05-16  Derek Price  <derek@ximbiot.com>
75871             Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         getline cleanup.  This changes the getndelim2 API: both order of
75874         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75875         no delimiter).
75876
75877         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75878         interface does that.
75879         (getline): Always use getdelim, so that we don't have two
75880         copies of this code.
75881         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75882         if available.
75883         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75884         (GETNDELIM2_MAXIMUM): New macro.
75885         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75886         instead of the old practice of delim2==0.  All callers changed.
75887         Return -1 on overflow, instead of returning junk.
75888         Do not set *linesize unless allocation succeeds.
75889         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75890         that we include sys/types.h.
75891         * lib/getnline.h: Likewise.
75892         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75893         (getndelim2): Reorder arguments.
75894         * lib/getnline.c (getnline, getndelim):
75895         Don't discard the NMAX argument.
75896         (getnline): Invoke getndelim, to avoid code duplication.
75897         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75898         of (size_t) -1 by callers of the getnline family.
75899
75900 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75903         Check for gettimeofday.
75904         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75905         Check for settimeofday, stime.
75906
75907 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * lib/nanosleep.c (suspended): Change its type from int to
75910         sig_atomic_t volatile.
75911         (first_call): Make it private to rpl_nanosleep, and have it
75912         be zero initially as that's a bit faster.
75913         (my_usleep): Round up fractional times instead of truncating them,
75914         as this is the usual meaning for 'sleep'.
75915
75916         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75917         doesn't work.
75918         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75919         (ENOSYS): Define if not defined.
75920         (settime): Fall back on stime if it exists and settimeofday fails.
75921         But don't bother with fallbacks if a method fails with errno == EPERM.
75922
75923 2004-05-11  Jim Meyering  <jim@meyering.net>
75924
75925         Prior to this change, the save_cwd caller required read access to the
75926         current directory on most systems (ones with the fchdir function).
75927
75928         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75929         fails, try write-only, and finally, resort to using xgetcwd.
75930
75931 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * lib/obstack.c, obstack.h: Import changes from libc.
75934
75935 2004-04-28  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75938         also implicitly appends .exe to executables.
75939         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75940         accepts Windows pathnames.
75941         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75942         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75943         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75944         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75945         Reported by Derek Robert Price <derek@ximbiot.com>.
75946
75947 2004-04-21  Karl Berry  <karl@gnu.org>
75948
75949         * config/srclist.txt (localcharset.c): break sync.
75950
75951 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75952
75953         * m4/host-os.m4: Add a copyright notice.
75954
75955 2004-04-20  Jim Meyering  <jim@meyering.net>
75956
75957         Change UTILS_ to gl_ in AC_DEFINE'd names.
75958         Change utils_- and jm_-prefixed variables, too.
75959         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75960         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75962
75963         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75964         Don't emit trailing blanks.
75965         Also rename jm_-prefixed variables to have gl_ prefix.
75966
75967         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75968         Also rename jm_-prefixed variables to have gl_ prefix.
75969
75970         * m4/jm-macros.m4: Reflect the renamings.
75971         * m4/prereq.m4: Likewise.
75972
75973 2004-04-20  Jim Meyering  <jim@meyering.net>
75974
75975         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75976         memory.
75977
75978 2004-04-20  Jim Meyering  <jim@meyering.net>
75979             Bruno Haible  <bruno@clisp.org>
75980
75981         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75982         memory when realloc fails.
75983
75984 2004-04-19  Jim Meyering  <jim@meyering.net>
75985
75986         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75987         now that readutmp.c may call `free (0)'.
75988
75989 2004-04-19  Bruno Haible  <bruno@clisp.org>
75990
75991         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75992         * m4/inttypes_h.m4: Likewise.
75993         * m4/stdint_h.m4: Likewise.
75994         * m4/intmax_t.m4: Likewise.
75995         * m4/uintmax_t.m4: Likewise.
75996
75997 2004-04-18  Jim Meyering  <jim@meyering.net>
75998
75999         * m4/prereq.m4: Don't forbid jm_ prefix.
76000
76001         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76002         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76003         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76004         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76005         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76006         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76007         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76008         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76009         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76010         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76011         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76012         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76013         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76014         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76015         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76016         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76017         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76018         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76019         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76020
76021 2004-04-18  Jim Meyering  <jim@meyering.net>
76022
76023         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76024         failure, don't leak memory and do call END_UTMP_ENT.
76025
76026 2004-04-16  Jim Meyering  <jim@meyering.net>
76027
76028         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76029         coreutils' stat program.
76030         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76031
76032 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76033
76034         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76035         C89.
76036         (CHAR_BIT): Remove, since we assume C89.
76037         Include <stdint.h> if available, as per current Autoconf CVS advice.
76038
76039 2004-03-31  Jim Meyering  <jim@meyering.net>
76040
76041         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76042         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76043         * m4/xalloc.m4: Likewise.
76044
76045 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76046
76047         Merge from coreutils.
76048
76049         * m4/inttostr.m4: New file.
76050         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76051         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76052         Require gl_CLOCK_TIME.
76053         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76054
76055 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76056
76057         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76058         not bool, to be more consistent with Unix conventions.
76059         Suggested by Bruno Haible.
76060
76061         Merge from coreutils.
76062
76063         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76064         * lib/umaxtostr.c: New files.
76065
76066         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76067         the usual <time.h> dance.
76068         (get_date): Change signature to support fractional time stamps.
76069         All callers changed.
76070         * lib/getdate.y: Include "getdate.h" first, as we can now
76071         assume C89 and don't need to worry about 'const'.
76072         Similarly, include "unlocked-io.h" near start, not in middle.
76073         Include <limits.h>.
76074         (textint.value): Use long int rather than int.
76075         (textint.digits): Use size_t rather than int.
76076         (BILLION, LOG10_BILLION): New constants.
76077         (parser_control): New member rel_ns.  Members day_ordinal,
76078         time_zone, month, day, hour, minutes, rel_year, rel_month,
76079         rel_day, rel_hour, rel_minutes, rel_seconds
76080         are now long int, not int.  Member seconds is now struct timespec,
76081         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76082         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76083         not int.
76084         (%union.intval): Now long int, not int.
76085         New member timespec.
76086         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76087         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76088         (spec): Now is a timespec or an item list.
76089         (timespec, items): New nonterminals.
76090         (time, rel, relunit, number, get_date):
76091         Add support for fractional seconds.
76092         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76093         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76094         (to_hour): First arg is now long int, not int.
76095         (to_year): Returns long int, not int.
76096         Don't treat year -70 like 70.
76097         (tm_diff): Returns long int, not int.
76098         (lookup_word): Use bool instead of int when appropriate.
76099         (yylex): Use size_t for count, not int.
76100         Detect overflow when parsing large integer constants.
76101         Add support for fractions.
76102         (get_date): Make pointers 'const' if possible.
76103         Use more-portable code to detect integer overflow.
76104         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76105         Don't use ctime; it's not reliable if the year has >4 digits.
76106
76107         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76108         This is for compatibility with BSD.
76109
76110         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76111         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76112         From coreutils' system.h.
76113
76114         * lib/userspec.c: Don't include "posixver.h".
76115         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76116         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76117         compatible extension.  Simplify code by removing a boolean int
76118         that was always nonzero if a string was nonnull.
76119
76120 2004-03-30  Jim Meyering  <jim@meyering.net>
76121
76122         Merge from coreutils.
76123
76124         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76125         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76126         on some systems one must include <grp.h> before it.
76127         Reported by Christian Krackowizer.
76128
76129 2004-03-30  Jim Meyering  <jim@meyering.net>
76130
76131         Merge from coreutils.
76132
76133         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76134
76135         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76136         an empty input stream.
76137
76138         * lib/readtokens.c: Include <stdbool.h>.
76139         (readtoken): Use `size_t' rather than int/long.
76140         All callers adjusted.
76141         Use `bool' rather than `int' where appropriate.
76142         Use memset rather than an explicit loop.
76143         Use x2nrealloc rather than xrealloc.
76144         Allow the use of `\0' as a delimiter.
76145         (readtokens): Likewise.
76146         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76147
76148 2004-03-30  Jim Meyering  <jim@meyering.net>
76149
76150         * m4/realloc.m4: Remove file, since now it does no more than
76151         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76152         the `configure.ac' section of module/realloc.
76153         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76154
76155 2004-03-30  Bruno Haible  <bruno@clisp.org>
76156
76157         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76158         nonnull.
76159
76160 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76161
76162         Merge changes to getloadavg.c from coreutils and Emacs.
76163
76164         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76165         Define to an expression, not to the empty string.
76166         Include cloexec.h and xalloc.h.
76167         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76168         Use set_cloexec_flag rather than rolling our own.
76169         * lib/cloexec.c, lib/cloexec.h: New files.
76170
76171 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76172
76173         * m4/cloexec.m4: New file.
76174
76175 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76176
76177         * lib/getopt.h: Sync with libc CVS.
76178
76179 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76180             Bruno Haible  <bruno@clisp.org>
76181
76182         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76183         mbswidth.
76184
76185 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76186             Bruno Haible  <bruno@clisp.org>
76187
76188         * lib/mbswidth.h: Include <wchar.h> only if
76189         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76190         <wchar.h>.
76191         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76192
76193 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76194
76195         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76196         Sync with libc CVS.
76197         * lib/getopt_int.h: New file, also synced from libc.
76198
76199 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76200
76201         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76202         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76203         Bring back getopt.c, getopt.h, getopt1.c.
76204
76205 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76206
76207         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76208         All uses changed.  Check for sa_sigaction member; this fixes
76209         a bug first reported by Jason Andrade in
76210         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76211
76212 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76213
76214         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76215         '#if' expressions.  Unlike the code it replaces, it does not
76216         depend on (defined _SC_PAGESIZE).  However, it does depend on
76217         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76218         first reported by Jason Andrade in
76219         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76220
76221 2004-02-25  Simon Josefsson  <jas@extundo.com>
76222
76223         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76224
76225 2004-02-25  Simon Josefsson  <jas@extundo.com>
76226
76227         * lib/strdup.h: New file.
76228         * lib/strdup.c: Include it.
76229         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76230         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76231
76232 2004-02-23  Karl Berry  <karl@gnu.org>
76233
76234         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76235         (from fencepost.gnu.org:/gd/gnuorg).
76236
76237 2004-02-23  Karl Berry  <karl@gnu.org>
76238
76239         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76240         * config/srclist.txt: add maintain/standards documents.
76241
76242 2004-02-18  Bruno Haible  <bruno@clisp.org>
76243
76244         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76245         Reported by Derek Robert Price <derek@ximbiot.com>.
76246
76247 2004-02-16  Karl Berry  <karl@gnu.org>
76248
76249         * config/mkinstalldirs, install-sh: update from automake.
76250
76251 2004-02-06  Karl Berry  <karl@gnu.org>
76252
76253         * m4/po.m4: update from gettext 0.14.1.
76254
76255 2004-02-06  Karl Berry  <karl@gnu.org>
76256
76257         * lib/config.charset: update from gettext 0.14.1.
76258
76259 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76260
76261         Add comments and code, prompted by suggestions from Bruno Haible
76262         for sh-quote.
76263         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76264         describing the enum quoting_style values.
76265         * lib/quotearg.c (quotearg_alloc): New function.
76266         (quotearg_buffer_restyled): Treat lone { and } as special.
76267         Treat = as special.  Work around bug with older shells
76268         that "see" a '\' that is really the 2nd byte of a multibyte char.
76269         Quote empty string with shell_quoting_style.
76270
76271 2004-02-03  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/pipe.m4: New file, from GNU gettext.
76274
76275 2004-02-03  Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/pipe.h: New file, from GNU gettext.
76278         * lib/pipe.c: New file, from GNU gettext.
76279
76280 2004-01-27  Bruno Haible  <bruno@clisp.org>
76281
76282         * m4/execute.m4: New file, from GNU gettext.
76283
76284 2004-01-27  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/execute.h: New file, from GNU gettext.
76287         * lib/execute.c: New file, from GNU gettext.
76288         * lib/w32spawn.h: New file, from GNU gettext.
76289
76290 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76291
76292         Merge from diffutils.
76293
76294         * lib/file-type.c (file_type): Add typed memory objects.
76295         * lib/file-type.h (S_TYPEISTMO): New macro.
76296
76297         * lib/c-stack.h (c_stack_action): Remove argv argument.
76298         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76299         (die): Don't calculate message unless segv_action returns.
76300         (get_stack_location, min_address_from_argv, max_address_from_argv,
76301         volatile stack_base, volatile_stack_size): Remove.
76302         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76303         that every segmentation violation is a stack overflow.  (Ouch!)
76304         See Debian bug 136249 (still outstanding) for more info about why
76305         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76306
76307 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76308
76309         Exit-status fix from coreutils.
76310
76311         Use exit_failure consistently in place of EXIT_FAILURE,
76312         so that program exit statuses are consistent on failure.
76313
76314         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76315         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76316         * lib/argmatch.h: Comment fix to match the above.
76317         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76318         Now a macro referring to exit_failure, instead of a separate
76319         variable.  Include "exitfail.h" to get it.
76320         * lib/xstrtol.h: Include "exitfail.h".
76321         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76322
76323         * lib/long-options.c (parse_long_options): Use prototype
76324         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76325         for clarity.
76326
76327 2004-01-21  Jim Meyering  <jim@meyering.net>
76328
76329         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76330         so as not to conflict with a different-sized __mktime_internal
76331         function in GNU libc.
76332         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76333         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76334
76335 2004-01-20  Karl Berry  <karl@gnu.org>
76336
76337         * config/config.guess: update from config.
76338
76339         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76340
76341 2004-01-20  Bruno Haible  <bruno@clisp.org>
76342
76343         Safer stack allocation.
76344         * lib/setenv.c: Include allocsa.h.
76345         (alloca): Remove fallback definition.
76346         (freea): Remove macro.
76347         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76348         instead of freea.
76349
76350 2004-01-20  Bruno Haible  <bruno@clisp.org>
76351
76352         * m4/eealloc.m4: New file, from GNU gettext.
76353
76354 2004-01-20  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/allocsa.m4: New file, from GNU gettext.
76357
76358 2004-01-20  Bruno Haible  <bruno@clisp.org>
76359
76360         * lib/xallocsa.h: New file, from GNU gettext.
76361         * lib/xallocsa.c: New file, from GNU gettext.
76362
76363 2004-01-20  Bruno Haible  <bruno@clisp.org>
76364
76365         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76366
76367 2004-01-20  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76370         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76371         specially.
76372
76373 2004-01-20  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76376         patch.
76377
76378 2004-01-20  Bruno Haible  <bruno@clisp.org>
76379
76380         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76381
76382 2004-01-20  Bruno Haible  <bruno@clisp.org>
76383
76384         * lib/eealloc.h: New file.
76385
76386 2004-01-20  Bruno Haible  <bruno@clisp.org>
76387
76388         * lib/binary-io.h: Avoid warnings on Cygwin.
76389
76390 2004-01-20  Bruno Haible  <bruno@clisp.org>
76391
76392         * lib/allocsa.h: New file, from GNU gettext.
76393         * lib/allocsa.c: New file, from GNU gettext.
76394
76395 2004-01-18  Karl Berry  <karl@gnu.org>
76396
76397         * doc/gpl.texi, doc/lgpl.texi: new files.
76398
76399 2004-01-18  Karl Berry  <karl@gnu.org>
76400
76401         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76402         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76403
76404 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76405
76406         Merge from coreutils.
76407
76408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76409         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76410         (gl_DEFAULT_POSIX2_VERSION): Move
76411         the documentation from 'configure' into 'config.hin',
76412         so that 'configure --help' isn't burdened by it and
76413         we don't have to worry about its formatting there.
76414         Reword the documentation so that it's more succinct
76415         and can be run together into a single paragraph.
76416         * m4/same.m4 (gl_SAME): Check for pathconf.
76417
76418 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76419
76420         Merge from coreutils.
76421
76422         * lib/posixver.c: Include posixver.h.
76423
76424         * lib/same.c: Include <stdbool.h>, <limits.h>.
76425         (_POSIX_NAME_MAX): Define if not defined.
76426         (MIN): New macro.
76427         (same_name): If file names are silently truncated, report
76428         that the file names are the same if they are the same after
76429         the silent truncation.
76430
76431         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76432         conversion function.
76433         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76434         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76435         longer needed.
76436
76437 2004-01-15  Jim Meyering  <jim@meyering.net>
76438
76439         Merge from coreutils.
76440
76441         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76442         if no library is required.
76443         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76444         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76445         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76446         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76447         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76448         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76449         value, $ac_cv_search_crypt, if it's "none required".
76450         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76451         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76452         not gl_FUNC_GETLOADAVG.
76453         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76454         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76455
76456 2004-01-15  Jim Meyering  <jim@meyering.net>
76457
76458         Merge from coreutils.
76459
76460         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76461         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76462         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76463
76464         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76465         optional configure-time default.
76466
76467         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76468
76469         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76470
76471 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76472
76473         Merge from coreutils.
76474
76475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76476         value, $ac_cv_search_nanosleep, if it's "none required".
76477
76478 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76479
76480         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76481         with like-named macro in fnmatch.c.
76482         (EXT): Use an internal constant instead.
76483
76484         Merge fnmatch patches from glibc.
76485         * lib/fnmatch.c (mbsinit): Remove define.
76486         Add libc_hidden_ver (__fnmatch, fnmatch).
76487         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76488         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76489
76490 2004-01-14  Karl Berry  <karl@gnu.org>
76491
76492         * config/install-sh: update from automake.
76493
76494 2004-01-13  Karl Berry  <karl@gnu.org>
76495
76496         * config/install-sh: update from automake.
76497
76498 2004-01-09  Karl Berry  <karl@gnu.org>
76499
76500         * config/install-sh: update from automake.
76501
76502 2004-01-05  Karl Berry  <karl@gnu.org>
76503
76504         * config/config.{sub,guess}: update from config.
76505
76506 2003-12-31  Karl Berry  <karl@gnu.org>
76507
76508         * config/depcomp: update from automake.
76509
76510 2003-12-14  Karl Berry  <karl@gnu.org>
76511
76512         * lib/config.charset: update from gettext-runtime.
76513
76514 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76515
76516         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76517         Bug reported by Alfred M. Szmidt.
76518
76519 2003-12-03  Bruno Haible  <bruno@clisp.org>
76520
76521         * m4/gettext.m4: Upgrade from gettext-0.13.
76522         * m4/po.m4: Upgrade from gettext-0.13.
76523         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76524         * m4/intmax.m4: New file, from gettext-0.13.
76525         * m4/printf-posix.m4: New file, from gettext-0.13.
76526
76527 2003-11-29  Karl Berry  <karl@gnu.org>
76528
76529         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76530
76531 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76532             Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/printf-parse.h: Don't include sys/types.h.
76535         (ARG_NONE): New macro.
76536         (char_directive): Change type of *arg_index fields to size_t.
76537         * lib/printf-parse.c: Don't include sys/types.h.
76538         (SSIZE_MAX): Remove macro.
76539         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76540         Remove unnecessary overflow check.
76541         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76542         fields.
76543
76544 2003-11-25  Bruno Haible  <bruno@clisp.org>
76545
76546         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76547
76548 2003-11-25  Bruno Haible  <bruno@clisp.org>
76549
76550         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76551         gt_TYPE_SSIZE_T.
76552
76553 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76554
76555         * modules/alloca: Remove dependency on xalloc.
76556
76557 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76558
76559         * lib/alloca.c: Remove dependency on xalloc module.
76560         (xalloc_die): Remove.
76561         (memory_full) [!defined emacs]: New macro.
76562         [!defined emacs]: Don't include xalloc.h.
76563         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76564         address arithmetic overflows.  Change datatypes a bit to avoid
76565         unnecessary casts.
76566
76567 2003-11-22  Jim Meyering  <jim@meyering.net>
76568
76569         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76570         s/size/size_t/.
76571
76572 2003-11-21  Karl Berry  <karl@gnu.org>
76573
76574         * config/config.{sub,guess}: update from config.
76575
76576 2003-11-18  Karl Berry  <karl@gnu.org>
76577
76578         * config/config.{sub,guess}: update from config.
76579
76580         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76581
76582 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76583
76584         * README: Mention that S+T cannot overflow if S is the size of
76585         an existing object and T is sufficiently small.
76586
76587 2003-11-17  Jim Meyering  <jim@meyering.net>
76588
76589         On systems without utime and without a utimes function capable of
76590         dealing with a NULL struct utimbuf* argument, this utime replacement
76591         could -- in unusual circumstances -- leak a file descriptor.
76592         * lib/utime.c: Include <unistd.h> and <errno.h>.
76593         (utime_null): Be sure to close `fd' and to preserve errno.
76594         Reported by Geoff Collyer via Arnold Robbins.
76595
76596 2003-11-17  Bruno Haible  <bruno@clisp.org>
76597
76598         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76599         (Depends-on): Add xsize.
76600
76601 2003-11-17  Bruno Haible  <bruno@clisp.org>
76602
76603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76604
76605 2003-11-17  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/vasnprintf.c (alloca): Remove fallback definition.
76608         (freea): Remove definition.
76609         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76610         Reported by Paul Eggert.
76611
76612 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76613             Bruno Haible  <bruno@clisp.org>
76614
76615         Protect against address arithmetic overflow.
76616         * lib/printf-args.h: Include stddef.h.
76617         (arguments): Change type of field 'count' to size_t.
76618         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76619         'unsigned int' where appropriate.
76620         * lib/printf-parse.h: Include sys/types.h.
76621         (char_directive): Change type of *arg_index fields to ssize_t.
76622         (char_directives): Change type of fields 'count', max_*_length to
76623         size_t.
76624         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76625         (SSIZE_MAX): Define fallback value.
76626         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76627         instead of 'int' where appropriate. Check a_allocated, d_allocated
76628         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76629         * lib/vasnprintf.c: Include xsize.h.
76630         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76631         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76632         overflow. Avoid wraparound when converting a width or precision from
76633         decimal to binary.
76634
76635 2003-11-16  Bruno Haible  <bruno@clisp.org>
76636
76637         Update from GNU gettext.
76638         * lib/printf-parse.c: Generalize to it can be compiled for wide
76639         strings.
76640         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76641         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76642         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76643         SNPRINTF): New macros.
76644         Don't include <alloca.h> if the file is used inside libintl.
76645         (local_wcslen): New function, for Solaris 2.5.1.
76646         (VASNPRINTF): Use it instead of wcslen.
76647
76648 2003-11-16  Bruno Haible  <bruno@clisp.org>
76649
76650         * lib/xsize.h (xmax): New function.
76651         (xsum, xsum3, xsum4): Declare as "pure" functions.
76652
76653 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76654
76655         * modules/xalloc (Files): Undo latest change, since xalloc.h
76656         no longer needs SIZE_MAX or PTRDIFF_MAX.
76657
76658 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76659
76660         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76661         gl_PTRDIFF_MAX.
76662
76663 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76664
76665         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76666         "return", to pacify some unknown compiler.  Problem reported
76667         by Joerg Schilling.
76668
76669 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76670
76671         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76672         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76673         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76674         heuristic is just as accurate as far as we know, and it removes a
76675         dependency on size_max.m4 and ptrdiff_max.m4.
76676
76677 2003-11-11  Bruno Haible  <bruno@clisp.org>
76678
76679         * modules/xsize (Files): Add m4/size_max.m4.
76680         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76681
76682 2003-11-11  Bruno Haible  <bruno@clisp.org>
76683
76684         * m4/size_max.m4: New file.
76685         * m4/ptrdiff_max.m4: New file.
76686         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76687         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76688         (gl_XALLOC): Invoke it.
76689
76690 2003-11-11  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76693         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76694         defined.
76695
76696 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76697
76698         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76699         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76700         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76701         From Bruno Haible.
76702         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76703         not (size_t) -1, since it's defined here.
76704
76705 2003-11-09  Karl Berry  <karl@gnu.org>
76706
76707         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76708
76709 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76710
76711         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76712         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76713         Reject sizes of exactly SIZE_MAX bytes.
76714         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76715         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76716
76717 2003-11-05  Bruno Haible  <bruno@clisp.org>
76718
76719         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76720         SIZE_MAX defined in <limits.h> on Solaris.
76721
76722 2003-11-04  Jim Meyering  <jim@meyering.net>
76723
76724         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76725         variable names, rather than @VAR@.
76726         * modules/poll: Likewise.
76727
76728 2003-11-04  Bruno Haible  <bruno@clisp.org>
76729
76730         * modules/xsize: New file.
76731         * modules/linebreak: Depend on xsize.
76732         * MODULES.html.sh (func_all_modules): Add xsize.
76733
76734 2003-11-04  Bruno Haible  <bruno@clisp.org>
76735
76736         * m4/xsize.m4: New file.
76737
76738 2003-11-04  Bruno Haible  <bruno@clisp.org>
76739
76740         * lib/xsize.h: New file.
76741         * lib/linebreak.c: Include xsize.h.
76742         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76743         argument for overflow.
76744         Suggested by Paul Eggert.
76745
76746 2003-11-03  Karl Berry  <karl@gnu.org>
76747
76748         * config/config.{guess,sub}: update from config.
76749
76750 2003-11-03  Jim Meyering  <jim@meyering.net>
76751
76752         * modules/userspec (lib_SOURCES): Add userspec.h.
76753         (Include): Add "userspec.h".
76754         Improve description.
76755
76756 2003-11-03  Jim Meyering  <jim@meyering.net>
76757
76758         * lib/userspec.c: Include "userspec.h".
76759         * lib/userspec.h: New file.
76760
76761 2003-11-03  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76764
76765 2003-11-03  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76768         available, to avoid (extremely rare) race condition.
76769         Suggested by Paul Eggert.
76770
76771 2003-11-02  Karl Berry  <karl@gnu.org>
76772
76773         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76774
76775 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76776
76777         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76778         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76779         (read_filesystem_list): Set and use me_type_malloced.
76780         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76781         whatever the type happens to be), for brevity and consistency.
76782         Check for size calculation overflow on Alphas running OSF/1.
76783
76784 2003-10-31  Jim Meyering  <jim@meyering.net>
76785
76786         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76787
76788         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76789
76790 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76791             Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76794         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76795
76796 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76799         netbsd*-gnu*.  Suggested by Robert Millan.
76800
76801 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76802
76803         * modules/group-member: Depend on stdbool.
76804
76805 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76806
76807         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76808
76809 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76810
76811         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76812         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76813         after the 'gnu' in these cases.  This fixes some bugs in the
76814         previous change, and is based on suggestions by Robert Millan.
76815
76816 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76817
76818         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76819         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76820         no longer needed.
76821         * lib/quotearg.c (quotearg_n_options): Use it.
76822         * lib/group-member.c: Include <stdbool.h>.
76823         (free_group_info): Arg is now const *; don't free arg.
76824         (get_group_info): Now returns bool and accepts struct group_info *,
76825         rather than returning a malloc'ed struct group_info *.
76826         All uses changed.  Check for overflow in internal size calculation.
76827
76828         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76829         rather than xmalloc/xrealloc.
76830         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76831         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76832         conformance bug: the old code used a pointer after freeing the
76833         storage that it addressed.
76834         * lib/hash.c (hash_initialize): Simplify the code by using
76835         xalloc_oversized rather than doing it by hand.
76836         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76837         the buffer preserved.  Use free and xmalloc instead.
76838         * lib/quotearg.c (quotearg_n_options): Likewise.
76839         Use a simpler test for size overflow.  Don't use xalloc_oversized
76840         because unsigned int might be wider than size_t (!); this suggests
76841         that we should switch from unsigned int to size_t for slot numbers.
76842
76843 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76844
76845         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76846         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76847         NetBSD kernels.  Requested by Richard Stallman.
76848
76849 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76850
76851         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76852         to allocate the returned structure.  Do not allocate a subarray,
76853         as x2nrealloc will do that.
76854         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76855         instead of xnrealloc.
76856         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76857
76858 2003-10-27  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/stdbool_.h: Better support for BeOS.
76861
76862 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76863
76864         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76865         now uses inline.
76866
76867 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76868
76869         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76870         callers that want to do their own size-overflow checking.  Include
76871         <stdbool.h>, since xalloc_oversized returns bool.
76872         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76873         to use xalloc_oversized.
76874
76875         Add two functions x2realloc, x2nrealloc, for programs that grow
76876         arrays dynamically by doubling their sizes.
76877         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76878         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76879         New functions.
76880
76881         Port to C99 semantics for 'inline' of external functions.
76882         Bug reported by Bruno Haible.
76883         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76884         with the old contents of xnmalloc.
76885         (xnmalloc, xmalloc): Use it.
76886         (xnrealloc_inline): New static inline function,
76887         with the old contents of xnrealloc.
76888         (xnrealloc, xrealloc): Use it.
76889
76890         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76891         that.
76892
76893 2003-10-26  Karl Berry  <karl@gnu.org>
76894
76895         * config/srclist.txt (COPYING.DOC): no longer available from
76896         /gd/gnuorg; don't know where the ultimate source is.
76897
76898 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76899
76900         Fix several address-calculation bugs in the hash modules,
76901         plus some minor code cleanup.
76902
76903         * lib/hash.h: Include <stdbool.h>, for bool.
76904         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76905         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76906         hash_get_n_entries, hash_get_max_bucket_length,
76907         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76908         hash_rehash): Use size_t rather than unsigned.
76909         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76910         hash_get_n_buckets_used, hash_get_n_entries,
76911         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76912         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76913         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76914         Likewise.
76915         (SIZE_MAX): Define if not defined.
76916         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76917         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76918         hash_print):
76919         Use const * when possible.
76920         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76921         (check_tuning): Fix bug: if tuning parameters were very close to
76922         0 or 1, rounding errors could have caused subscript violations.
76923         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76924         (hash_initialize): Add 'fail:' label
76925         to free table and return NULL, and use it to simplify code.
76926         Use calloc rather than clearing the storage ourself.
76927         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76928         buffer size calculations.
76929         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76930         Include <stddef.h>, for size_t.
76931         * lib/hash-pjw.c (hash_pjw): Likewise.
76932         Switch to method described by Bruno Haible.
76933         Include <limits.h>, for CHAR_BIT.
76934         (SIZE_BITS): New macro.
76935
76936 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76937
76938         * m4/getline.m4 (AM_FUNC_GETLINE):
76939         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76940         hosts.  Problem reported by Derek Robert Price in
76941         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76942         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76943         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76944
76945 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76946
76947         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76948         ceiling the allocation at NMAX bytes rather than silently
76949         discarding input bytes before NMAX is reached.  This makes
76950         a difference only if NMAX exceeds SIZE_MAX / 2.
76951
76952         * lib/obstack.c: Merge from glibc.
76953         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76954         Add libc_hidden_def (_obstack_newchunk).
76955         (_obstack_free) [! defined _LIBC]: Remove.
76956         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76957         a clone of the function body.
76958         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76959         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76960
76961         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76962         glibc.
76963         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76964         arg to memcpy.
76965
76966         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76967         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76968         Don't use lvalue casts, as GCC plans to remove support for them
76969         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76970         was also present in the non-GCC version, indicating that this
76971         code had always been buggy and had never been widely used.
76972         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76973         Use the fast variant of each macro, rather than copying the
76974         definiens of the fast variant; that way, we'll be more likely to
76975         catch future bugs in the fast variants.
76976
76977 2003-10-20  Bruno Haible  <bruno@clisp.org>
76978
76979         * modules/wait-process: New file.
76980         * MODULES.html.sh (func_all_modules): Add wait-process.
76981
76982 2003-10-20  Bruno Haible  <bruno@clisp.org>
76983
76984         * m4/wait-process.m4: New file.
76985
76986 2003-10-20  Bruno Haible  <bruno@clisp.org>
76987
76988         * lib/wait-process.h: New file, from GNU gettext.
76989         * lib/wait-process.c: New file, from GNU gettext.
76990
76991 2003-10-19  Jim Meyering  <jim@meyering.net>
76992
76993         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76994         HPUX 10.20.
76995
76996 2003-10-18  Karl Berry  <karl@gnu.org>
76997
76998         * config/config.guess: update from config.
76999
77000 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77001
77002         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77003         (getgroups): First arg is int, not size_t.
77004         Don't let 'free' mangle errno.
77005
77006 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77007
77008         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77009
77010 2003-10-16  Karl Berry  <karl@gnu.org>
77011
77012         * config/config.{guess,sub}: update from config.
77013
77014 2003-10-16  Jim Meyering  <jim@meyering.net>
77015
77016         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77017         memcpy.
77018
77019 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77020
77021         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77022         (SIZE_MAX): Remove.
77023         (new_exclude, add_exclude_file): Initial size no longer needs to
77024         be a power of 2.
77025         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77026         our own address arithmetic overflow checking.
77027
77028         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77029         (fnmatch): Do not alloca more than 2000 wide characters;
77030         instead, use malloc for large buffers.
77031         Check for address arithmetic overflow, and return -1
77032         with errno set to ENOMEM in that case.
77033         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77034         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77035         instead, return -1.  Check for address arithmetic overflow.
77036
77037 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77038
77039         Handle invalid suffixes and overflow independently, so that
77040         callers can treat them independently as needed.  Fix some bugs in
77041         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77042         suffix for a human-readable blocksize.  The major caller-visible
77043         change is the addition of a new
77044         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77045         that both overflow and suffix chars were found.
77046
77047         * lib/human.c (humblock): Don't check separately for invalid suffix
77048         char; that is xstrtoumax's job (now that its bug is fixed).
77049         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77050         INTMAX_MAX]: New macros.
77051         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77052         TYPE_MAXIMUM): New macros.
77053         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77054         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77055         if overflow occurs, as it's what __strtol does and it's more useful
77056         in practice.
77057         (__xstrtol): If __strtol reports some error other than ERANGE,
77058         reflect it to the caller as LONGINT_INVALID.  If it reports
77059         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77060         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77061         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77062         value.
77063         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77064         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77065         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77066         [defined UINTMAX_MAX]: New macros.
77067
77068 2003-10-14  Bruno Haible  <bruno@clisp.org>
77069
77070         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77071
77072 2003-10-14  Bruno Haible  <bruno@clisp.org>
77073
77074         * m4/sig_atomic_t: New file, from GNU gettext.
77075         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77076
77077 2003-10-14  Bruno Haible  <bruno@clisp.org>
77078
77079         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77080         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77081         Also use volatile where needed.
77082
77083 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77084
77085         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77086         Change maintainer from Bruno Haible to 'all'.
77087
77088 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77089
77090         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77091
77092 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77093
77094         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77095         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77096         and define in terms of the other primitives.
77097         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77098         (SIZE_MAX): Define if not already defined.
77099         (array_size_overflow): New function.
77100         (xalloc_die): Abort instead of exiting if 'error' returns.
77101         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77102         (xmalloc, xrealloc): Use them.
77103         (xcalloc): Check for address arithmetic overflow.
77104         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77105         a bit faster than strcpy.
77106
77107 2003-10-10  Simon Josefsson  <jas@extundo.com>
77108
77109         * modules/argp (Depends-on): Add restrict and strcase.
77110
77111 2003-10-10  Simon Josefsson  <jas@extundo.com>
77112
77113         * m4/argp.m4: Add AC_C_INLINE.
77114
77115 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77116
77117         Merge getpass from libc, plus a few fixes.
77118
77119         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77120         Include <stdbool.h>.
77121         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77122         __fsetlocking to empty.
77123         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77124         do include <bits/libc-lock.h>.
77125         Do not include <fcntl.h>; not needed.
77126         [_LIBC]: Include <wchar.h>.
77127         (NOTCANCEL_MODE): New macro.
77128         (flockfile, funlockfile) [_LIBC]: New macros.
77129         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77130         [!_LIBC]: New macros.
77131         (call_fclose): New function.
77132         (getpass): Use it.  Save tty stream separately; this simplifies the
77133         code and makes it more reliable if stdin happens to equal stdout.
77134         Invoke __fsetlocking on tty.
77135         Handle thread cancellation if needed.
77136         Namespace cleanup (use __tcgetattr, __getline).
77137         Use bool for Booleans.
77138         [USE_IN_LIBIO]: Handle wide streams.
77139         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77140         stream might go where.
77141
77142         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77143         doesn't have to include <stdio.h> before us.
77144         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77145         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77146         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77147         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77148         if not declared, so that we can use getpass.c code from libc without
77149         rewriting it.
77150         (flockfile, ftrylockfile, funlockfile): New macros.
77151
77152 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77153
77154         * modules/getpass: Depend on stdbool.
77155
77156 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77157
77158         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77159
77160 2003-10-07  Karl Berry  <karl@gnu.org>
77161
77162         * config/config.{guess,sub}: update from config.
77163
77164 2003-10-06  Jim Meyering  <jim@meyering.net>
77165             Bruno Haible  <bruno@clisp.org>
77166
77167         This lets translators provide better translations for the
77168         "Written by ..." part of --version output.
77169         * lib/version-etc.h: Include stdarg.h.
77170         (version_etc_copyright): Declare as readonly.
77171         (version_etc): Make this function variadic with a NULL-terminated list
77172         of author name strings.
77173         (version_etc_va): New declaration.
77174         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77175         (version_etc_copyright): Declare as readonly.
77176         (version_etc_va): New function. Provide a different translatable string
77177         for each possible number of authors < 10. Abbreviate when there are 10
77178         authors or more.
77179         (version_etc): Make this function variadic. Call version_etc_va.
77180         Suggestion from Gary V. Vaughan.
77181
77182         * lib/long-options.h (parse_long_options): Change prototype: the
77183         authors string is moved to the end and becomes variadic.
77184         * lib/long-options.c: Include stdarg.h.
77185         (parse_long_options): Make this function variadic, too.
77186         Call version_etc_va, not version_etc.
77187
77188 2003-10-06  Bruno Haible  <bruno@clisp.org>
77189
77190         * modules/version-etc-2: Remove file.
77191         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77192
77193 2003-10-06  Bruno Haible  <bruno@clisp.org>
77194
77195         * modules/fatal-signal: New file.
77196         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77197
77198 2003-10-06  Bruno Haible  <bruno@clisp.org>
77199
77200         * m4/fatal-signal.m4: New file.
77201         * m4/signalblocking.m4: New file, from GNU gettext.
77202
77203 2003-10-06  Bruno Haible  <bruno@clisp.org>
77204
77205         * lib/version-etc-2.h: Remove file.
77206         * lib/version-etc-2.c: Remove file.
77207
77208 2003-10-06  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/fatal-signal.h: New file, from GNU gettext.
77211         * lib/fatal-signal.c: New file, from GNU gettext.
77212
77213 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77214
77215         * README: Rework advice for preventing empty .o files.
77216         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77217         not <sys/types.h>.
77218
77219 2003-10-04  Karl Berry  <karl@gnu.org>
77220
77221         * lib/argp*: update from libc.
77222
77223 2003-10-04  Karl Berry  <karl@gnu.org>
77224
77225         * config/config.{guess,sub}: update from config.
77226
77227 2003-10-02  Bruno Haible  <bruno@clisp.org>
77228
77229         * modules/lchown (Include): Add lchown.h.
77230         * modules/time_r (Include): Use "..." syntax.
77231         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77232
77233 2003-10-01  Simon Josefsson  <jas@extundo.com>
77234
77235         * MODULES.html.sh (func_all_modules): Move gethostname from section
77236         'based on' to section 'lacking' POSIX:2001.
77237
77238 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77239
77240         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77241         to output mode on the same stream.
77242
77243 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77244
77245         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77246         Fix arg typo in previous patch.
77247
77248 2003-09-28  Jim Meyering  <jim@meyering.net>
77249
77250         * lib/error.c: Correct cpp indentation.
77251
77252 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77253
77254         * modules/free: New file.
77255
77256 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77257
77258         * m4/free.m4: New file.
77259
77260 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77261
77262         * lib/minmax.h (MIN, MAX)
77263         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77264         Omit the special code that used __typeof__, since we worry that
77265         it could be more trouble than it's worth.  See:
77266         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77267         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77268
77269         * lib/free.c: New file.
77270
77271 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77272
77273         Trivial fixes to Makefile.am parts of module listings.
77274         * modules/strstr: Append strstr.h to lib_SOURCES.
77275         * modules/strcase: Likewise, for strcase.h.
77276
77277 2003-09-27  Karl Berry  <karl@gnu.org>
77278
77279         * config/mkinstalldirs: update from automake.
77280
77281 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77282
77283         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77284         (error_tail): Do not loop, reallocating temporary buffer, since
77285         the output cannot contain more wide characters than the input
77286         contains bytes, the size must be big enough already.  This avoids
77287         one potential size overflow calculation.  Check for size overflow
77288         when calculating temporary buffer size.  Free temporary buffer
77289         when done, if it was allocated with malloc; this plugs a memory
77290         leak.  Remove casts from void * to pointers, that are no longer
77291         needed now that we're assuming C89 or better.
77292
77293         Merge error changes from glibc.
77294
77295         * lib/error.c, error.h: Update copyright notice header to match glibc.
77296         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77297         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77298         Disable cancellation while printing error.
77299         * lib/error.h: Prepend __ to parameter names.
77300
77301 2003-09-26  Jim Meyering  <jim@meyering.net>
77302
77303         * lib/error.c (error_tail): Move some declarations
77304         into inner scope where the local variables are used.
77305
77306 2003-09-26  Bruno Haible  <bruno@clisp.org>
77307
77308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77309         stpncpy().
77310         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77311
77312 2003-09-26  Bruno Haible  <bruno@clisp.org>
77313
77314         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77315         (stpncpy): Define as alias for gnu_stpncpy.
77316         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77317
77318 2003-09-25  Simon Josefsson  <jas@extundo.com>
77319
77320         * lib/xgetdomainname.h: New file.
77321         * lib/xgetdomainname.c: New file.
77322
77323 2003-09-25  Simon Josefsson  <jas@extundo.com>
77324             Bruno Haible  <bruno@clisp.org>
77325
77326         * modules/getdomainname: New file.
77327         * modules/xgetdomainname: New file.
77328         * MODULES.html.sh (func_all_modules): Add getdomainname,
77329         xgetdomainname.
77330
77331 2003-09-25  Simon Josefsson  <jas@extundo.com>
77332             Bruno Haible  <bruno@clisp.org>
77333
77334         * m4/getdomainname.m4: New file.
77335
77336 2003-09-25  Simon Josefsson  <jas@extundo.com>
77337             Bruno Haible  <bruno@clisp.org>
77338
77339         * lib/getdomainname.h: New file.
77340         * lib/getdomainname.c: New file.
77341
77342 2003-09-25  Karl Berry  <karl@gnu.org>
77343
77344         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77345
77346 2003-09-25  Karl Berry  <karl@gnu.org>
77347
77348         * config/install-sh: update from automake.
77349
77350 2003-09-25  Bruno Haible  <bruno@clisp.org>
77351
77352         * modules/version-etc-2: New file, from modules/version-etc with
77353         modifications.
77354         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77355
77356 2003-09-25  Bruno Haible  <bruno@clisp.org>
77357
77358         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77359         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77360
77361 2003-09-24  Simon Josefsson  <jas@extundo.com>
77362
77363         * modules/xgethostname: Add xgethostname.h.
77364
77365 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77366
77367         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77368         the buffer associated with the argument.  Bug reported by
77369         Simon Josefsson.
77370
77371 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77372
77373         * README: Document assumptions that 'int' is at least 32 bits
77374         wide, that integer arithmetic is 2's complement without overflow,
77375         that there are no holes in integer values, that adding sizes of
77376         two nonoverlapping objects can't overflow, and that all-bits-zero
77377         yields scalar zero.  Fix spelling and capitalization typos.
77378
77379 2003-09-19  Karl Berry  <karl@gnu.org>
77380
77381         * lib/argp.h: update from libc.
77382
77383 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77384
77385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77386         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77387         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77388
77389 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77390
77391         * gnulib-tool: Use "test -h", not "test -L", for portability
77392         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77393         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77394         (sed_extract_prog): Issue s commands one-by-one, rather than
77395         using \| in one s command.
77396
77397 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77398
77399         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77400         input error, instead of returning NULL the next time we are called
77401         (and therefore losing track of errno).
77402
77403 2003-09-16  Bruno Haible  <bruno@clisp.org>
77404
77405         * gnulib-tool (func_create_testdir): Warn about duplicated
77406         dependencies.
77407
77408 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77409
77410         * modules/argmatch, modules/fatal, modules/obstack,
77411         modules/xalloc, modules/xgethostname: Sort dependencies by
77412         importance, not alphabetically.
77413
77414 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77415
77416         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77417         fails, so that the caller gets the proper errno.
77418
77419         * lib/readutmp.c (read_utmp): Likewise.
77420         Check for fstat error.  Close stream and free storage
77421         when failing.
77422
77423 2003-09-14  Karl Berry  <karl@gnu.org>
77424
77425         * config/srclist.txt (strdup.c): disable for c89 changes.
77426
77427 2003-09-14  Jim Meyering  <jim@meyering.net>
77428
77429         * lib/getloadavg.c: Correct cpp indentation.
77430         * lib/strdup.c: Likewise.
77431         * lib/vasnprintf.c: Likewise.
77432
77433 2003-09-14  Bruno Haible  <bruno@clisp.org>
77434
77435         * modules/fwriteerror: New file.
77436         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77437
77438 2003-09-14  Bruno Haible  <bruno@clisp.org>
77439
77440         * lib/fwriteerror.h: New file.
77441         * lib/fwriteerror.c: New file.
77442
77443 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77444
77445         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77446         modules/xgethostname, modules/xalloc: Depend on exit.
77447
77448 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77449
77450         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77451
77452         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77453         and AC_MINIX, too, so that their extensions are available.
77454
77455         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77456         This macro has been superseded by gl_BACKUPFILE.
77457
77458         More patches to assume C89 or better.
77459
77460         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77461
77462         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77463         unconditionally.
77464         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77465         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77466         Include <string.h>, <stdlib.h> unconditionally.
77467         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77468         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77469         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77470         headers or for string.h.
77471         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77472         or strtoul.
77473
77474         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77475         headers.
77476         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77477         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77478         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77479         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77481         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77482         memcpy, memset.
77483         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77484         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77486         strtol.
77487         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77488         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77490         strtoul.
77491
77492 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77493
77494         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77495         * lib/obstack.c [!defined _LIBC]: Likewise.
77496         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77497         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77498         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77499
77500         More changes to assume C89 or better.
77501
77502         * lib/error.c (error_tail): Assume vprintf.
77503
77504         * lib/argmatch.c (getenv): Remove decl.
77505         * lib/progreloc.c (get_full_program_name): Define via prototype.
77506         * lib/setenv.c (clearenv): Likewise.
77507         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77508         needed.
77509         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77510         (malloc, memcpy): Remove decls.
77511         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77512         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77513         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77514         (memcpy): Remove macro.
77515         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77516         (__P): Remove.  All uses removed.
77517         (PTR): Remove.  All uses changed to void *.
77518         (CHAR_BIT, NULL): Remove.
77519         (spaces, zeros, memset_space, memset_zero)
77520         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77521         Remove.
77522         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77523         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77524         Define with prototype.
77525         Remove now-unnecessary prototype decl.
77526         (extra_args_spec): Assume ANSI C.  All uses changed.
77527         (extra_args_spec_iso): Remove.
77528         (my_strftime, emacs_strftimeu): Define via prototype.
77529         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77530         unconditionally.
77531         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77532         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77533         (strtoul, strtol): Remove decls.
77534         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77535         LONG_MAX): Remove.
77536         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77537         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77538         (LOCALE_PARAM_PROTO): New macro.
77539         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77540         (INTERNAL (strtol), strtol): Define with a prototype.
77541         (PARAMS): Remove.  All uses removed.
77542         * lib/tempname.c: Include <string.h> unconditionally.
77543         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77544         * lib/xgethostname.c (main): Define with a prototype.
77545         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77546         Include <stdlib.h> unconditionally.
77547         (calloc, malloc, realloc, free): Remove decls.
77548         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77549         Include <stdlib.h> unconditionally.  Sort include file names.
77550         (strtod): Remove.
77551         (xstrtod): Define with a prototype.
77552         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77553         (strtol, strtoul): Remove decls.
77554
77555 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77556
77557         More patches to assume C89 or better.
77558         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77559         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77560         string.h, memchr, STDC_HEADERS.
77561
77562 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77563
77564         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77565         Include <stdlib.h>, <string.h> unconditionally.
77566         Remove now-unnecessary cast to char *.
77567         * lib/strnlen.c: Include <string.h> unconditionally.
77568         * lib/yesno.c (yesno): Define with a prototype.
77569
77570 2003-09-11  Bruno Haible  <bruno@clisp.org>
77571
77572         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77573
77574 2003-09-10  Jim Meyering  <jim@meyering.net>
77575
77576         * lib/error.c: Correct indentation of cpp directives.
77577
77578 2003-09-10  Bruno Haible  <bruno@clisp.org>
77579
77580         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77581         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77582         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77583         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77584         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77585         <stdlib.h> and <string.h> checks.
77586         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77587         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77588
77589 2003-09-10  Bruno Haible  <bruno@clisp.org>
77590
77591         * lib/strcspn.c: Include <string.h> unconditionally.
77592         * lib/strpbrk.c: Include <string.h> unconditionally.
77593         * lib/strstr.c: Include <string.h> unconditionally.
77594         * lib/unicodeio.c: Include <string.h> unconditionally.
77595         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77596         * lib/unsetenv.c: Likewise.
77597         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77598         * lib/yesno.c: Include <stdlib.h> unconditionally.
77599         (rpmatch): Add prototype.
77600
77601 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77602
77603         More patches to assume C89 or better.
77604         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77605         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77606         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77607         or for string.h.
77608         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77609         stdlib.h.
77610         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77611         C headers.
77612         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77613         string.h.
77614         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77615         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77616         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77617         or for string.h.
77618         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77619         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77620         C headers.
77621         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77622         memcpy.
77623         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77624         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77625         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77626         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77627         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77628         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77629         string.h, free.
77630         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77631         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77632         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77633         C headers, or for string.h.
77634         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77635         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77636         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77637         headers, memory.h, stdlib.h, string.h, strings.h.
77638         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77639         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77640         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77641         strchr.
77642         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77643         headers, memory.h, string.h.
77644         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77645         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77646         free.
77647         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77648         headers.
77649         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77650         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77651         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77652         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77653         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77654
77655 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77656
77657         More K&R removal.
77658
77659         * lib/acosl.c (main): Use a prototype.
77660         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77661         tanl.c: Likewise.
77662
77663         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77664
77665         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77666         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77667         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77668         with a prototype.
77669         * lib/getopt.c (const): Remove macro.
77670         Include <string.h> unconditionally.
77671         (my_index): Remove; all uses changed to strchr.
77672         (strlen): Remove decl.
77673         (exchange): Remove forward decl; no longer needed.
77674         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77675         Define with prototype.
77676         * lib/getopt1.c (const): Remove macro.
77677         (getopt_long, getopt_long_only, main): Define with prototype.
77678
77679         * lib/getugroups.c: Include <string.h> unconditionally.
77680
77681         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77682         (getusershell, setusershell, endusershell, readname, main):
77683         Define with prototypes.
77684
77685         * lib/group-member.c: Include group-member.h first.
77686         Include <stdlib.h> unconditionally.
77687
77688         * lib/hard-locale.c: Include hard-locale.h first.
77689         Include <stdlib.h>, <string.h> unconditionally.
77690
77691         * lib/hash.c (free, malloc): Remove decls.
77692         Include <stdlib.h> unconditionally.
77693
77694         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77695         (getenv): Do not declare.
77696
77697         * lib/idcache.c: Include <string.h> unconditionally.
77698
77699         * lib/long-options.c: Include long-options.h first, to test interface.
77700         Include <stdlib.h> unconditionally.
77701
77702         * lib/makepath.c: Include makepath.h first, to test interface.
77703         Include <stdlib.h> and <string.h> unconditionally.
77704
77705         * lib/linebuffer.c: Include <stdlib.h>.
77706         (free): Remove decl.
77707
77708         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77709         stddef.h. rpl_malloc returns void *, not char *.
77710         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77711         prototype.
77712
77713         * lib/md5.h: Include <limits.h> unconditionally.
77714         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77715         (__P): Remove; all uses removed.
77716         * lib/md5.c: Include "md5.h" first.
77717         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77718         md5_buffer, md5_process_bytes, md5_process_block):
77719         Define with prototypes.
77720         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77721         * lib/sha.c: Include "sha.h" first.
77722         Include <stdlib.h>, <string.h> unconditionally.
77723
77724         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77725         * lib/memcmp.c (__ptr_t): Likewise.
77726         * lib/memrchr.c (__ptr_t): Likewise.
77727         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77728         Include <string.h> unconditionally.
77729         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77730         * lib/memchr.c: Include <stdlib.h> unconditionally.
77731         * lib/memchr.c (LONG_MAX): Remove.
77732         * lib/memrchr.c (LONG_MAX): Likewise.
77733         * lib/memchr.c (__memchr): Define via a prototype.
77734         * lib/memrchr.c (__memrchr): Likewise.
77735         * lib/memcmp.c (__P): Remove, and remove all uses.
77736         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77737         Remove forward decls; no longer needed.
77738         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77739         Use types required by C89 in prototype.
77740
77741         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77742         * lib/savedir.c: Likewise.
77743         * lib/mkdir.c (free): Remove decl.
77744         * lib/rmdir.c (rmdir): Define with a prototype.
77745         * lib/savedir.c: Include savedir.h first, to test interface.
77746
77747         * lib/mktime.c (STDC_HEADERS): Remove.
77748         Include <stdlib.h>, <string.h> unconditionally.
77749
77750         * lib/modechange.c: Include <stdlib.h> unconditionally.
77751         (malloc): Remove decl.
77752
77753         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77754         (free): Remove decl.
77755
77756         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77757         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77758         (This type really should be intptr_t, but that's a C99ism.)
77759         (_obstack_memcpy): Remove: all uses changed to memcpy.
77760         Include <string.h> unconditionally.
77761         (struct obstack): Assume __STDC__ for types of members
77762         chunkfun, freefun, extra_arg.
77763         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77764         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77765         obstack_begin, obstack_specify_allocation,
77766         obstack_specify_allocation_with_arg, obstack_chunkfun,
77767         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77768         Remove unprototyped decls and the macros that use them.
77769         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77770         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77771         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77772         (defined __STDC__ && __STDC__)]:
77773         Remove nonprototyped code.
77774         Include <stdlib.h> unconditionally.
77775         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77776         _obstack_allocated_p, _obstack_free, obstack_free,
77777         _obstack_memory_used, print_and_abort):
77778         Define using prototypes.
77779         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77780         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77781         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77782         obstack_next_free, obstack_object_size, obstack_room) [0]:
77783         Remove unused, unprototyped code.
77784
77785         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77786
77787         * lib/physmem.c (physmem_total, physmem_available, main): Define
77788         with prototypes.
77789
77790         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77791         (main): Define with a prototype.
77792
77793         * lib/posixver.c (getenv): Remove decl.
77794
77795         * lib/putenv.c (malloc): Returns void *, not char *.
77796         Include <string.h> unconditionally.
77797         (strchr, memcpy, NULL): Do not define.
77798
77799         * lib/readtokens.c: Include readtokens.h first, to test interface.
77800         Include <stdlib.h>, <string.h> unconditionally.
77801         (init_tokenbuffer): Define with a prototype.
77802
77803         * lib/regex.c (PARAMS): Remove.  All uses removed.
77804         All uses of _RE_ARGS removed, too.
77805         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77806         unconditionally.
77807         (bzero): Assume memset exists.
77808         (memcmp, memcpy, NULL): Remove.
77809         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77810         char, or assignments to local vars of type signed char.
77811         (init_syntax_once, PREFIX(extract_number_and_incr),
77812         PREFIX(print_partial_compiled_pattern),
77813         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77814         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77815         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77816         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77817         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77818         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77819         wcs_compile_range, byte_compile_range, truncate_wchar,
77820         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77821         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77822         count_mbs_length, wcs_re_match_2_internal,
77823         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77824         PREFIX(alt_match_null_string_p),
77825         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77826         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77827         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77828         now-unnecessary declaration, if any.
77829         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77830         regcomp, regexec):
77831         Remove now-unnecessary casts among pointer types.
77832         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77833
77834         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77835         (free): Remove decl.
77836
77837         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77838
77839         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77840         (free): Remove decl.
77841
77842         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77843         * lib/xgetcwd.c: Likewise.
77844
77845         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77846         (free): Remove decl.
77847
77848         * lib/strchrnul.c (strchrnul): Define with a prototype.
77849         Fix bug: c_in was not converted to char before searching.
77850
77851         The following changes are not K&R related:
77852
77853         * lib/group-member.h: Include <sys/types.h>, so that this file is
77854         self-contained.
77855         * lib/makepath.h: Likewise.
77856
77857         * lib/getusershell.c (readname, default_index, line_size, readname):
77858         Use size_t, not int, for sizes.
77859         (readname): If the size overflows, report an error instead of
77860         looping forever.
77861
77862 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77863
77864         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77865         libc.
77866
77867 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77868
77869         * README: New section: portability guidelines.
77870
77871 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77872
77873         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77874         C89 spec.
77875
77876 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77877
77878         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77879
77880 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77881
77882         Assume C89 or better; remove K&R cruft.
77883         A few of these changes were first proposed by Derek Robert Price
77884         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77885
77886         * lib/addext.c: Include <string.h> unconditionally.
77887         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77888         Don't declare getenv or malloc.
77889
77890         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77891         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77892         (NULL): Remove.
77893         (find_stack_direction, alloca): Use prototypes.
77894
77895         * lib/atexit.c (atexit): Define using a prototype.
77896
77897         * lib/basename.c, dirname.c, stripslash.c:
77898         Include <string.h> unconditionally.
77899
77900         * lib/bcopy.c: Include <stddef.h>.
77901         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77902
77903         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77904
77905         * lib/error.h (error, error_at_line, error_print_progname)
77906         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77907         * lib/error.c: Include error.h first, to check interface.
77908         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77909         (VA_START): Remove; all uses changeed to va_start.
77910         (exit, strerror): Remove decls.
77911         (error_print_progname): Prototype uncondionally.
77912         Don't include <errno.h>; no longer needed.
77913         (private_strerror): Remove.
77914         (error_tail): Always define.
77915         (error, error_at_line): Assume C89 or better; always use prototypes.
77916         * lib/fatal.c: Include "fatal.h" first, to test interface.
77917         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77918         (VA_START): Remove; all uses changed to va_start.
77919         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77920         this case.
77921         (exit): Remove decl.
77922         (fatal): Prototype unconditionally.  Assume va_start works.
77923         Abort at end, to pacify gcc.
77924
77925         * lib/euidaccess.c (main): Define with a prototype.
77926
77927         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77928
77929         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77930
77931         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77932         prototypes.
77933         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77934         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77935         (getenv): Remove decl.
77936         (fnmatch): Define using a prototype.
77937         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77938         (FCT): Define using a prototype.
77939
77940         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77941
77942         * lib/gethostname.c: Include <stddef.h>.
77943         (gethostname): Define with prototype.  Length is size_t, not int.
77944
77945 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77946
77947         Assume C89 or better; remove K&R cruft.
77948         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77950         string.h, getenv, malloc.
77951         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77952         headers.
77953         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77954         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77955         do not check for strerror.
77956         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77957         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77958         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77959         do not check for doprnt or vprintf.
77960         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77961         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77962
77963 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77964
77965         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77966         getversion.c should have been removed then, but was accidentally
77967         preserved.
77968
77969         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77970         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77971
77972 2003-09-08  Karl Berry  <karl@gnu.org>
77973
77974         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77975                 config, forget about prep.
77976
77977         * config/depcomp, missing: update from automake.
77978
77979 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77980
77981         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77983
77984 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77985
77986         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77987         copy_tm_result.  Bug reported by Simon Josefsson in
77988         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77989
77990 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77991
77992         * m4/time_r.m4: New file.
77993         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77994         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77995         is. Check for timegm declaration.
77996         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77997         Do not check for gmtime_r.
77998         Replace mktime if __mktime_internal does not exist and if mktime
77999         hasn't been replaced already.
78000
78001 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78002
78003         * lib/time_r.c, lib/time_r.h: New files.
78004
78005         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78006         __localtime_r.
78007         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78008         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78009
78010         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78011         __gmtime_r.
78012         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78013         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78014         Include <time_r.h>.
78015
78016         * lib/timegm.c: Switch to glibc implementation, with the following
78017         changes:
78018         [defined HAVE_CONFIG_H]: Include <config.h>.
78019         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78020         (__mktime_internal) [!defined _LIBC]: New decl.
78021         (__gmtime_r) [!defined _LIBC]: New macro and function.
78022         (timegm): Use a prototype, since gnulib assumes C89.
78023         Do not bother declaring tmp to be const, as it's not really usefu.
78024         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78025         (timegm): Declare only if HAVE_DECL_TIMEGM.
78026
78027 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78028
78029         * MODULES.html.sh (func_all_modules): Add time_r.
78030         * modules/time_r: New file.
78031         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78032         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78033
78034 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78035
78036         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78037         Bug reported by Lute Kamstra in
78038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78039
78040         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78041         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78042         course with correspondingly smaller numbers for tomorrow and
78043         yesterday.  From Tadayoshi Funaba.  Originally installed into
78044         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78045         coreutils merge?).
78046
78047 2003-08-31  Simon Josefsson  <jas@extundo.com>
78048
78049         * modules/timegm: New file.
78050         * MODULES.html.sh (func_all_modules): Add timegm.
78051
78052 2003-08-31  Simon Josefsson  <jas@extundo.com>
78053
78054         * m4/timegm.m4: New file.
78055
78056 2003-08-31  Simon Josefsson  <jas@extundo.com>
78057
78058         * lib/timegm.h: New file.
78059         * lib/timegm.c: New file.  Based on
78060         wget-1.8.2/src/http.c:mktime_from_utc.
78061
78062 2003-08-31  Karl Berry  <karl@gnu.org>
78063
78064         * lib/argp.h: update from libc.
78065
78066 2003-08-28  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78069         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78070         followed by '#define fnmatch fnmatch_posix' gives an error.
78071
78072 2003-08-28  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78075         warning on QNX, which defines O_BINARY to 000000.
78076
78077 2003-08-27  Jim Meyering  <jim@meyering.net>
78078
78079         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78080         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78081         would fail after 32.  Reported by Danny Levinson.  Details here:
78082         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78083
78084 2003-08-24  Bruno Haible  <bruno@clisp.org>
78085
78086         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78087         MSVC7 <stdio.h> is included later.
78088
78089 2003-08-22  Simon Josefsson  <jas@extundo.com>
78090
78091         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78092
78093 2003-08-20  Karl Berry  <karl@gnu.org>
78094
78095         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78096
78097 2003-08-20  Bruno Haible  <bruno@clisp.org>
78098
78099         * modules/progname: New file.
78100         * MODULES.html.sh (func_all_modules): Add progname.
78101
78102 2003-08-20  Bruno Haible  <bruno@clisp.org>
78103
78104         * lib/progname.h: New file, from GNU gettext.
78105         * lib/progname.c: New file, from GNU gettext.
78106         * lib/progreloc.c: New file, from GNU gettext.
78107
78108 2003-08-19  Jim Meyering  <jim@meyering.net>
78109
78110         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78111         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78112
78113 2003-08-19  Bruno Haible  <bruno@clisp.org>
78114
78115         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78116         more.
78117
78118 2003-08-19  Bruno Haible  <bruno@clisp.org>
78119
78120         * lib/xstrdup.c: Assume <string.h> exists.
78121
78122 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78123
78124         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78125         in makefile rules.
78126
78127 2003-08-18  Jim Meyering  <jim@meyering.net>
78128
78129         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78130         * m4/lib-ld.m4: Likewise.
78131
78132 2003-08-18  Jim Meyering  <jim@meyering.net>
78133
78134         * lib/setenv.h: Indent nested cpp directive.
78135         * lib/vasnprintf.c: Remove trailing blanks.
78136
78137 2003-08-17  Simon Josefsson  <jas@extundo.com>
78138
78139         * modules/xstrndup: New file.
78140         * MODULES.html.sh (func_all_modules): Add xstrndup.
78141
78142 2003-08-17  Simon Josefsson  <jas@extundo.com>
78143
78144         * modules/argp: Fix autoconf macro name. Add more dependencies.
78145
78146 2003-08-17  Simon Josefsson  <jas@extundo.com>
78147
78148         * m4/xstrndup.m4: New file.
78149
78150 2003-08-17  Simon Josefsson  <jas@extundo.com>
78151
78152         * m4/argp.m4: New file.
78153
78154 2003-08-17  Simon Josefsson  <jas@extundo.com>
78155             Bruno Haible  <bruno@clisp.org>
78156
78157         * lib/xstrndup.h: New file.
78158         * lib/xstrndup.c: New file.
78159
78160 2003-08-17  Bruno Haible  <bruno@clisp.org>
78161
78162         * modules/strndup (Files, Include): Add lib/strndup.h.
78163
78164 2003-08-17  Bruno Haible  <bruno@clisp.org>
78165
78166         * modules/euidaccess (Files): Add lib/euidaccess.h.
78167
78168 2003-08-17  Bruno Haible  <bruno@clisp.org>
78169
78170         * lib/strndup.h: New file.
78171
78172 2003-08-17  Bruno Haible  <bruno@clisp.org>
78173
78174         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78175         like AC_GNU_SOURCE.
78176         * modules/extensions (configure.ac): Comment out the invocation of
78177         gl_USE_SYSTEM_EXTENSIONS.
78178
78179 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78180
78181         Merges from coreutils, etc.
78182         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78183         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78184         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78185         fixing a typo.
78186         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78187         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78188
78189 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78190
78191         Document merge from coreutils.
78192         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78193         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78194         * modules/utime: Add m4/utimes-null.m4.
78195
78196 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78197
78198         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78199         space, undoing this 2003-08-12 change:
78200         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78201
78202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78203
78204         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78205         strtoul.c from libc, undoing this 2003-08-12 change:
78206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78207
78208 2003-08-16  Jim Meyering  <jim@meyering.net>
78209
78210         Merges from coreutils.
78211         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78212         prefix.  Adjust cache variables similarly.  Create 500 rather than
78213         just 300 files, to exercise bug on Darwin6.5, too.
78214         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78215         $missing_dir.
78216         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78217         AM_SYS_POSIX_TERMIOS.
78218         Reported by mkc@mathdogs.com.
78219         Also change use of $am_cv_sys_posix_termios
78220         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78221         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78222         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78223         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78224         in /proc/mounts until it finds one with matching device number.  This
78225         is unnecessary when the FILE argument *is* a mount point.  No stat call
78226         is necessary in that case.  So, disable the statvfs-testing code on
78227         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78228         as RedHat bug# 84846.
78229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78230         to 1MB, so as not to render systems with no stack size limit (e.g.,
78231         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78232         Include <unistd.h>.  On some systems,
78233         it is required for the definition of _SC_PAGESIZE.
78234
78235 2003-08-16  Jim Meyering  <jim@meyering.net>
78236
78237         Merge from coreutils.
78238         * lib/xstrtoimax.c: #else #if -> #elif.
78239         * lib/xstrtoumax.c: Likewise.
78240
78241 2003-08-16  Jim Meyering  <jim@meyering.net>
78242
78243         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78244         * m4/utimes.m4: Removed.
78245         * m4/utimes-null.m4: Renamed from utimes.m4.
78246
78247         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78248         to 1MB, so as not to render systems with no stack size limit (e.g.,
78249         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78250         Include <unistd.h>.  On some systems,
78251         it is required for the definition of _SC_PAGESIZE.
78252
78253 2003-08-16  Jim Meyering  <jim@meyering.net>
78254         and Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         Merges from coreutils, etc.
78257
78258         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78259         using the latest version from cvs.  This avoids problems with #line
78260         directives using a vendor (Sun) compiler.
78261         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78262         Don't set GETGROUPS_LIB here; now it's
78263         done via getgroups.m4's wrapper function.
78264         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78265         rather than just in sh-util/configure.in, so that the
78266         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78267         same.
78268         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78269         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78270         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78271         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78272         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78273         Remove code that is now done by the newly-required macros.
78274         Append $(EXEEXT) to DF_PROG.
78275         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78276         Do not invoke or require the following here,
78277         since prereq.m4 or some gnulib .m4 now does this for us:
78278         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78279         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78280         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78281         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78282         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78283         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78284         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78285         AC_FUNC_OBSTACK.
78286         Do not replace the following functions, as this is now the job
78287         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78288         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78289         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78290         atexit getpass, strdup, getpagesize.
78291         Replace 'raise'.
78292         Do not check for the following functions, as this is now the job
78293         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78294         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78295         setregid.
78296         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78297         Check for sys/sysctl.h.
78298         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78299         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78300         of checking for ssize_t ourselves.
78301
78302         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78303         Require every macro that gnulib/modules/* suggests for us.
78304         (jm_PREREQ_ADDEXT): New macro.
78305         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78306         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78307
78308         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78309         (gl_PHYSMEM): Use it.
78310         Also check for `table' function.
78311         Check for new headers and functions.
78312         Add check for sys/sysmp.h.
78313         With suggestions from Kaveh Ghazi.
78314         Ignore headers that are present but cannot be compiled.  This
78315         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78316         C 5.4.
78317
78318 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78319
78320         Document merge from coreutils.
78321         * modules/userspec: Depend on posixver.
78322         * modules/strftime: Depend on tzset.
78323
78324 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78325
78326         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78327         rather than tab, after '#' in shell-script copyright notices.
78328         Suggested by Bruno Haible.
78329
78330 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78331
78332         * config/srclist-update: Use three spaces, rather than tab, after '#'
78333         in shell-script copyright notices.  Suggested by Bruno Haible.
78334         Remove unnecessary parenthesization in regular expression.
78335
78336 2003-08-15  Jim Meyering  <jim@meyering.net>
78337
78338         Merge from coreutils.
78339         * lib/xgethostname.c: Include <stdlib.h>.
78340         (xghostname): Don't exit for anything other than memory-related
78341         failure; just return NULL.
78342         * lib/userspec.c: Include "posixver.h".
78343         (parse_user_spec): Accept `.' as a separator only
78344         in pre-POSIX-200112 mode.
78345         * lib/strtoimax.c: Use #elif rather than #else #if.
78346         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78347         Remove function, now that we can rely on a working tzset function.
78348         [!_LIBC]: Ensure that the required autoconf test has been run.
78349         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78350         Use underlying_strftime for %r.
78351         * lib/sha.c: Merge in some clean-up and optimization changes from
78352         glibc.
78353         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78354         Ensure that it is a multiple of 64.
78355         Rearrange loop exit tests so as to avoid performing an
78356         additional fread after encountering an error or EOF.
78357         * lib/realloc.c: Update copyright date.
78358
78359 2003-08-15  Jim Meyering  <jim@meyering.net>
78360         and Paul Eggert  <eggert@twinsun.com>
78361
78362         Merge from coreutils.
78363         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78364         member but strut utmpx does not.  Needed for AIX 4.3.3.
78365         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78366
78367 2003-08-15  Jim Meyering  <jim@meyering.net>
78368         and Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         Merges from coreutils, etc.
78371         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78372         Require gl_FUNC_TZSET_CLOBBER.
78373         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78374         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78375         members.
78376
78377 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78378
78379         Help the merge from coreutils.
78380         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78381         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78382         * m4/tzset.m4: Use it too.
78383
78384 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78385
78386         * modules/tzset: New file.
78387
78388 2003-08-14  Jim Meyering  <jim@meyering.net>
78389
78390         Merges from coreutils.
78391         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78392         variable names, rather than @FNMATCH_H@.
78393         * modules/alloca: Likewise for $(ALLOCA_H).
78394
78395         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78396         the three copies of the literal target, `fnmatch.h'.
78397         * modules/alloca (alloca.h): Likewise.
78398
78399 2003-08-14  Jim Meyering  <jim@meyering.net>
78400
78401         Merge from coreutils.
78402         * m4/tzset.m4: New file.
78403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78404         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78405         otherwise, AIX 5.1 systems would end up using the latter.
78406         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78407         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78408         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78409         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78410
78411 2003-08-14  Jim Meyering  <jim@meyering.net>
78412
78413         Merge from coreutils.
78414         * lib/obstack.h: Whitespace changes.
78415         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78416         and xcalloc return values.
78417         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78418         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78419         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78420         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78421         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78422         error from mntctl.
78423         Use mntctl's return value to drive the entry-processing loop, since
78424         we can't rely on the value of the vmt_length member in the last
78425         entry.  On some systems doing so could result in exhausting
78426         virtual memory.  Based in part on a patch from Mike Jetzer.
78427
78428 2003-08-14  Jim Meyering  <jim@meyering.net>
78429         and Paul Eggert  <eggert@twinsun.com>
78430
78431         Merges from coreutils, plus other fixes.
78432         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78433         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78434         for credits and details.  Thanks to Kaveh Ghazi for helping
78435         to keep these files in sync.
78436         (ARRAY_SIZE): Define it.
78437         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78438         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78439         (memcasecmp): Don't assume size_t fits in unsigned int.
78440         Remove casts and duplicate code.
78441         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78442         (memcpy): Remove definition.
78443         Merge in some clean-up and optimization changes from glibc.
78444         [BLOCKSIZE]: Move definition to top of file.
78445         Ensure that it is a multiple of 64.
78446         Rearrange loop exit tests so as to avoid performing an
78447         additional fread after encountering an error or EOF.
78448         * lib/md5.h (md5_uintptr): Define.
78449         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78450         return to the initial working directory.  Preserve errno
78451         for caller.
78452         * lib/idcache.c: Include "xalloc.h".
78453         (xmalloc, xrealloc): Remove decls.
78454         (getuser): Remove casts no longer required in C89.
78455         * lib/human.c: Include stdio.h, for sprintf.
78456         * lib/group-member.c: Include "xalloc.h".
78457         (xmalloc, xrealloc): Remove decls.
78458         (get_group_info): Remove casts no longer required in C89.
78459         * lib/getusershell.c (readname): Remove casts no longer required in
78460         C89.
78461         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78462         * lib/getline.c: Whitespace fix, from coreutils.
78463
78464 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78465
78466         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78467         Check for isascii.
78468
78469         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78470         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78471         Undo previous (whitespace-only) change.
78472
78473 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78474
78475         * lib/exclude.c: Include <ctype.h>
78476         (IN_CTYPE_DOMAIN): New macro.
78477         (is_space): New fn.
78478         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78479         and empty lines.
78480
78481         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78482         Undo previous (whitespace-only) change.
78483
78484 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78485
78486         * config/srclist-update: Change update back to the old behavior,
78487         leaving whitespace alone.  Use one 'sed' command rather than a
78488         pipeline.
78489         (fixlicense): Now a variable, not a function.
78490         (remove_trailing_blanks): Remove.
78491         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78492         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78493         Undo previous (whitespace-only) change.
78494
78495 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78496
78497         Merge from coreutils.
78498         * modules/euidaccess: Add lib_SOURCES, include for new
78499         file euidaccess.h
78500
78501 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78502
78503         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78504         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78505         Normalize leading white space and remove trailing white space.
78506
78507         Merge from coreutils
78508         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78509
78510         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78511         0.12.1.  These files are now being upgraded automatically by
78512         ../config/srclist-update.
78513
78514 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78515
78516         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78517         Normalize leading white space and remove trailing white space.
78518         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78519         notice, as per ../config/srclist-update.
78520
78521         Merge from coreutils.
78522         * lib/euidaccess.h: New file.
78523         * lib/euidaccess.c: Include it.
78524         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78525         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78526         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78527
78528 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78529
78530         * config/srclist-update: Add copyright notice.
78531         (remove_id_lines, remove_trailing_blanks): New constants.
78532         (fixfile): Use them to normalize spacing a bit in copied files.
78533         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78534         Normalize leading white space and remove trailing white space.
78535
78536         * config/texinfo.tex: Sync with texinfo.
78537
78538         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78539         strtoul.c from libc, to merge coreutils whitespace changes.
78540
78541         * config/srclist.txt: Get the following m4 files from gettext:
78542         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78543         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78544         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78545         wint_t.m4.
78546
78547 2003-08-12  Karl Berry  <karl@gnu.org>
78548
78549         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78550         been made.
78551
78552 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78553
78554         * modules/gnu-source, m4/gnu-source.m4:
78555         Remove; we're assuming Autoconf 2.54 or later now.
78556         Suggested by Bruno Haible.
78557         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78558
78559 2003-08-11  Bruno Haible  <bruno@clisp.org>
78560
78561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78562
78563 2003-08-11  Bruno Haible  <bruno@clisp.org>
78564
78565         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78566         (vasnprintf): Use it instead of wcslen.
78567
78568 2003-08-11  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78571         value to ensure that _Bool promotes to int. Use #define for _Bool when
78572         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78573
78574 2003-08-10  Karl Berry  <karl@gnu.org>
78575
78576         * lib/regex.h: update from libc (whitespace fix).
78577
78578 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78579
78580         Merge some files from coreutils.  These changes were
78581         originally made by Jim Meyering.
78582         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78583         many older Unixes require this.
78584         * lib/alloca.c (alloca): Remove cast to argument of free;
78585         no longer needed in C89.
78586         * lib/alloca_.h, regex.h: Fix white space to match
78587         what GNU indent does.
78588
78589 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78590
78591         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78592         apparently Emacs's Unicode mode got confused before my 2003-08-05
78593         checkin.
78594
78595 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78596
78597         * m4/extensions.m4: New file.
78598         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78599         Require gl_USE_SYSTEM_EXTENSIONS.
78600         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78601         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78602
78603 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78604
78605         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78606         * modules/extensions, modules/gnu-source: New files.
78607         * modules/timespec, modules/unlocked-io: Depend on extensions.
78608
78609 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78610
78611         * modules/restrict: New file.
78612         * MODULES.html.sh (func_all_modules): Add restrict.
78613         * modules/regex: Depend on restrict.
78614
78615 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78616
78617         * m4/restrict.m4: New file.
78618         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78619
78620 2003-08-07  Bruno Haible  <bruno@clisp.org>
78621
78622         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78623         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78624
78625 2003-08-07  Bruno Haible  <bruno@clisp.org>
78626
78627         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78628         makes the module 'getndelim2' compatible with the module 'getline'.
78629
78630 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78631
78632         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78633         byte with "\201" to avoid glitches when editing that source file
78634         with multi-gnome-terminal.
78635
78636 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78637
78638         * lib/bumpalloc.h: Remove.
78639
78640 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78641
78642         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78643         * modules/bumpalloc: Remove.
78644
78645 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78646
78647         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78648         GNU coding style.
78649
78650         Merge from coreutils.
78651         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78652         1. From glibc.
78653         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78654         from Karl Berry, implemented by Jim Meyering.
78655         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78656         from Dmitry V. Levin.
78657         Remove anachronistic cast of xrealloc.
78658         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78659         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78660         type. Otherwise, it wouldn't compile with at least /bin/cc on
78661         ymp-cray-unicos9.0.2.X.
78662         Combine two mostly-identical uses of alloca into one.
78663         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78664
78665 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78666
78667         [From Emacs.]
78668
78669         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78670         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78671         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78672         obsolete NLIST_NAME_UNION.
78673         [__GNU__]: Undef BSD and FSCALE.
78674         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78675
78676 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78677
78678         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78679         an enum type, so that it's guaranteed to promote to int.  See:
78680         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78681
78682 2003-08-03  Karl Berry  <karl@gnu.org>
78683
78684         * config/depcomp: update from automake.
78685
78686 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78687
78688         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78689         (strerror): Don't assume that a printable int fits in 14 bytes.
78690
78691 2003-07-31  Bruno Haible  <bruno@clisp.org>
78692
78693         * modules/getpass-gnu: New file.
78694         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78695
78696 2003-07-31  Bruno Haible  <bruno@clisp.org>
78697
78698         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78699
78700 2003-07-24  Karl Berry  <karl@gnu.org>
78701
78702         * config/missing: update from automake.
78703
78704 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78705             Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78708         * lib/getline.c (getline, getdelim): Likewise.
78709         Remove _GNU_SOURCE define; now it's defined in config.h through
78710         m4/getline.m4.
78711
78712 2003-07-23  Karl Berry  <karl@gnu.org>
78713
78714         * config/config.sub: update from prep.
78715
78716 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78717
78718         * modules/xalloc (Depends-on): Add exitfail.
78719         * modules/xmemcoll: Likewise.
78720
78721 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78722
78723         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78724         over-parenthesization in macros.
78725
78726         Sync with coreutils.
78727
78728         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78729         required by C99.
78730
78731         Use `exit_failure' for xalloc and xmemcoll instead of their own
78732         private exit-failure variables.
78733         * lib/xalloc.h (xalloc_exit_failure): Remove.
78734         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78735         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78736         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78737         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78738         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78739
78740 2003-07-20  Jim Meyering  <jim@meyering.net>
78741
78742         * modules/closeout (Depends-on): Add exitfail.
78743         Suggestion from Bruno Haible.
78744
78745 2003-07-19  Karl Berry  <karl@gnu.org>
78746
78747         * config/config.sub: update from prep.
78748
78749 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78750
78751         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78752         Remove.
78753         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78754         to test that it can stand by itself.  Include "exitfail.h".
78755         Clients should set exit_failure instead.
78756         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78757
78758 2003-07-18  Bruno Haible  <bruno@clisp.org>
78759
78760         * modules/getndelim2: New file.
78761         * modules/getline: Share files with module getndelim2.
78762         * modules/getnline: Depend on getndelim2 instead of sharing files with
78763         it. Add getnline.c to lib_SOURCES.
78764         * MODULES.html.sh (func_all_modules): Add getndelim2.
78765
78766 2003-07-18  Bruno Haible  <bruno@clisp.org>
78767
78768         * m4/getndelim2.m4: New file.
78769         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78770         invoke gl_PREREQ_GETNDELIM2.
78771         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78772         gl_PREREQ_GETNDELIM2.
78773         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78774         gl_GETNDELIM2.
78775
78776 2003-07-18  Bruno Haible  <bruno@clisp.org>
78777
78778         * lib/getndelim2.h: New file.
78779         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78780         getndelim2.h.
78781         (getndelim2): Make non-static. Change return type to ssize_t.
78782         * lib/getline.h: Change argument names.
78783         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78784         * lib/getnline.c: Include getndelim2.h.
78785
78786 2003-07-18  Andreas Schwab  <schwab@suse.de>
78787
78788         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78789
78790 2003-07-17  Karl Berry  <karl@gnu.org>
78791
78792         * config/config.sub: update from prep.
78793
78794 2003-07-17  Bruno Haible  <bruno@clisp.org>
78795
78796         * modules/getnline: New file.
78797         * modules/getline: Add lib/getndelim2.c to source file list.
78798         * MODULES.html.sh (func_all_modules): Add getnline.
78799
78800 2003-07-17  Bruno Haible  <bruno@clisp.org>
78801
78802         * m4/getnline.m4: New file.
78803
78804 2003-07-17  Bruno Haible  <bruno@clisp.org>
78805
78806         * m4/Makefile.am.in: Remove file.
78807         * m4/Makefile.am: Remove file.
78808         * m4/Makefile.in: Remove file.
78809
78810 2003-07-17  Bruno Haible  <bruno@clisp.org>
78811
78812         * lib/getnline.h: New file.
78813         * lib/getnline.c: New file.
78814         * lib/getndelim2.c: New file, extracted from getline.c.
78815         (getndelim2): Renamed from getdelim2, with added nmax argument.
78816         * lib/getline.c: Include getndelim2.c.
78817         (getdelim2): Moved out to getndelim2.c.
78818         (getline, getdelim): Update.
78819
78820 2003-07-17  Bruno Haible  <bruno@clisp.org>
78821
78822         * lib/Makefile.am: Remove file.
78823         * lib/Makefile.in: Remove file.
78824
78825 2003-07-17  Bruno Haible  <bruno@clisp.org>
78826
78827         * configure.in: Remove file.
78828         * Makefile.in: Remove file.
78829
78830 2003-07-17  Bruno Haible  <bruno@clisp.org>
78831
78832         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78833
78834 2003-07-16  Karl Berry  <karl@gnu.org>
78835
78836         * config/srclist-update: was running fixlicense twice, which caused
78837                 texinfo.tex to be nullified for some reason.  Simplify,
78838                 $gplsrc is no longer needed as far as I can see?
78839
78840 2003-07-16  Jim Meyering  <jim@meyering.net>
78841
78842         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78843
78844 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78845
78846         * config/srclist.txt: Get the following files from gettext-runtime/intl
78847         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78848         ref-del.sin.  From Bruno Haible.
78849         * config/srclist-update (fixfile): Change grep pattern again, since the
78850         previous fix didn't work (there was another trailing $).  Use
78851         '[$]' to escape the $s.
78852
78853 2003-07-15  Karl Berry  <karl@gnu.org>
78854
78855         * lib/vasnprintf.c: update from gettext.
78856
78857 2003-07-15  Karl Berry  <karl@gnu.org>
78858
78859         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78860         gets expanded when surrounded by '$'.
78861
78862 2003-07-15  Jim Meyering  <jim@meyering.net>
78863
78864         * modules/save-cwd: Don't depend on error.  From Derek Price.
78865
78866 2003-07-15  Jim Meyering  <jim@meyering.net>
78867
78868         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78869
78870 2003-07-14  Simon Josefsson  <jas@extundo.com>
78871
78872         * modules/mempcpy: New file.
78873         * MODULES.html.sh (func_all_modules): Add mempcpy.
78874
78875 2003-07-14  Simon Josefsson  <jas@extundo.com>
78876
78877         * m4/mempcpy.m4: New file.
78878
78879 2003-07-14  Simon Josefsson  <jas@extundo.com>
78880
78881         * lib/mempcpy.h: New file.
78882         * lib/mempcpy.c: New file.
78883
78884 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78885
78886         * modules/getdate, modules/posixtm: Depend on mktime.
78887
78888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78889
78890         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78891         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78892         unicodeio.c, unicodeio.h, unlocked-io.h:
78893         Switch from LGPL to GPL.
78894
78895 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78896
78897         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78898         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78899         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78900         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78901         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78902         updated automatically by ../config/srclist-update.  This changes
78903         their license from LPGL to GPL.
78904
78905 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78906
78907         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78908         assumed to refer to the root of the most recent stable gettext version.
78909         * config/srclistvars.sh: Add defaults for eggert.
78910         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78911         Match "This program" as well as "The program".  This is needed
78912         for gettext.
78913
78914 2003-07-14  Jim Meyering  <jim@meyering.net>
78915
78916         Don't emit diagnostics.  Let callers do that.
78917         * lib/save-cwd.c: Don't include "error.h".
78918         (save_cwd): Don't call error.  Ensure that errno is valid
78919         when returning nonzero.
78920
78921         * lib/save-cwd.h (restore_cwd): Update prototype.
78922         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78923         Simplify.  Don't call error upon failure.  Let callers do that.
78924         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78925         when auditing is enabled.  But don't bother updating the #if.
78926
78927 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78928
78929         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78930         it breaks C++ compilation.
78931         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78932
78933 2003-07-10  Simon Josefsson  <jas@extundo.com>
78934
78935         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78936
78937 2003-07-10  Jim Meyering  <jim@meyering.net>
78938
78939         * m4/clock_time.m4: Remove trailing blank.
78940         * m4/intmax_t.m4: Likewise.
78941
78942 2003-07-10  Jim Meyering  <jim@meyering.net>
78943
78944         * lib/vasnprintf.c: Remove trailing blanks.
78945         Make cpp indentation consistent.
78946
78947 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78948
78949         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78950         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78951         Switch from LGPL to GPL.
78952
78953 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78954
78955         * config/srclist.txt: Sort sublists.  Add
78956         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78957         that differ from gnulib for one reason or another; we'd like this list
78958         to be smaller but for now let's document what we have.
78959
78960 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78961
78962         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78963         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78964         and sweeter "eval x=$x".
78965         * config/srclist.txt: Get lib/argp* from glibc.
78966
78967 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78968
78969         * lib/mktime.c: Fix some boundary cases and remove need for floating
78970         point.
78971
78972         Issue a compile-time diagnostic if time_t is floating point, or if
78973         two's complement arithmetic is not in effect, or if arithmetic
78974         right shift does not propagate the sign.  These assumptions were
78975         all in the original code but they weren't checked.
78976
78977         (TIME_T_MIDPOINT, verify): New macros.
78978         (__isleap): Remove; it has integer overflow problems.
78979         (leapyear): New function, without those problems.
78980         (ydhms_tm_diff): Remove; splitting into two parts.
78981         (ydhms_diff): New function, containing the arithmetic part of
78982         the old ydhms_tm_diff function.  Issue a compile-time
78983         diagnostic if we are not using C99 integer division.
78984         Avoid casts when possible.
78985         (guess_time_tm): New function, containing the checking part of
78986         the old ydhms_tm_diff function.  Return the new value, rather than
78987         the difference between it and the old.  Accept a new argument T
78988         so that *T specifies the old value.  Check for overflow in the result.
78989
78990         (__mktime_internal): Use a time_t offset, not a long int offset.
78991         This undoes the 2003-06-04 change, which is no longer needed now
78992         that we have better overflow checking.
78993         (localtime_offset): Likewise.
78994
78995         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78996         and long are 64-bit but int is only 32-bit.
78997         (ydhms_diff): Use long int to store year1 and yday1.
78998         Issue a compile-time diagnostic if long int is not wide enough.
78999
79000         (__mktime_internal): Use long int to store adjusted year and yday.
79001         Use plain C rather than preprocessor commands, if that doesn't
79002         affect efficiency.
79003         Check for overflow (and try to repair) after each probe
79004         rather than checking only at the very end.  This avoids some bugs
79005         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79006         does not equal GMT offset at maximum time).
79007         Use integer to check for overflow rather than floating point; this
79008         is more portable to non-IEEE hosts, and is a tad faster.
79009         When we detect that we are oscillating between two values,
79010         don't check whether tm_isdst has the requested value, since
79011         we already know the answer.  When tm_isdst has the wrong value,
79012         use a different heuristic to find the right one, based on the
79013         extreme values actually observed in practice in tz2003a,
79014         rather than the (overly optimistic) "previous 3 calendar quarters".
79015
79016         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79017         "T const" to accommodate glibc style.
79018         (check_result): Use less-confusing report format.  "long" -> "long int.
79019         (main): Likewise.
79020         Don't loop if the iteration overflows time_t.
79021         Allow a negative step in the iteration.
79022
79023 2003-07-06  Karl Berry  <karl@gnu.org>
79024
79025         * config/depcomp: update from automake.
79026         * config/config.sub: update from prep.
79027
79028 2003-07-03  Karl Berry  <karl@gnu.org>
79029
79030         * config/config.guess: update from prep.
79031
79032 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79033
79034         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79035         xreadlink.c now includes it unconditionally.
79036
79037 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79038
79039         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79040         having it depend on HAVE_SYS_TYPES_H.
79041
79042 2003-07-01  Bruno Haible  <bruno@clisp.org>
79043
79044         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79045         <sys/types.h> should be sufficient.
79046         Reported by Paul Eggert.
79047
79048 2003-06-26  Karl Berry  <karl@gnu.org>
79049
79050         * config/depcomp: update from automake.
79051
79052 2003-06-26  Bruno Haible  <bruno@clisp.org>
79053
79054         * modules/human: Depend on module stdbool.
79055
79056 2003-06-25  Bruno Haible  <bruno@clisp.org>
79057
79058         * modules/readlink: New file.
79059         * modules/xreadlink: Depend on it.
79060         * MODULES.html.sh (func_all_modules): Add readlink.
79061
79062 2003-06-25  Bruno Haible  <bruno@clisp.org>
79063
79064         * m4/readlink.m4: New file.
79065
79066 2003-06-25  Bruno Haible  <bruno@clisp.org>
79067
79068         * lib/readlink.c: New file.
79069
79070 2003-06-22  Karl Berry  <karl@gnu.org>
79071
79072         * config/srclist.txt: update mkinstalldirs from automake.
79073         * config/mkinstalldirs: update.
79074
79075 2003-06-22  Bruno Haible  <bruno@clisp.org>
79076
79077         Portability to mingw32.
79078         * m4/ssize_t.m4: New file, from GNU gettext.
79079         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79080         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79081
79082 2003-06-22  Bruno Haible  <bruno@clisp.org>
79083
79084         * modules/safe-read: Add m4/ssize_t.m4.
79085         * modules/xreadlink: Add m4/ssize_t.m4.
79086
79087 2003-06-20  Bruno Haible  <bruno@clisp.org>
79088
79089         Assume C89, so PARAMS isn't needed.
79090         * lib/unicodeio.h (PARAMS): Remove.
79091         * lib/unicodeio.c: Don't use PARAMS.
79092
79093 2003-06-18  Karl Berry  <karl@gnu.org>
79094
79095         * config/config.{guess,sub}: update from prep.
79096
79097 2003-06-18  Jim Meyering  <jim@meyering.net>
79098
79099         Merge changes from coreutils.
79100         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79101         Remove explicit declarations of xmalloc and realloc.
79102         Include xalloc.h.
79103         (read_utmp): Remove anachronistic cast of xmalloc.
79104
79105 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79106
79107         Assume C89, so PARAMS isn't needed.
79108         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79109         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79110         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79111         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79112         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79113         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79114         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79115         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79116         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79117         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79118         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79119         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79120         no longer needed. Anyway, config.h should always be included before any
79121         other file.
79122
79123 2003-06-11  Simon Josefsson  <jas@extundo.com>
79124
79125         * modules/sysexits: New file.
79126         * MODULES.html.sh (func_all_modules): Add sysexits.
79127
79128 2003-06-11  Simon Josefsson  <jas@extundo.com>
79129
79130         * lib/sysexit_.h: New file.
79131
79132 2003-06-11  Derek Price  <derek@ximbiot.com>
79133
79134         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79135         necessary.
79136
79137 2003-06-11  Bruno Haible  <bruno@clisp.org>
79138
79139         * m4/sysexits.m4: New file.
79140
79141 2003-06-10  Simon Josefsson  <jas@extundo.com>
79142
79143         * lib/argp.h: New file, from glibc.
79144         * lib/argp-ba.c: New file, from glibc.
79145         * lib/argp-eexst.c: New file, from glibc.
79146         * lib/argp-fmtstream.c: New file, from glibc.
79147         * lib/argp-fmtstream.h: New file, from glibc.
79148         * lib/argp-fs-xinl.c: New file, from glibc.
79149         * lib/argp-help.c: New file, from glibc.
79150         * lib/argp-namefrob.h: New file, from glibc.
79151         * lib/argp-parse.c: New file, from glibc.
79152         * lib/argp-pv.c: New file, from glibc.
79153         * lib/argp-pvh.c: New file, from glibc.
79154         * lib/argp-xinl.c: New file, from glibc.
79155
79156 2003-06-10  Simon Josefsson  <jas@extundo.com>
79157
79158         * modules/strchrnul: New file.
79159
79160 2003-06-10  Simon Josefsson  <jas@extundo.com>
79161
79162         * modules/argp: New file.
79163
79164 2003-06-10  Simon Josefsson  <jas@extundo.com>
79165
79166         * m4/strchrnul.m4: New file.
79167
79168 2003-06-10  Simon Josefsson  <jas@extundo.com>
79169
79170         * lib/strchrnul.h: New file.
79171         * lib/strchrnul.c: New file.
79172
79173 2003-06-10  Bruno Haible  <bruno@clisp.org>
79174
79175         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79176
79177 2003-06-07  Karl Berry  <karl@gnu.org>
79178
79179         * config/config.{guess,sub}: update from prep.
79180
79181 2003-06-07  Jim Meyering  <jim@meyering.net>
79182
79183         * modules/strtod: Use $(...) notation, not @...@ for
79184         AC_REPLACE'd variables.
79185         * modules/localcharset: Likewise.
79186
79187 2003-06-07  Jim Meyering  <jim@meyering.net>
79188
79189         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79190         in place of my name in the copyright comment.
79191         Remove definition and uses of __P.
79192
79193         From coreutils.
79194         * lib/stat.c: Don't declare xmalloc explicitly.
79195         Instead, include "xalloc.h".
79196         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79197         xrealloc, and xcalloc return values.
79198         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79199         Improve comment.
79200         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79201
79202 2003-06-07  Bruno Haible  <bruno@clisp.org>
79203
79204         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79205         avoid AC_CONFIG_LINKS.
79206         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79207         fnmatch.h, to avoid AC_CONFIG_LINKS.
79208         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79209
79210 2003-06-07  Bruno Haible  <bruno@clisp.org>
79211
79212         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79213         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79214         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79215         directory.
79216         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79217         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79218         directory.
79219
79220 2003-06-06  Jim Meyering  <jim@meyering.net>
79221
79222         Merge from coreutils.
79223         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79224         Consolidate declarations and initializations of *_base* locals.
79225
79226         Merge from coreutils.
79227         This avoids a core dump on systems without GNU putenv,
79228         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79229         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79230         (unsetenv): New static function, from GNU libc.
79231         (rpl_putenv): Use it.
79232
79233         * lib/modechange.c: Remove trailing blanks.
79234
79235         Merge from coreutils.
79236         * lib/fsusage.c: Remove declaration of statfs.
79237         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79238
79239         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79240
79241 2003-06-06  Jim Meyering  <jim@meyering.net>
79242
79243         * lib/stdbool_.h: Renamed from stdbool.h.in.
79244
79245 2003-06-06  Jim Meyering  <jim@meyering.net>
79246             Bruno Haible  <bruno@clisp.org>
79247
79248         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79249         Adjust Makefile.am snippet not to redirect directly to target.
79250         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79251
79252 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79253
79254         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79255         mismatch, look in future quarters as well as past.  This fixes a
79256         bug when processing fall-backwards gaps immediately after a long
79257         period of daylight-saving time.
79258
79259         * lib/mktime.c: Assume freestanding C89 or better.
79260         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79261         (__P): Remove; not used.
79262         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79263         (mktime, not_equal_tm, print_tm, check_result,
79264         main): Use prototypes.  Use const * where appropriate.
79265         (main): Fix typo in testing code that uncovered by above changes.
79266         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79267
79268 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79269
79270         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79271         locale.h, localeconv.  This merges changes from coreutils.
79272
79273         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79274         It can be removed after the next Autoconf is released.
79275         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79276         needed.
79277
79278 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79279
79280         * lib/mktime.c: Fix Debian bug 177940
79281         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79282         (localtime_offset): Now long int, not time_t, because we want it
79283         to be guaranteed to be signed.  All uses changed.
79284         (__mktime_internal): If overflow would occur when adding offset,
79285         don't add it.
79286
79287         Merge 'human' changes from coreutils.  Rewrite to support
79288         locale-specific notations like thousands separators.
79289         * lib/human.c: Simplify authorship notice.
79290         Include human.h immediately after config.h.
79291         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79292         <limits.h>: Do not include, since human.h does.
79293         (SIZE_MAX, UINTMAX_MAX): New macros.
79294         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79295         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79296         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79297         (power_letter): Renamed from suffixes.
79298         (generate_suffix_backwards): Remove.
79299         (adjust_value): Now takes int style (because of human.h changes)
79300         and long double value (for greater precision on some platforms).
79301         (group_number): New function.
79302         (human_readable): Use it.  Use integer options, not enum.
79303         Put the options before the sizes in the arg list.
79304         Support all the new options.
79305         The old human_readable function has been removed;
79306         use inttostr.h instead.
79307         (human_readable, default_block_size, humblock):
79308         Use uintmax_t, not int, for block sizes.
79309         (human_readable_inexact, block_size_types): Remove.
79310         (block_size_opts): New constant.
79311         (human_options): Renamed from human_block_size, with new signature
79312         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79313         * lib/human.h: Add copyright and authorship notice.
79314         Include <limits.h> and <stdbool.h> unconditionally.
79315         (PARAMS): Remove.  All uses removed.
79316         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79317         (enum human_inexact_style): Remove tag; now a nameless enum.
79318         (human_floor, human_ceiling, human_round_to_even): Now have
79319         values 2, 0, 1 rather than -1, 1, 0.
79320         (human_group_digits, human_suppress_point_zero, human_autoscale,
79321         human_base_1024, human_SI, human_B): New constants.
79322         (human_readable_inexact, human_block_size): Remove.
79323         (human_readable): Size args are now uintmax_t, not int.
79324         (human_options): New decl.
79325
79326         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79327         unnecessary now that we assume C89 or better.  This change
79328         imported from coreutils.
79329
79330         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79331         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79332         in the 2003-05-30 sync from glibc.
79333
79334         .h files should stand alone, but we shouldn't include <sys/types.h>
79335         if we can get away with just <stddef.h>.
79336
79337         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79338         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79339         rather than <sys/types.h>, as we merely need size_t.
79340         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79341         to get size_t.
79342         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79343         Include <stdio.h>, to get FILE.
79344         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79345         memcasecmp.h has included <stddef.h> and all we need is size_t.
79346         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79347         our interface, instead of including <sys/types.h>
79348
79349 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79350
79351         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79352         now, as glibc mktime is buggy on non-glibc systems.
79353
79354 2003-06-03  Karl Berry  <karl@gnu.org>
79355
79356         * config/config.sub: update from prep.
79357
79358 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79359
79360         [from coreutils]
79361         Fix some minor time-related bugs with POSIX time arguments.
79362         Some valid time stamps were being rejected (notably -1, and
79363         time stamps before 1900 on 64-bit hosts).  And some invalid
79364         time stamps were being accepted, e.g. September 31.
79365
79366         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79367         that we can return (time_t) -1 successfully.
79368         * lib/posixtm.c: Likewise.
79369         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79370         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79371         (t): Remove static var.
79372         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79373         of static var.  All uses changed.
79374         (year): Do not reject years before 1900; they can occur with
79375         64-bit time_t.
79376         (posix_time_parse): Do not check for out-of-range components;
79377         that is now the caller's responsibility, since our checks were
79378         only approximations.
79379         (posixtime): Use mktime to check for out-of-range components,
79380         since it knows them exactly.
79381         If mktime returns (time_t) -1, check whether an error actually occurred
79382         by invoking localtime on -1.
79383         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79384         posixtime failures better.
79385         Improve the test data (in comments only).
79386
79387 2003-06-02  Karl Berry  <karl@gnu.org>
79388
79389         * config/mkinstalldirs (version): new variable.
79390         (--version): new option.
79391         (usage): improve message.
79392
79393 2003-05-30  Karl Berry  <karl@gnu.org>
79394
79395         * lib/mktime.c: update from libc.
79396
79397 2003-05-30  Bruno Haible  <bruno@clisp.org>
79398
79399         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79400         * config/config.rpath: Upgrade to gettext-0.12.1.
79401
79402 2003-05-30  Bruno Haible  <bruno@clisp.org>
79403
79404         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79405         * m4/nls.m4: New file, from gettext-0.12.1.
79406         * m4/po.m4: New file, from gettext-0.12.1.
79407         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79408
79409 2003-05-30  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79412         * lib/localcharset.h: Likewise.
79413         * lib/localcharset.c: Likewise.
79414
79415 2003-05-29  Karl Berry  <karl@gnu.org>
79416
79417         * config/config.rpath: update from gettext.
79418
79419 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79420
79421         Assume the headers required for C89 freestanding compilers.
79422         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79423         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79424         * m4/human.m4 (gl_HUMAN): Likewise.
79425         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79426         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79427         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79428         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79429         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79430         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79431
79432 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79433
79434         Assume the headers required for C89 freestanding compilers.
79435         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79436         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79437         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79438         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79439         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79440         define, since <limits.h> is guaranteed to do that.
79441         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79442         * lib/exclude.c: Include <stdbool.h> unconditionally.
79443         * lib/tempname.c: Include <stddef.h> unconditionally.
79444         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79445         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79446         <stddef.h> does that.
79447         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79448         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79449         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79450         needed.
79451         * lib/xstrtol.c: Likewise.
79452         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79453         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79454
79455         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79456         warnings on some platforms.
79457
79458         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79459         arbitrarily.
79460
79461 2003-05-26  Jim Meyering  <jim@meyering.net>
79462
79463         Merge in a change from coreutils:
79464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79465         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79466         that condition, rather than `-1' which is slightly misleading.
79467         Change the name of the cache variable to have the gl_ prefix.
79468         Prompted by a patch from Richard Dawe for DJGPP.
79469
79470 2003-05-24  Karl Berry  <karl@gnu.org>
79471
79472         * config/config.guess: update from prep.
79473
79474 2003-05-22  Karl Berry  <karl@gnu.org>
79475
79476         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79477
79478 2003-05-20  Karl Berry  <karl@gnu.org>
79479
79480         * config/config.guess: update from prep.
79481
79482 2003-05-18  Karl Berry  <karl@gnu.org>
79483
79484         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79485         might actually be set by the user.
79486
79487         * config/depcomp, install-sh, mdate-sh: update from automake.
79488
79489 2003-05-17  Bruno Haible  <bruno@clisp.org>
79490
79491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79492         invalid expansion for AC_EGREP_CPP.
79493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79495         Suggested by Akim Demaille <akim@epita.fr> in
79496         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79497
79498 2003-05-12  Jim Meyering  <jim@meyering.net>
79499
79500         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79501         the space-padded-by-default conversion specifiers, %e, %k, %l.
79502
79503 2003-05-12  Bruno Haible  <bruno@clisp.org>
79504
79505         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79506         the string is longer than 4 KB.
79507
79508 2003-05-11  Karl Berry  <karl@gnu.org>
79509
79510         * config/config.{guess,sub}: update from prep.
79511
79512 2003-05-09  Bruno Haible  <bruno@clisp.org>
79513
79514         * modules/error: Add m4/strerror_r.m4 to file list.
79515
79516 2003-05-03  Bruno Haible  <bruno@clisp.org>
79517
79518         Upgrade to Unicode-4.0.
79519         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79520         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79521         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79522         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79523         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79524         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79525         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79526         Change width of U+E0100..U+E01EF from 1 to 0.
79527
79528 2003-04-25  Jim Meyering  <jim@meyering.net>
79529
79530         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79531         of type size_t, not int.
79532
79533 2003-04-25  Bruno Haible  <bruno@clisp.org>
79534
79535         * lib/copy-file.c: Include <stddef.h>, for size_t.
79536
79537 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79538
79539         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79540         code which expansion is under static control.  Patch imported from
79541         Akim Demaille's patch to Bison; see
79542         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79543
79544 2003-04-14  Bruno Haible  <bruno@clisp.org>
79545
79546         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79547
79548 2003-04-11  Jim Meyering  <jim@meyering.net>
79549
79550         Merge changes from Coreutils.
79551
79552         2003-03-22  Jim Meyering  <jim@meyering.net>
79553
79554         * lib/strftime.c (widen): Cast alloca return value to proper type.
79555
79556         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79557
79558         From GNU libc.
79559         * lib/strftime.c (my_strftime): Handle very large width
79560         specifications for numeric values correctly.  Improve checks for
79561         overflow.
79562
79563         2003-01-19  Jim Meyering  <jim@meyering.net>
79564
79565         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79566         definitions.
79567         (nl_get_alt_digit) [! defined my_strftime]: Define.
79568         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79569         _nl_get_alt_digit and _nl_get_walt_digit.
79570
79571         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79572         libc. These changes have no effect outside of _LIBC.
79573
79574 2003-04-10  Bruno Haible  <bruno@clisp.org>
79575
79576         * modules/findprog: New file.
79577         * MODULES.html.sh (func_all_modules): Add it.
79578
79579 2003-04-10  Bruno Haible  <bruno@clisp.org>
79580
79581         * m4/findprog.m4: New file.
79582         * m4/eaccess.m4: New file.
79583
79584 2003-04-10  Bruno Haible  <bruno@clisp.org>
79585
79586         * lib/findprog.h: New file, from GNU gettext.
79587         * lib/findprog.c: New file, from GNU gettext.
79588
79589 2003-04-05  Jim Meyering  <jim@meyering.net>
79590
79591         Merge changes from Coreutils.
79592
79593         * lib/exclude.h (PARAMS): Remove definition and uses.
79594         * lib/exclude.c: Remove uses of `PARAMS'.
79595
79596         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79597         Add test-cases for DOS filenames. Declare program_name.
79598         (main): Set up program_name.  Patch by Rich Dawe.
79599
79600         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79601         error from mntctl.
79602         Use mntctl's return value to drive the entry-processing loop, since
79603         we can't rely on the value of the vmt_length member in the last
79604         entry.  On some systems doing so could result in exhausting
79605         virtual memory.  Based in part on a patch from Mike Jetzer.
79606
79607 2003-04-04  Bruno Haible  <bruno@clisp.org>
79608
79609         * modules/linebreak: New file.
79610         * MODULES.html.sh (func_all_modules): Add it.
79611
79612 2003-04-04  Bruno Haible  <bruno@clisp.org>
79613
79614         * m4/linebreak.m4: New file.
79615
79616 2003-04-04  Bruno Haible  <bruno@clisp.org>
79617
79618         * lib/linebreak.h: New file, from GNU gettext.
79619         * lib/linebreak.c: New file, from GNU gettext with slight
79620         modifications.
79621         * lib/lbrkprop.h: New file, from GNU gettext.
79622
79623 2003-04-03  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/utf8-ucs4: New file.
79626         * modules/utf16-ucs4: New file.
79627         * modules/ucs4-utf8: New file.
79628         * modules/ucs4-utf16: New file.
79629         * MODULES.html.sh (func_all_modules): Add them.
79630
79631 2003-04-03  Bruno Haible  <bruno@clisp.org>
79632
79633         * m4/utf-ucs4.m4: New file.
79634         * m4/ucs4-utf.m4: New file.
79635
79636 2003-04-03  Bruno Haible  <bruno@clisp.org>
79637
79638         * lib/utf8-ucs4.h: New file, from GNU gettext.
79639         * lib/utf16-ucs4.h: New file, from GNU gettext.
79640         * lib/ucs4-utf8.h: New file, from GNU gettext.
79641         * lib/ucs4-utf16.h: New file, from GNU gettext.
79642
79643 2003-04-02  Bruno Haible  <bruno@clisp.org>
79644
79645         * modules/binary-io: New file.
79646         * MODULES.html.sh (func_all_modules): Add it.
79647
79648 2003-04-02  Bruno Haible  <bruno@clisp.org>
79649
79650         * lib/binary-io.h: New file, from GNU gettext.
79651
79652 2003-04-01  Bruno Haible  <bruno@clisp.org>
79653
79654         * modules/pathname: New file.
79655         * MODULES.html.sh (func_all_modules): Add it.
79656
79657 2003-04-01  Bruno Haible  <bruno@clisp.org>
79658
79659         * lib/pathname.h: New file, from GNU gettext.
79660         * lib/concatpath.c: New file, from GNU gettext.
79661
79662 2003-03-30  Bruno Haible  <bruno@clisp.org>
79663
79664         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79665
79666 2003-03-30  Bruno Haible  <bruno@clisp.org>
79667
79668         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79669         function chown() doesn't exist.
79670
79671 2003-03-28  Bruno Haible  <bruno@clisp.org>
79672
79673         * modules/copy-file: New file.
79674         * MODULES.html.sh (func_all_modules): Add it.
79675
79676 2003-03-28  Bruno Haible  <bruno@clisp.org>
79677
79678         * m4/copy-file.m4: New file.
79679
79680 2003-03-28  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/copy-file.h: New file, from GNU gettext.
79683         * lib/copy-file.c: New file, from GNU gettext.
79684
79685 2003-03-18  Jim Meyering  <jim@meyering.net>
79686
79687         * lib/quote.c (quote_n): Fix typo in comment.
79688
79689 2003-03-18  Bruno Haible  <bruno@clisp.org>
79690
79691         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79692         checking.
79693         * m4/onceonly_2_57.m4: Likewise.
79694
79695 2003-03-17  Bruno Haible  <bruno@clisp.org>
79696
79697         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79698         (m4_quote): Remove macro.
79699         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79700
79701 2003-03-14  Jim Meyering  <jim@meyering.net>
79702
79703         Merge changes from Coreutils.
79704         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79705         to be const, in order to avoid warnings.
79706         (obstack_room): Likewise.
79707         (obstack_empty_p): Likewise.
79708
79709 2003-03-14  Bruno Haible  <bruno@clisp.org>
79710
79711         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79712         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79713
79714 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79715
79716         Merge changes from Bison.
79717         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79718         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79719         when compiling Bison 1.875's `bitset bset = obstack_alloc
79720         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79721         * lib/hash.c: Include <stdbool.h> unconditionally.
79722
79723 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79724
79725         * m4/onceonly.m4 (m4_quote): New macro.
79726         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79727         Quote AC_FOREACH variable-expansions properly.
79728
79729 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79730
79731         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79732
79733 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79734
79735         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79736         Reported by Bruce Becker; see:
79737         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79738
79739 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79740             Bruno Haible  <bruno@clisp.org>
79741
79742         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79743         Reported by John Hughes, see
79744         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79745
79746 2003-02-20  Bruno Haible  <bruno@clisp.org>
79747
79748         * MODULES.html.sh (func_all_modules): Add poll.
79749
79750 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79751
79752         * modules/poll: New file.
79753
79754 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79755
79756         * lib/poll_.h: New file.
79757         * lib/poll.c: New file.
79758
79759 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79760
79761         * m4/poll.m4: New file.
79762
79763 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79764
79765         * modules/mathl: New file.
79766
79767 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79768
79769         * lib/mathl.h: New file.
79770         * lib/acosl.c: New file.
79771         * lib/asinl.c: New file.
79772         * lib/atanl.c: New file.
79773         * lib/ceill.c: New file.
79774         * lib/cosl.c: New file.
79775         * lib/expl.c: New file.
79776         * lib/floorl.c: New file.
79777         * lib/frexpl.c: New file.
79778         * lib/ldexpl.c: New file.
79779         * lib/logl.c: New file.
79780         * lib/sincosl.c: New file.
79781         * lib/sinl.c: New file.
79782         * lib/sqrtl.c: New file.
79783         * lib/tanl.c: New file.
79784         * lib/trigl.c: New file.
79785         * lib/trigl.h: New file.
79786
79787 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79788
79789         * m4/mathl.m4: New file.
79790
79791 2003-02-18  Bruno Haible  <bruno@clisp.org>
79792
79793         * MODULES.html.sh (func_all_modules): Add mathl.
79794
79795 2003-02-17  Bruno Haible  <bruno@clisp.org>
79796
79797         * modules/mkdtemp: New module.
79798         * MODULES.html.sh (func_all_modules): Add it.
79799
79800 2003-02-17  Bruno Haible  <bruno@clisp.org>
79801
79802         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79803
79804 2003-02-17  Bruno Haible  <bruno@clisp.org>
79805
79806         * lib/mkdtemp.h: New file, from GNU gettext.
79807         * lib/mkdtemp.c: New file, from GNU gettext.
79808
79809 2003-02-02  Jim Meyering  <jim@meyering.net>
79810
79811         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79812         e.g. glibc-2.2.93.
79813
79814 2003-01-31  Bruno Haible  <bruno@clisp.org>
79815
79816         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79817         'rpl_rename'.
79818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79819         'rpl_strnlen'.
79820         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79821         'rpl_strtod'.
79822         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79823         'rpl_utime'.
79824
79825 2003-01-31  Bruno Haible  <bruno@clisp.org>
79826
79827         * lib/rename.c: #undef rename before defining rpl_rename.
79828         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79829
79830 2003-01-30  Bruno Haible  <bruno@clisp.org>
79831
79832         * modules/vasnprintf, modules/vasprintf: New modules.
79833         * MODULES.html.sh (func_all_modules): Add them.
79834
79835 2003-01-30  Bruno Haible  <bruno@clisp.org>
79836
79837         * m4/signed.m4: New file, from GNU gettext.
79838         * m4/longdouble.m4: New file, from GNU gettext.
79839         * m4/wchar_t.m4: New file, from GNU gettext.
79840         * m4/wint_t.m4: New file, from GNU gettext.
79841         * m4/vasnprintf.m4: New file.
79842         * m4/vasprintf.m4: New file.
79843
79844 2003-01-30  Bruno Haible  <bruno@clisp.org>
79845
79846         * lib/printf-args.h: New file, from GNU gettext.
79847         * lib/printf-args.c: New file, from GNU gettext.
79848         * lib/printf-parse.h: New file, from GNU gettext.
79849         * lib/printf-parse.c: New file, from GNU gettext.
79850         * lib/vasnprintf.h: New file, from GNU gettext.
79851         * lib/vasnprintf.c: New file, from GNU gettext.
79852         * lib/asnprintf.c: New file, from GNU gettext.
79853         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79854         * lib/vasprintf.c: New file, from GNU gettext.
79855         * lib/asprintf.c: New file, from GNU gettext.
79856
79857 2003-01-29  Bruno Haible  <bruno@clisp.org>
79858
79859         * modules/stpncpy: New module.
79860         * MODULES.html.sh (func_all_modules): Add it.
79861
79862 2003-01-29  Bruno Haible  <bruno@clisp.org>
79863
79864         * m4/stpncpy.m4: New file.
79865
79866 2003-01-29  Bruno Haible  <bruno@clisp.org>
79867
79868         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79869         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79870
79871 2003-01-28  Bruno Haible  <bruno@clisp.org>
79872
79873         * modules/c-ctype: New module.
79874         * MODULES.html.sh (func_all_modules): Add it.
79875
79876 2003-01-28  Bruno Haible  <bruno@clisp.org>
79877
79878         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79879         Paul Eggert.
79880         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79881         Paul Eggert.
79882
79883 2003-01-27  Bruno Haible  <bruno@clisp.org>
79884
79885         * modules/xsetenv: New module.
79886         * MODULES.html.sh (func_all_modules): Add it.
79887
79888 2003-01-27  Bruno Haible  <bruno@clisp.org>
79889
79890         * lib/xsetenv.h: New file, from GNU gettext.
79891         * lib/xsetenv.c: New file, from GNU gettext.
79892
79893 2003-01-23  Jim Meyering  <jim@meyering.net>
79894
79895         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79896         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79897
79898 2003-01-23  Bruno Haible  <bruno@clisp.org>
79899
79900         * modules/minmax: New module.
79901         * MODULES.html.sh (func_all_modules): Add it.
79902
79903 2003-01-23  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79906         Eggert.
79907
79908 2003-01-22  Bruno Haible  <bruno@clisp.org>
79909
79910         * modules/exit: New module.
79911         * MODULES.html.sh (func_all_modules): Add it.
79912
79913 2003-01-22  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/exit.h: New file, from GNU gettext.
79916
79917 2003-01-19  Bruno Haible  <bruno@clisp.org>
79918
79919         * gnulib-tool: Recognize option --extract-maintainer.
79920         (func_get_maintainer): New function.
79921         * modules/*: Add Maintainer entry.
79922
79923 2003-01-16  Jim Meyering  <jim@meyering.net>
79924
79925         * m4/regex.m4: The `regex' struct is both input and output.
79926         Initialize it before each use.  Patch by Tim Waugh.
79927
79928 2003-01-16  Bruno Haible  <bruno@clisp.org>
79929
79930         * MODULES.html.sh: Add a table of contents. Add the module name as
79931         leftmost column. Add hyperlinks.
79932
79933 2003-01-15  Bruno Haible  <bruno@clisp.org>
79934
79935         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79936
79937 2003-01-15  Bruno Haible  <bruno@clisp.org>
79938
79939         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79940         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79941         suffix.
79942
79943 2003-01-15  Bruno Haible  <bruno@clisp.org>
79944
79945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79946
79947 2003-01-15  Bruno Haible  <bruno@clisp.org>
79948
79949         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79950         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79951
79952 2003-01-14  Jim Meyering  <jim@meyering.net>
79953
79954         * lib/same.c (same_name): Tweak a comment.
79955
79956 2003-01-14  Bruno Haible  <bruno@clisp.org>
79957
79958         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79959         when a string comparison is sufficient.
79960
79961 2003-01-14  Bruno Haible  <bruno@clisp.org>
79962
79963         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79964         'unsigned int'.
79965
79966 2003-01-14  Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/hash-pjw.c: Add comment about low quality of this function.
79969
79970 2003-01-13  Bruno Haible  <bruno@clisp.org>
79971
79972         * modules/stpcpy: Distribute lib/stpcpy.h.
79973         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79974
79975 2003-01-13  Bruno Haible  <bruno@clisp.org>
79976
79977         * modules/*: Add a description.
79978         * modules/strpbrk: Fix Makefile.am snippet.
79979         * modules/strtoimax: Fix dependencies.
79980         * modules/strtoumax: Likewise.
79981
79982 2003-01-13  Bruno Haible  <bruno@clisp.org>
79983
79984         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79985         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79986         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79987
79988 2003-01-13  Bruno Haible  <bruno@clisp.org>
79989
79990         * gnulib-tool (func_create_testdir): Store config/* files in the main
79991         directory.
79992         * config.rpath: Move to ...
79993         * config/config.rpath: ... here.
79994         * modules/gettext: Contains config/config.rpath, not config.rpath.
79995         * modules/iconv: Likewise.
79996
79997 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79998
79999         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80000         to avoid collisions with libcurses and libreadline.
80001
80002         * m4/getstr.m4: Remove.
80003         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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
80010         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80011         * lib/getstr.h, getstr.c: Remove.
80012         * lib/getline.c: Include "getline.h", to check interface.
80013         Move body of old getstr.c here: this defines MIN_CHUNK and
80014         declares getdelim2, which is renamed from getstr.
80015         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80016
80017         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80018         All uses changed.
80019         * lib/linebuffer.h: Likewise.
80020         (readline): Remove backward-compatibility macro.
80021
80022 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80023
80024         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80025         to avoid collisions with libcurses and libreadline.
80026         * getstr: Remove.
80027         * MODULES.html.sh: Remove getstr.
80028         * modules/getline: Depend on unlocked-io, not getstr.
80029
80030 2003-01-12  Jim Meyering  <jim@meyering.net>
80031
80032         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80033
80034 2003-01-10  Bruno Haible  <bruno@clisp.org>
80035
80036         * modules/alloca: Change Makefile.am requirements. Simplify Include
80037         requirements. Add lib/alloca_.h to file list.
80038
80039 2003-01-10  Bruno Haible  <bruno@clisp.org>
80040
80041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80042
80043 2003-01-10  Bruno Haible  <bruno@clisp.org>
80044
80045         * lib/alloca_.h: New file.
80046         * lib/getdate.y: Unconditionally include alloca.h.
80047         * lib/makepath.c: Likewise.
80048         * lib/setenv.c: Likewise.
80049         * lib/userspec.c: Likewise.
80050
80051 2003-01-09  Karl Berry  <karl@gnu.org>
80052
80053         * MODULES.html.sh: include `dirname $0` in PATH, to find
80054         gnulib-tool.
80055
80056 2003-01-09  Bruno Haible  <bruno@clisp.org>
80057
80058         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80059         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80060
80061 2003-01-09  Bruno Haible  <bruno@clisp.org>
80062
80063         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80064
80065 2003-01-09  Bruno Haible  <bruno@clisp.org>
80066
80067         * lib/stdbool.h.in: New file.
80068
80069 2003-01-09  Bruno Haible  <bruno@clisp.org>
80070
80071         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80072         * MODULES.html.sh: Likewise.
80073
80074 2003-01-08  Jim Meyering  <jim@meyering.net>
80075
80076         * lib/full-write.c: Undefine and define-away `const' after inclusion
80077         of errno.h, not before.  Suggestion from Bruno Haible.
80078
80079 2003-01-08  Bruno Haible  <bruno@clisp.org>
80080
80081         * modules/full-read: Depend on full-write.
80082
80083 2003-01-08  Bruno Haible  <bruno@clisp.org>
80084
80085         * lib/safe-read.c: Include specification header first, to ensure its
80086         selfcontainedness.
80087         * lib/full-write.c: Likewise.
80088
80089 2003-01-07  Jim Meyering  <jim@meyering.net>
80090
80091         * lib/full-write.c: Rework so that it may serve to define full_read,
80092         too.
80093         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80094
80095 2003-01-07  Bruno Haible  <bruno@clisp.org>
80096
80097         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80098         <inttypes.h>.
80099         * lib/xstrtol.h: Likewise.
80100         * lib/xstrtoimax.c: Likewise.
80101         * lib/xstrtoumax.c: Likewise.
80102         * lib/human.h: Likewise.
80103
80104         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80105         on systems that have <inttypes.h> but not <stdint.h>.
80106
80107 2003-01-07  Bruno Haible  <bruno@clisp.org>
80108
80109         * MODULES.html.sh: Add copyright notice.
80110         (missed_files): Omit CVS directory entries.
80111         (func_module): Make it work with sed-3.02.
80112         * MODULES.txt: Remove file.
80113
80114 2003-01-06  Jim Meyering  <jim@meyering.net>
80115
80116         * lib/version-etc.c: Update year in translatable copyright string.
80117
80118 2003-01-03  Karl Berry  <karl@gnu.org>
80119
80120         * config/config.{guess,sub}: update from prep.
80121
80122 2003-01-02  Karl Berry  <karl@gnu.org>
80123
80124         * doc/COPYING.DOC: belatedly updated to 1.2.
80125
80126 2003-01-01  Karl Berry  <karl@gnu.org>
80127
80128         * gnulib-tool (func_verify_module): report module name $module in
80129         error message, not $1.
80130         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80131         be created, only if it doesn't exist.
80132         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80133
80134 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80135
80136         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80137
80138 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80139
80140         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80141         memcmp if strcoll doesn't work.
80142
80143 2002-12-31  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80146         nonempty.
80147
80148 2002-12-31  Bruno Haible  <bruno@clisp.org>
80149
80150         * lib/memcoll.c (STRCOLL): New macro.
80151         (memcoll): Use it.
80152
80153 2002-12-31  Bruno Haible  <bruno@clisp.org>
80154
80155         * lib/localcharset.h: New file.
80156         * lib/localcharset.c: Include it.
80157         * lib/unicodeio.c: Likewise.
80158
80159 2002-12-31  Bruno Haible  <bruno@clisp.org>
80160
80161         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80162         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80163
80164 2002-12-31  Bruno Haible  <bruno@clisp.org>
80165
80166         * lib/getline.h: Include <stddef.h>, for size_t.
80167
80168         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80169         * lib/unicodeio.c: Don't include <stddef.h>.
80170
80171 2002-12-31  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80174         HAVE_TM_ZONE.
80175
80176 2002-12-24  Karl Berry  <karl@gnu.org>
80177
80178         * config/config.guess: update from prep.
80179
80180 2002-12-24  Bruno Haible  <bruno@clisp.org>
80181
80182         General infrasructure.
80183         * m4/README: Rewritten.
80184         * m4/onceonly.m4: New file.
80185         * m4/onceonly_2_57.m4: New file.
80186
80187         Module atexit.
80188         * m4/atexit.m4: New file.
80189
80190         Module strtod.
80191         * m4/strtod.m4: New file.
80192
80193         Module strtol.
80194         * m4/strtol.m4: New file.
80195
80196         Module strtoul.
80197         * m4/strtoul.m4: New file.
80198
80199         Module memchr.
80200         * m4/memchr.m4: New file.
80201
80202         Module memcmp.
80203         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80204         (jm_FUNC_MEMCMP): Invoke it.
80205
80206         Module memcpy.
80207         * m4/memcpy.m4: New file.
80208
80209         Module memmove.
80210         * m4/memmove.m4: New file.
80211
80212         Module memset.
80213         * m4/memset.m4: New file.
80214
80215         Module strcspn.
80216         * m4/strcspn.m4: New file.
80217
80218         Module strpbrk.
80219         * m4/strpbrk.m4: New file.
80220
80221         Module strstr.
80222         * m4/strstr.m4: New file.
80223
80224         Module strerror.
80225         * m4/strerror.m4: New file.
80226
80227         Module mktime.
80228         * m4/mktime.m4: Renamed from jm-mktime.m4.
80229         (gl_PREREQ_MKTIME): New macro.
80230         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80231
80232         Module malloc.
80233         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80234         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80235         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80236
80237         Module realloc.
80238         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80239         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80240         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80241
80242         Module strftime.
80243         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80245         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80246         gl_TM_GMTOFF.
80247         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80248
80249         Module xalloc.
80250         * m4/xalloc.m4: New file.
80251
80252         Module alloca.
80253         * m4/alloca.m4: New file.
80254
80255         Module putenv.
80256         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80257         (jm_FUNC_PUTENV): Invoke it.
80258
80259         Module setenv.
80260         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80261         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80262         when invoked twice.
80263         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80264         gt_FUNC_SETENV.
80265
80266         Module memrchr.
80267         * m4/memrchr.m4: New file.
80268
80269         Module stpcpy.
80270         * m4/stpcpy.m4: New file.
80271
80272         Module strcase.
80273         * m4/strcase.m4: New file.
80274
80275         Module strdup.
80276         * m4/strdup.m4: New file.
80277
80278         Module strnlen.
80279         * m4/strnlen.m4: New file.
80280
80281         Module strndup.
80282         * m4/strndup.m4: New file.
80283
80284         Module xstrtod.
80285         * m4/xstrtod.m4: New file.
80286
80287         Module xstrtol.
80288         * m4/xstrtol.m4: New file.
80289
80290         Module getdate.
80291         * m4/getdate.m4: New file.
80292
80293         Module unlocked-io.
80294         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80295         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80296         * m4/jm-glibc-io.m4n: Remove file.
80297
80298         Module long-options.
80299         * m4/long-options.m4: New file.
80300
80301         Module md5.
80302         * m4/md5.m4: New file.
80303
80304         Module sha.
80305         * m4/sha.m4: New file.
80306
80307         Module getstr.
80308         * m4/getstr.m4: New file.
80309
80310         Module getline.
80311         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80312         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80313         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80314         simply getline. Infoke gl_PREREQ_GETLINE.
80315
80316         Module obstack.
80317         * m4/obstack.m4: New file.
80318
80319         Module hash.
80320         * m4/hash.m4: New file.
80321
80322         Module readtokens.
80323         * m4/readtokens.m4: New file.
80324
80325         Module strverscmp.
80326         * m4/strverscmp.m4: New file.
80327
80328         Module stdbool.
80329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80330         OSF/1.
80331
80332         Module strtoll.
80333         * m4/strtoll.m4: New file.
80334
80335         Module strtoull.
80336         * m4/strtoull.m4: New file.
80337
80338         Module strtoimax.
80339         * m4/strtoimax.m4: New file.
80340
80341         Module strtoumax.
80342         * m4/strtoumax.m4: New file.
80343
80344         Module xstrtoimax.
80345         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80346         jm_AC_PREREQ_XSTRTOIMAX.
80347         Moved the strtol prerequisites to strtol.m4.
80348         Moved the strtoll prerequisites to strtoll.m4.
80349         Moved the strtoimax prerequisites to strtoimax.m4.
80350
80351         Module xstrtoumax.
80352         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80353         jm_AC_PREREQ_XSTRTOUMAX.
80354         Moved the strtoul prerequisites to strtoul.m4.
80355         Moved the strtoull prerequisites to strtoull.m4.
80356         Moved the strtoumax prerequisites to strtoumax.m4.
80357
80358         Module chown.
80359         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80360         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80361
80362         Module dup2.
80363         * m4/dup2.m4: New file.
80364
80365         Module ftruncate.
80366         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80367         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80368
80369         Module getgroups.
80370         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80371         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80372
80373         Module gettimeofday.
80374         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80375         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80376         gl_PREREQ_GETTIMEOFDAY.
80377
80378         Module mkdir.
80379         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80380         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80381
80382         Module mkstemp.
80383         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80384         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80385         jm_AC_TYPE_UINTMAX_T.
80386         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80387
80388         Module stat.
80389         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80390         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80391
80392         Module lstat.
80393         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80394         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80395
80396         Module timespec.
80397         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80398         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80399         * m4/st_mtim.m4: Indentation.
80400
80401         Module nanosleep.
80402         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80403         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80404         gl_PREREQ_NANOSLEEP.
80405
80406         Module regex.
80407         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80408         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80409         (gl_REGEX): New macro.
80410
80411         Module rename.
80412         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80413         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80414
80415         Module rmdir.
80416         * m4/rmdir.m4: New file.
80417
80418         Module utime.
80419         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80420         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80421         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80422
80423         Module dirname.
80424         * m4/dirname.m4: New file.
80425
80426         Module getopt.
80427         * m4/getopt.m4: New file.
80428
80429         Module unistd-safer.
80430         * m4/unistd-safer.m4: New file.
80431
80432         Module fnmatch.
80433         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80434         declaration.
80435         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80436         (gl_FUNC_FNMATCH_POSIX): New macro.
80437         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80438         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80439         simply fnmatch.
80440
80441         Module exclude.
80442         * m4/exclude.m4: New file.
80443
80444         Module human.
80445         * m4/human.m4: New file.
80446
80447         Module acl.
80448         * m4/acl.m4: Nop.
80449
80450         Module backupfile.
80451         * m4/backupfile.m4: New file.
80452         * m4/d-ino.m4: Indentation.
80453
80454         Module fsusage.
80455         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80456         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80457         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80458
80459         Module dirfd.
80460         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80461         requirements.
80462
80463         Module euidaccess.
80464         * m4/euidaccess.m4: New file.
80465
80466         Module file-type.
80467         * m4/file-type.m4: New file.
80468
80469         Module fileblocks.
80470         * m4/fileblocks.m4: New file.
80471
80472         Module filemode.
80473         * m4/filemode.m4: New file.
80474
80475         Module isdir.
80476         * m4/isdir.m4: New file.
80477
80478         Module lchown.
80479         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80480         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80481
80482         Module makepath.
80483         * m4/makepath.m4: New file.
80484
80485         Module modechange.
80486         * m4/modechange.m4: New file.
80487
80488         Module mountlist.
80489         * m4/mountlist.m4: New file.
80490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80491         Indentation.
80492
80493         Module path-concat.
80494         * m4/path-concat.m4: New file.
80495
80496         Module pathmax.
80497         * m4/pathmax.m4: New file.
80498
80499         Module same.
80500         * m4/same.m4: New file.
80501
80502         Module save-cwd.
80503         * m4/save-cwd.m4: New file.
80504
80505         Module savedir.
80506         * m4/savedir.m4: New file.
80507
80508         Module xgetcwd.
80509         * m4/xgetcwd.m4: New file.
80510         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80511
80512         Module xreadlink.
80513         * m4/xreadlink.m4: New file.
80514
80515         Module safe-read.
80516         * m4/safe-read.m4: New file.
80517
80518         Module safe-write.
80519         * m4/safe-write.m4: New file.
80520
80521         Module closeout.
80522         * m4/closeout.m4: New file.
80523
80524         Module stdio-safer.
80525         * m4/stdio-safer.m4: New file.
80526
80527         Module getpass.
80528         * m4/getpass.m4: New file.
80529
80530         Module getugroups.
80531         * m4/getugroups.m4: New file.
80532
80533         Module group-member.
80534         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80535         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80536
80537         Module idcache.
80538         * m4/idcache.m4: New file.
80539
80540         Module userspec.
80541         * m4/userspec.m4: New file.
80542
80543         Module gettime.
80544         * m4/clock_time.m4: New file.
80545         * m4/gettime.m4: New file.
80546
80547         Module settime.
80548         * m4/settime.m4: New file.
80549
80550         Module posixtm.
80551         * m4/posixtm.m4: New file.
80552
80553         Module gethostname.
80554         * m4/gethostname.m4: New file.
80555
80556         Module canon-host.
80557         * m4/canon-host.m4: New file.
80558
80559         Module gettext.
80560         * m4/codeset.m4: New file, from gettext-0.11.5.
80561         * m4/gettext.m4: New file, from gettext-0.11.5.
80562         * m4/glibc21.m4: New file, from gettext-0.11.5.
80563         * m4/iconv.m4: New file, from gettext-0.11.5.
80564         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80565         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80566         * m4/inttypes.m4: New file, from gettext-0.11.5.
80567         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80568         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80569         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80570         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80571         * m4/lib-link.m4: New file, from gettext-0.11.5.
80572         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80573         * m4/progtest.m4: New file, from gettext-0.11.5.
80574         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80575         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80576         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80577
80578         Module localcharset.
80579         * m4/localcharset.m4: New file.
80580
80581         Module hard-locale.
80582         * m4/hard-locale.m4: New file.
80583
80584         Module mbswidth.
80585         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80586         onceonly macros.
80587         * m4/mbrtowc.m4: Add comment.
80588
80589         Module memcasecmp.
80590         * m4/memcasecmp.m4: New file.
80591
80592         Module memcoll.
80593         * m4/memcoll.m4: New file.
80594
80595         Module unicodeio.
80596         * m4/unicodeio.m4: New file.
80597
80598         Module rpmatch.
80599         * m4/rpmatch.m4: New file.
80600
80601         Module yesno.
80602         * m4/yesno.m4: New file.
80603
80604         Module exitfail.
80605         * m4/exitfail.m4: New file.
80606
80607         Module c-stack.
80608         * m4/c-stack.m4 (gl_C_STACK): New macro.
80609         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80610
80611         Module error.
80612         * m4/error.m4 (gl_ERROR): New macro.
80613         (jm_PREREQ_ERROR): Use onceonly macros.
80614
80615         Module fatal.
80616         * m4/fatal.m4: New file.
80617
80618         Module getloadavg.
80619         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80620         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80621
80622         Module getpagesize.
80623         * m4/getpagesize.m4: New file.
80624
80625         Module getusershell.
80626         * m4/getusershell.m4: New file.
80627
80628         Module physmem.
80629         * m4/physmem.m4: New file.
80630
80631         Module posixver.
80632         * m4/posixver.m4: New file.
80633
80634         Module quotearg.
80635         * m4/quotearg.m4: New file.
80636
80637         Module quote.
80638         * m4/quote.m4: New file.
80639
80640         Module readutmp.
80641         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80642
80643         Module sig2str.
80644         * m4/sig2str.m4: New file.
80645
80646         Other.
80647         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80648         ulonglong.m4.
80649         * m4/intmax_t.m4: New file.
80650         * m4/d-type.m4: Indentation.
80651         * m4/jm-macros.m4: Update.
80652         * m4/prereq.m4 (jm_PREREQ): Update.
80653         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80654         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80655         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80656         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80657         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80658         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80659         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80660         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80661         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80662         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80663         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80664         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80665         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80666         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80667         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80668         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80669         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80670         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80671         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80672
80673 2002-12-24  Bruno Haible  <bruno@clisp.org>
80674
80675         * MODULES.txt: Update according to m4/ changes.
80676
80677         Module gettext.
80678         * config.rpath: New file, from gettext-0.11.5.
80679
80680         * modules/*: New module descriptions.
80681         * gnulib-tool: New file.
80682         * MODULES.html.sh: New file.
80683
80684 2002-12-21  Karl Berry  <karl@gnu.org>
80685
80686         * doc/fdl.texi: update to version 1.2.
80687
80688 2002-12-19  Karl Berry  <karl@gnu.org>
80689
80690         * config/config.guess: update from prep.
80691
80692 2002-12-18  Bruno Haible  <bruno@clisp.org>
80693
80694         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80695         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80696
80697 2002-12-17  Bruno Haible  <bruno@clisp.org>
80698
80699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80700         stdlib.h, string.h.
80701
80702 2002-12-17  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/canon-host.c (strdup): Remove unused declaration.
80705
80706         * lib/fsusage.c: Include full_read.h.
80707         (get_fs_usage): Use full_read instead of safe_read.
80708
80709         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80710
80711 2002-12-12  Karl Berry  <karl@gnu.org>
80712
80713         * config/config.guess: update from prep.
80714
80715 2002-12-11  Bruno Haible  <bruno@clisp.org>
80716
80717         * m4/setenv.m4: New file, from gettext-0.11.5.
80718
80719 2002-12-11  Bruno Haible  <bruno@clisp.org>
80720
80721         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80722         not unsetenv().
80723         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80724         modifications:
80725
80726         2002-12-11  Bruno Haible  <bruno@clisp.org>
80727
80728                 * setenv.c (alloca): Fall back to malloc.
80729                 (freea): New macro.
80730                 (setenv): Use freea() to free memory allocated with alloca().
80731
80732         2002-11-13  Bruno Haible  <bruno@clisp.org>
80733
80734                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80735                 function declarations.
80736                 * unsetenv.c (unsetenv): Likewise.
80737
80738         2002-03-04  Bruno Haible  <bruno@clisp.org>
80739
80740                 Portability to AIX 4.3.3.
80741                 * unsetenv.c: New file, extracted from setenv.c.
80742                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80743
80744         2001-12-20  Bruno Haible  <bruno@clisp.org>
80745
80746                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80747                 use malloc instead. For SunOS 4.
80748
80749         2001-12-11  Bruno Haible  <bruno@clisp.org>
80750
80751                 * setenv.c: Declare alloca.
80752                 (compar_fn_t): New typedef.
80753                 (KNOWN_VALUE, STORE_VALUE): Use it.
80754
80755         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80756         setenv.h.
80757
80758 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80759
80760         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80761         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80762         Choose values that are less likely to collide with system fnmatch
80763         options.
80764         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80765         defined (e.g., a pure POSIX system).
80766         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80767         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80768
80769 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80770
80771         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80772         a pain in practice to deal with generated m4 files.  This change
80773         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80774
80775         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80776         and jm-glibc-io.m4, as they are no longer a special case.
80777         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80778         kludge and the auto-generation stuff.  Check only whether the
80779         functions are declared, not whether they exist, since older hosts
80780         that don't declare the functions can't use the optimization anyway.
80781
80782 2002-12-06  Jim Meyering  <jim@meyering.net>
80783
80784         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80785
80786         Merge in changes from libc's misc/error.c, in preparation
80787         for the merge of gnulib's changes back into libc.
80788
80789         * lib/error.c (_): Define only if not already defined.
80790         Move definition to follow all #include directives.
80791         Include unlocked-io.h only if !_LIBC.
80792         [_LIBC]: Include <libio/libioP.h>.
80793         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80794         (fflush): Tweak definition to use INTUSE.
80795         (putc): Define.
80796
80797 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80798
80799         * lib/alloca.c [defined emacs]: Include "lisp.h".
80800         (xalloc_die) [defined emacs]: New macro.
80801         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80802         [! defined emacs]: Include <xalloc.h>.
80803         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80804         (pointer): Typedef to POINTER_TYPE *.
80805         (malloc): Remove decl; we now always use xmalloc.
80806         (alloca): Use old-style definition, since Emacs needs this.
80807         Check for arithmetic overflow when computing combined size.
80808
80809 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80810
80811         Do not generate unlocked-io.h automatically, since it's easier to
80812         maintain it by hand.
80813
80814         * lib/unlocked-io.h: New file, from GNU diffutils,
80815         but with proper copyright notice and attribution.
80816         * lib/gen-uio: Remove.
80817         * lib/Makefile.am: Add copyright notice.
80818         (libfetish_a_SOURCES): Add unlocked-io.h.
80819         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80820         (DISTCLEANFILES, io_functions): Remove macros.
80821         (EXTRA_DIST): Remove gen_uio.
80822         (unlocked-io.h): Remove rule.
80823
80824 2002-12-04  Jim Meyering  <jim@meyering.net>
80825
80826         Reflect the fact that stat.c and lstat.c are no longer generated.
80827         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80828         (DISTCLEANFILES): Likewise.
80829         (EXTRA_DIST): Likewise.
80830         (all_local): Don't depend on stat.c or lstat.c.
80831         (stat.c, lstat.c): Remove rules.
80832         (EXTRA_DIST): Remove xstat.in.
80833
80834         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80835         * lib/stat.c: New file.  Contents mostly from xstat.in.
80836         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80837         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80838
80839         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80840         too.
80841         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80842
80843 2002-12-03  Jim Meyering  <jim@meyering.net>
80844
80845         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80846         but not semantics, to minimize the differences between these two files.
80847         (safe_read): Change comment to mention SAFE_READ_ERROR.
80848
80849         * lib/safe-read.c (IS_EINTR): Define.
80850         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80851
80852 2002-12-02  Jim Meyering  <jim@meyering.net>
80853
80854         * lib/safe-read.c (EINTR): Define.
80855         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80856         (INT_MAX): Provide fallback.
80857         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80858
80859         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80860
80861 2002-12-02  Bruno Haible  <bruno@clisp.org>
80862
80863         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80864         Define, taken from safe-read.c.
80865         (INT_MAX): Provide fallback.
80866         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80867         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80868
80869         * lib/safe-read.c (EINTR): Remove definition.
80870         (safe_read): Don't use EINTR if it is absent.
80871
80872 2002-12-01  Jim Meyering  <jim@meyering.net>
80873
80874         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80875         zero.
80876         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80877
80878 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80879
80880         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80881         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80882         with `if (! (value < limit)) abort ();', for readability.
80883
80884 2002-11-26  Karl Berry  <karl@gnu.org>
80885
80886         * lib/strdup.c: copy from libc again, with jim's ok.
80887         * lib/.cppi-disable: re-add strdup.c
80888
80889 2002-11-25  Karl Berry  <karl@gnu.org>
80890
80891         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80892         instead of "strtol.c".
80893
80894 2002-11-25  Karl Berry  <karl@gnu.org>
80895
80896         * config/install-sh: update from automake for variable quoting, $0 in
80897         error msgs, etc.
80898
80899         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80900         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80901         entry.
80902
80903 2002-11-25  Jim Meyering  <jim@meyering.net>
80904
80905         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80906
80907 2002-11-24  Karl Berry  <karl@gnu.org>
80908
80909         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80910         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80911
80912 2002-11-24  Jim Meyering  <jim@meyering.net>
80913
80914         Update from coreutils:
80915
80916         * lib/mktime.c: Merge in changes from libc.
80917
80918         Avoid a link-time failure on some Linux systems.
80919         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80920         (otherwise).
80921         (__mon_yday): Declare with the STATIC attribute.
80922         (__mktime_internal): Likewise.
80923         Based on a report from Greg Schafer.
80924
80925 2002-11-23  Jim Meyering  <jim@meyering.net>
80926
80927         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80928         Use `unsigned', not `int', as type of index.
80929
80930         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80931
80932         * lib/fsusage.c: Remove unneeded parentheses around operands of
80933         `defined'.
80934
80935 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80936
80937         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80938         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80939         so that we can be included first.
80940         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80941         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80942         No need to include stddef.h or sys/types.h any more.
80943         Surround local include files with "", not "<>".
80944         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80945         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80946         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80947         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80948         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80949         (ISPRINT): Remove; no longer needed now that we assume C89.
80950
80951         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80952         Preserve errno.
80953
80954         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80955         quotearg_char): Use SIZE_MAX rather than
80956         (size_t) -1 when we are talking about "infinity".
80957
80958         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80959
80960 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80961
80962         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80963         hint that one should use `if (! x) abort ();' rather than `assert
80964         (x);', and anyway it's one less thing to worry about configuring.
80965         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80966         hash_rehash, hash_insert): Use abort rather than assert.
80967
80968 2002-11-22  Bruno Haible  <bruno@clisp.org>
80969
80970         * lib/safe-read.h: Assume C89. Add comments.
80971         (safe_read): Change return type to size_t.
80972         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80973         byte counts > SSIZE_MAX correctly.
80974         * lib/safe-write.h: New file.
80975         * lib/safe-write.c: New file.
80976         * lib/full-read.h: New file.
80977         * lib/full-read.c: New file.
80978         * lib/full-write.h: Assume C89. Add comments.
80979         * lib/full-write.c: Include safe-write.h.
80980         (full_write): Rewritten to use safe_write.
80981         Suggested by Jim Meyering and Paul Eggert.
80982
80983 2002-11-21  Jim Meyering  <jim@meyering.net>
80984
80985         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80986
80987         Merge in changes from the coreutils.
80988
80989         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80990         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80991         <stdint.h>.
80992         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80993         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80994         int.  Work more efficiently if X is the same width as uintmax_t.
80995         Do not compare X to -1, to avoid bogus compiler warning.
80996         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80997         Don't assume that f_frsize and f_bsize are the same type.
80998
80999         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81000         warning on FreeBSD.
81001
81002         * lib/makepath.c (make_path): Restore umask *before* creating the final
81003         component.
81004         (make_path): Minor reformatting.
81005
81006         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81007         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81008         HAVE_MALLOC/HAVE_REALLOC.
81009
81010         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81011         dummy ones.  At least on GNU/Linux systems, `auto' means something
81012         else.
81013         From Michael Stone.
81014
81015 2002-11-21  Bruno Haible  <bruno@clisp.org>
81016
81017         Remove case insensitive option matching.
81018         * lib/argmatch.h (argcasematch): Remove declaration.
81019         (ARGCASEMATCH): Remove macro.
81020         (__xargmatch_internal): Remove case_sensitive argument.
81021         (XARGMATCH): Update.
81022         (XARGCASEMATCH): Remove macro.
81023         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81024         case_sensitive argument.
81025         (argcasematch): Remove function.
81026         (__xargmatch_internal): Remove case_sensitive argument.
81027         (main): Use XARGMATCH instead of XARGCASEMATCH.
81028
81029         * lib/xmalloc.c: Change compile-time error message. Add comment about
81030         required autoconf version.
81031
81032 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81033
81034         Merge argmatch cleanups from Bison.  Assume C89.
81035
81036         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81037         Include stdlib.h, for EXIT_FAILURE.
81038         Always include <string.h>, since we assume C89.
81039         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81040         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81041         Include <stddef.h> instead, since it's all we need for size_t.
81042         (PARAMS): Remove.  All uses removed.
81043         (ARRAY_CARDINALITY): Do not bother to #undef.
81044         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81045         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81046         Remove unnecessary parentheses.
81047         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81048         Insert necessary parentheses.
81049         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81050         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81051
81052 2002-11-19  Bruno Haible  <bruno@clisp.org>
81053
81054         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81055         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81056
81057         * lib/mbswidth.h (PARAMS): Remove macro.
81058         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81059         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81060
81061         * lib/gcd.h (PARAMS): Remove macro.
81062         (gcd): Use ANSI C function declarations.
81063         * lib/gcd.c (gcd): Likewise.
81064
81065 2002-11-15  Bruno Haible  <bruno@clisp.org>
81066
81067         * lib/strcspn.c: Include <stddef.h>.
81068         (strcspn): Use ANSI C function declaration. Change return type to
81069         size_t. Use NULL.
81070         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81071         (strpbrk): Use NULL.
81072         * lib/strpbrk.h (PARAMS): Remove macro.
81073         (strpbrk): Use ANSI C function declaration.
81074         * lib/strstr.c: Don't include <sys/types.h>.
81075         * lib/strstr.h (PARAMS): Remove macro.
81076         (strstr): Use ANSI C function declarations.
81077
81078 2002-11-14  Karl Berry  <karl@gnu.org>
81079
81080         * config/mkinstalldirs: `do' on separate line, instead of
81081         `for var; do'.
81082
81083 2002-11-06  Bruno Haible  <bruno@clisp.org>
81084
81085         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81086         * lib/gcd.c (gcd): Likewise.
81087
81088 2002-11-05  Bruno Haible  <bruno@clisp.org>
81089
81090         * lib/gcd.h: New file, from gettext-0.11.5.
81091         * lib/gcd.c: New file, from gettext-0.11.5.
81092
81093 2002-11-05  Bruno Haible  <bruno@clisp.org>
81094
81095         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81096         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81097         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81098         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81099
81100         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81101         <libintl.h>.
81102         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81103         <libintl.h>.
81104
81105         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81106         * lib/human.c: Include gettext.h instead of <libintl.h>.
81107         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81108         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81109         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81110         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81111         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81112         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81113         (textdomain): Remove definition.
81114         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81115
81116         * lib/long-options.c: Remove include of <libintl.h> and definition of
81117         _.
81118         * lib/same.c: Remove include of <libintl.h> and definition of _.
81119
81120 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81121
81122         * lib/config.charset: A few additions for Solaris.
81123
81124 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81125
81126         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81127         * lib/localcharset.c (locale_charset): Declare as extern "C".
81128
81129 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81130
81131         * lib/config.charset: msdos in uk_UA uses CP1125.
81132
81133 2002-11-04  Bruno Haible  <bruno@clisp.org>
81134
81135         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81136         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81137         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81138         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81139         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81140
81141 2002-11-04  Bruno Haible  <bruno@clisp.org>
81142
81143         * lib/localcharset.c (locale_charset): Don't return an empty string.
81144
81145 2002-11-04  Bruno Haible  <bruno@clisp.org>
81146
81147         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81148         aliases.
81149
81150 2002-11-04  Bruno Haible  <bruno@clisp.org>
81151
81152         * lib/config.charset: Update for newest glibc. Add canonical names
81153         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81154
81155 2002-11-04  Bruno Haible  <bruno@clisp.org>
81156
81157         * lib/config.charset: Add support for NetBSD.
81158
81159 2002-11-04  Bruno Haible  <bruno@clisp.org>
81160
81161         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81162
81163 2002-11-01  Bruno Haible  <bruno@clisp.org>
81164
81165         * configure.in: Add AC_CONFIG_AUX_DIR call.
81166         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81167         test/Makefile.
81168         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81169
81170 2002-09-28  Karl Berry  <karl@gnu.org>
81171
81172         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81173         installed automake until the next release, since changes have been
81174         made.
81175
81176 2002-09-25  Karl Berry  <karl@gnu.org>
81177
81178         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81179         * lib/getopt*: copy from libc/posix.
81180         * lib/gettext.h: copy from gettext.
81181         * lib/.cppi-disable: add strdup.c, gettext.h.
81182
81183 2002-09-25  Karl Berry  <karl@gnu.org>
81184
81185         * config/srclist.txt: enable gettext.h check.
81186         * config/config.{guess,sub}: update from prep.
81187         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81188                 from automake 1.6.3.
81189         See srclist*.
81190
81191 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81192
81193         * regex.c (PATFETCH): Remove the translating fetch.
81194         (PATFETCH_RAW): Rename to PATFETCH.
81195         (set_image_of_range): New fun.
81196         (SET_RANGE_TABLE_WORK_AREA): Use it.
81197         (regex_compile): Don't translate the pattern chars so eagerly.
81198         Only do it when inserting an `exactn' bytecode or when handling
81199         a char-range.
81200         (mutually_exclusive_p): Avoid empty statement.
81201
81202 2002-07-06  Jim Meyering  <meyering@lucent.com>
81203
81204         * m4/README: Don't mention Makefile.am.in.
81205         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81206
81207 2002-07-01  Jim Meyering  <meyering@lucent.com>
81208
81209         * lib/c-stack.c: Include sys/time.h.
81210         From Volker Borchert.
81211
81212 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81213
81214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81215
81216 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81217
81218         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81219         New macro.  Use it uniformly instead of
81220         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81221         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81222         reported by Vin Shelton.
81223
81224 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81225
81226         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81227         Do not assume SA_SIGINFO behavior.
81228         Bug reported by Jim Meyering on NetBSD 1.5.2.
81229
81230 2002-06-22  Jim Meyering  <meyering@lucent.com>
81231
81232         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81234
81235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81236         now that configure.ac uses AC_GNU_SOURCE.
81237         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81238         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81239
81240         Update to latest tools.  Suggestions from Paul Eggert.
81241         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81242         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81243         * m4/fnmatch.m4: Likewise.
81244         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81245         to AC_HEADER_STDBOOL
81246
81247 2002-06-22  Jim Meyering  <meyering@lucent.com>
81248
81249         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81250         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81251
81252 2002-06-22  Jim Meyering  <meyering@lucent.com>
81253
81254         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81255
81256         * lib/exitfail.c, exitfail.h: Likewise.
81257         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81258
81259         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81260         of fnmatch.h.
81261         (EXTRA_DIST): Add fnmatch_loop.c.
81262         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81263
81264         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81265         * lib/fnmatch.c: Update from diffutils-2.8.2.
81266         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81267         * lib/fnmatch.h: Remove file.
81268
81269 2002-06-21  Jim Meyering  <meyering@lucent.com>
81270
81271         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81272         * m4/mbrtowc.m4: Likewise.
81273
81274         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81275         * m4/mbswidth.m4: Reflect name change:
81276         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81278
81279         * m4/lib-link.m4: Update from gettext-0.11.2.
81280         * m4/gettext.m4: Likewise.
81281
81282         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81283         From Alfred M. Szmidt.
81284
81285 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81286
81287         * lib/file-type.h: Report an error if neither S_ISREG nor
81288         S_IFREG is defined, instead of using a test specific to glibc
81289         2.2.  This should be safe, since POSIX requires S_ISREG and
81290         Unix Version 7 had S_IFREG.  We don't need to check for
81291         <sys/types.h> since we don't use any symbols that it defines.
81292
81293 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81294
81295         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81296         $@-t, so that each temporary file name is unique and valid in the first
81297         8 characters, for operation under DOS.
81298
81299 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81300
81301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81302
81303 2002-06-15  Jim Meyering  <meyering@lucent.com>
81304
81305         Work even with DJGPP 2.03, which lacks support for symlinks.
81306         From Richard Dawe.
81307         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81308         is defined.
81309         * lib/lchown.c (S_ISLNK): Likewise.
81310
81311 2002-06-15  Jim Meyering  <meyering@lucent.com>
81312
81313         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81314         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81315         have been included before this file.
81316
81317 2002-06-14  Jim Meyering  <meyering@lucent.com>
81318
81319         * lib/file-type.h: Use the version from diffutils-2.8.2.
81320         * lib/file-type.c: Likewise.
81321
81322 2002-06-07  Jim Meyering  <meyering@lucent.com>
81323
81324         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81325         They're needed at least for NetBSD 1.5.2.
81326         ($statxfs_includes): Include those same headers.
81327         ($statxfs_includes): Include sys/vfs.h if available.
81328         ($statxfs_includes): Likewise for sys/statvfs.h.
81329         Check for the following members in both structs statfs and statvfs:
81330         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81331
81332 2002-06-01  Jim Meyering  <meyering@lucent.com>
81333
81334         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81335         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81336
81337 2002-05-28  Jim Meyering  <meyering@lucent.com>
81338
81339         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81340         Reported by Volker Borchert.
81341
81342 2002-05-27  Jim Meyering  <meyering@lucent.com>
81343
81344         Fix a problem seen only on nonconforming systems whereby ls.c's
81345         use of localtime, and then of gettimeofday would cause trouble:
81346         the localtime call used to initialize rpl_gettimeofday's save
81347         mechanism would clobber ls's current local time information so
81348         that in any long listing the first file would always be listed
81349         with date 1970-01-01.  Analysis by Volker Borchert.
81350
81351         * lib/gettimeofday.c (localtime): Undefine.
81352         (rpl_localtime): New function.
81353
81354 2002-05-27  Jim Meyering  <meyering@lucent.com>
81355
81356         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81357         localtime.
81358
81359         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81360         use the replacement function; it wouldn't resolve at link time.
81361         Reported by Volker Borchert.
81362
81363 2002-05-22  Jim Meyering  <meyering@lucent.com>
81364
81365         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81366         file-type.h.
81367         * lib/file-type.h: New file.
81368         * lib/file-type.c (file_type): New file/function.  Extracted from
81369         diffutils.
81370
81371 2002-04-30  Jim Meyering  <meyering@lucent.com>
81372
81373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81374
81375 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81376
81377         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81378
81379 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81380
81381         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81382         Do not check for alloca.h (no longer used) or stdbool.h (was never
81383         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81384
81385 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81386
81387         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81388
81389 2002-04-29  Jim Meyering  <meyering@lucent.com>
81390
81391         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81392         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81393         Use AC_FUNC_STRNLEN here instead.
81394
81395         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81396         With autoconf-2.53a, it's part of AC_PROG_CC.
81397
81398 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81399
81400         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81402
81403 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81404
81405         * lib/sig2str.h, lib/sig2str.c: New files.
81406         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81407
81408 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81409
81410         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81411         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81412         of 127, since 64 is the largest conceivable number for ancient
81413         nonstandard hosts.
81414         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81415
81416 2002-04-28  Jim Meyering  <meyering@lucent.com>
81417
81418         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81419
81420 2002-04-24  Jim Meyering  <meyering@lucent.com>
81421
81422         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81423         (jm_PREREQ): Use it.
81424
81425         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81426         mach/mach.h fcntl.h.
81427         Check for this function: setlocale.
81428
81429 2002-04-24  Jim Meyering  <meyering@lucent.com>
81430
81431         * lib/gettext.h: New file, from Gettext.
81432         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81433         (libfetish_a_SOURCES): Add gettext.h.
81434
81435 2002-04-16  Jim Meyering  <meyering@lucent.com>
81436
81437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81438         ut_pid, ut_id, ut_exit.
81439
81440 2002-04-16  Jim Meyering  <meyering@lucent.com>
81441
81442         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81443         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81444         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81445
81446 2002-04-12  Jim Meyering  <meyering@lucent.com>
81447
81448         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81449         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81450         existence of the getmntinfo function.  Needed for Darwin 5.3.
81451
81452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81453         This is necessary at least on Darwin 5.3.
81454
81455         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81456         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81457         strnlen.o in the library, and that makes some versions of ranlib
81458         object.
81459
81460 2002-04-12  Jim Meyering  <meyering@lucent.com>
81461
81462         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81463
81464 2002-04-09  Jim Meyering  <meyering@lucent.com>
81465
81466         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81467         to be more precise.  Rather than saying we're checking whether the
81468         function `works', say what we're testing.
81469         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81470         Reported by Bruno Haible.
81471
81472 2002-03-10  Jim Meyering  <meyering@lucent.com>
81473
81474         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81475         Suggestion from Santiago Vila.
81476
81477 2002-03-08  Jim Meyering  <meyering@lucent.com>
81478
81479         * lib/rename.c: Mention that this wrapper is needed also on
81480         mips-dec-ultrix4.4 systems.
81481
81482 2002-03-02  Jim Meyering  <meyering@lucent.com>
81483
81484         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81485         not HAVE_CLOCK_SETTIME.
81486
81487 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81488
81489         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81490         Check for clock_settime.
81491
81492 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81493
81494         * lib/nanosleep.h: Rename to....
81495         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81496
81497         * lib/gettime.c: New file.
81498         * lib/settime.c: New file.
81499         * lib/stime.c: Remove.
81500
81501         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81502         timespec.h.  Remove nanosleep.h.
81503
81504 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81505
81506         * m4/acl.m4: New file.
81507         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81508         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81509
81510 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81511
81512         * lib/acl.c, lib/acl.h: New files.
81513         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81514
81515 2002-02-24  Jim Meyering  <meyering@lucent.com>
81516
81517         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81518         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81519         cause trouble.  Reported by Nelson Beebe.
81520
81521 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81522
81523         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81524         compilers that don't know that xalloc_die never returns.
81525
81526 2002-02-20  Jim Meyering  <meyering@lucent.com>
81527
81528         * lib/getdate.c: Regenerate using bison-1.33.
81529
81530 2002-02-17  Jim Meyering  <meyering@lucent.com>
81531
81532         * config/config.guess (main): Don't use `head -1'; it's no longer
81533         portable. Use `sed 1q' instead.
81534
81535 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81536
81537         * m4/codeset.m4: Upgrade to gettext-0.11.
81538         * m4/gettext.m4: Upgrade to gettext-0.11.
81539         * m4/glibc21.m4: Upgrade to gettext-0.11.
81540         * m4/iconv.m4: Upgrade to gettext-0.11.
81541         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81542         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81543         * m4/lib-ld.m4: New file, from gettext-0.11.
81544         * m4/lib-link.m4: New file, from gettext-0.11.
81545         * m4/lib-prefix.m4: New file, from gettext-0.11.
81546         * m4/progtest.m4: Upgrade to gettext-0.11.
81547
81548 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81549
81550         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81551         (jm_PREREQ): Use it.
81552
81553 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81554
81555         * lib/posixver.c, lib/posixver.h: New files.
81556         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81557
81558 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81559             Bruno Haible  <bruno@clisp.org>
81560
81561         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81562         (fwrite_success_callback): New declaration.
81563         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81564         print_unicode_char. Call failure callback instead of error.
81565         (fwrite_success_callback): New function.
81566         (exit_failure_callback): New function.
81567         (fallback_failure_callback): New function.
81568         (print_unicode_char): Call unicode_to_mb.
81569
81570 2002-01-26  Jim Meyering  <meyering@lucent.com>
81571
81572         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81573         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81574
81575 2002-01-26  Jim Meyering  <meyering@lucent.com>
81576
81577         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81578
81579 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81580
81581         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81582
81583 2002-01-22  Jim Meyering  <meyering@lucent.com>
81584
81585         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81586         Otherwise, some versions of automake would omit the rule that makes
81587         Makefile from Makefile.in.
81588
81589 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81590
81591         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81592         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81593         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81594         (memcoll): Set errno to zero if there is no error.
81595
81596         * lib/quotearg.c (quotearg_buffer_restyled):
81597         Fix bug with quoting buffers containing NUL when backslashing escapes.
81598         This bug was exposed by the other changes in this patch.
81599         (quotearg_n_options): New arg ARGSIZE.
81600         All callers changed.
81601         (quoting_options_from_style): New function.
81602         (quotearg_n_style): Use it.
81603         (quotearg_n_style_mem): New function.
81604
81605         * lib/quotearg.h (quotearg_n_style_mem): New function.
81606
81607 2002-01-19  Jim Meyering  <meyering@lucent.com>
81608
81609         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81610         Remove useless quotes: DF_PROG="df".
81611         * m4/strnlen.m4: New file.
81612
81613 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81614
81615         * lib/backupfile.c (ISDIGIT): Comment fix.
81616         * lib/getdate.y (ISDIGIT): Likewise.
81617         * lib/posixtm.c (ISDIGIT, year): Likewise.
81618         * lib/strverscmp.c (ISDIGIT): Likewise.
81619         * lib/userspec.c (ISDIGIT): Likewise.
81620
81621 2002-01-16  Jim Meyering  <meyering@lucent.com>
81622
81623         * lib/getdate.y: Add three semicolons, each just before a closing
81624         brace. Bison (as of version 1.31) no longer papers over that mistake.
81625
81626 2002-01-05  Jim Meyering  <meyering@lucent.com>
81627
81628         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81629
81630 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81631
81632         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81633         not silently exit merely because the output buffer happens to
81634         have nothing pending.
81635
81636 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81637
81638         See the big note in ../ChangeLog.
81639         * lib/human.c (suffixes): Prefer K to k for 1024.
81640         (generate_suffix_backwards): New function.
81641         (human_readable_inexact): Use it.
81642         * lib/xstrtol.c (__xstrtol): If there is no number but there
81643         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81644         Accept 'K' as well as 'k'.
81645
81646 2001-12-15  Jim Meyering  <meyering@lucent.com>
81647
81648         * lib/regex.h (__restrict_arr): Update from libc.
81649
81650         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81651         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81652         (STREQ): Define.
81653
81654 2001-12-14  Jim Meyering  <meyering@lucent.com>
81655
81656         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81657         Suggestion from Bruno Haible.
81658
81659 2001-12-10  Jim Meyering  <meyering@lucent.com>
81660
81661         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81662         xrealloc, Instead, include "xalloc.h".
81663         (initbuffer): Don't cast xmalloc return value to char*.
81664         (readline): Reword comment.
81665         Don't cast xrealloc return value to char*
81666         Return NULL, not 0.
81667
81668 2001-12-09  Jim Meyering  <meyering@lucent.com>
81669
81670         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81671         about `signed and unsigned type in conditional expression'.
81672         * lib/posixtm.c (posix_time_parse): Likewise.
81673
81674         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81675
81676         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81677         to avoid a pedantic warning.
81678
81679         * lib/getstr.c: Don't include assert.h.
81680         (getstr): Remove warning-evoking assertions.
81681         Return -1 if offset parameter is out of bounds.
81682         Change the type of a local from int to size_t.
81683
81684         * lib/strftime.c (my_strftime_localtime_r): Include this function
81685         definition in the `#if ! HAVE_TM_GMTOFF' block.
81686
81687         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81688         Include xalloc.h instead.
81689
81690 2001-12-02  Jim Meyering  <meyering@lucent.com>
81691
81692         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81693         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81694         included.
81695
81696         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81697         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81698
81699 2001-11-30  Akim Demaille  <akim@epita.fr>
81700
81701         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81702         before being defined.
81703
81704 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81705
81706         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81707         First arg is int, not unsigned.
81708         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81709         (SIZE_MAX, UINT_MAX): New macros.
81710         (quotearg_n_options): Abort if N is negative.
81711         Avoid overflow check on hosts where size_t is 64 bits and int
81712         is 32 bits, as overflow is impossible there.
81713         Fix off-by-one typo that caused unnecessary reallocation.
81714
81715 2001-11-27  Jim Meyering  <meyering@lucent.com>
81716
81717         * lib/tempname.c: Merge with version from libc.
81718         * lib/regex.c: Likewise.
81719
81720         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81721         systems for which STDC_HEADERS is 0, it was not included, resulting in
81722         a warning about an integer-to-pointer conversion problem with getenv.
81723         Reported by Volker Borchert.
81724
81725 2001-11-26  Jim Meyering  <meyering@lucent.com>
81726
81727         * lib/gtod.h: Remove file.
81728         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81729         * lib/gettimeofday.c: Don't include gtod.h.
81730         (GTOD_init): Remove function.
81731         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81732         Suggestion from Volker Borchert.
81733
81734 2001-11-23  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81737         it.
81738         * lib/hash.c (struct hash_table): Define it here instead.
81739
81740 2001-11-22  Jim Meyering  <meyering@lucent.com>
81741
81742         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81743
81744 2001-11-20  Jim Meyering  <meyering@lucent.com>
81745
81746         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81747         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81748
81749 2001-11-19  Jim Meyering  <meyering@lucent.com>
81750
81751         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81752         directory.  Use "conftestXXXXXX" as the template.
81753         Suggestion from Paul Eggert.
81754
81755         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81756         immediately, so the test doesn't mistakenly hit the max-open-files
81757         limit.
81758
81759 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81760
81761         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81762         (TEMPORARIES): New macro.
81763         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81764         removes an artificial limitation (e.g. HP-UX 10.20, where
81765         TMP_MAX is 17576).
81766
81767 2001-11-18  Jim Meyering  <meyering@lucent.com>
81768
81769         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81770
81771 2001-11-18  Jim Meyering  <meyering@lucent.com>
81772
81773         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81774         on SunOS 4.
81775
81776         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81777         files will be created before anything else.
81778
81779 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81780
81781         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81782         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81783
81784 2001-11-17  Jim Meyering  <meyering@lucent.com>
81785
81786         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81787         Prompted by a report from Bob Proulx.
81788
81789         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81790         Instead, require UTILS_FUNC_MKSTEMP.
81791
81792 2001-11-17  Jim Meyering  <meyering@lucent.com>
81793
81794         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81795         Now, that's done as part of AC_FUNC_STRTOD.
81796
81797 2001-11-17  Jim Meyering  <meyering@lucent.com>
81798
81799         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81800         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81801         rather than group writable.  Patch by Juan F. Codagnone.
81802
81803         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81804         xrealloc, Instead, include "xalloc.h".
81805
81806         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81807         Remove explicit declarations of xmalloc, xrealloc,
81808         and xstrdup.  Instead, include "xalloc.h".
81809
81810         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81811         unlocked-io.h.
81812         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81813         Likewise.
81814         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81815
81816         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81817         Reported by Padraig Brady.
81818
81819         * lib/mkstemp.c: #undef mkstemp.
81820         Include config.h.
81821         (rpl_mkstemp): Rename from mkstemp.
81822         Protoize.
81823
81824 2001-11-16  Jim Meyering  <meyering@lucent.com>
81825
81826         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81827         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81828         determine the amount of total physical memory, use pstat_getstatic.
81829         HPUX-11 doesn't define _SC_PHYS_PAGES.
81830         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81831         If sysconf couldn't be used to determine the amount of available
81832         physical memory, use both pstat_getstatic and pstat_getdynamic.
81833         Based on a patch from Bob Proulx.
81834
81835 2001-11-10  Jim Meyering  <meyering@lucent.com>
81836
81837         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81838         (jm_PREREQ): Use it.
81839
81840 2001-11-09  Jim Meyering  <meyering@lucent.com>
81841
81842         * m4/jm-macros.m4: Require autoconf-2.52f.
81843         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81844         Use these AC_-prefixed names, not the AM_-prefixed ones.
81845
81846         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81847
81848 2001-11-05  Jim Meyering  <meyering@lucent.com>
81849
81850         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81851
81852 2001-11-04  Jim Meyering  <meyering@lucent.com>
81853
81854         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81855         $DEFS.
81856
81857 2001-11-03  Jim Meyering  <meyering@lucent.com>
81858
81859         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81860         of AC_DEFUN.
81861
81862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81863         know the name of the variable in the macro definition.
81864
81865 2001-11-03  Jim Meyering  <meyering@lucent.com>
81866
81867         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81868         in argmatch_to_argument call.
81869
81870         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81871         argument.
81872
81873         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81874         e.g., a fault due to an attempt to free a NULL pointer.
81875
81876 2001-11-01  Jim Meyering  <meyering@lucent.com>
81877
81878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81879         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81880
81881 2001-11-01  Jim Meyering  <meyering@lucent.com>
81882
81883         * lib/dirfd.c, lib/dirfd.h: New files.
81884         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81885
81886         * lib/hash.c (hash_print) [TESTING]: Clean up.
81887
81888 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81889
81890         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81891         to avoid a warning if -Wall.
81892
81893 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81894
81895         * README: New file
81896         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81897         (per RMS's instructions, this is now the canonical source)
81898         * lgpl/, gpl/: New directories.
81899
81900 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81901
81902         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81903
81904 2001-10-21  Jim Meyering  <meyering@lucent.com>
81905
81906         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81907         this code would end up calling gettext even in packages built
81908         with --disable-nls.
81909         * lib/getopt.c (_): Likewise.
81910         * lib/regex.c (_): Likewise.
81911
81912 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81913
81914         * m4/error.m4 (jm_PREREQ_ERROR):
81915         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81916         AC_FUNC_STRERROR_R does that.
81917         Check for strerror declaration.
81918
81919         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81920         are supposed to have them these days.
81921         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81922         Merge changes from latest Autoconf CVS.
81923         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81924         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81925         POSIX decided to standardize on the int flavor of strerror_r.
81926
81927 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81928
81929         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81930         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81931         Use strerror_r that is only a macro, even if it is not a function.
81932         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81933         (private_strerror): Use prototypes, not old-style function definition.
81934         (print_errno_message): New function.
81935         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81936         char*-flavored one.
81937         (error_tail, error, error_at_line): Use it.
81938
81939 2001-10-11  Jim Meyering  <meyering@lucent.com>
81940
81941         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81942         and quote_n (1, ... to avoid clobbering a buffer.
81943
81944 2001-10-05  Jim Meyering  <meyering@lucent.com>
81945
81946         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81947         hash-pjw.h.
81948         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81949         * lib/hash-pjw.h: New file.
81950
81951 2001-09-30  Jim Meyering  <meyering@lucent.com>
81952
81953         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81954         `struct fsstat' has the `f_fstypename' member.
81955         Use that to define FS_TYPE, which is now used to make
81956         the getfsstat link test tighter.
81957
81958 2001-09-30  Jim Meyering  <meyering@lucent.com>
81959
81960         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81961         Include <sys/ucred.h>, for Apple Darwin.
81962         Include sys/mount.h and sys/fs_types.h only if available.
81963         (FS_TYPE): Define.
81964         (read_filesystem_list): Use FS_TYPE.
81965
81966 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81967
81968         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81969         a boolean context.
81970
81971 2001-09-29  Jim Meyering  <meyering@lucent.com>
81972
81973         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81974         [one-argument getmntent function]): Include stdio.h before mntent.h.
81975         SunOS 4.1.x needs it for the declaration of `FILE'.
81976         Patch by Volker Borchert.
81977
81978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81979         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81980         sys/fs_types.h, and make the link-test for getfsstat guard #include
81981         directives with appropriate #if HAVE_*_H tests so that we can
81982         detect getfsstat on Apple Darwin1.3.7 systems.
81983         Reported by Nelson Beebe.
81984         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81985
81986 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81987
81988         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81989         #defines strtoimax.  Also treat the other strto* functions
81990         like strtoimax.
81991
81992         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81993         Check for strtoul and strtoumax,
81994         as those declarations are made even in the signed case.
81995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81996         Likewise, for strtol and strtoimax.
81997
81998 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81999
82000         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82001         #defines strtoimax.  Also treat the other strto* functions
82002         like strtoimax.
82003
82004         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82005         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82006         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82007
82008 2001-09-26  Jim Meyering  <meyering@lucent.com>
82009
82010         Most macros in unlocked-io.h had the wrong number of arguments.
82011         * lib/gen-uio: New script.
82012         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82013         * lib/unlocked-io.hin: Remove file.
82014         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82015         rather than trying to embed it here.
82016         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82017         Reported by Padraig Brady.
82018
82019 2001-09-25  Volker Borchert  <bt@teknon.de>
82020
82021         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82022         `result'.
82023
82024 2001-09-24  Jim Meyering  <meyering@lucent.com>
82025
82026         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82027
82028 2001-09-23  Jim Meyering  <meyering@lucent.com>
82029
82030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82031         instead of the mere test for existence of mntent.h.  The latter
82032         would get a false-positive on AIX 3.4 systems.
82033         In the outer getmntent if-block, don't die if neither of the getmntent
82034         tests succeeds.  Instead, just fall through and continue with the
82035         remaining tests.
82036
82037 2001-09-23  Jim Meyering  <meyering@lucent.com>
82038
82039         * lib/mountlist.c: Remove useless parentheses in #if directives.
82040         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82041         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82042
82043 2001-09-22  Jim Meyering  <meyering@lucent.com>
82044
82045         * m4/gettext.m4: New file.  From gettext.
82046         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82047         * m4/progtest.m4: Likewise
82048         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82049         * m4/glibc21.m4: Likewise.
82050
82051         * m4/libintl.m4: Remove.  No longer used.
82052
82053 2001-09-22  Jim Meyering  <meyering@lucent.com>
82054
82055         * lib/localcharset.c: Update from latest gettext.
82056         * lib/config.charset: Likewise.
82057
82058 2001-09-20  Jim Meyering  <meyering@lucent.com>
82059
82060         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82061         strtoimax.
82062         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82063         strtoumax.
82064
82065 2001-09-20  Jim Meyering  <meyering@lucent.com>
82066
82067         * lib/xstrtol.c (strtoimax): Guard declaration with
82068         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82069         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82070         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82071         (strtoumax): Likewise, for completeness (it wasn't necessary).
82072
82073 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82074
82075         * lib/strtoimax.c (HAVE_LONG_LONG):
82076         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82077         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82078         to work around bug in IBM C compiler.
82079
82080 2001-09-17  Jim Meyering  <meyering@lucent.com>
82081
82082         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82083         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82084         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82085         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82086         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82087         whenever the right hand side need not be expanded by the shell.
82088
82089 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82090
82091         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82092         library.  It's not correct, as some older glibcs are buggy.
82093         fnmatch wasn't fixed until glibc 2.2.
82094
82095         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82096         special shell magic here.
82097
82098 2001-09-16  Jim Meyering  <meyering@lucent.com>
82099
82100         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82101         * m4/jm-macros.m4: Require it.
82102
82103 2001-09-16  Jim Meyering  <meyering@lucent.com>
82104
82105         * lib/mkdir.c: New file.
82106
82107 2001-09-15  Jim Meyering  <meyering@lucent.com>
82108
82109         * m4/jm-macros.m4: Check for help2man.
82110
82111 2001-09-11  Jim Meyering  <meyering@lucent.com>
82112
82113         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82114         The body, by Paul Eggert, was moved here from configure.in.
82115         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82116
82117 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82118
82119         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82120         (jm_PREREQ): Use it.
82121
82122 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82123
82124         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82125         Use ssize_t, not int, to store result of readlink.
82126         Check for ssize_t overflow as well as size_t overflow,
82127         as POSIX says the result of readlink is implementation-defined
82128         when ssize_t overflows.
82129         Remove unnecessary cast to char*.
82130         Use free+malloc instead of realloc, as the storage doesn't need
82131         to be preserved and it's clearer and can be more efficient that way.
82132         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82133         * lib/xreadlink.h (xreadlink): Update prototype.
82134
82135 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82136
82137         * lib/xgetcwd.c: Revert some of the previous change; intead,
82138         fix the HAVE_GETCWD_NULL code to behave more like the
82139         !HAVE_GETCWD_NULL code used to.
82140
82141         Include "xalloc.h".
82142         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82143         invoke xalloc_die.
82144
82145 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82146
82147         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82148         sys/param.h, as pathmax.h includes them.
82149
82150 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82151
82152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82153         (jm_PREREQ_XGETCWD): New macro.
82154
82155         * m4/getcwd.m4: New file.
82156
82157 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82160         like the HAVE_GETCWD_NULL code.
82161         Include pathmax.h if not HAVE_GETCWD.
82162         Do not include xalloc.h.
82163         (INITIAL_BUFFER_SIZE): New symbol.
82164         Do not use xmalloc / xrealloc, since the caller is responsible for
82165         handling errors.  Preserve errno around `free' during failure.
82166         Do not overrun buffer when using getwd.
82167
82168 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82169
82170         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82171         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82172         getcwd (NULL, 0).
82173
82174 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82175
82176         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82177         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82178         spotted by Jim Meyering.
82179
82180 2001-09-03  Jim Meyering  <meyering@lucent.com>
82181
82182         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82183         failure.
82184
82185 2001-09-02  Jim Meyering  <meyering@lucent.com>
82186
82187         * lib/error.c: Update from GNU libc.
82188
82189 2001-09-01  Jim Meyering  <meyering@lucent.com>
82190
82191         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82192         Used by df.
82193
82194 2001-09-01  Jim Meyering  <meyering@lucent.com>
82195
82196         * lib/xreadlink.c: New file.
82197         * lib/xreadlink.h: New file.
82198         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82199         xreadlink.h.
82200
82201         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82202         doesn't conflict with sparc Solaris 7's definition in
82203         /usr/include/sys/int_types.h.
82204
82205         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82206         files.
82207         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82208         and strncasecmp as r-values.  Unixware didn't have declarations.
82209
82210 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82211
82212         * lib/xstrtol.h: Add copyright notice.
82213         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82214         LONGINT_INVALID_SUFFIX_CHAR.
82215
82216 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82217
82218         * lib/xstrtol.c (strtoimax): New decl.
82219
82220 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82221
82222         * lib/xgetcwd.c: Don't include pathmax.h.
82223         Include stdlib.h and unistd.h if available.
82224         Include xalloc.h.
82225         (xmalloc, xstrdup, free): Remove decls.
82226         (xgetcwd): Don't assume sizes fit in unsigned.
82227         Check for overflow when computing sizes.
82228         Simplify reallocation code.
82229
82230 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82231
82232         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82233         a directory's st_size can have an arbitrary value, so the old
82234         usage could waste an arbitrary amount of memory.  All uses
82235         changed.
82236         * lib/savedir.h: Update prototype.
82237
82238 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82239
82240         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82241
82242         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82243         old strtoimax.c.
82244
82245         Also, make the following further changes to make this file's
82246         configuration more similar to that of strtol.c:
82247         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82248         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82249         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82250         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82251         changed to signed values.
82252
82253         And make the following changes as well:
82254         Fix copyright notice, as 1999 was missing.
82255         (verify): New macro.
82256         (strtoimax): Check sizes at compile-time, not run-time.
82257         Prefer strtol to strtoll if both work.
82258         (main): Remove; it was not that useful and was a pain to maintain.
82259
82260         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82261
82262 2001-08-31  Jim Meyering  <meyering@lucent.com>
82263
82264         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82265         Use an initial, malloc'd, buffer of length 128 rather than
82266         a statically allocated one of length 1024.
82267
82268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82269
82270         Simplify code, partly by assuming autoconf 2.52 semantics.
82271
82272         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82273
82274         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82275         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82276         All uses removed.
82277         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82278         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82279         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82280         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82281         jm_AC_HEADER_INTTYPES_H.
82282         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82283
82284         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82285
82286         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82287         Quote first arg of AC_DEFUN.
82288         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82289         since they are needed to parse the include file even if we need
82290         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82292         but with opposite signedness.
82293
82294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82295
82296         Merge 'exclude' changes from tar 1.13.22.
82297         This fixes one or two unlikely storage allocation overflow bugs,
82298         but doesn't change user-visible behavior otherwise.
82299
82300 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82301
82302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82303         (jm_PREREQ_EXCLUDE): New macro.
82304
82305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82306
82307         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82308         tm to be declared.
82309
82310 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82311
82312         * lib/hash.c: Remove '2001' from copyright notice.
82313
82314 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82315
82316         * lib/full-write.h: New file.
82317         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82318         * lib/full-write.c: Correct credits, as cccp.c no longer
82319         exists and anyway it was so heavily changed from the old cccp
82320         code as to be unrecognizable.  Include full-write.h.
82321         (full_write): Return size_t, with short writes meaning failure.
82322         All callers changed.  This fixes a bug with large buffers
82323         on 64-bit hosts.
82324         * lib/utime.c: Include full-write.h.
82325
82326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82327
82328         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82329         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82330         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82331         Include if available.
82332         (<xalloc.h>): Include
82333         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82334         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82335         collide with FNM macros.
82336         (struct patopts): New struct.
82337         (struct exclude): Use it, as exclude patterns now come with options.
82338         (new_exclude): Support above changes.
82339         (new_exclude, add_exclude_file):
82340         Initial size must now be a power of two to simplify overflow checking.
82341         (free_exclude, fnmatch_no_wildcards): New function.
82342         (excluded_filename): No longer requires options arg, as the options
82343         are determined by add_exclude.  Now returns bool, not int.
82344         (excluded_filename, add_exclude):
82345         Add support for the fancy new exclusion options.
82346         (add_exclude, add_exclude_file): Now takes int options arg.
82347         Check for arithmetic overflow when computing sizes.
82348         (add_exclude_file): xrealloc might modify errno, so don't
82349         realloc until after errno might be used.
82350
82351         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82352         New macros.
82353         (free_exclude): New decl.
82354         (add_exclude, add_exclude_file): Now takes int options arg.
82355         (excluded_filename): No longer requires options arg, as the options
82356         are determined by add_exclude.  Now returns bool, not int.
82357
82358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82359
82360         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82361
82362 2001-08-27  Jim Meyering  <meyering@lucent.com>
82363
82364         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82365
82366         * lib/version-etc.c (N_): Remove definition.
82367         Revert most of last change.
82368         Instead, simply don't mark the `Copyright...' string for translation.
82369         Based on advice from Paul Eggert.
82370
82371         * lib/strtoxmax.c: Tweak comment.
82372
82373 2001-08-26  Jim Meyering  <meyering@lucent.com>
82374
82375         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82376
82377         * m4/xstrtoimax.m4: New file.
82378         * m4/xstrtoumax.m4: Add comments explaining why we
82379         AC_REPLACE_FUNCS(strtol).
82380
82381 2001-08-26  Jim Meyering  <meyering@lucent.com>
82382
82383         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82384         of copyright with `%s' so translators don't get an untranslated
82385         message in 2002.
82386         (COPYRIGHT_YEAR): Define.
82387         (version_etc): Use fprintf rather than fputs.
82388         Suggestion from Ulrich Drepper.
82389
82390         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82391
82392         * lib/strtoll.c: New file, from GNU libc.
82393         * lib/xstrtoimax.c: New file.
82394
82395         * lib/xstrtol.h: Add xstrtoimax.
82396         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82397         * lib/strtoimax.c: New file.  Likewise, but first define
82398         STRTOUXMAX_SIGNED.
82399
82400         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82401         ...
82402         * lib/strtoxmax.c: ... then renamed to this.
82403
82404 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82405
82406         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82407         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82408         (jm_AC_TYPE_INTMAX_T): New macro.
82409         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82410
82411         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82412
82413         * m4/longlong.m4: Renamed from ulonglong.m4.
82414         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82415         * m4/uintmax_t.m4: Removed.
82416
82417 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82418
82419         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82420         Port to Solaris 8, where 'sed' requires a space after the 'r'
82421         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82422         Redirect output to $tmp just once.
82423
82424 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82425
82426         * lib/addext.c (<errno.h>): Include.
82427         (errno): Declare if not defined.
82428         (addext): Work correctly when pathconf returns -1 and leaves
82429         errno alone because there is no limit.  Also, work even if
82430         pathconf returns a value greater than SIZE_MAX.
82431
82432 2001-08-12  Jim Meyering  <meyering@lucent.com>
82433
82434         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82435         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82436         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82437         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82438         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82439         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82440         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82441         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82442         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82443         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82444         utime.m4, utimes.m4, xstrtoumax.m4:
82445         Quote the first argument in each use of AC_DEFUN.
82446
82447 2001-08-12  Jim Meyering  <meyering@lucent.com>
82448
82449         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82450         Simply `return getcwd (NULL, 0);'.
82451         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82452         Use 1300 as initial value for length, not PATH_MAX.
82453
82454         * lib/pathmax.h: Clean up cpp syntax.
82455
82456 2001-08-12  Jim Meyering  <meyering@lucent.com>
82457
82458         * lib/gettimeofday.c: New file.
82459         * lib/gtod.h: New file.
82460         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82461
82462 2001-08-05  Jim Meyering  <meyering@lucent.com>
82463
82464         * m4/jm-macros.m4: Require autoconf-2.52.
82465
82466 2001-08-04  Jim Meyering  <meyering@lucent.com>
82467
82468         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82469         stmt, to get in sync with glibc.
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.
82475
82476         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82477         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82478         with inverted sense.  All uses changed.
82479
82480         * lib/mbswidth.c: Don't include <limits.h>.
82481         Include <stdlib.h> and <string.h> unconditionally.
82482         (iswcntrl, mbsinit, ISCNTRL): New macros.
82483         (mbsnwidth): Use K&R style function declarations.
82484         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82485         can optimize it when MB_CUR_MAX == 1.
82486         The width of control characters is zero, not 1.
82487
82488 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82489
82490         The following changes are from gettext 0.10.39 as maintained by
82491         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82492
82493         * m4/codeset.m4: Upgrade to serial AM1.
82494         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82495         all uses changed.  Quote first arg of AC_DEFUN.
82496         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82497
82498         * m4/iconv.m4: Upgrade to serial AM2.
82499         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82500         Add --with-libconv-prefix.
82501         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82502         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82503         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82504         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82505         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82506
82507         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82508         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82509         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82510         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82511         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82512         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82513         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82514         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82516
82517         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82518         string.h any more.
82519
82520         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82521         not the default value.
82522
82523         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82524         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82525         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82526         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82527         Also check for iswcntrl, used for wcwidth fallback.
82528         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82529         to Autoconf 2.13.
82530
82531 2001-08-03  Jim Meyering  <meyering@lucent.com>
82532
82533         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82534         as it was in the original.  Reported by Paul Eggert.
82535
82536 2001-07-16  Jim Meyering  <meyering@lucent.com>
82537
82538         * m4/gettimeofday.m4: New file.
82539         Prompted by a report from Bernhard Baehr.
82540
82541 2001-07-15  Jim Meyering  <meyering@lucent.com>
82542
82543         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82544         stuff. Now it's in ../Makefile.cfg.
82545
82546 2001-07-15  Jim Meyering  <meyering@lucent.com>
82547
82548         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82549         (BUILT_SOURCES): Add unlocked-io.h.
82550         (io_functions): Define.
82551         (unlocked-io.h): New rule.
82552         (DISTCLEANFILES): Add unlocked-io.h.
82553         (all-local): Depend on unlocked-io.h, to ensure it is created.
82554
82555         * lib/unlocked-io.hin: New file
82556
82557         * lib/regex.c: Update from glibc.
82558
82559 2001-07-05  Jim Meyering  <meyering@lucent.com>
82560
82561         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82562         recommendation.
82563         (libfetish_a_SOURCES): Put all .h files here instead.
82564         Remove a thus-exposed (better checks in automake) duplicate and
82565         two unnecessary .h files.
82566
82567 2001-07-04  Jim Meyering  <meyering@lucent.com>
82568
82569         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82570         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82571         distcheck failure.
82572
82573 2001-07-02  Jim Meyering  <meyering@lucent.com>
82574
82575         The following changes were prompted by suggestions from Bruno Haible.
82576
82577         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82578         is now generated.
82579         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82580         definition of EXTRA_DIST.
82581         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82582         ensure that the generated file is created/updated whenever the list
82583         of $(unlocked_functions) is changed.
82584         (jm-glibc-io.m4): New rule.
82585         (unlocked-io.h): New rule -- currently unused.
82586
82587 2001-06-24  Jim Meyering  <meyering@lucent.com>
82588
82589         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82590         unmatched right bracket, rather than kludging it with an extra,
82591         falsely-matching quote in a comment.  Patch by Akim Demaille.
82592
82593 2001-06-11  Jim Meyering  <meyering@lucent.com>
82594
82595         * lib/regex.c: Update from GNU libc.
82596
82597 2001-05-27  Jim Meyering  <meyering@lucent.com>
82598
82599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82600         Check for ut_type in struct utmp.
82601
82602 2001-05-27  Jim Meyering  <meyering@lucent.com>
82603
82604         * lib/readutmp.h (UT_TYPE): Define.
82605
82606 2001-05-24  Jim Meyering  <meyering@lucent.com>
82607
82608         * lib/argmatch.c: Include "quote.h".
82609         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82610         quote function.  Reported by Göran Uddeborg.
82611
82612 2001-05-22  Jim Meyering  <meyering@lucent.com>
82613
82614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82615         now that we use the package-supplied version unconditionally.
82616         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82617
82618 2001-05-21  Jim Meyering  <meyering@lucent.com>
82619
82620         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82621         shell syntax errors.
82622
82623 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82624
82625         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82626
82627 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82628
82629         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82630         Don't bother to check library strftime, since
82631         we'll be using our own my_strftime function anyway.
82632         Define my_strftime instead of strftime.
82633
82634 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82635
82636         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82637         which is not yet declared.
82638
82639 2001-05-15  Jim Meyering  <meyering@lucent.com>
82640
82641         * m4/regex.m4: Use proper quoting so brackets appear in the test
82642         program.
82643         Reported by, and with help from, Bruno Haible.
82644
82645 2001-05-13  Jim Meyering  <meyering@lucent.com>
82646
82647         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82648         undefined.
82649
82650 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82651
82652         dirname code cleanup.  base_name now behaves more compatibly
82653         with POSIX basename when given file names that have trailing
82654         slashes, and similarly for dir_name.  Add new primitives
82655         base_len and dir_len.  Put the directory-name-related decls
82656         into dirname.h.
82657
82658         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82659         * lib/backupfile.c (base_name): Likewise.
82660         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82661         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82662         * lib/makepath.c (strip_trailing_slashes): Likewise.
82663         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82664         ISSLASH): Likewise.
82665         * lib/rename.c (strip_trailing_slashes): Likewise.
82666         * lib/same.c (base_name): Likewise.
82667         * lib/stripslash.c (ISSLASH): Likewise.
82668
82669         * lib/addext.c: Include <dirname.h> after size_t is defined.
82670         * lib/backupfile.c: Likewise.
82671
82672         * lib/addext.c (addext): Use base_len to trim redundant
82673         trailing slashes instead of doing it ourselves.
82674         But do not trim the last slash if it is not redundant.
82675
82676         * lib/backupfile.c (find_backup_file_name,
82677         max_backup_version): Use base_len instead of rolling it ourselves.
82678         Handle the case of "" and (on DOS) "C:" correctly.
82679
82680         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82681         needed. Include <string.h>, <dirname.h>.
82682         (base_name): Allow file names ending in slashes, other than names
82683         that are all slashes.  In this case, return the basename followed
82684         by the slashes.  This is more general, and can be used in places
82685         where the original base_name purposely had an assertion failure.
82686         (base_len): New function.
82687
82688         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82689         Do not include <assert.h>; no longer needed.
82690         Include xalloc.h.
82691         (memrchr): Remove decl.
82692         (dir_name_r): Remove.
82693         (dir_len): Renamed from dirlen.  All callers changed.
82694         Rewrite in terms of base_name, for simplicity and consistency.
82695         (dir_name): Never return NULL.  All callers changed.
82696         Do not include <stdlib.h> in test program; no longer needed.
82697         return 0; is fine for test program.
82698
82699         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82700         New macros.
82701         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82702
82703         * lib/path-concat.c (path_concat): Use base_len to compute
82704         base length, not strlen; this means we cannot rely on memcpy
82705         to null-terminate.
82706
82707         * lib/same.c (STREQ): Remove.
82708         (same_name): Handle the case where the basename ends in trailing '/'.
82709
82710         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82711         a slash was stripped.  Do not strip the last slash after a
82712         file system prefix.
82713
82714 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82715
82716         * lib/Makefile.am (libfetish_a_SOURCES):
82717         Add strftime.c, since we now compile it on all hosts.
82718
82719         * lib/strftime.c (my_strftime):
82720         Define to nstrftime if emacs, but only if my_strftime is not defined.
82721         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82722         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82723         Add one more extra argument: a nanoseconds value.
82724         All uses changed.
82725         (ns): New macro.
82726         (my_strftime function): Add %N format.
82727         (emacs_strftimeu): Renamed from emacs_strftime,
82728         with extra ut argument.
82729
82730 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82731
82732         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82733
82734 2001-04-21  Jim Meyering  <meyering@lucent.com>
82735
82736         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82737         doesn't interfere.
82738
82739 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82740
82741         * m4/ftruncate.m4: Check for chsize.
82742         Link with ftruncate.o unconditionally if ftruncate is missing.
82743         This was required when cross-compiling to i586-mingw32msvc.
82744
82745 2001-04-08  Jim Meyering  <meyering@lucent.com>
82746
82747         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82748         recomputed; that's necessary when the offset spans a DST transition.
82749         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82750
82751 2001-04-02  Jim Meyering  <meyering@lucent.com>
82752
82753         * lib/regex.h, regex.c: Update from GNU libc.
82754
82755 2001-03-24  Jim Meyering  <meyering@lucent.com>
82756
82757         * m4/jm-macros.m4: Require autoconf-2.49d.
82758
82759 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82760
82761         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82762
82763 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82764
82765         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82766
82767 2001-03-17  Jim Meyering  <meyering@lucent.com>
82768
82769         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82770         now that the version in autoconf is equivalent.
82771         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82772
82773         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82774         Suggestion from Akim Demaille.
82775
82776         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82777         (jm_PREREQ_TEMPNAME): New function.
82778
82779 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82780
82781         * lib/tempname.c (uint64_t): Define to uintmax_t if
82782         not defined, and if UINT64_MAX is not defined.
82783         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82784         Reported by John David Anglin.
82785
82786 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82787
82788         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82789         resolve alias if codeset is empty.
82790         * lib/config.charset (BeOS): Use wildcard syntax.
82791
82792 2001-03-13  Jim Meyering  <meyering@lucent.com>
82793
82794         * lib/path-concat.c (path_concat)
82795         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82796         concatenating e.g., `C:' and `foo'.
82797         From Bruno Haible.
82798
82799 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82800
82801         * lib/localcharset.c (locale_charset): Don't use
82802         setlocale(LC_CTYPE,NULL). Don't return NULL.
82803         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82804
82805 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82806
82807         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82808         support for DOS/DJGPP.
82809
82810 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82811
82812         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82813         lacks mkstemp.  Compile our own tempname.c if we compile our own
82814         mkstemp.c, as mkstemp relies on tempname.
82815
82816 2001-03-01  Jim Meyering  <meyering@lucent.com>
82817
82818         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82819         AH_VERBATIM really does output its argument verbatim.
82820
82821 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82822
82823         * lib/Makefile.am (libfetish_a_SOURCES):
82824         Add dup-safer.c, fopen-safer.c.
82825         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82826
82827         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82828         * lib/unistd-safer.h: New files.
82829
82830 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82831
82832         The mkstemp replacement is taken from glibc 2.2.2, with some
82833         portability fixes for use outside glibc, as follows:
82834
82835         * lib/tempname.c (struct_stat64): New macro.
82836         (direxists, __gen_tempname): Use it.
82837         This avoids a portability problem with Solaris 8.
82838
82839         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82840         (<stddef.h>, <stdint.h>, <string.h>):
82841         Include only if STDC_HEADERS || _LIBC.
82842         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82843         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82844         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82845         (__set_errno): Define this macro if <errno.h> doesn't.
82846         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82847         Define these macros if <stdio.h> doesn't.
82848         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82849         Define these macros if <sys/stat.h>
82850         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82851         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82852         __xstat64): Define if not _LIBC.
82853         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82854         (__gen_tempname): Invoke gettimeofday only if
82855         HAVE_GETTIMEOFDAY || _LIBC;
82856         otherwise, fall back on plain "time".
82857         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82858
82859         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82860
82861         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82862
82863 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82864
82865         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82866
82867 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82868
82869         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82870         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82871         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82872         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82873
82874 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82875
82876         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82877         Remove workaround macros for hosts that have mbrtowc but not
82878         mbstate_t, as we now insist on proper declarations for both
82879         before using mbrtowc.
82880
82881 2001-02-17  Jim Meyering  <meyering@lucent.com>
82882
82883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82884         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82885         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82886         UnixWare 7.1.1.
82887
82888         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82889         rather than AC_CACHE_VAL.
82890
82891 2001-02-17  Jim Meyering  <meyering@lucent.com>
82892
82893         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82894         around included file name.
82895
82896         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82897
82898         * lib/strftime.c: Update from GNU libc (the only changes were to
82899         comments).
82900
82901 2001-02-17  Jim Meyering  <meyering@lucent.com>
82902
82903         * lib/regex.c: Update from libc.
82904
82905 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82906
82907         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82908         clash.
82909
82910 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82911
82912         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82913         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82914         Reported by Mark Hounschell via Paul Eggert.
82915
82916 2001-02-07  Jim Meyering  <meyering@lucent.com>
82917
82918         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82919
82920 2001-02-05  Jim Meyering  <meyering@lucent.com>
82921
82922         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82923         it includes the patch required for `large file' support with at least
82924         HP-UX's 10.20 /bin/cc.
82925
82926 2001-02-03  Jim Meyering  <meyering@lucent.com>
82927
82928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82929         AS_IF, now that it works once again (mysteriously).
82930         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82931
82932 2001-01-30  Jim Meyering  <meyering@lucent.com>
82933
82934         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82935         * m4/chown.m4: Rename conftestchown to conftest.chown.
82936         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82937         s/conftestdir2/conftest.d2/.
82938         * m4/utimes.m4: s/conftestdata/conftest.data/
82939         Inspired by Pavel Roskin's change in autoconf.
82940
82941 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82942
82943         * lib/config.charset: Update for FreeBSD 4.2.
82944
82945 2001-01-27  Jim Meyering  <meyering@lucent.com>
82946
82947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82948         a use of AS_IF.
82949         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82950
82951 2001-01-26  Jim Meyering  <meyering@lucent.com>
82952
82953         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82954         quotearg.c includes it.
82955
82956 2001-01-26  Jim Meyering  <meyering@lucent.com>
82957
82958         * lib/quotearg.c: Include stddef.h.
82959         * lib/quote.c: Include stddef.h.
82960         Reported by Axel Kittenberger.
82961
82962         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82963         line in double quotes so that it evokes a better diagnostic.
82964         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82965         Reported by Axel Kittenberger.
82966
82967 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82968
82969         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82970         as if it was a `charset'.
82971
82972 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82973
82974         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82975         has const.
82976
82977 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82978
82979         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82980         to avoid a warning.  Add back 'const' to inptr.
82981
82982 2001-01-20  Jim Meyering  <meyering@lucent.com>
82983
82984         Be sure that headers are checked before used in code compiled
82985         for the type checks.
82986         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82987         In place of that, invoke jm_CHECK_ALL_TYPES.
82988         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82989         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82990         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82991         The check for ssize_t was mistakenly run before the test for unistd.h.
82992
82993         The configure-time check for stdbool.h was missing.
82994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82995         (jm_PREREQ_HASH): New function.
82996
82997 2001-01-17  Jim Meyering  <meyering@lucent.com>
82998
82999         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83000         for autoconf-2.49c.
83001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83002
83003 2001-01-16  Jim Meyering  <meyering@lucent.com>
83004
83005         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83006         From Bruno Haible.
83007
83008 2001-01-14  Jim Meyering  <meyering@lucent.com>
83009
83010         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83011         foo and bar.  Create conftestdir/ in the script, not in the C code.
83012         Remove directories in the script, not in the C code.
83013         Remove conftestdir{,2} before trying to create the directory.
83014         Make the entire configure script fail if the mkdir fails.
83015
83016 2001-01-14  Jim Meyering  <meyering@lucent.com>
83017
83018         * lib/rename.c: New file.  From Volker Borchert.
83019         Include stdlib.h, string.h or strings.h, and xalloc.h.
83020         Use strip_trailing_slashes rather than open-coding it.
83021
83022 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83023
83024         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83025
83026 2001-01-03  Jim Meyering  <meyering@lucent.com>
83027
83028         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83029         of local `inptr' to avoid warning with some system declarations of
83030         iconv.
83031
83032 2001-01-02  Volker Borchert  <bt@teknon.de>
83033
83034         * m4/rename.m4: New file.
83035         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83036
83037 2001-01-01  Jim Meyering  <meyering@lucent.com>
83038
83039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83040         even on systems with utmpx.h.  It's necessary for the declaration of
83041         utmp's ut_user member.  Reported by Andreas Jaeger.
83042
83043         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83044         available. They are required for the declarations of getgrgid and
83045         getpwuid resp.
83046         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83047         Reported by Andreas Jaeger.
83048
83049 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83050
83051         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83052         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83053         so `make install' also works in VPATH builds.
83054
83055 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83056
83057         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83058         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83059         can be used in subdirectories.
83060
83061 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83062
83063         * lib/modechange.c: Do not assume that mode_t uses the
83064         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83065         the other-execute bit of FOO even if S_IXOTH != 1.
83066
83067         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83068         WOTH, XOTH, ALLM): New macros.
83069         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83070          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83071         Use them.
83072         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83073         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83074         (mode_compile):
83075         No need to use uintmax_t; unsigned long is long enough.
83076         Don't bother to get suffix since we don't use it.
83077
83078 2000-12-26  Jim Meyering  <meyering@lucent.com>
83079
83080         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83081         better with autoheader.
83082
83083 2000-12-24  Jim Meyering  <meyering@lucent.com>
83084
83085         * lib/hash.c (is_prime): Return explicit boolean values.
83086         (hash_get_first): Return NULL to appease Irix5.6's 89.
83087         Reported by Nelson Beebe.
83088
83089 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83090
83091         * lib/localcharset.c (locale_charset): Add support for Win32.
83092
83093 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83094
83095         * lib/physmem.h, lib/physmem.c: New files.
83096
83097         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83098         (noinst_HEADERS): Add physmem.h.
83099
83100         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83101         't' for compatibility with Solaris 8 sort.
83102
83103 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83104
83105         * lib/config.charset: Add support for BeOS.
83106
83107 2000-12-17  Jim Meyering  <meyering@lucent.com>
83108
83109         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83110         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83111
83112 2000-12-16  Jim Meyering  <meyering@lucent.com>
83113
83114         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83115         N and M) would have treated it like `chown N:N FILE'.
83116
83117         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83118
83119 2000-12-16  Jim Meyering  <meyering@lucent.com>
83120
83121         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83122         SHELLS_FILE to a file name that's useful on djgpp systems.
83123         Include stdlib.h.
83124         (ADDITIONAL_DEFAULT_SHELLS): Define.
83125         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83126         Based mostly on a patch from Prashant TR.
83127
83128 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83129
83130         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83131         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83132         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83133
83134 2000-12-08  Andreas Schwab  <schwab@suse.de>
83135
83136         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83137         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83138
83139 2000-12-07  Jim Meyering  <meyering@lucent.com>
83140
83141         * lib/stripslash.c (ISSLASH): Define.
83142         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83143         `/'.
83144         From Prashant TR.
83145
83146         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83147         (dir_name_r): Declare this function as static.
83148         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83149         manifest itself on a name containing a mix of slashes and
83150         backslashes.
83151         Make this function work with names starting with a DOS-style
83152         drive letter and colon prefix.
83153         (dir_name): Append `.' if necessary.
83154         Based mostly on patches from Prashant TR and Eli Zaretskii.
83155
83156         * lib/dirname.h (dir_name_r): Remove prototype.
83157
83158 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83159
83160         * m4/off_t-format.m4: Remove this file.
83161         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83162
83163 2000-12-06  Jim Meyering  <meyering@lucent.com>
83164
83165         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83166         replacement strtoull, we may well need the replacement strtoul, too.
83167         Check for declarations of strtoul and strtoull.
83168         Check for strtol.  Mainly as a cue to cause automake to include
83169         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83170         Check for limits.h -- strtol.c needs it.
83171
83172 2000-12-05  Jim Meyering  <meyering@lucent.com>
83173
83174         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83175
83176 2000-12-04  Jim Meyering  <meyering@lucent.com>
83177
83178         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83179         Also include memory.h, stdlib.h, unistd.h if appropriate.
83180         Reported by Andreas Jaeger (conflicting declaration of malloc).
83181
83182 2000-12-02  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83185         * m4/jm-macros.m4 (jm_MACROS): require it.
83186
83187 2000-12-02  Jim Meyering  <meyering@lucent.com>
83188
83189         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83190
83191 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83192
83193         * lib/memrchr.c: Include <config.h> before any system include file.
83194
83195 2000-11-30  Jim Meyering  <meyering@lucent.com>
83196
83197         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83198
83199 2000-11-30  Jim Meyering  <meyering@lucent.com>
83200
83201         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83202
83203 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83204
83205         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83206
83207 2000-11-26  Jim Meyering  <meyering@lucent.com>
83208
83209         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83210
83211 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83212
83213         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83214         size of (size_t) -1; it's not portable.
83215
83216 2000-11-17  Jim Meyering  <meyering@lucent.com>
83217
83218         * lib/strstr.c: Update from GNU libc.
83219
83220 2000-11-17  Akim Demaille  <akim@epita.fr>
83221
83222         * lib/obstack.h: Formatting changes.
83223         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83224         prevent type checking.
83225         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83226         cast the value to (void *): assigning a `foo *' to a `void *'
83227         variable is valid.
83228         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83229
83230 2000-11-16  Jim Meyering  <meyering@lucent.com>
83231
83232         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83233
83234 2000-11-11  Jim Meyering  <meyering@lucent.com>
83235
83236         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83237
83238 2000-11-10  Jim Meyering  <meyering@lucent.com>
83239
83240         * lib/obstack.h: Update from GNU libc.
83241         * lib/obstack.c: Likewise.
83242
83243 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83244
83245         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83246
83247 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83248
83249         * lib/getusershell.c (setusershell): Use rewind rather than
83250         fseek/fseeko, to avoid configuration hassles with fseeko.
83251         Don't bother opening SHELLS_FILE if shellstream is NULL;
83252         it's not necessary.
83253
83254 2000-11-05  Jim Meyering  <meyering@lucent.com>
83255
83256         * lib/makepath.h (make_dir): Declare.
83257         * lib/makepath.c (make_dir): Remove `static' attribute.
83258         Tweak a comment.
83259
83260 2000-11-04  Jim Meyering  <meyering@lucent.com>
83261
83262         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83263
83264 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83265
83266         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83267         last one in a bucket, advance to the next bucket.
83268
83269 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83270
83271         * lib/fnmatch.c: Do not comment out all the code if we are using
83272         the GNU C library, because in some cases we are replacing buggy
83273         code in the GNU C library itself.
83274
83275 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83276
83277         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83278         (regex_compile): Catch bogus \(\1\).
83279
83280 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83281
83282         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83283         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83284         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83285
83286 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83287
83288         * lib/error.h, getline.h, modechange.h:
83289         Remove "2000" from Copyright line, as the file hasn't been
83290         changed this year other than in the copyright notice.
83291
83292         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83293         was changed this year.
83294
83295 2000-10-29  Jim Meyering  <meyering@lucent.com>
83296
83297         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83298         renaming.
83299         * m4/ls-mntd-fs.m4: Likewise
83300
83301 2000-10-29  Jim Meyering  <meyering@lucent.com>
83302
83303         * lib/xstat.in: Fix grammar in comment.
83304
83305 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83306
83307         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83308         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83309         doesn't define __restrict_arr.
83310
83311 2000-10-28  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83314         (jm_PREREQ_MEMCHR): New function.
83315
83316 2000-10-28  Jim Meyering  <meyering@lucent.com>
83317
83318         * lib/memchr.c: Update from libc.
83319         Adjust for portability:
83320         [HAVE_STDLIB_H]: Include stdlib.h.
83321         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83322         Undef __memchr, too.
83323         [!weak_alias]: Define __memchr to memchr.
83324
83325         * lib/regex.c: Update from libc.
83326         * lib/regex.h: Likewise.
83327         * lib/getopt1.c: Likewise.
83328         * lib/memcmp.c: Likewise.
83329
83330         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83331         Avoid using fseek, when possible -- it's broken by design.
83332         Patch by Ulrich Drepper.
83333
83334 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83335
83336         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83337         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83338         Giving in to popular pressure to shut up the compiler with casts.
83339
83340 2000-10-26  Jim Meyering  <meyering@lucent.com>
83341
83342         * lib/strftime.c: Update from libc.
83343
83344 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83345
83346         * regex.c: More `unsigned char' -> `re_char' changes.
83347         Also change several `int' into `re_wchar_t'.
83348         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83349         (PUSH_FAILURE_POINTER): Don't cast any more.
83350         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83351         We want GCC to complain, since this piece of code makes
83352         re_match non-reentrant, which *should* be fixed.
83353         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83354         (EXTEND_BUFFER): Use RETALLOC.
83355         (SET_LIST_BIT): Don't cast.
83356         (re_wchar_t): New type.
83357         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83358         that those two functions will always properly return.
83359         (IMMEDIATE_QUIT_CHECK): Cast to void.
83360         (analyse_first): Use recursion rather than an explicit stack.
83361         (re_compile_fastmap): Can't fail anymore.
83362         (re_search_2): Don't check re_compile_fastmap for failure.
83363         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83364         Now also sets the new value (passed in a new argument).
83365         (re_match_2_internal): Use it.
83366         Also, use a new var `reg' of type size_t when looping through regs
83367         rather than reuse the inappropriate `mcnt'.
83368
83369 2000-10-25  Jim Meyering  <meyering@lucent.com>
83370
83371         * lib/obstack.c: Update from libc.
83372
83373 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83374
83375         * regex.c (regex_compile): Change the way of handling a range from
83376         a char less than 256 to a char not less than 256.
83377
83378 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83379
83380         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83381         NT-Emacs only.
83382         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83383         so that re_search functions only quit when callers expect them to.
83384
83385 2000-10-23  Jim Meyering  <meyering@lucent.com>
83386
83387         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83388         wrong.  That set_locale call must not have any side effects.
83389         From Paul Eggert.
83390
83391 2000-10-22  Jim Meyering  <meyering@lucent.com>
83392
83393         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83394         [CYCLIC]: Remove now-unused definition.
83395
83396         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83397         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83398         Suggestion from Ulrich Drepper.
83399
83400 2000-10-21  Jim Meyering  <meyering@lucent.com>
83401
83402         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83403         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83405
83406 2000-10-21  Jim Meyering  <meyering@lucent.com>
83407
83408         * lib/dirname.c (memrchr): Declare if necessary.
83409         (dir_name): Remove the restriction that there be no
83410         trailing slashes.  Now, this code skips past them, effectively
83411         ignoring them.
83412         [TEST_DIRNAME] (main): New unit tests.
83413
83414         * lib/memrchr.c: New file from GNU libc.
83415         Undef __memrchr, too.
83416         [!weak_alias]: Define __memrchr to memrchr.
83417         Guard weak_alias use with `#ifdef weak_alias'.
83418
83419 2000-10-21  Jim Meyering  <meyering@lucent.com>
83420
83421         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83422         (dir_name): Use dir_name_r.
83423         * lib/dirname.h (dir_name_r): Declare it.
83424
83425 2000-10-17  Jim Meyering  <meyering@lucent.com>
83426
83427         * lib/quote.h (PARAMS): Define and use.
83428         Reported by Akim Demaille.
83429
83430         * lib/getopt.c: Update from libc.
83431
83432 2000-10-16  Jim Meyering  <meyering@lucent.com>
83433
83434         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83435         setlocale.
83436         From Jan Fedak.
83437
83438 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83439
83440         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83441
83442 2000-09-25  Jim Meyering  <meyering@lucent.com>
83443
83444         * lib/md5.h (rol): Define (from GnuPG).
83445
83446         * lib/sha.c: Give credit (GnuPG) where due.
83447         (M): Use rol rather than open-coding it.
83448         Add a FIXME comment.
83449
83450 2000-09-21  Jim Meyering  <meyering@lucent.com>
83451
83452         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83453         Reported by Michael Stone.
83454
83455 2000-09-20  Jim Meyering  <meyering@lucent.com>
83456
83457         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83458         (noinst_HEADERS): Add sha.h.
83459         Based on code from Scott G. Miller and from GnuPG.
83460
83461 2000-09-18  Jim Meyering  <meyering@lucent.com>
83462
83463         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83464         LIBS. Otherwise, everyone ends up linking with -lelf for some
83465         configurations.
83466         Reported by Mike Stone.
83467
83468 2000-09-15  Jim Meyering  <meyering@lucent.com>
83469
83470         * lib/regex.c: Update from libc.
83471
83472 2000-09-10  Jim Meyering  <meyering@lucent.com>
83473
83474         * lib/getopt.c (_getopt_internal): Update from glibc.
83475
83476 2000-09-09  Jim Meyering  <meyering@lucent.com>
83477
83478         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83479         think it should be used as a general replacement for isascii.
83480         * lib/fnmatch.c: Likewise.
83481         * lib/mbswidth.c: Likewise
83482         * lib/regex.c: Likewise.
83483
83484         Don't use atoi.
83485         * lib/userspec.c: Include sys/param.h and limits.h.
83486         Include xstrtol.h.
83487         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83488         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83489         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83490         UID, GID.  Check range.
83491
83492 2000-09-06  Jim Meyering  <meyering@lucent.com>
83493
83494         * lib/getopt.c (_getopt_internal): Update from glibc.
83495
83496 2000-08-30  Jim Meyering  <meyering@lucent.com>
83497
83498         * lib/strftime.c: Merge in changes from GNU libc.
83499
83500 2000-08-26  Jim Meyering  <meyering@lucent.com>
83501
83502         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83503         * m4/fpending.m4: New file.
83504
83505 2000-08-26  Jim Meyering  <meyering@lucent.com>
83506
83507         * lib/closeout.c: Include "__fpending.h".
83508         (close_stdout_status): Return right away if there's nothing to flush.
83509
83510         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83511         * lib/__fpending.c: New file.
83512         * lib/__fpending.h: New file.
83513
83514 2000-08-20  Jim Meyering  <meyering@lucent.com>
83515
83516         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83517         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83518         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83519
83520 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83521
83522         Improve fileutils installation on systems where running
83523         programs (like install) can't be unlinked.
83524         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83525         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83526
83527 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83528
83529         Standardize on "memory exhausted" instead of "Memory exhausted"
83530         or "virtual memory exhausted".
83531         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83532         "virtual memory exhausted".
83533         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83534         our own message.
83535         * lib/userspec.c (parse_user_spec): Likewise.
83536         * lib/bumpalloc.h: comment fix
83537         * lib/same.c, userspec.c: Include xalloc.h.
83538
83539         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83540         not char *const and pointing to a constant array.
83541         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83542         (xrealloc): Comment fix.
83543
83544         * lib/userspec.c (parse_user_spec):
83545         Don't translate a message until just before returning,
83546         to avoid unnecessary translation.
83547
83548 2000-08-07  Jim Meyering  <meyering@lucent.com>
83549
83550         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83551         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83552         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83553         getgroups.c, gethostname.c, getopt.h, group-member.c,
83554         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83555         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83556         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83557         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83558         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83559         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83560         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83561         yesno.c: Back out Copyright date changes for each file with no change
83562         this year.  This eases coordination with other programs using the same
83563         source code modules.  From Paul Eggert.
83564
83565 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83566
83567         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83568         not char, for compatibility with glibc 2.1.3 strftime.c.
83569
83570 2000-08-03  Greg McGary  <greg@mcgary.org>
83571
83572         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83573         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83574         (EXTEND_BUFFER): Use them.
83575
83576 2000-08-01  Jim Meyering  <meyering@lucent.com>
83577
83578         * lib/dirname.c (ISSLASH): Define.
83579         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83580         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83581         both `\' and `/' may be use as path separators.
83582         Based on a patch from Prashant TR.
83583
83584 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83585
83586         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83587         slot vector a constant, since it might get modified.
83588
83589 2000-07-31  Jim Meyering  <meyering@lucent.com>
83590
83591         * lib/xmalloc.c: Use `virtual memory exhausted', not
83592         `Memory exhausted'.
83593         * lib/obstack.c (print_and_abort): Likewise.
83594
83595 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83596
83597         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83598         buffer, so that the caller can always quote one small
83599         component of a "memory exhausted" message in slot 0.
83600         From a suggestion by Jim Meyering.
83601
83602 2000-07-30  Jim Meyering  <meyering@lucent.com>
83603
83604         * lib/makepath.c (make_path): Quote the other instance, too.
83605
83606         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83607         (STATIC_BUF_SIZE): Define.
83608         (quotearg_n_options): Use only statically allocated storage when
83609         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83610         than STATIC_BUF_SIZE.
83611
83612 2000-07-29  Jim Meyering  <meyering@lucent.com>
83613
83614         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83615         * lib/dirname.c (dir_name): Likewise.
83616
83617         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83618         `/'.
83619
83620         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83621         (dir_name): Assert that there are no trailing slashes.
83622
83623 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83624
83625         * lib/mbswidth.h (mbswidth): Add a flags argument.
83626         (mbswidth): New declaration.
83627         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83628         * lib/mbswidth.c (mbswidth): Add a flags argument.
83629         (mbsnwidth): New function.
83630
83631 2000-07-24  Jim Meyering  <meyering@lucent.com>
83632
83633         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83634
83635 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83636
83637         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83638
83639 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83640
83641         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83642         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83643         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83644         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83645         invoke multibyte primitives.
83646
83647 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83648
83649         * lib/quotearg.c:
83650         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83651         so that mbstate_t is always defined.
83652
83653         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83654         be 1 in at least one GCC installation, and this configuration
83655         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83656         performance on hosts that have mbrtowc but have only unibyte
83657         locales, but I assume these hosts are rare.
83658
83659 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83660
83661         * lib/mbswidth.c (_XOPEN_SOURCE):
83662         Don't define; this causes problems on Solaris 7.
83663         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83664
83665 2000-07-23  Jim Meyering  <meyering@lucent.com>
83666
83667         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83668         too: getgrgid, getpwuid, getuid.
83669
83670 2000-07-23  Jim Meyering  <meyering@lucent.com>
83671
83672         * lib/basename.c (base_name): Add an assertion.
83673
83674 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83675
83676         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83677         shadow its mbsinit function.
83678
83679 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83680
83681         * lib/mbswidth.h: New file.
83682         * lib/mbswidth.c: New file.
83683         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83684         (noinst_HEADERS): Add mbswidth.h.
83685
83686 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83687
83688         * lib/config.charset: Add support for FreeBSD. Improve support for
83689         HP-UX and IRIX 6.
83690
83691 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83692
83693         * m4/mbswidth.m4: New file.
83694         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83695
83696 2000-07-15  Jim Meyering  <meyering@lucent.com>
83697
83698         * lib/makepath.c: Include quote.h.
83699         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83700         corresponding argument in a `quote (...)' call.
83701         Give better diagnostics.
83702
83703         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83704         (noinst_HEADERS): Add quote.h.
83705
83706         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83707         from tar's src/misc.c.
83708         * lib/quote.h: New file.  Prototypes for same.
83709
83710 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83711
83712         From a suggestion by Bruno Haible.
83713         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83714         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83715         to decide whether to define the BeOS workaround macro;
83716         this adjusts to the change to AC_MBSTATE_T.
83717
83718 2000-07-14  Jim Meyering  <meyering@lucent.com>
83719
83720         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83721         jm_AC_TYPE_UINTMAX_T.
83722
83723 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83724
83725         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83726
83727         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83728         quotearg_buffer_restyled): Add support for
83729         clocale_quoting_style.  Undo previous change to
83730         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83731         and "{RIGHT QUOTATION MARK}" msgids.
83732
83733 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83734
83735         From a suggestion by Bruno Haible.
83736         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83737         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83738         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83739         and mbstate_t, to a single-part test that simply defines mbstate_t.
83740         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83741         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83742
83743 2000-07-10  Jim Meyering  <meyering@lucent.com>
83744
83745         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83746
83747         * m4/gnu-source.m4: Output to confdefs.h directly.
83748         Suggestion from Akim Demaille.
83749
83750 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83751
83752         The old behavior of quoting `like this' doesn't look good with
83753         newer, ISO-style fonts.  See:
83754         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83755
83756         Instead, quote "like this" by default.  Let the translator
83757         tailor the locale-specific quoting behavior by providing
83758         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83759
83760         * lib/quotearg.c (N_): New macro.
83761         (gettext_default): New function.
83762         (quotearg_buffer_restyled): Use
83763         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83764         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83765
83766 2000-07-09  Jim Meyering  <meyering@lucent.com>
83767
83768         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83769         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83770
83771         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83773
83774 2000-07-09  Jim Meyering  <meyering@lucent.com>
83775
83776         * lib/Most files: Update copyright dates to include 2000.
83777
83778 2000-07-08  Jim Meyering  <meyering@lucent.com>
83779
83780         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83781         if not defined.
83782         (xgethostname): Remove now-unnecessary #ifdef.
83783         Move declaration of `err' into loop where it's used.
83784
83785 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83786         and Bruno Haible  <haible@clisp.cons.org>
83787
83788         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83789         only if the test for an object-type mbstate_t fails.  This
83790         prevents us from mistakenly reporting that mbstate_t is a
83791         system object type after we "#define mbstate_t int" to work
83792         around its lack.
83793
83794 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83795         and Bruno Haible  <haible@clisp.cons.org>
83796
83797         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83798
83799 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83800
83801         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83802         to strerror_r.
83803         Include <ctype.h> for use of isalpha.
83804
83805 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83806
83807         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83808         by allocating a larger buffer. Test the gethostname return value for
83809         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83810         returns an error and ENAMETOOLONG isn't defined.
83811
83812 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83813
83814         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83815         dimension.
83816
83817 2000-07-04  Jim Meyering  <meyering@lucent.com>
83818
83819         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83820         of the deprecated AC_CHECKING.
83821
83822 2000-07-04  Jim Meyering  <meyering@lucent.com>
83823
83824         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83825         Reported by Bruno Haible.
83826
83827 2000-07-04  Jim Meyering  <meyering@lucent.com>
83828
83829         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83830         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83831         lacks mbrtowc.
83832
83833 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83834
83835         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83836         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83837
83838 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83839         and Bruno Haible  <haible@clisp.cons.org>
83840
83841         * lib/quotearg.c (mbrtowc):
83842         Assign to *pwc, and return 1 only if result is nonzero.
83843         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83844
83845 2000-07-03  Jim Meyering  <meyering@lucent.com>
83846
83847         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83848
83849 2000-07-03  Jim Meyering  <meyering@lucent.com>
83850
83851         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83852         This is necessary to get a definition of e.g., UTMP_FILE on
83853         HP-UX 10.20.
83854         From Bob Proulx.
83855
83856 2000-07-02  Jim Meyering  <meyering@lucent.com>
83857
83858         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83859
83860         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83861         AC_LIBOBJ(function_name).
83862         * m4/chown.m4: Likewise.
83863         * m4/fnmatch.m4: Likewise.
83864         * m4/ftruncate.m4: Likewise.
83865         * m4/getgroups.m4: Likewise.
83866         * m4/getline.m4: Likewise.
83867         * m4/group-member.m4: Likewise.
83868         * m4/jm-macros.m4: Likewise.
83869         * m4/lstat.m4: Likewise.
83870         * m4/malloc.m4: Likewise.
83871         * m4/memcmp.m4: Likewise.
83872         * m4/nanosleep.m4: Likewise.
83873         * m4/putenv.m4: Likewise.
83874         * m4/realloc.m4: Likewise.
83875         * m4/regex.m4: Likewise.
83876         * m4/stat.m4: Likewise.
83877         * m4/strftime.m4: Likewise.
83878
83879 2000-07-02  Jim Meyering  <meyering@lucent.com>
83880
83881         * lib/quotearg.c (mbstate_t): Don't define here.
83882
83883 2000-07-02  Jim Meyering  <meyering@lucent.com>
83884
83885         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83886
83887 2000-07-01  Jim Meyering  <meyering@lucent.com>
83888
83889         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83890
83891 2000-07-01  Jim Meyering  <meyering@lucent.com>
83892
83893         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83894         problem.
83895
83896 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83897
83898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83899         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83900
83901 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83902
83903         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83904         per change in ../m4/ls-mntd-fs.m4.
83905         (read_filesystem_list): Ignore symbolic links.
83906
83907 2000-06-29  Jim Meyering  <meyering@lucent.com>
83908
83909         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83910         for declaration of strcmp.
83911
83912         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83913
83914         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83915         Avoid warning by casting result to `char *' to remove `const'.
83916
83917 2000-06-28  Jim Meyering  <meyering@lucent.com>
83918
83919         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83920         included by quotearg.c, for which we perform this test.  From
83921         Bruno Haible.
83922
83923 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83924
83925         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83926         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83927         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83928
83929 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83930
83931         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83932
83933 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83934
83935         savedir now sets errno on failure and invokes xmalloc to get memory.
83936         Fix a couple of other minor bugs while we're at it.
83937
83938         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83939         (NAMLEN): Remove macro.
83940         (malloc, realloc): Remove decls.
83941         (stpcpy): Likewise.
83942         ("xalloc.h"): Include.
83943         (NAME_SIZE_DEFAULT): New macro.
83944         (savedir): Use xmalloc / xrealloc to allocate memory.
83945         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83946         Skip "" directory entries.
83947         Use strlen to calculate directory entry length, since the old method
83948         is rarely used these days and isn't worth supporting.
83949         Don't use a pointer after freeing it.
83950         Check for integer overflow when calculating allocation size.
83951         Use memcpy to copy entries, instead of stpcpy.
83952         Set errno properly when returning NULL.
83953         Check for readdir error.
83954
83955 2000-06-26  Jim Meyering  <meyering@lucent.com>
83956
83957         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83958
83959 2000-06-25  Jim Meyering  <meyering@lucent.com>
83960
83961         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83962         Linux header bug when _XOPEN_SOURCE is defined to 500.
83963
83964 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83965
83966         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83967         deficiency.
83968
83969 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83970
83971         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83972         Include xalloc.h.
83973         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83974
83975 2000-06-24  Jim Meyering  <meyering@lucent.com>
83976
83977         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83978         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83979         for which strerror does return char*, but which lacks a conveniently
83980         accessible declaration of the function.  If the compile-test says
83981         strerror_r doesn't work, then resort to a `run'-test that works on
83982         BeOS and segfaults on DEC Unix.
83983
83984 2000-06-24  Jim Meyering  <meyering@lucent.com>
83985
83986         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83987
83988 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83989
83990         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83991         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83992
83993 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83994
83995         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83996         (mbrtowc, mbstate_t): Define substitutes if
83997         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83998         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83999         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84000
84001 2000-06-23  Jim Meyering  <meyering@lucent.com>
84002
84003         * m4/afs.m4: Add missing AC_MSG_RESULT.
84004         Reported by Bruno Haible.
84005
84006         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84007         Suggestion from Bruno Haible.
84008
84009 2000-06-23  Jim Meyering  <meyering@lucent.com>
84010
84011         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84012
84013 2000-06-21  Jim Meyering  <meyering@lucent.com>
84014
84015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84016
84017 2000-06-21  Jim Meyering  <meyering@lucent.com>
84018
84019         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84020         (noinst_HEADERS): Add getstr.h.
84021
84022         * lib/getline.c (getstr): Move into a separate file.
84023         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84024         the following changes: new parameter, delim2; both delim[12]
84025         parameters have type `int', not `char'.  The latter would lose
84026         with 8-bit delimiters.
84027         * lib/getstr.h: New file.
84028
84029 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84030
84031         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84032         than 1024, return a memory chunk of least possible size, instead
84033         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84034         Use free/xmalloc instead of xrealloc to avoid copying for very long
84035         paths.
84036
84037 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84038
84039         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84040         the empty string.
84041
84042 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84043
84044         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84045         address, not strdup.  Include <stdlib.h> and don't declare free().
84046
84047 2000-06-19  Jim Meyering  <meyering@lucent.com>
84048
84049         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84050
84051 2000-06-18  Jim Meyering  <meyering@lucent.com>
84052
84053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84054
84055         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84056         `checking whether...' message to be consistent with that of the
84057         lstat test.
84058
84059 2000-06-18  Jim Meyering  <meyering@lucent.com>
84060
84061         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84062         Besides, these days every porting target provides a mkdir function.
84063
84064         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84065         needed. (this snippet comes from src/system.h).
84066
84067 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84068
84069         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84070
84071 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84072
84073         * lib/human.c (adjust_value): New function.
84074         (human_readable_inexact): Apply rounding style even when
84075         printing approximate values.
84076
84077 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84078
84079         * lib/human.c (human_readable_inexact): Allow an input block
84080         size that is not a multiple of the output block size, and vice versa.
84081         Reported by Piergiorgio Sartor.
84082
84083 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84084
84085         * lib/getdate.y (get_date): Apply relative times after time
84086         zone indicator, not before.  Reported by Todd A. Jacobs.
84087
84088 2000-06-13  Jim Meyering  <meyering@lucent.com>
84089
84090         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84091
84092         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84093
84094 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84095
84096         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84097
84098 2000-06-12  Jim Meyering  <meyering@lucent.com>
84099
84100         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84101         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84102         optional argument.
84103         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84104         the optional argument, `lib'.
84105
84106 2000-06-08  Jim Meyering  <meyering@lucent.com>
84107
84108         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84109
84110 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84111
84112         Rewrite largefile configuration so that we don't need to run
84113         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84114         AC_CANONICAL_HOST in configure.in -- jmm]
84115
84116         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84117         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84118         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84119         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84120         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84121         All uses changed.
84122         Instead of inspecting the output of getconf, try to compile the
84123         test program without and with the macro definition.
84124         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84125         for getconf.  Instead, check for the needed flags by compiling
84126         test programs.
84127
84128 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84129
84130         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84131
84132 2000-06-04  Jim Meyering  <meyering@lucent.com>
84133
84134         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84135         SunOS 4.1.4 for which gid_t is an unsigned type.
84136
84137 2000-06-03  Jim Meyering  <meyering@lucent.com>
84138
84139         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84140         now that autoconf requires that.
84141
84142         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84143         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84144         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84145
84146 2000-06-03  Jim Meyering  <meyering@lucent.com>
84147
84148         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84149
84150 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84151
84152         * m4/glibc21.m4: New file.
84153         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84154
84155 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84156
84157         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84158         newer, don't install charset.alias.
84159         * lib/config.charset: Change the Linux/glibc rules so they become empty
84160         on glibc-2.1 or newer.
84161
84162 2000-06-02  Jim Meyering  <meyering@lucent.com>
84163
84164         * lib/mountlist.c: Back out last change.  Instead, do this...
84165         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84166         me_dummy member using the same `ignore'-testing code.
84167         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84168         fs_type strings.
84169         From Mark D. Roth.
84170
84171 2000-05-29  Jim Meyering  <meyering@lucent.com>
84172
84173         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84174         mounts with the `ignore' attribute.  Based on a patch from
84175         Mark D. Roth.
84176
84177 2000-05-28  Jim Meyering  <meyering@lucent.com>
84178
84179         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84180         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84181         * m4/stat.m4: Likewise.
84182         * m4/lstat.m4: Likewise.
84183         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84184
84185         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84186         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84187
84188 2000-05-26  Jim Meyering  <meyering@lucent.com>
84189
84190         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84191
84192 2000-05-24  Jim Meyering  <meyering@lucent.com>
84193
84194         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84195         autoconf requires that.
84196         * m4/lib-check.m4: Likewise.
84197         * m4/jm-macros.m4: Likewise.
84198         * m4/strftime.m4: Likewise.
84199
84200         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84201         AC_CHECK_DECLS, now that autoconf requires that.
84202
84203 2000-05-22  Jim Meyering  <meyering@lucent.com>
84204
84205         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84206         * m4/lstat.m4: Likewise.
84207
84208 2000-05-22  Jim Meyering  <meyering@lucent.com>
84209
84210         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84211
84212 2000-05-20  Jim Meyering  <meyering@lucent.com>
84213
84214         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84215         (jm_PREREQ): Use it.
84216
84217 2000-05-18  Jim Meyering  <meyering@lucent.com>
84218
84219         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84220         back, too, since it may have been modified by allocate_entry.
84221         (hash_delete): Rewrite to use neither the assignment operator
84222         nor the comma operator in an if-expression.
84223
84224 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84225
84226         * lib/closeout.c:
84227         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84228         Remove; no longer needed.
84229         "quotearg.h": Add include.
84230         (file_name): Do not bother to explicitly initialize to NULL; it's less
84231         efficient on some hosts.
84232         (close_stdout_status): Remove test as to whether stdout was already
84233         closed; it breaks for the case "echo x | sort >&-".
84234         Quote file name colons.
84235         Do not assume that _("write error") lacks format strings.
84236
84237 2000-05-15  Jim Meyering  <meyering@lucent.com>
84238
84239         * lib/version-etc.c (version_etc_copyright): Update the copyright
84240         string used in all --version output.
84241
84242 2000-05-14  Jim Meyering  <meyering@lucent.com>
84243
84244         * lib/closeout.c (close_stdout_set_file_name): New function.
84245         (close_stdout_status): Use new file-scoped global.
84246         Return right away if fstat says the stdout file descriptor is invalid.
84247         * lib/closeout.h (close_stdout_set_file_name): Declare.
84248
84249 2000-05-10  Jim Meyering  <meyering@lucent.com>
84250
84251         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84252         (close_stdout_set_status): New function.
84253         * lib/closeout.h (close_stdout_set_status): Declare.
84254
84255 2000-05-09  Jim Meyering  <meyering@lucent.com>
84256
84257         * m4/gettext.m4: Rename this...
84258         * m4/libintl.m4: ...to this.
84259
84260 2000-05-08  Jim Meyering  <meyering@lucent.com>
84261
84262         * lib/long-options.c: Don't include closeout.h.
84263         (parse_long_options): Don't call close_stdout for --version.
84264
84265 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84266
84267         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84268         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84269         2.1.3 bug.  This avoids a clash when files like regex.c define
84270         _GNU_SOURCE.
84271
84272 2000-05-06  Jim Meyering  <meyering@lucent.com>
84273
84274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84275         (AC_REPLACE_FUNCS): Add strnlen.
84276
84277         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84278         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84279
84280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84281         AC_SEARCH_LIBS call for nanosleep.
84282         (LIB_NANOSLEEP): Set and AC_SUBST.
84283
84284 2000-05-06  Jim Meyering  <meyering@lucent.com>
84285
84286         * lib/strnlen.c: Undefine __strnlen and strnlen.
84287         [!weak_alias]: Define __strnlen to strnlen.
84288
84289         * lib/atexit.c: New file, from libiberty.
84290
84291 2000-05-06  Jim Meyering  <meyering@lucent.com>
84292
84293         * lib/closeout.c (close_stdout_status): Also check for errors on the
84294         stderr stream.
84295
84296 2000-05-05  Jim Meyering  <meyering@lucent.com>
84297
84298         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84299         AC_SEARCH_LIBS call for clock_gettime.
84300         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84301
84302         * m4/search-libs.m4: Update from autoconf.
84303
84304         su doesn't work on Solaris 2.6.
84305         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84306         <shadow.h>.  Reported by Dragos Harabor.
84307
84308 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84309
84310         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84311         memcpy instead of xmalloc, xrealloc, path_concat.
84312         (locale_charset): Treat empty environment variables as absent.
84313         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84314
84315 2000-05-04  Jim Meyering  <meyering@lucent.com>
84316
84317         * lib/getopt.c: Update from glibc.
84318         * lib/obstack.c: Likewise.
84319         * lib/obstack.h: Likewise.
84320         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84321         file
84322
84323         * lib/regex.h: Likewise.
84324         * lib/strndup.c: Likewise.
84325         * lib/strnlen.c: New file, from glibc.
84326
84327 2000-05-03  Jim Meyering  <meyering@lucent.com>
84328
84329         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84330
84331 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84332
84333         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84334         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84335         compile-time test, rather than inspecting host and OS, to
84336         decide whether to define _LARGEFILE_SOURCE.
84337
84338 2000-05-01  Jim Meyering  <meyering@lucent.com>
84339
84340         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84341
84342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84343         Based on a patch from Bruno Haible.
84344
84345 2000-05-01  Jim Meyering  <meyering@lucent.com>
84346
84347         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84348
84349 2000-04-29  Jim Meyering  <meyering@lucent.com>
84350
84351         * lib/path-concat.c: Declare strdup only if it's not defined.
84352         * lib/canon-host.c: Likewise.
84353
84354 2000-04-28  Jim Meyering  <meyering@lucent.com>
84355
84356         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84357         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84358         is included first, then limits.h is included by locale.h by libintl.h.
84359         From John David Anglin.
84360
84361 2000-04-25  Jim Meyering  <meyering@lucent.com>
84362
84363         * lib/makepath.c (S_IRWXUGO): Define.
84364         (make_path): Always perform explicit chmod if MODE specifies any
84365         of the `special' permission bits.  Prompted by a bug report against
84366         install from Mate Wierdl and Joost van Baal.
84367
84368 2000-04-18  Jim Meyering  <meyering@lucent.com>
84369
84370         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84371         (jm_PREREQ): Use it.
84372
84373 2000-04-18  Jim Meyering  <meyering@lucent.com>
84374
84375         * lib/README: New file.
84376
84377         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84378         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84379
84380 2000-04-17  Jim Meyering  <meyering@lucent.com>
84381
84382         Get it right :-)
84383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84384         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84385         Suggestion from Akim Demaille.
84386
84387 2000-04-17  Jim Meyering  <meyering@lucent.com>
84388
84389         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84390         the definition of it to rpl_strftime also defined-away the system's
84391         declaration.
84392
84393 2000-04-15  Jim Meyering  <meyering@lucent.com>
84394
84395         Use `C' to denote so-called `contiguous' files, the same way
84396         that tar does.
84397         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84398         (ftypelet): Use S_ISCTG.
84399         From Michael Deutschmann.
84400
84401 2000-04-14  Jim Meyering  <meyering@lucent.com>
84402
84403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84404         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84405         clobbered.
84406
84407 2000-04-14  Jim Meyering  <meyering@lucent.com>
84408
84409         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84410
84411 2000-04-13  Jim Meyering  <meyering@lucent.com>
84412
84413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84414         AH_VERBATIM to insert required #ifndef into config.h.in.
84415         Suggestion from Akim Demaille.
84416
84417 2000-04-12  Jim Meyering  <meyering@lucent.com>
84418
84419         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84420         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84421         Christian Krackowizer.
84422
84423         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84424         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84425         (AC_SYS_LARGEFILE): Require.
84426         (AM_C_PROTOTYPES): Require.
84427
84428 2000-04-08  Jim Meyering  <meyering@lucent.com>
84429
84430         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84431         names don't conflict.  Reported by Eli Zaretskii.
84432
84433 2000-04-07  Jim Meyering  <meyering@lucent.com>
84434
84435         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84436         sys/types.h, to work around system header problems on AIX 3.2.5.
84437         From Bruno Haible.
84438
84439 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84440
84441         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84442         bug.  Deal with the different error behavior of Irix iconv.
84443
84444 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84445
84446         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84447         IRIX if the installer said otherwise.
84448
84449 2000-04-05  Jim Meyering  <meyering@lucent.com>
84450
84451         Portability tweaks required for ultrix4.3.
84452         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84453         (jm_CHECK_DECLS): Add getutent to the list of functions.
84454         (_jm_DECL_HEADERS): Add utmpx.h.
84455         From John David Anglin.
84456
84457         * m4/strftime.m4: Back out the 2000-04-02 change.
84458         Instead of that change, simply undefine putenv in the test program.
84459
84460 2000-04-05  Jim Meyering  <meyering@lucent.com>
84461
84462         Portability tweaks required for ultrix4.3.
84463         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84464         getutent.
84465         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84466         * lib/canon-host.c: Declare strdup.
84467         * lib/path-concat.c: Likewise.
84468         From John David Anglin.
84469
84470 2000-04-04  Jim Meyering  <meyering@lucent.com>
84471
84472         Be more DOS 8.3-friendly.
84473         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84474         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84475         * lib/Makefile.am: Reflect renaming.
84476         Reported by Eli Zaretskii.
84477
84478         Use a temporary file name that won't clash with `charset.alias'
84479         in the DOS 8.3 name space.
84480         * lib/Makefile.am (charset_tmp): Define.
84481         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84482         (uninstall-local): Likewise.
84483         Reported by Eli Zaretskii.
84484
84485 2000-04-03  Jim Meyering  <meyering@lucent.com>
84486
84487         * m4/gettext.m4: Fix typo in comment.
84488
84489         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84490         textutils/configure.in).  Suggestion from Paul Eggert.
84491         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84492
84493 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84494
84495         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84496         variable in the shell rather than using putenv, which isn't
84497         portable.  This avoids the configure-time inter-test dependency
84498         on the potentially-renamed putenv function.
84499
84500 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84501
84502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84503         before checking struct stat.st_blksize, so that
84504         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84505
84506 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84507
84508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84509         since strftime.c uses HAVE_STRFTIME to decide whether to use
84510         the underlying strftime.
84511
84512 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84513
84514         * lib/time/strftime.c (my_strftime): Make sure we call the system
84515         strftime, not ourselves, when invoking the underlying strftime.
84516
84517 2000-03-24  Jim Meyering  <meyering@lucent.com>
84518
84519         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84520         (charset_alias): Define.
84521         (install-exec-local): Factor out common code.
84522         (uninstall-local): Split lines longer than 80.
84523         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84524         (SUFFIXES): Define.
84525         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84526         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84527
84528 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84529
84530         * lib/config.charset: Output a line containing "Packages using this
84531         file".
84532         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84533         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84534         ref-del.sed): New rules.
84535
84536 2000-03-17  Jim Meyering  <meyering@lucent.com>
84537
84538         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84539         Otherwise, include <strings.h>
84540
84541 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84542
84543         * lib/unicodeio.c (utf8_wctomb): New function.
84544         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84545         format instead of in UCS-4 with platform dependent endianness.
84546
84547 2000-03-10  Jim Meyering  <meyering@lucent.com>
84548
84549         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84550         From Marco Franzen.
84551
84552 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84553
84554         * lib/savedir.c (savedir): Work even if directory size is
84555         negative; this can happen with some screwy NFS configurations.
84556
84557 2000-03-06  Jim Meyering  <meyering@lucent.com>
84558
84559         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84560         if it's NULL (because we ran out of memory).  From Bruno Haible.
84561
84562 2000-03-05  Jim Meyering  <meyering@lucent.com>
84563
84564         * lib/localcharset.c ("path-concat.h"): Include.
84565         (get_charset_aliases): Use path_concat instead of ANSI string
84566         concatenation.
84567
84568         * lib/unicodeio.h (PARAMS): Define.
84569         Use it to guard prototype.
84570
84571 2000-03-04  Jim Meyering  <meyering@lucent.com>
84572
84573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84574         for lib/localcharset.c.
84575
84576 2000-03-04  Jim Meyering  <meyering@lucent.com>
84577
84578         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84579         installing into it.
84580         (uninstall-local): Uncomment this rule so `make distcheck' works
84581         once again.
84582
84583         * lib/unicodeio.c (<errno.h>): Include it.
84584         (errno): Declare if not defined.
84585
84586         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84587
84588         * lib/config.charset: New version, incorporating remarks from a linux
84589         i18n mailing list.  From Bruno Haible.
84590
84591 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84592
84593         * m4/codeset.m4: New file.
84594         * m4/iconv.m4: New file.
84595         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84596
84597 2000-03-03  Jim Meyering  <meyering@lucent.com>
84598
84599         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84600
84601 2000-03-02  Jim Meyering  <meyering@lucent.com>
84602
84603         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84604         the messages come out on separate lines.
84605
84606         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84607         rather than jm_CHECK_DECLARATIONS.
84608         * m4/decl.m4: Remove now-unused file.
84609
84610         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84611         geteuid.
84612
84613 2000-03-02  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84616
84617 2000-03-01  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84620         * lib/unicodeio.c: Likewise.
84621
84622 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84623
84624         * lib/config.charset: New file.
84625         * lib/localcharset.c: New file.
84626         * lib/unicodeio.h, lib/unicodeio.c: New files.
84627         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84628         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84629         (noinst_HEADERS): Add unicodeio.h.
84630         (all-local, install-exec-local, charset.alias): New targets.
84631
84632 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84633
84634         * lib/quotearg.c (ALERT_CHAR): New macro.
84635         (quotearg_buffer_restyled): Use it.
84636
84637 2000-02-27  Jim Meyering  <meyering@lucent.com>
84638
84639         * m4/check-decl.m4: Add getenv to the list.
84640
84641 2000-02-27  Jim Meyering  <meyering@lucent.com>
84642
84643         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84644         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84645
84646         * lib/backupfile.c: Guard inclusion of stdlib.h with
84647         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84648         Declare malloc if needed.
84649
84650         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84651         `#ifndef HAVE_DECL..'
84652         now that autoconf always defines the HAVE_DECL_ symbols.
84653         * lib/human.c: Likewise.
84654         * lib/same.c: Likewise.
84655         * lib/strtoumax.c: Likewise.
84656
84657         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84658         declaration check was not run.
84659         * lib/hash.c: Likewise.
84660         * lib/human.c: Likewise.
84661         * lib/same.c: Likewise.
84662         * lib/strtoumax.c: Likewise.
84663
84664         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84665         `.', then first look up the entire `.'-containing string as a login
84666         name.
84667
84668 2000-02-23  Jim Meyering  <meyering@lucent.com>
84669
84670         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84671         in place of my hack.
84672
84673 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84674
84675         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84676         (textint): New typedef.
84677         (parser_control): Member year changed from int to textint.
84678         All uses changed.
84679         (YYSTYPE): Removed; replaced by %union with int and textint members.
84680         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84681         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84682         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84683         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84684         (date, number, to_year): Use width of number in digits, not its value,
84685         to determine whether it's a 2-digit year, or a 2-digit time.
84686         (yylex): Store number of digits of numeric tokens.
84687         Reported by John Kendall.
84688
84689         (parser_control): Changed from struct parser_control to typedef (for
84690         consistency).  All uses changed.
84691
84692         (tID): Removed; not used.
84693         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84694
84695 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84696
84697         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84698         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84699
84700 2000-02-12  Jim Meyering  <meyering@lucent.com>
84701
84702         * lib/userspec.c (ISDIGIT): Define it.
84703         (isdigit): Remove definition.
84704         (is_number): Use ISDIGIT, not isdigit.
84705         <libintl.h>: Include.
84706         (_ and N_): Define.
84707         (parse_user_spec): Mark translatable strings.
84708
84709 2000-02-10  Jim Meyering  <meyering@lucent.com>
84710
84711         With these changes, nanosleep.[ch] are finally enough like the other
84712         lib/* replacement files to compile on a few more losing systems.
84713
84714         * lib/nanosleep.h: Don't include config.h.
84715         Remove prototype from declaration of nanosleep.
84716         (PARAMS): Remove now-unneeded definition.
84717         * lib/nanosleep.c: #undef nanosleep.
84718         (rpl_nanosleep): Rename from nanosleep.
84719
84720 2000-02-10  Jim Meyering  <meyering@lucent.com>
84721
84722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84723         gnu_nanosleep to rpl_nanosleep.
84724
84725 2000-02-09  Jim Meyering  <meyering@lucent.com>
84726
84727         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84728         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84729
84730 2000-02-08  Akim Demaille  <akim@epita.fr>
84731
84732         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84733         `[' and `]' and remove uses of `changequote'.
84734         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84735         (AC_SYS_LARGEFILE): Likewise.
84736         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84737         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84738         of changequote.
84739         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84740         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84741         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84742         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84743
84744 2000-02-05  Jim Meyering  <meyering@lucent.com>
84745
84746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84747         Remove explicit use of AC_HEADER_TIME.  It is required by
84748         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84749         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84750         in autoconf whereby the expansion of the latter ended up preceding
84751         the expansion of its prerequisite, AC_HEADER_TIME.
84752         Reported by Volker Borchert.
84753
84754 2000-02-03  Jim Meyering  <meyering@lucent.com>
84755
84756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84757
84758 2000-02-03  Jim Meyering  <meyering@lucent.com>
84759
84760         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84761         rather than with `#if HAVE_UTMPNAME'.
84762
84763 2000-02-02  Jim Meyering  <meyering@lucent.com>
84764
84765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84766         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84767         Reported by Eli Zaretskii.
84768
84769 2000-02-01  Jim Meyering  <meyering@lucent.com>
84770
84771         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84772
84773 2000-01-31  Jim Meyering  <meyering@lucent.com>
84774
84775         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84776         functions.  Add the time.h and sys/time.h headers along with the
84777         AC_REQUIRE'ment of AC_HEADER_TIME.
84778
84779 2000-01-31  Jim Meyering  <meyering@lucent.com>
84780
84781         * lib/nanosleep.h (nanosleep): Guard declaration with
84782         `#if ! HAVE_DECL_NANOSLEEP'.
84783         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84784         the declaration in that vendor's sys/timers.h.
84785         Reported by Christian Krackowizer.
84786
84787         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84788         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84789         (ISPRINT): Likewise.
84790         Reported by Tom Tromey.
84791
84792 2000-01-30  Jim Meyering  <meyering@lucent.com>
84793
84794         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84795
84796         * m4/prereq.m4 (utmp_includes): Define.
84797         Check for ut_user and ut_name members in both struct utmpx
84798         and struct utmp.
84799
84800 2000-01-30  Jim Meyering  <meyering@lucent.com>
84801
84802         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84803         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84804         header files where only utmpx.ut_user is declared.
84805
84806         * lib/readutmp.h (UT_USER): Define.
84807
84808 2000-01-29  Jim Meyering  <meyering@lucent.com>
84809
84810         * m4/lib-check.m4: New file containing library-related checks from
84811         fileutils and sh-utils (textutils had none).
84812
84813 2000-01-28  Jim Meyering  <meyering@lucent.com>
84814
84815         * m4/perl.m4: Change format of warning message to look more like that
84816         from the missing script.  Suggestion from François Pinard.
84817
84818 2000-01-25  Jim Meyering  <meyering@lucent.com>
84819
84820         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84821         well as time.h in the compile check.
84822         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84823         Fix typo in cross-compiling case: s/yes/no/.
84824
84825 2000-01-23  Jim Meyering  <meyering@lucent.com>
84826
84827         * m4/jm-macros.m4: Move df-related tests here from
84828         fileutils/configure.in
84829
84830         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84831         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84832
84833         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84834         s/space/ac_fsusage_space/.
84835         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84836
84837         * m4/ftruncate.m4: New file (derived from part of
84838         fileutils/configure.in).
84839         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84840         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84841
84842         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84843         AC_SUBST these here, rather than just in sh-util/configure.in, so
84844         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84845         all the same.
84846         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84847         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84848         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84849         (AC_SUBST(POW_LIBM)): Likewise.
84850         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84851
84852 2000-01-23  Jim Meyering  <meyering@lucent.com>
84853
84854         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84855         obstack.c.
84856
84857 2000-01-22  Jim Meyering  <meyering@lucent.com>
84858
84859         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84860
84861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84862
84863         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84864         configure.in
84865         (AC_CHECK_HEADERS): Likewise for sh-utils.
84866         (AC_CHECK_HEADERS): Likewise for textutils.
84867         Merge the three lists of headers.
84868
84869         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84870         from fileutils' configure.in.
84871
84872         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84873         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84874         check-decl.m4.
84875
84876         * m4/check-decl.m4: Use #if rather than #ifdef.
84877         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84878         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84879         (_jm_DECL_HEADERS): Define new function.
84880         (jm_CHECK_DECLARATIONS): Require it.
84881
84882 2000-01-22  Jim Meyering  <meyering@lucent.com>
84883
84884         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84885         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84886         Required for some AIX systems.  Reported by Christian Krackowizer.
84887         [TESTING] (main): New function.
84888
84889         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84890         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84891         letters.
84892
84893         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84894         iswprint.
84895
84896         * lib/strverscmp.c (ISDIGIT): Define.
84897         (strverscmp): Use ISDIGIT, not isdigit.
84898
84899 2000-01-19  Jim Meyering  <meyering@lucent.com>
84900
84901         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84902         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84903         defines `struct timespec' in <sys/time.h>
84904
84905         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84906         Thanks to Akim for explaining.
84907
84908 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84909
84910         * lib/nanosleep.c (nanosleep):
84911         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84912         POSIX.1 doesn't require SA_INTERRUPT and some systems
84913         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84914         it's been part of POSIX.1 since day 1 (in 1988).
84915
84916 2000-01-17  Jim Meyering  <meyering@lucent.com>
84917
84918         * lib/interlock: Remove unused file.  Reported by François Pinard.
84919
84920 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84921
84922         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84923         alert, backslash, formfeed, and vertical tab unnecessarily in
84924         shell quoting style.
84925
84926 2000-01-16  Jim Meyering  <meyering@lucent.com>
84927
84928         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84929         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84930         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84931         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84932
84933 2000-01-16  Jim Meyering  <meyering@lucent.com>
84934
84935         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84936         because the latter didn't work.
84937
84938 2000-01-15  Jim Meyering  <meyering@lucent.com>
84939
84940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84941         (AC_REPLACE_FUNCS): Add memcpy and memset.
84942         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84943         Add strpbrk.
84944         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84945
84946 2000-01-12  Jim Meyering  <meyering@lucent.com>
84947
84948         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84949         (jm_PREREQ): Use it.
84950         (jm_PREREQ_READUTMP): New macro.
84951         (jm_PREREQ): Use it.
84952
84953 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84954
84955         Quote multibyte characters correctly.
84956         * m4/c-bs-a.m4: New file.
84957         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84958         (jm_PREREQ): Use it.
84959
84960 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84961
84962         * m4/uintmax_t.m4: Port to autoconf 2.13.
84963
84964 2000-01-08  Jim Meyering  <meyering@ascend.com>
84965
84966         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84967         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84968
84969 2000-01-04  Jim Meyering  <meyering@ascend.com>
84970
84971         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84972         jm_STRUCT_DIRENT_D_TYPE.
84973         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84974         jm_STRUCT_DIRENT_D_INO.
84975         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84976         jm_STRUCT_UTIMBUF.
84977         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84978         renamings.
84979         * m4/utime.m4: Likewise.
84980
84981         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84982         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84983
84984 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84985
84986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84987         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84988
84989 2000-01-02  Jim Meyering  <meyering@ascend.com>
84990
84991         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84992         remember if this is necessary.
84993
84994 1999-12-26  Jim Meyering  <meyering@ascend.com>
84995
84996         * m4/jm-macros.m4: Use it here.
84997         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84998
84999 1999-12-23  Jim Meyering  <meyering@ascend.com>
85000
85001         * m4/jm-macros.m4: Check for clock_gettime (moved from
85002         fileutils/configure.in)
85003         Check for gettimeofday.
85004
85005 1999-12-20  Jim Meyering  <meyering@ascend.com>
85006
85007         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85008         autoconf-2.14a-1999-12-20.
85009
85010 1999-12-19  Jim Meyering  <meyering@ascend.com>
85011
85012         * m4/lstat-slash.m4: New file.
85013         * m4/jm-macros.m4: Use the new macro:
85014         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85015
85016 1999-12-07  Jim Meyering  <meyering@ascend.com>
85017
85018         * m4/perl.m4: Require that File::Compare be available, too.
85019         Too many systems seem to lack it.
85020
85021         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85022         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85023
85024 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85025
85026         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85027         problem with the QNX 4.25 shell, which doesn't propagate exit
85028         status of failed commands inside shell assignments.
85029
85030 1999-11-17  Jim Meyering  <meyering@ascend.com>
85031
85032         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85033
85034 1999-11-07  Jim Meyering  <meyering@ascend.com>
85035
85036         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85037
85038 1999-11-06  Jim Meyering  <meyering@ascend.com>
85039
85040         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85041         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85042
85043 1999-11-05  Jim Meyering  <meyering@ascend.com>
85044
85045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85046         configure.in of textutils, fileutils, and sh-utils into this one
85047         (shared between those packages) file.
85048         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85049         AC_STRUCT_ST_BLKSIZE.
85050
85051 1999-11-03  Jim Meyering  <meyering@ascend.com>
85052
85053         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85054         of AC_CHECK_TYPE checks includes unistd.h.
85055         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85056         Suggestion from Akim Demaille.
85057
85058 1999-10-30  Jim Meyering  <meyering@ascend.com>
85059
85060         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85061         m4-quoted string.
85062         * m4/ls-mntd-fs.m4: Likewise.
85063         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85064         * m4/jm-winsz1.m4: Likewise.
85065
85066         * m4/const.m4: Remove file, since the fix made it into the experimental
85067         version of autoconf.
85068         * m4/mktime.m4: Likewise.
85069
85070         * m4/check-type.m4: Remove file, now that the latest version of
85071         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85072
85073         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85074         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85075         AC_CHECK_TYPE.
85076
85077 1999-10-04  Jim Meyering  <meyering@ascend.com>
85078
85079         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85080
85081 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85082
85083         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85084         2.95.1 bug with HP-UX 10.20.
85085
85086 1999-09-17  Jim Meyering  <meyering@ascend.com>
85087
85088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85089         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85090         due to missing strdup (against sh-utils-2.0).
85091
85092 1999-08-29  Jim Meyering  <meyering@ascend.com>
85093
85094         * m4/jm-macros.m4: Require jm_BISON.
85095         * m4/bison.m4: New file.
85096
85097 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85098
85099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85100         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85101
85102 1999-08-05  Jim Meyering  <meyering@ascend.com>
85103
85104         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85105         to avoid conflicts with `conftest' on 8+3 filesystems.
85106         Suggestion from Eli Zaretskii.
85107
85108 1999-08-04  Jim Meyering  <meyering@ascend.com>
85109
85110         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85111         fileutils and sh-utils (textutils's getline test was inadequate).
85112         (AM_FUNC_GETLINE): Run this test.
85113         (AC_CHECK_FUNCS): Check for getdelim.
85114         Reported by Bob Proulx.
85115
85116 1999-08-02  Jim Meyering  <meyering@ascend.com>
85117
85118         * m4/jm-macros.m4: Add a comment.
85119
85120 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85121
85122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85123         <inttypes.h> defines strtoumax as a macro (and not as a
85124         function).
85125
85126 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85127
85128         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85129         that we can shift, multiply and divide unsigned long long
85130         values; Ultrix cc can't do it.
85131
85132 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85133
85134         * m4/mktime.m4: New file, which is a preview of what should appear
85135         in the next public autoconf release.
85136
85137 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85138
85139         * m4/lfs.m4: Remove this file.
85140         * m4/largefile.m4: New file.  It contains the old contents of
85141         lfs.m4, except that all names with prefix AC_LFS have been
85142         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85143         compatible with future autoconf versions.  Also, some minor m4
85144         quoting problems have been fixed.
85145
85146 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85147
85148         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85149         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85150         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85151         and simplify the shell code.
85152
85153 1999-08-01  Jim Meyering  <meyering@ascend.com>
85154
85155         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85156         m4.
85157
85158 1999-07-20  Jim Meyering  <meyering@ascend.com>
85159
85160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85161
85162 1999-07-15  Jim Meyering  <meyering@ascend.com>
85163
85164         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85165
85166 1999-05-22  Jim Meyering  <meyering@ascend.com>
85167
85168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85169
85170 1999-05-20  Jim Meyering  <meyering@ascend.com>
85171
85172         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85173         Add a colon after each `then' in case $4 is empty.
85174
85175 1999-05-16  Jim Meyering  <meyering@ascend.com>
85176
85177         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85178
85179 1999-05-10  Jim Meyering  <meyering@ascend.com>
85180
85181         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85182
85183         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85184         AC_FUNC_MKTIME.
85185
85186 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85187
85188         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85189
85190 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85191
85192         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85193         not CPPFLAGS, so that linking works correctly in IRIX.
85194
85195 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85196
85197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85198
85199 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85200
85201         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85202         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85204         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85206
85207         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85208
85209 1999-04-20  Jim Meyering  <meyering@ascend.com>
85210
85211         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85212         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85213         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85214
85215 1999-04-18  Jim Meyering  <meyering@ascend.com>
85216
85217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85218         * m4/jm-macros.m4: Use it.
85219
85220 1999-04-06  Jim Meyering  <meyering@ascend.com>
85221
85222         * m4/strftime.m4: Remove test for %f.
85223
85224 1999-03-29  Jim Meyering  <meyering@ascend.com>
85225
85226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85227         superset of the AC_TYPE_* checks in the textutils, fileutils,
85228         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85229         AC_TYPE_PID_T.
85230
85231 1999-03-28  Jim Meyering  <meyering@ascend.com>
85232
85233         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85234         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85235         replaced e.g., in the *.sh files of the sh-utils.
85236
85237 1999-03-20  Jim Meyering  <meyering@ascend.com>
85238
85239         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85240         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85241         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85242
85243 1999-03-19  Jim Meyering  <meyering@ascend.com>
85244
85245         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85246
85247 1999-03-12  Jim Meyering  <meyering@ascend.com>
85248
85249         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85250
85251 1999-03-07  Jim Meyering  <meyering@ascend.com>
85252
85253         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85254         declared.
85255
85256 1999-02-17  Jim Meyering  <meyering@ascend.com>
85257
85258         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85259         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85260
85261 1999-02-07  Jim Meyering  <meyering@ascend.com>
85262
85263         * m4/group-member.m4: New file -- extracted from sh-utils'
85264         configure.in.
85265
85266         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85267         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85268
85269 1999-02-06  Jim Meyering  <meyering@ascend.com>
85270
85271         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85272         * m4/fnmatch.m4: Likewise.
85273         * m4/getgroups.m4: Likewise.
85274         * m4/lstat.m4: Likewise.
85275         * m4/malloc.m4: Likewise.
85276         * m4/putenv.m4: Likewise.
85277         * m4/realloc.m4: Likewise.
85278         * m4/regex.m4: Likewise.
85279         * m4/stat.m4: Likewise.
85280         * m4/strftime.m4: Likewise.
85281         Suggestion from Alain Magloire.
85282
85283         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85284         * m4/fnmatch.m4: Likewise.
85285         * m4/getgroups.m4: Likewise.
85286         * m4/getline.m4: Likewise.
85287         * m4/lstat.m4: Likewise.
85288         * m4/malloc.m4: Likewise.
85289         * m4/memcmp.m4: Likewise.
85290         * m4/putenv.m4: Likewise.
85291         * m4/realloc.m4: Likewise.
85292         * m4/regex.m4: Likewise.
85293         * m4/stat.m4: Likewise.
85294         * m4/strftime.m4: Likewise.
85295         Suggestion from Alain Magloire.
85296
85297         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85298         an argument.
85299
85300         * m4/regex.m4: Add a run-time Test for proper operation of
85301         re_compile_pattern.
85302
85303 1999-01-31  Jim Meyering  <meyering@ascend.com>
85304
85305         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85306
85307 1999-01-30  Jim Meyering  <meyering@ascend.com>
85308
85309         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85310
85311         * m4/jm-mktime.m4: Make this a wrapper around the official
85312         AM_FUNC_MKTIME rather than my private copy, now that the official one
85313         is up to date.
85314         * m4/mktime.m4: Remove file.
85315
85316         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85317         * m4/uptime.m4: Likewise.
85318         * m4/uintmax_t.m4: Likewise.
85319
85320 1999-01-28  Jim Meyering  <meyering@ascend.com>
85321
85322         * m4/jm-macros.m4: Use jm_AFS.
85323         * m4/afs.m4: New file (from fileutils' configure.in).
85324
85325         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85326         * m4/chown.m4: Likewise.
85327         * m4/d-ino.m4: Likewise.
85328         * m4/d-type.m4: Likewise.
85329         * m4/fnmatch.m4: Likewise.
85330         * m4/getgroups.m4: Likewise.
85331         * m4/gettext.m4: Likewise.
85332         * m4/jm-mktime.m4: Likewise.
85333         * m4/jm-winsz2.m4: Likewise.
85334         * m4/lcmessage.m4: Likewise.
85335         * m4/ls-mntd-fs.m4: Likewise.
85336         * m4/malloc.m4: Likewise.
85337         * m4/memcmp.m4: Likewise.
85338         * m4/putenv.m4: Likewise.
85339         * m4/realloc.m4: Likewise.
85340         * m4/st_mtim.m4: Likewise.
85341         * m4/strftime.m4: Likewise.
85342
85343 1999-01-16  Jim Meyering  <meyering@ascend.com>
85344
85345         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85346         (ARGMATCH_DIE_DECL): Define.
85347
85348 1999-01-12  Jim Meyering  <meyering@ascend.com>
85349
85350         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85351         Reported by Lars Hecking.
85352
85353 1999-01-10  Jim Meyering  <meyering@ascend.com>
85354
85355         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85356         gross kludge.
85357         * m4/inttypes_h.m4: Likewise.
85358         * m4/lstat.m4: Likewise.
85359         * m4/malloc.m4: Likewise.
85360         * m4/readdir.m4: Likewise.
85361         * m4/realloc.m4: Likewise.
85362         * m4/st_dm_mode.m4: Likewise.
85363         * m4/stat.m4: Likewise.
85364         * m4/utimbuf.m4: Likewise.
85365         * m4/utimes.m4: Likewise.
85366
85367         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85368         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85369         comments in config.h.in are meaningful.
85370
85371         * m4/jm-macros.m4: Require autoconf-2.13 here.
85372
85373         * m4/regex.m4: By default, don't use the included regex.c on systems
85374         with glibc 2.  Suggestion from Uli Drepper.
85375
85376 1999-01-02  Jim Meyering  <meyering@ascend.com>
85377
85378         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85379
85380 1998-12-18  Jim Meyering  <meyering@ascend.com>
85381
85382         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85383         Based on a suggestion from Lars Hecking.
85384
85385 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85386
85387         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85388
85389 1998-11-16  Jim Meyering  <meyering@ascend.com>
85390
85391         * m4/lfs.m4: Double-quote the `uname...` expression.
85392
85393 1998-11-14  Jim Meyering  <meyering@ascend.com>
85394
85395         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85396         * m4/stat.m4: Likewise.
85397
85398 1998-11-03  Jim Meyering  <meyering@ascend.com>
85399
85400         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85401         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85402
85403 1998-10-18  Jim Meyering  <meyering@ascend.com>
85404
85405         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85406
85407 1998-10-17  Jim Meyering  <meyering@ascend.com>
85408
85409         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85410         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85411         calls for those previously hard-coded headers.  Instead, take a new
85412         parameter.
85413         (jm_CHECK_DECLARATIONS): Reflect interface change.
85414         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85415         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85416
85417         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85418
85419 1998-10-14  Jim Meyering  <meyering@ascend.com>
85420
85421         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85422         instead of "TZ=America/Vancouver".  From Paul Eggert.
85423
85424 1998-10-11  Jim Meyering  <meyering@ascend.com>
85425
85426         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85427         This adds a test for a recently added compatibility fix for mktime.c.
85428         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85429
85430 1998-09-27  Jim Meyering  <meyering@ascend.com>
85431
85432         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85433
85434         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85435         ../configure.in, including a change from Gordon Matzigkeit to allow
85436         cross-compiling for the Hurd.
85437
85438         * m4/glibc.m4: New file/macro to test for the GNU C Library
85439         versions 1 and 2.  From Gordon Matzigkeit.
85440         Indent.
85441
85442 1998-09-21  Jim Meyering  <meyering@ascend.com>
85443
85444         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85445
85446 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85447
85448         Port nanosecond-resolution times to UnixWare 2.1.2 and
85449         pedantic Solaris 2.6.
85450
85451         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85452         AC_STRUCT_ST_MTIM.
85453         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85454         Generate name of ns member, instead of just 1 or undef.
85455         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85456
85457 1998-08-15  Jim Meyering  <meyering@ascend.com>
85458
85459         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85460         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85461         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85462         instead of jm_TYPE_SSIZE_T.
85463
85464 1998-08-12  Jim Meyering  <meyering@ascend.com>
85465
85466         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85467
85468 1998-08-02  Jim Meyering  <meyering@ascend.com>
85469
85470         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85471         in acconfig.h manually.
85472
85473 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85474
85475         * m4/st_mtim.m4: New file.
85476
85477 1998-07-28  Jim Meyering  <meyering@ascend.com>
85478
85479         * m4/utimes.m4: Undef stat.
85480
85481 1998-07-25  Jim Meyering  <meyering@ascend.com>
85482
85483         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85484         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85485
85486 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85487
85488         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85489         uid and gid actually remain unchanged.
85490
85491 1998-07-07  Jim Meyering  <meyering@ascend.com>
85492
85493         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85494
85495 1998-07-04  Jim Meyering  <meyering@ascend.com>
85496
85497         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85498         to prove that this macro can be used in packages without regex.c.
85499
85500 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85501
85502         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85503         is to be used.
85504
85505 1998-07-03  Jim Meyering  <meyering@ascend.com>
85506
85507         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85508
85509         * m4/gettext.m4: New file -- from gettext-0.10.35.
85510         * m4/lcmessage.m4: Likewise.
85511         * m4/progtest.m4: Likewise.
85512
85513         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85514         * m4/jm-macros.m4: Require the new macro.
85515
85516 1998-06-29  Jim Meyering  <meyering@ascend.com>
85517
85518         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85519         for the definition of NGROUPS (used in a system header included
85520         by sys/mount.h).
85521
85522 1998-06-28  Jim Meyering  <meyering@ascend.com>
85523
85524         * m4/ls-mntd-fs.m4: New file.
85525         * m4/fstypename.m4: New file.
85526
85527         * m4/jm-macros.m4: Require the new macro.
85528         * m4/jm-glibc-io.m4: New file.
85529
85530 1998-05-19  Jim Meyering  <meyering@ascend.com>
85531
85532         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85533         * m4/lchown.m4: New file.
85534
85535         * m4/Makefile.am.in: New file.
85536         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85537
85538 1998-05-14  Jim Meyering  <meyering@ascend.com>
85539
85540         * m4/Makefile.am (EXTRA_DIST): Add them.
85541         * m4/jm-macros.m4: New file.
85542         * m4/utimbuf.m4: New file.
85543
85544 1998-05-12  Jim Meyering  <meyering@ascend.com>
85545
85546         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85547
85548 1998-05-11  Jim Meyering  <meyering@ascend.com>
85549
85550         * m4/isc-posix.m4: New file.
85551
85552 1998-05-10  Jim Meyering  <meyering@ascend.com>
85553
85554         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85555
85556 1998-05-09  Jim Meyering  <meyering@ascend.com>
85557
85558         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85559         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85560         with automake.
85561
85562         * m4/ssize_t.m4: New file.
85563         * m4/mktime.m4: Remove file -- the new automake has this now.
85564
85565 1998-04-26  Jim Meyering  <meyering@ascend.com>
85566
85567         * m4/assert.m4: New file.
85568         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85569
85570 1998-04-05  Jim Meyering  <meyering@ascend.com>
85571
85572         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85573         (jm_PREREQ): Use it here.
85574
85575 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85576
85577         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85578         in acconfig.h.
85579
85580 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85581
85582         * m4/prereq.m4: New file.
85583         * m4/error.m4: New file.
85584         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85585
85586 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85587
85588         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85589         cache-check for the same variable -- that defeated the purpose of
85590         the test; the test program was never run.  This was a problem only
85591         on systems with losing getline functions -- HP-UX 10.20 is one.
85592         Reported by Bjorn Helgaas.
85593
85594 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85595
85596         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85597
85598 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85599
85600         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85601
85602         * m4/const.m4: New file.  Use an initializer in this declaration
85603         typedef int charset[2]; const charset x;
85604         Reported by Bob Glickstein.
85605
85606 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85607
85608         * m4/chown.m4: Fix reversed types on -1 args to chown.
85609         From Kaveh Ghazi.
85610
85611 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85612
85613         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85614         Add lseek and memchr.
85615
85616         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85617         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85618         have a 20-character limit on names.
85619
85620 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85621
85622         * m4/inttypes_h.m4: New file.
85623         * m4/uintmax_t.m4: New file.
85624         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85625
85626
85627         -----
85628
85629         Local Variables:
85630         coding: utf-8
85631         End:
85632
85633         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85634
85635         Copying and distribution of this file, with or without
85636         modification, are permitted provided the copyright notice
85637         and this notice are preserved.